/* ==========================================================================
   1. VARIABLES & CONFIGURATION (Design Tokens)
   ========================================================================== */
:root {
    /* Couleurs de la marque (harmonisées avec le logo AM2C) */
    --color-primary: #0C3470;       /* Bleu Marine Institutionnel */
    --color-primary-dark: #07224A;  /* Bleu Nuit Profond */
    --color-secondary: #1E4E8C;     /* Bleu Ardoise Élégant (remplace l'ancien bleu criard) */
    --color-dark: #111827;          /* Noir adouci Slate */
    
    /* Couleurs d'accentuation et neutres */
    --color-accent: #FF9F1C;        /* Orange Ambré - CTA */
    --color-accent-hover: #E88E19;  /* Orange Ambré foncé */
    --color-accent-dark: #B45309;   /* Ambre Foncé - Texte & Icônes sur fond clair (WCAG AA > 4.5:1) */
    --color-light: #FFFFFF;         /* Blanc pur */
    --color-bg-gray: #F8FAFC;       /* Gris Slate très clair & moderne */
    --color-border: #E2E8F0;        /* Gris bordure subtil */
    --color-text: #334155;          /* Gris ardoise pour un texte très lisible */
    --color-text-muted: #64748B;    /* Gris texte secondaire */

    /* Typographie */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Ombres et Rayons */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 12px rgba(12, 52, 112, 0.08);
    --shadow-card-hover: 0 12px 24px rgba(12, 52, 112, 0.14);
    --shadow-lg: 0 20px 30px rgba(12, 52, 112, 0.16);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: 0.2s ease-in-out;
}

/* ==========================================================================
   2. RESET & BASE (HTML sémantique)
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Pour la navigation fluide par ancres */
    font-size: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* protection mobile contre le défilement horizontal */
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   3. CLASSES UTILITAIRES (Accessibilité & Layout)
   ========================================================================== */
/* Masquer visuellement mais laisser lisible pour les lecteurs d'écran & SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Conteneur global */
[class$="__container"] {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   4. COMPOSANTS (Boutons)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    border: 2px solid transparent;
    line-height: 1.4;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-primary); /* Contraste WCAG AA respecté */
}

.btn--primary:hover, .btn--primary:focus-visible {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-light);
    border-color: rgba(255, 159, 28, 0.7);
}

.btn--secondary:hover, .btn--secondary:focus-visible {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   5. LAYOUT : HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.header__top-bar {
    background-color: var(--color-dark);
    color: var(--color-light);
    text-align: center;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.header__emergency-link {
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: opacity var(--transition-fast);
}

.header__emergency-link:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.header__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 5%;
    background-color: var(--color-light);
    border-bottom: 1px solid #EAEAEA;
    position: relative;
}

.header__logo-link {
    display: flex;
    align-items: center;
}

.header__logo {
    height: 60px;
    width: auto;
    transition: transform var(--transition-fast);
}

.header__logo:hover {
    transform: scale(1.02);
}

/* Bouton Burger Mobile */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    background: transparent;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.header__burger:hover, .header__burger:focus-visible {
    background-color: #F8FAFC;
    border-color: var(--color-primary);
}

.header__burger:focus-visible {
    outline: 3px solid var(--color-accent-dark); /* 4.9:1 sur fond blanc */
    outline-offset: 2px;
}

.header__burger-bar {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Transformation Burger -> Croix */
.header__burger.is-active .header__burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.is-active .header__burger-bar:nth-child(2) {
    opacity: 0;
}

.header__burger.is-active .header__burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Navigation sur Mobile (< 992px) */
@media (max-width: 991px) {
    /* Menu ouvert : la page ne défile plus derrière */
    body.menu-open {
        overflow: hidden;
    }

    .header__cta-group--desktop {
        display: none;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-light);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        border-top: 1px solid #EAEAEA;
        padding: 1.25rem 5% 1.75rem;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header__menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header__menu-link {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-primary);
        padding: 0.65rem 0;
        border-bottom: 1px solid #F1F5F9;
        display: block;
    }

    .header__menu-link:hover, .header__menu-link[aria-current="page"] {
        color: var(--color-accent);
    }

    .header__cta-group--mobile {
        display: block;
        margin-top: 0.5rem;
    }

    .header__cta-group--mobile .btn {
        width: 100%;
        display: block;
    }
}

/* Navigation sur Tablette & Desktop (>= 992px) */
@media (min-width: 992px) {
    .header__logo {
        height: 80px;
    }

    .header__burger {
        display: none;
    }

    .header__cta-group--mobile {
        display: none;
    }

    .header__cta-group--desktop {
        display: block;
    }

    .header__nav {
        display: flex;
        align-items: center;
    }

    .header__menu {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }

    .header__menu-link {
        font-weight: 600;
        color: var(--color-primary);
        padding: 0.5rem 0;
        position: relative;
    }

    .header__menu-link:hover, .header__menu-link[aria-current="page"] {
        color: var(--color-accent);
    }

    .header__menu-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--color-accent);
        transition: width var(--transition-fast);
    }

    .header__menu-link:hover::after, .header__menu-link[aria-current="page"]::after {
        width: 100%;
    }
}

/* ==========================================================================
   6. LAYOUT : HERO SECTION
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #07224A 0%, #0C3470 50%, #164E8C 100%);
    color: var(--color-light);
    padding: clamp(5rem, 12vw, 8rem) 5% clamp(4rem, 8vw, 6rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 159, 28, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FEEBC8;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem); /* Typographie fluide */
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-light);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero__description {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: center;
}

@media (min-width: 768px) {
    .hero__actions {
        flex-direction: row;
    }
}

/* ==========================================================================
   7. LAYOUT : TRUST BAR (Réassurance)
   ========================================================================== */
.trust-bar {
    background-color: var(--color-bg-gray);
    padding: 1.25rem 5%;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.trust-bar__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.trust-bar__svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent-dark);
    flex-shrink: 0;
}

/* ==========================================================================
   8. LAYOUT : SERVICES (Pôles d'expertise - GRID)
   ========================================================================== */
.services {
    padding: var(--spacing-xl) 0;
}

.services__section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.services__section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: -1.5rem;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Grille des 2 grands pôles */
.poles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 900px) {
    .poles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pole-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.pole-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-secondary);
}

.pole-card__img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.pole-card__img-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.pole-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pole-card:hover .pole-card__img {
    transform: scale(1.05);
}

.pole-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-primary);
    color: var(--color-accent);
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.pole-card__body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pole-card__title {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.pole-card__desc {
    color: #555;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.pole-card__list {
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.pole-card__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.pole-card__list li::before {
    content: "✓";
    content: "✓" / ""; /* décoratif : ignoré par les lecteurs d'écran */
    position: absolute;
    left: 0;
    color: var(--color-accent-dark);
    font-weight: bold;
}

/* ==========================================================================
   10. CTA FINAL & FOOTER
   ========================================================================== */
.pre-footer-cta {
    background-color: var(--color-secondary);
    color: var(--color-light);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.pre-footer-cta__title {
    margin-bottom: var(--spacing-sm);
}

.pre-footer-cta__text {
    margin-bottom: var(--spacing-md);
}

.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__logo {
    height: 120px;
    width: auto; /* conserve le ratio 512×571 avec la hauteur fixe de 120px */
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1); /* Rend le logo blanc si on utilise un PNG noir de base */
}

.footer__subtitle {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.footer__list li {
    margin-bottom: var(--spacing-xs);
}

.footer__list a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer__address a {
    color: var(--color-accent);
}

.footer__link-btn {
    background: none;
    border: none;
    color: var(--color-light);
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.footer__link-btn:hover, .footer__link-btn:focus-visible {
    color: var(--color-accent);
    text-decoration: underline;
    outline: none;
}

.footer__list--plain li {
    font-size: 0.9rem;
    color: #CBD5E1;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.footer__legal-note {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* ==========================================================================
   11. LAYOUT : PAGE RÉALISATIONS (PORTFOLIO)
   ========================================================================== */

/* Variante du Hero pour les pages internes (moins haut) */
.hero--portfolio {
    padding: clamp(3.5rem, 7vw, 5.5rem) 5%;
    background: linear-gradient(135deg, #07224A 0%, #1E4E8C 100%);
    min-height: 44vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-gray);
}



/* En-têtes de sections du portfolio */
.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: var(--spacing-md);
}

.section-header__badge {
    background-color: var(--color-primary);
    color: var(--color-light);
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.section-header__badge--accent {
    background-color: var(--color-secondary);
}

.section-header__title {
    color: var(--color-primary);
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    line-height: 1.25;
}

.portfolio--alt {
    background-color: #EBEBEB; /* Variation de fond pour alterner les 2 pôles */
}

/* Style du Formulaire de Devis (Section Pre-Footer) */
.quote-form {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .form-group {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   13. STYLE PAR CHANTIER / PROJET (ACCORDÉON DE GALERIE)
   ========================================================================== */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.project-card {
    background-color: var(--color-light);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-fast);
}

.project-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.project-card__header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .project-card__header {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}

.project-card__thumb-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--color-bg-gray);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .project-card__thumb-wrapper {
        width: 150px;
        height: 110px;
    }
}

.project-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__thumb {
    transform: scale(1.05);
}

.project-card__meta {
    flex-grow: 1;
}

.project-card__tag {
    display: inline-block;
    background-color: var(--color-bg-gray);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.project-card__title {
    color: var(--color-primary);
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.project-card__location {
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-card__desc {
    font-size: 0.95rem;
    color: var(--color-text);
    max-width: 700px;
}

.project-card__btn {
    white-space: nowrap;
    align-self: stretch;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .project-card__btn {
        width: auto;
        align-self: center;
        flex-shrink: 0;
    }
}

.project-card__btn.btn--active {
    background-color: var(--color-primary);
    color: var(--color-light);
}

/* GALERIE DÉPLIABLE DU CHANTIER */
.project-gallery {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden; /* galerie repliée : ses liens ne sont pas atteignables au clavier */
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.3s ease, visibility 0s linear 0.5s;
}

.project-gallery.is-open {
    max-height: 2000px; /* Permet d'accueillir toutes les photos du chantier */
    opacity: 1;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #EEE;
    visibility: visible;
    transition-delay: 0s;
}

.project-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.project-gallery__grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: zoom-in;
}

.project-gallery__grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ==========================================================================
   14. LIGHTBOX MODAL (Visionneuse plein écran)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-visible {
    opacity: 1;
    visibility: visible;
    /* visible dès l'ouverture (sinon le focus ne peut pas entrer) ; la fermeture garde le fondu */
    transition: opacity 0.25s ease, visibility 0s;
}

.lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 35, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox__container {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: var(--color-light);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.75rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--color-light);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.lightbox__close:hover, .lightbox__close:focus-visible {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.1);
    outline: none;
}

/* ==========================================================================
   15. NOTIFICATIONS ET FEEDBACK FORMULAIRE
   ========================================================================== */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: alertSlideDown 0.3s ease;
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-alert--success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-alert--error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ==========================================================================
   16. HERO METRICS — Chiffres clés de preuve sociale
   ========================================================================== */
.hero__metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero__metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0 2rem;
}

.hero__metric-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.hero__metric-value {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-light);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero__metric-unit {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--color-accent);
    margin-left: 0.15rem;
    vertical-align: baseline;
}

.hero__metric-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 480px) {
    .hero__metric {
        padding: 0 1rem;
    }
    .hero__metric-value {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   17. SECTION EYEBROW (Surtitre accentué)
   ========================================================================== */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #A84D08; /* 5.0:1 sur fond gris — WCAG AA */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(255, 159, 28, 0.1);
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 0.85rem;
}

/* ==========================================================================
   18. SECTION WHY-US REFONTE — Conteneur et intro
   ========================================================================== */
.why-us {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg-gray);
}

.why-us__intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-us__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.why-us__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   19. STAT CARDS — 4 cartes métriques premium
   ========================================================================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .stat-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-secondary);
}

.stat-card__icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.stat-card__icon-wrap--blue {
    background-color: rgba(12, 52, 112, 0.08);
    color: var(--color-primary);
}

.stat-card__icon-wrap--orange {
    background-color: rgba(255, 159, 28, 0.12);
    color: var(--color-accent-dark);
}

.stat-card__icon-wrap--green {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

.stat-card__icon-wrap--purple {
    background-color: rgba(124, 58, 237, 0.08);
    color: #7C3AED;
}

.stat-card__number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-card__number span {
    font-size: 0.55em;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-left: 0.2rem;
}

.stat-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.stat-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}

/* ==========================================================================
   20. FAQ SECTION — Accordéon natif <details>/<summary>
   ========================================================================== */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-light);
}

.faq__intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.faq__subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.faq__list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-light);
    overflow: hidden;
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.faq__item[open] {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 16px rgba(12, 52, 112, 0.08);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.15s ease;
    user-select: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover {
    background-color: var(--color-bg-gray);
}

.faq__item[open] .faq__question {
    background-color: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
}

.faq__chevron {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform 0.25s ease-out, color 0.2s ease;
    display: flex;
    align-items: center;
}

.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq__answer {
    padding: 1.1rem 1.4rem;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    animation: faqSlideDown 0.25s ease-out;
}

.faq__answer p {
    margin: 0;
}

.faq__answer strong {
    color: var(--color-primary);
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   21. SERVICE CARD LINK — Lien "Voir les chantiers" amélioré
   ========================================================================== */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
    transition: color 0.2s ease-out, gap 0.2s ease-out;
}

.service-card__link:hover {
    color: var(--color-accent-dark);
    gap: 0.7rem;
}

/* ==========================================================================
   22. FORM INPUT — Modernisation rayon + focus amélioré
   ========================================================================== */
.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-light);
    transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
    -webkit-appearance: none;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:hover {
    border-color: #94A3B8;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.18);
}

/* ==========================================================================
   24. POLE CARD — Lien hover amélioré
   ========================================================================== */
.pole-card__body .service-card__link {
    color: var(--color-secondary);
}

.pole-card__body .service-card__link:hover {
    color: var(--color-accent-dark);
}


/* ==========================================================================
   26. ANCRES — Compensation du header sticky
   ========================================================================== */
main [id] {
    scroll-margin-top: 9rem;
}

/* ==========================================================================
   27. FIL D'ARIANE (Breadcrumb)
   ========================================================================== */
.breadcrumb {
    background-color: var(--color-bg-gray);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 5%;
    font-size: 0.875rem;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
}

.breadcrumb__item {
    color: var(--color-text-muted);
}

.breadcrumb__item + .breadcrumb__item::before {
    content: "›";
    content: "›" / ""; /* séparateur décoratif */
    margin-right: 0.5rem;
    color: var(--color-text-muted);
}

.breadcrumb__link {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb__link:hover, .breadcrumb__link:focus-visible {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

.breadcrumb__item[aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

/* ==========================================================================
   28. PAGE MENTIONS LÉGALES & RGPD
   ========================================================================== */
.hero--compact {
    min-height: 0;
}

.legal {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-light);
}

.legal--alt {
    background-color: var(--color-bg-gray);
}

.legal__container {
    max-width: 820px;
}

.legal__title {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
}

.legal__body {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
}

.legal__body h3 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 1.75rem 0 0.5rem;
}

.legal__body h3:first-child {
    margin-top: 0;
}

.legal__body p {
    margin-bottom: 0.75rem;
}

.legal__body a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.legal__body a:hover, .legal__body a:focus-visible {
    color: var(--color-accent-dark);
}

/* ==========================================================================
   29. CHANTIERS — Liste des interventions par carte
   ========================================================================== */
.project-card__list {
    margin: 0.75rem 0 0;
}

.project-card__list li {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   30. PAGES PILIERS — Détail des prestations (texte + photo de chantier)
   ========================================================================== */
.services--alt {
    background-color: var(--color-bg-gray);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

.service-detail__text {
    max-width: 820px;
}

@media (min-width: 900px) {
    .service-detail--with-figure {
        grid-template-columns: 1.15fr 1fr;
        gap: var(--spacing-lg);
        align-items: center;
    }
}

.service-detail__title {
    color: var(--color-primary);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-sm);
}

.service-detail__text p {
    margin-bottom: 1rem;
}

.service-detail__text .pole-card__list {
    margin-bottom: 1.25rem;
}

.service-detail__link {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(12, 52, 112, 0.3);
    text-underline-offset: 3px;
    margin: 0 1.25rem 0.5rem 0;
}

.service-detail__link:hover, .service-detail__link:focus-visible {
    color: var(--color-accent-dark);
    text-decoration-color: currentColor;
}

/* Lien dans une phrase (ex. numéro de téléphone) : sans marge ni bloc, jamais coupé */
.service-detail__inline-link {
    white-space: nowrap;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(12, 52, 112, 0.3);
    text-underline-offset: 3px;
}

.service-detail__inline-link:hover, .service-detail__inline-link:focus-visible {
    color: var(--color-accent-dark);
    text-decoration-color: currentColor;
}

.service-detail__figure {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-light);
    box-shadow: var(--shadow-card);
}

.service-detail__figure img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-detail__caption {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.65rem 1rem;
}

/* ==========================================================================
   31. PAGES PILIERS — Zones d'intervention
   ========================================================================== */
.zones-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .zones-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .zones-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

.zones-list__item {
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

.zones-list__title {
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.zones-list__cities {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.zones-list__note {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--color-text-muted);
}

/* Intros de section élargies pour les titres H2 longs */
.why-us__intro--wide,
.faq__intro--wide {
    max-width: 820px;
}

.service-detail__figure picture {
    display: block;
}

.why-us__intro--wide .why-us__title,
.faq__intro--wide .faq__title {
    line-height: 1.25;
}

/* ==========================================================================
   32. MAILLAGE INTERNE — Liens des cartes de pôles & des chantiers
   ========================================================================== */
.pole-card__links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.service-card__link--secondary {
    border-top: none;
    padding-top: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(30, 78, 140, 0.35);
    text-underline-offset: 3px;
}

.project-card__meta .service-card__link {
    width: auto;
    border-top: none;
    padding-top: 0;
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

/* Header desktop étroit (992-1199px) : 4 entrées de menu + CTA sur une seule ligne */
@media (min-width: 992px) and (max-width: 1199px) {
    .header__main {
        padding-left: 3%;
        padding-right: 3%;
    }

    .header__menu {
        gap: 1.1rem;
    }

    .header__menu-link {
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .header__cta-group--desktop .btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   33. PERFORMANCE — Logo servi en <picture> (WebP + repli PNG)
   ========================================================================== */
.header__logo-link picture,
.footer__column picture {
    display: block;
}

/* ==========================================================================
   34. GALERIES — Miniatures cliquables (lien vers la photo HD)
   ========================================================================== */
.project-gallery__link {
    display: block;
    border-radius: 6px;
}

.project-gallery__link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ==========================================================================
   35. PAGES PILIERS — Liste des chantiers liés à une prestation
   ========================================================================== */
.service-detail__text .service-detail__chantiers-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin: 0.25rem 0 0.5rem;
}

.service-detail__chantiers {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-detail__chantiers a {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: underline;
    text-decoration-color: rgba(12, 52, 112, 0.3);
    text-underline-offset: 3px;
}

.service-detail__chantiers a::before {
    content: "→ ";
    content: "→ " / ""; /* flèche décorative */
    text-decoration: none;
    display: inline-block;
    margin-right: 0.15rem;
    color: var(--color-accent-dark);
}

.service-detail__chantiers a:hover,
.service-detail__chantiers a:focus-visible {
    color: var(--color-accent-dark);
    text-decoration-color: currentColor;
}

/* Galerie repliée : grille non rendue => ses miniatures (lazy) ne sont pas téléchargées
   avant l'ouverture. Les <img src> et liens HD restent dans le HTML pour l'indexation. */
.project-gallery:not(.is-open) .project-gallery__grid {
    display: none;
}

/* ==========================================================================
   36. FORMULAIRE — Champs obligatoires non remplis (classe posée par initQuoteForm)
   ========================================================================== */
.form-input.form-input--error,
.form-input.form-input--error:focus {
    border-color: #DC2626;
    background-color: #FEF2F2;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.form-input.form-input--error::placeholder {
    color: #991B1B; /* 7.6:1 sur #FEF2F2 */
}

/* ==========================================================================
   37. ACCESSIBILITÉ — Lien d'évitement & lightbox
   ========================================================================== */
/* Lien « Aller au contenu » : hors écran, il apparaît à la première tabulation */
.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(-200%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* <main tabindex="-1"> reçoit le focus du lien d'évitement : pas de cadre autour de toute la page */
#contenu:focus {
    outline: none;
}

/* ==========================================================================
   38. POLICE INTER HÉBERGÉE SUR LE SITE (remplace Google Fonts)
   Police variable (graisses 400 à 900), licence SIL OFL 1.1 : static/fonts/Inter-OFL.txt
   Mêmes fichiers et mêmes plages de caractères que Google Fonts (v20) ; « latin » est déclaré
   en dernier pour être prioritaire, comme chez Google. Seul « latin » est utilisé par le site.
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   39. PRÉFÉRENCES UTILISATEUR — Réduction des animations
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ==========================================================================
   40. FORMULAIRE — Libellés visibles au-dessus des champs
   ========================================================================== */
.form-label {
    display: block;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light); /* 8.4:1 sur le fond bleu de la section */
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   41. BARRE D'ACTION MOBILE — Appeler / Devis (masquée sur ordinateur)
   ========================================================================== */
.mobile-cta {
    display: none;
}

@media (max-width: 991px) {
    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900; /* sous le menu (1000) et la lightbox (9999) */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
        background-color: var(--color-light);
        box-shadow: 0 -4px 16px rgba(12, 52, 112, 0.15);
        transition: transform 0.25s ease, visibility 0s;
    }

    /* Masquée quand le formulaire de devis est à l'écran (hors tabulation aussi) */
    .mobile-cta--hidden {
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .mobile-cta__link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 48px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .mobile-cta__link--call {
        background-color: var(--color-primary);
        color: var(--color-light);
    }

    .mobile-cta__link--quote {
        background-color: var(--color-accent);
        color: var(--color-primary);
    }

    .mobile-cta__link:focus-visible {
        outline: 3px solid var(--color-accent-dark);
        outline-offset: 2px;
    }

    /* La barre ne masque jamais la fin de la page ni un champ qui reçoit le focus */
    body {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }

    html {
        scroll-padding-bottom: 5rem;
    }
}
