/**
 * JAGG.SITE - Création de sites internet à Louhans
 * Feuille de style principale
 * Date : 2025-10-06
 *
 * Palette de couleurs :
 * - Primaire : #c9cace (gris clair)
 * - Secondaire : #838385 (gris moyen)
 * - Tertiaire : #0d5a73 (bleu-vert profond)
 * - Quaternaire : #e9840a (orange)
 * - Texte : #1d1d1d (gris très foncé)
 */

/* ============================================================
   FONTS PERSONNALISÉES
   ============================================================ */

@font-face {
    font-family: 'AlegreyaSansSC';
    src: url('../fonts/AlegreyaSansSC-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlegreyaSans';
    src: url('../fonts/AlegreyaSans-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'AlegreyaSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background: url('../images/developpeur-internet-louhans-71500.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #838385;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'AlegreyaSansSC', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 2vw, 1.6rem);
}

/* ============================================================
   CONTENEUR & LAYOUT
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-large {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 40px 0;
}

/* Conteneur style hero pour toutes les sections */
.section-container {
    padding: 60px 40px;
    width: 85%;
    margin: 0 auto;
}

/* Background gris semi-transparent */
.section-dark {
    background: rgba(110, 110, 110, 0.7);
}

/* Background blanc semi-transparent */
.section-light {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid #e9840a;
}

/* Suppression du background des sections alternées par défaut */
.section-alt {
    background: transparent;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

header {
    background: rgba(110, 110, 110, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9840a;
}

.header-top {
}

.header-contact {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.header-email {
    color: #ffffff;
}

.header-separator {
    color: #ffffff;
}

.header-phone {
    color: #0d5a73;
    font-weight: 600;
}

.header-phone:hover {
    color: #e9840a;
}

header.scrolled {
    background: rgba(132, 132, 132, 1);
}

/* Lien Admin dans le menu */
.admin-link {
    color: #e9840a !important;
    font-weight: 600;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 13px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.9;
}

.logo-main {
    font-family: 'AlegreyaSansSC', sans-serif;
    font-weight: 300;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.logo-jagg {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: #0d5a73;
    text-transform: uppercase;
    font-weight: 700;
}

.logo-site {
    font-size: clamp(1.65rem, 3.75vw, 2.3rem);
    color: #ffffff;
}

.logo-tagline {
    font-family: 'AlegreyaSans', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 300;
    margin-left: clamp(25px, 4vw, 45px);
    margin-top: -5px;
}

.logo-tagline .dev {
    color: #ffffff;
}

.logo-tagline .web {
    color: #0d5a73;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.6rem;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-menu > li > a:hover {
    color: #0d5a73;
}

/* Sous-menu */
.nav-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #848484;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu li a:hover {
    background: rgba(201, 202, 206, 0.3);
    color: #0d5a73;
    border-left-color: #e9840a;
}

/* Menu mobile burger */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background: #0d5a73;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================================
   HERO / ACCROCHE
   ============================================================ */

.hero {
    padding: 80px 0 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 60px 40px;
    width: 85%;
    color: #1d1d1d;
    border-top: 1px solid #e9840a;
}

.hero h1 {
    color: #0d5a73;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: clamp(1.6rem, 2.5vw, 1.6rem);
    margin-bottom: 0;
    color: #1d1d1d;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* ============================================================
   BOUTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #e9840a;
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #ffffff;
    border: 2px solid #e9840a;
    color: #e9840a;
}

.btn-secondary {
    background: #0d5a73;
    color: #ffffff;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: #ffffff;
    border: 2px solid #0d5a73;
    color: #0d5a73;
}

.btn-outline {
    background: transparent;
    color: #0d5a73;
    border: 2px solid #0d5a73;
}

.btn-outline:hover {
    background: #0d5a73;
    color: #ffffff;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: #0d5a73;
    margin-bottom: 1rem;
}

.section-title p {
    color: #1d1d1d;
    font-size: 1.6rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Section alternée (fond gris clair) */
.section-alt {
    background: rgba(201, 202, 206, 0.3);
}

/* ============================================================
   GRILLE (GRID)
   ============================================================ */

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1400px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Grille de présentation avec alternance */
.presentation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Au-dessus de 1000px : alternance image/texte */
.presentation-row .presentation-image {
    grid-column: 1;
}

.presentation-row .presentation-text {
    grid-column: 2;
}

.presentation-row-reverse .presentation-text {
    grid-column: 1;
}

.presentation-row-reverse .presentation-image {
    grid-column: 2;
}

/* Responsive : texte sous image en dessous de 1000px */
@media (max-width: 1000px) {
    .presentation-row,
    .presentation-row-reverse {
        grid-template-columns: 1fr;
    }

    .presentation-row .presentation-image,
    .presentation-row-reverse .presentation-image {
        grid-column: 1;
        order: 1;
    }

    .presentation-row .presentation-text,
    .presentation-row-reverse .presentation-text {
        grid-column: 1;
        order: 2;
    }
}

/* ============================================================
   CARTES (CARDS)
   ============================================================ */

.card {
    background: transparent;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 1px solid #e9840a;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 90, 115, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #ffffff;
}

.card h3 {
    color: #0d5a73;
    margin-bottom: 15px;
    text-align: center;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card p {
    line-height: 1.7;
}

/* ============================================================
   AVIS GOOGLE
   ============================================================ */

.avis-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.avis-card {
    background: rgba(110, 110, 110, 0.7);
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 1px solid #e9840a;
}

.avis-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.avis-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    min-height: 70px;
}

.avis-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(13, 90, 115, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.avis-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.avis-info h4 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    min-height: 3.1rem;
    display: flex;
    align-items: flex-start;
}

.avis-etoiles {
    color: #e9840a;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.avis-texte {
    color: #ffffff;
    line-height: 1.6;
    font-size: 1.3rem;
}

.avis-date {
    margin-top: 12px;
    font-size: 1.6rem;
    color: #ffffff;
}

.btn-lire-plus {
    background: none;
    border: none;
    color: #0d5a73;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
    padding: 5px 0;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.btn-lire-plus:hover {
    color: #e9840a;
}

/* ============================================================
   RÉALISATIONS
   ============================================================ */

.realisation-card {
    background: rgba(131, 131, 133, 0.3);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 1px solid #e9840a;
}

.realisation-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.realisation-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: rgba(131, 131, 133, 0.3);
}

.realisation-content {
    padding: 20px;
}

.realisation-badge {
    display: inline-block;
    background: #0d5a73;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.realisation-content h3 {
    color: #0d5a73;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.realisation-content p {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.realisation-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e9840a;
    font-weight: 600;
    font-size: 1.6rem;
}

.realisation-link:hover {
    gap: 12px;
    color: #0d5a73;
}

/* ============================================================
   BARRE DE RECHERCHE
   ============================================================ */

.search-bar {
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Réduction du padding entre la recherche et les résultats */
#grille-realisations {
    padding-top: 20px;
}

#grille-realisations + section,
section:has(+ #grille-realisations) {
    padding-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #c9cace;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0d5a73;
    box-shadow: 0 0 0 4px rgba(13, 90, 115, 0.1);
}

/* ============================================================
   FORMULAIRE
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d1d1d;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #c9cace;
    font-size: 1.6rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #0d5a73;
    box-shadow: 0 0 0 3px rgba(13, 90, 115, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================================
   TABLEAU (TARIFS)
   ============================================================ */

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pricing-table thead {
    background: #0d5a73;
    color: #ffffff;
}

.pricing-table th {
    padding: 18px;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-table tbody tr:hover {
    background: #f9fafb;
}

.pricing-table .price {
    color: #e9840a;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    background: rgba(110, 110, 110, 0.7);
    color: #ffffff;
    padding: 30px 0 15px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
}

.footer-section h3 {
    color: #0d5a73;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #ffffff;
    line-height: 1.4;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #e9840a;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    color: #ffffff;
    font-size: 1.6rem;
}

/* Espacements spécifiques footer */
.footer-location-text {
    margin-top: 15px;
}

.footer-google-reviews {
    color: #e9840a;
    font-weight: 600;
}

.footer-info-text {
    margin-bottom: 10px;
}

.footer-seo-keywords {
    font-size: 0.85rem !important;
    max-width: 100%;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.animate {
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

/* Délais d'animation pour éléments en série */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ============================================================
   UTILITAIRES
   ============================================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.color-primary { color: #c9cace; }
.color-secondary { color: #838385; }
.color-tertiary { color: #0d5a73; }
.color-quaternary { color: #e9840a; }

/* Badges de statut (utilisés par badge_statut function) */
.status-badge {
    display: inline-block;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-paye,
.status-badge-payee,
.status-badge-accepte,
.status-badge-reussi {
    background-color: #10b981;
}

.status-badge-impaye,
.status-badge-impayee,
.status-badge-en-attente {
    background-color: #f59e0b;
}

.status-badge-retard,
.status-badge-en-retard,
.status-badge-refuse,
.status-badge-echoue {
    background-color: #ef4444;
}

.status-badge-brouillon {
    background-color: #6b7280;
}

.status-badge-envoye {
    background-color: #3b82f6;
}

/* Messages flash (utilisés par afficher_flash function) */
.flash-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    color: white;
}

.flash-message-success {
    background-color: #10b981;
}

.flash-message-error {
    background-color: #ef4444;
}

.flash-message-warning {
    background-color: #f59e0b;
}

.flash-message-info {
    background-color: #3b82f6;
}

/* Pagination (utilisée par generer_pagination function) */
.pagination-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.pagination-link,
.pagination-current {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.pagination-link {
    background: #c9cace;
    color: #1f2937;
}

.pagination-link:hover {
    background: #b0b1b5;
}

.pagination-current {
    background: #0d5a73;
    color: white;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1650px) {
    /* Réduction des tailles de police supérieures à 1.6rem */
    h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }

    h2 {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }

    h3 {
        font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    }

    p {
        font-size: clamp(1.4rem, 2vw, 1.5rem);
        line-height: 1.5;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }

    .hero p {
        font-size: clamp(1.4rem, 2vw, 1.5rem);
        line-height: 1.5;
    }

    /* Textes dans les sections */
    .section-title p {
        font-size: 1.4rem;
    }

    /* Cartes */
    .card h3 {
        font-size: 1.6rem;
    }

    .card p {
        font-size: 1.4rem;
        line-height: 1.5;
    }

    /* Navigation */
    .nav-menu > li > a {
        font-size: 1.4rem;
    }

    .submenu li a {
        font-size: 1.4rem;
    }

    /* Réalisations */
    .realisation-content h3 {
        font-size: 1.6rem;
    }

    .realisation-content p {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .realisation-link {
        font-size: 1.4rem;
    }

    /* Formulaires */
    .form-input,
    .form-textarea,
    .form-select {
        font-size: 1.4rem;
    }

    /* Avis */
    .avis-info h4 {
        font-size: 1.4rem;
    }

    .avis-date {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer-section p,
    .footer-section a {
        font-size: 1.4rem;
    }

    .footer-bottom {
        font-size: 1.4rem;
    }

    /* Boutons */
    .btn {
        font-size: 1.4rem;
    }

    /* Recherche */
    .search-input {
        font-size: 1.4rem;
    }

    /* Header contact */
    .header-contact {
        font-size: 1.3rem;
    }

    /* Styles inline des pages de services - override */
    section#pourquoi p[style*="font-size: 1.6rem"],
    section#pourquoi p[style*="font-size: 1.7rem"] {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
    }

    section#obtenir h3[style*="font-size: 1.9rem"] {
        font-size: 1.6rem !important;
    }

    section#obtenir p[style*="font-size: 1.6rem"] {
        font-size: 1.4rem !important;
        line-height: 1.5 !important;
    }

    section#tarif p[style*="font-size: 1.9rem"] {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 1000px) {
    p {
        font-size: clamp(1.3rem, 2vw, 1.3rem) !important;
    }

    .hero p {
        font-size: clamp(1.3rem, 2.5vw, 1.3rem) !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .hero-content,
    .section-container {
        width: 95%;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu > li > a {
        display: block;
        padding: 15px 0;
        color: #838385;
    }

    /* Curseur main pour lien Services sur mobile */
    .nav-menu > li > a:not([href]) {
        cursor: pointer;
    }

    .nav-menu .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 10px 0 10px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .submenu li a {
        color: #838385;
    }

    .submenu li a:hover {
        background: transparent;
    }

    .nav-menu > li.active .submenu {
        max-height: 500px;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .hero {
        padding: 80px 0 40px 0;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    section {
        padding: 40px 0;
    }

    .btn {
        width: 100%;
        padding: 10px 16px;
        font-size: 1.3rem;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 450px) {
    .section-container {
        padding: 60px 10px;
    }

    .hero-content {
        padding: 60px 10px;
    }

    section > div[style*="padding: 60px 40px"] {
        padding: 60px 10px !important;
    }

    h3 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
}

/* Support jusqu'à 320px */
@media (max-width: 320px) {
    .container,
    .container-large {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
