/* ================================================================
   DUBUIS PEINTURE — Main Stylesheet
   ================================================================ */

/* --------------------------------
   1. CSS Custom Properties
   -------------------------------- */
:root {
    /* Thème clair unique : le client ne veut pas de variante sombre.
       « only » empêche le navigateur d'appliquer ses propres ajustements
       sombres aux contrôles de formulaire natifs. */
    color-scheme: only light;

    /* ---- Couleurs de marque -------------------------------------
       Bleu roi dominant, repris du logo, pour tout ce qui structure :
       titres, boutons, bandes pleines. Le doré ne sert qu'aux filets
       d'accroche, aux libellés de section et aux icônes — jamais en
       aplat, sinon il vire au jaune publicitaire. */
    --brand-blue: #1B4FA3;
    --brand-blue-bright: #1E5BC6;
    --brand-blue-deep: #0E2A5C;
    --brand-blue-darker: #0A1F45;
    --brand-gold: #F2B233;
    --brand-gold-soft: #F7C766;

    /* Neutres froids, accordés au bleu. Un gris chaud sous un bleu roi
       tire vers le beige et salit les grandes surfaces claires. */
    --cool-50: #F9FAFB;
    --cool-100: #F4F6F9;
    --cool-200: #E4E8EE;
    --cool-300: #CBD2DC;
    --cool-600: #5B6473;
    --cool-800: #1F2937;

    /* ---- Rôles sémantiques (thème clair) ---- */
    --color-primary: var(--brand-blue);
    --color-primary-light: var(--brand-blue-bright);
    --color-primary-dark: var(--brand-blue-deep);
    --color-secondary: var(--brand-blue-deep);
    --color-secondary-light: var(--brand-blue);
    --color-accent: var(--brand-gold);
    --color-bg: #FFFFFF;
    --color-bg-alt: var(--cool-100);
    --color-bg-dark: var(--brand-blue-deep);
    --color-text: var(--cool-800);
    --color-text-light: var(--cool-600);
    --color-text-inverse: #FFFFFF;
    --color-border: var(--cool-200);
    --color-success: #16A34A;
    --color-error: #DC2626;

    /* Surface des panneaux image quand aucune photo n'est fournie. */
    --color-panel: var(--brand-blue-deep);
    --color-panel-ink: rgba(255, 255, 255, 0.92);

    /* Fond du header, translucide pour laisser jouer le flou. */
    --color-header-bg: rgba(255, 255, 255, 0.97);

    /* ---- Typographie ----
       Tout en sans-serif : la maquette n'emploie aucun serif. Les
       titres tirent leur présence du gras et du crénage serré, pas
       d'un changement de famille. */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Échelle fluide : chaque pas s'interpole entre 380px et 1400px
       de viewport, ce qui supprime les paliers brutaux du responsive. */
    --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
    --step-0:  clamp(1rem, 0.95rem + 0.24vw, 1.13rem);
    --step-1:  clamp(1.2rem, 1.11rem + 0.42vw, 1.5rem);
    --step-2:  clamp(1.44rem, 1.29rem + 0.71vw, 2rem);
    --step-3:  clamp(1.73rem, 1.48rem + 1.15vw, 2.66rem);
    --step-4:  clamp(2.07rem, 1.68rem + 1.81vw, 3.55rem);
    --step-5:  clamp(2.49rem, 1.88rem + 2.79vw, 4.73rem);
    --step-6:  clamp(2.99rem, 2.06rem + 4.22vw, 6.31rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Rythme vertical des sections, fluide lui aussi. */
    --section-gap: clamp(3.5rem, 2rem + 6vw, 7rem);

    /* Layout */
    --container-max: 1240px;
    --container-narrow: 720px;
    --header-height: 80px;
    --border-radius: 10px;
    --border-radius-lg: 18px;
    --border-radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Ombres teintées dans le marine plutôt qu'en noir neutre : le
       noir pur sur fond chaud donne un gris sale et « aplatit ». */
    --shadow-sm: 0 1px 2px rgba(14, 42, 92, 0.06),
                 0 2px 6px rgba(14, 42, 92, 0.04);
    --shadow-md: 0 2px 4px rgba(14, 42, 92, 0.05),
                 0 8px 24px rgba(14, 42, 92, 0.08);
    --shadow-lg: 0 4px 8px rgba(14, 42, 92, 0.05),
                 0 16px 48px rgba(14, 42, 92, 0.11);
    --shadow-xl: 0 8px 16px rgba(14, 42, 92, 0.07),
                 0 32px 72px rgba(14, 42, 92, 0.15);
}


/* --------------------------------
   2. Reset & Base
   -------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

ul, ol {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
    z-index: 9999;
}

.skip-link:focus {
    top: var(--space-md);
    color: white;
}

/* --------------------------------
   3. Typography
   -------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.12;
    color: var(--color-secondary);
    text-wrap: balance;
    /* Sans changement de famille, c'est le crénage négatif qui donne
       aux titres leur densité. */
    letter-spacing: -0.025em;
}

/* Les titres de la maquette restent modestes : seul le hero joue les
   grandes tailles. Un h2 à --step-4 partait sur trois lignes. */
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: var(--step-0); font-weight: 700; letter-spacing: -0.01em; }

/* Libellé de section : filet doré + capitales espacées. Motif
   récurrent au-dessus de chaque titre de la maquette. */
.section__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.section__label::before {
    content: '';
    width: 1.75rem;
    height: 3px;
    background: var(--brand-gold);
    flex-shrink: 0;
}

/* Sur bande bleu foncé, le libellé passe en blanc — le filet doré
   reste, c'est lui qui porte l'accent. */
.section__label--light {
    color: #FFFFFF;
}

/* Les paragraphes gardent une mesure lisible (~68 caractères). */
p { text-wrap: pretty; }

p + p { margin-top: var(--space-md); }

.prose p { margin-bottom: var(--space-lg); }
.prose h2 { margin: var(--space-2xl) 0 var(--space-lg); }
.prose h3 { margin: var(--space-xl) 0 var(--space-md); }

/* --------------------------------
   4. Layout
   -------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

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

/* En-tête de section aligné à gauche : le centrage systématique est
   ce qui donnait à la page son côté brochure générique. */
.section__header {
    max-width: 46ch;
    margin: 0 0 var(--space-3xl);
}

.section__header--center {
    text-align: center;
    margin-inline: auto;
}

/* .section__label est défini plus haut, avec son filet doré. */

.section__title {
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.section__footer {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* --------------------------------
   5. Buttons
   -------------------------------- */
/* Rectangles à peine adoucis plutôt que pilules : la maquette joue
   une carte institutionnelle, pas « app ». */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn svg {
    width: 15px;
    height: 15px;
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
    box-shadow: 0 6px 20px rgba(27, 79, 163, 0.32);
}

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

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

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

.btn--outline:hover {
    background-color: var(--color-bg-alt);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

/* Bouton contour sur fond sombre (CTA, réalisations). */
.cta .btn--outline,
.realisations .btn--outline {
    color: var(--color-text-inverse);
    border-color: rgba(255, 255, 255, 0.5);
}

.realisations .btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-inverse);
    color: var(--color-text-inverse);
}

.cta .btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-text-inverse);
    color: var(--color-text-inverse);
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn--block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* --------------------------------
   6. Header & Navigation
   -------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-base);
    background: var(--color-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* La barre d'administration WordPress se superpose à l'en-tête fixe et rogne
   le logo. Décalage appliqué aux seuls utilisateurs connectés. */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Sous 600px, WordPress repasse la barre d'admin en position absolue : elle
   defile avec la page. La decaler laisserait une bande vide des le premier
   scroll. */
@media screen and (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}

.site-header.is-scrolled {
    background: var(--color-header-bg);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo: two images stacked, swap on scroll */
.site-header__logo {
    position: relative;
    z-index: 1001;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-header__logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.site-header__logo-img {
    height: 48px;
    width: auto;
}


.nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 1.5vw, 1.25rem);
}

/* Soulignement doré sur l'entrée active plutôt qu'une pastille de
   fond : c'est le repère de la maquette, et il tient mieux quand le
   menu compte cinq entrées. */
.nav__link {
    position: relative;
    display: block;
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
}

.nav__link.active::after,
.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__cta {
    margin-left: var(--space-md);
    background-color: var(--color-primary);
    color: var(--color-text-inverse) !important;
    border-color: var(--color-primary);
}

.nav__cta:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-text-inverse) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle__icon {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
}

.nav-toggle__icon svg {
    width: 100%;
    height: 100%;
}

.nav-toggle__icon--close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close {
    display: block;
}

/* --------------------------------
   7. Hero
   -------------------------------- */
.hero {
    position: relative;
    margin-top: var(--header-height);
    /* Marge basse qui accueille le chevauchement de la barre de
       garanties, calculee plus bas. */
    padding-bottom: clamp(5rem, 12vw, 9rem);
    background-color: var(--color-bg-alt);
}

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Repli sans photo : degrade bleu profond, jamais un cadre vide. */
.hero__media--empty {
    background:
        radial-gradient(ellipse 70% 90% at 75% 20%, rgba(30, 91, 198, 0.55) 0%, transparent 60%),
        linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 60%, var(--brand-blue-darker) 100%);
}

/* Voile clair a gauche : sans lui, le texte sombre devient illisible
   des que la photo est claire a cet endroit. Il s'estompe vers la
   droite pour laisser respirer l'image. */
.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 28%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0) 68%
    );
}

/* Sur le repli bleu, on inverse : voile sombre et texte clair. */
.hero--fallback .hero__scrim {
    background: linear-gradient(
        100deg,
        rgba(10, 31, 69, 0.88) 0%,
        rgba(10, 31, 69, 0.72) 40%,
        rgba(10, 31, 69, 0.25) 70%,
        rgba(10, 31, 69, 0) 100%
    );
}

/* padding-block et non le raccourci `padding` : .hero__inner porte
   aussi la classe .container, dont la gouttière horizontale serait
   écrasée — le titre se collerait au bord de l'écran. */
.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: clamp(26rem, 52vw, 34rem);
    padding-block: clamp(3rem, 7vw, 5rem);
}

/* Colonne étroite : c'est elle qui provoque l'empilement du titre sur
   trois lignes, et qui garde le texte sur la partie voilée de la photo. */
.hero__content {
    max-width: 27rem;
}

.hero__title {
    font-size: var(--step-4);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

/* Troisieme ligne du titre en bleu vif, comme dans la maquette. */
.hero__title span {
    display: block;
    color: var(--color-primary);
}

.hero--fallback .hero__title { color: #FFFFFF; }
.hero--fallback .hero__title span { color: var(--brand-gold); }

.hero__rule {
    width: 3.5rem;
    height: 4px;
    background: var(--brand-gold);
    margin-bottom: var(--space-lg);
}

.hero__subtitle {
    font-size: var(--step-0);
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 26rem;
}

.hero--fallback .hero__subtitle { color: rgba(255, 255, 255, 0.85); }

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Sur une photo, un bouton à fond transparent disparaît : celui-ci est
   plein blanc à texte bleu, comme dans la maquette. */
.hero__actions .btn--outline {
    background-color: #FFFFFF;
    color: var(--color-primary);
    border-color: #FFFFFF;
}

.hero__actions .btn--outline:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.hero--fallback .hero__actions .btn--outline {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.55);
}

.hero--fallback .hero__actions .btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* --------------------------------
   7a. Barre de garanties
   Carte blanche qui chevauche le bas du hero.
   -------------------------------- */
.guarantees {
    position: relative;
    z-index: 3;
    /* Remonte la carte sur le hero. La valeur compense la marge basse
       du hero, ce qui evite un blanc entre les deux. */
    margin-top: clamp(-7rem, -9vw, -4rem);
}

.guarantees__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--color-bg);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

@media (min-width: 40rem) {
    .guarantees__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .guarantees__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.guarantee {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--color-border);
}

.guarantee:last-child { border-bottom: 0; }

@media (min-width: 40rem) {
    .guarantee { border-bottom: 0; border-right: 1px solid var(--color-border); }
    .guarantee:nth-child(2n) { border-right: 0; }
}

@media (min-width: 64rem) {
    .guarantee { border-right: 1px solid var(--color-border); }
    .guarantee:nth-child(2n) { border-right: 1px solid var(--color-border); }
    .guarantee:last-child { border-right: 0; }
}

.guarantee__icon {
    width: 30px;
    height: 30px;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.guarantee__icon svg { width: 100%; height: 100%; }

.guarantee__title {
    font-size: var(--step-0);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.guarantee__text {
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--color-text-light);
}


/* --------------------------------
   7b. Panneau média
   Porte une photo quand l'entreprise en fournit une, et sinon un
   aplat graphique assumé — jamais un cadre en pointillés « image
   manquante », qui fait lire la page comme inachevée.
   -------------------------------- */
.media-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    background-color: var(--color-panel);
    aspect-ratio: 4 / 3;
    isolation: isolate;
}

.media-panel--tall { aspect-ratio: 3 / 4; }
.media-panel--wide { aspect-ratio: 16 / 10; }

/* Les photos de prestations sont en 16/9. Dans un cadre 16/10, object-fit:
   cover rogne ~5 % de chaque côté — soit le plâtrier au bord gauche et les
   vases au bord droit. Le cadre épouse donc le format des photos. */
.prestation__visual .media-panel--wide { aspect-ratio: 16 / 9; }
.media-panel--square { aspect-ratio: 1 / 1; border-radius: 4px; }

@media (min-width: 62rem) {
    /* Côté débordant, on ne garde l'arrondi que sur les angles
       intérieurs : l'image doit sembler continuer hors de l'écran. */
    .hero__media .media-panel {
        border-radius: var(--border-radius-xl) 0 0 var(--border-radius-xl);
        aspect-ratio: 5 / 4;
    }
}

.media-panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Repli sans photo ---- */
.media-panel__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-2xl);
    text-align: center;
    background:
        radial-gradient(ellipse 90% 70% at 30% 15%, rgba(30, 91, 198, 0.45) 0%, transparent 60%),
        linear-gradient(155deg, var(--brand-blue) 0%, var(--color-panel) 55%, var(--brand-blue-darker) 100%);
}

/* Grain : casse le côté « dégradé plat » et évoque la matière
   (crépi, enduit) sans recourir à une image bitmap. */
.media-panel__fallback::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

.media-panel__fallback svg {
    width: clamp(2.5rem, 6vw, 3.75rem);
    height: auto;
    color: var(--brand-gold);
    opacity: 0.9;
}

.media-panel__caption {
    position: relative;
    z-index: 1;
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-panel-ink);
    max-width: 24ch;
}

/* Filet doré discret, écho du filet des libellés de section. */
.media-panel__rule {
    position: relative;
    z-index: 1;
    width: 2.5rem;
    height: 2px;
    background: var(--brand-gold);
}

/* --------------------------------
   8. Page Hero (subpages)
   -------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    min-height: 45vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero--small {
    min-height: 30vh;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.page-hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.page-hero__overlay {
    display: none;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero__title {
    color: var(--color-text-inverse);
    margin-bottom: var(--space-md);
}

.page-hero--small .page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Le libellé des sous-pages est centré comme le reste du page-hero. */
.page-hero .section__label {
    justify-content: center;
}

/* --------------------------------
   9. Section À propos
   -------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 62rem) {
    .about__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.about__title {
    font-size: var(--step-2);
    margin-bottom: var(--space-lg);
    max-width: 14ch;
}

.about__text {
    color: var(--color-text-light);
    font-size: var(--step--1);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 42ch;
}

.about__text:last-of-type { margin-bottom: var(--space-xl); }

/* Trois chiffres separes par des filets verticaux, comme la maquette. */
.about__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.about__stat {
    padding-left: var(--space-lg);
    border-left: 1px solid var(--color-border);
}

.about__stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.about__stat-value {
    display: block;
    font-size: var(--step-2);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-secondary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.about__stat-label {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--color-text-light);
}

/* --------------------------------
   10. Cartes prestations
   -------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 40rem) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 68rem) {
    .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: box-shadow var(--transition-base),
                transform var(--transition-base),
                border-color var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}

/* Icone doree en trait fin : seul endroit, avec les filets, ou le
   dore apparait dans le corps de page. */
.service-card__icon {
    width: 34px;
    height: 34px;
    color: var(--brand-gold);
    margin-bottom: var(--space-lg);
}

.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
    font-size: var(--step-0);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.service-card__text {
    font-size: var(--step--1);
    line-height: 1.65;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

/* Pousse le lien en bas : sans ca, des descriptions de longueurs
   differentes desalignent les liens d'une carte a l'autre. */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.service-card__link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.service-card__link:hover svg { transform: translateX(3px); }

/* --------------------------------
   11. Bande Réalisations
   -------------------------------- */
.realisations {
    padding: var(--section-gap) 0;
    background: var(--color-bg-dark);
    color: #FFFFFF;
}

.realisations__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

@media (min-width: 62rem) {
    .realisations__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); }
}

.realisations__title {
    font-size: var(--step-2);
    color: #FFFFFF;
    margin-bottom: var(--space-xl);
    max-width: 16ch;
}

.realisations__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}

@media (min-width: 48rem) {
    .realisations__gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.realisations__gallery .media-panel {
    background-color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------
   11b. Page Réalisations
   -------------------------------- */
.realisations-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 48rem) {
    .realisations-page__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.realisation-item {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
}

.realisation-item .media-panel {
    border-radius: 6px;
    transition: transform var(--transition-slow);
}

.realisation-item:hover .media-panel {
    transform: scale(1.02);
}

.realisations-page__note {
    max-width: 46ch;
    margin: 0 auto var(--space-lg);
    color: var(--color-text-light);
    font-size: var(--step--1);
}

/* --------------------------------
   12. Bande CTA
   -------------------------------- */
.cta-band {
    padding: var(--section-gap) 0;
    background: var(--color-bg-alt);
}

.cta-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 56rem) {
    .cta-band__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(2rem, 6vw, 5rem);
    }
}

.cta-band__title {
    font-size: var(--step-2);
    color: var(--color-secondary);
}

.cta-band__text {
    font-size: var(--step--1);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    max-width: 34ch;
}


/* --------------------------------
   13. Story (Entreprise page)
   -------------------------------- */
/* Colonne unique depuis le retrait de l'illustration. La largeur est bridée
   volontairement : en pleine largeur de container, les lignes dépassent 120
   caractères et deviennent pénibles à lire. */
.story {
    max-width: 62ch;
}

.story__content .section__label { margin-bottom: var(--space-md); }
.story__content .section__title { margin-bottom: var(--space-xl); }

.story__content p {
    color: var(--color-text-light);
    font-size: 1.0625rem;
    margin-bottom: var(--space-md);
}

/* --------------------------------
   13b. Quote Section
   -------------------------------- */
.quote-section {
    background: var(--color-bg);
}

.quote {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl) 0;
    position: relative;
}

.quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
}

.quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-style: italic;
    color: var(--color-secondary);
    line-height: 1.4;
}

/* --------------------------------
   13c. Prestation Intro
   -------------------------------- */
.prestation-intro {
    max-width: 800px;
    margin: 0 auto;
}

.prestation-intro__content .section__label {
    margin-bottom: var(--space-md);
}

.prestation-intro__content .section__title {
    margin-bottom: var(--space-xl);
}

.prestation-intro__content p {
    color: var(--color-text-light);
    font-size: 1.0625rem;
    margin-bottom: var(--space-md);
}

.prestation-intro__content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------
   14. Values Grid
   -------------------------------- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.value-card {
    padding: var(--space-2xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.value-card__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.value-card__title {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.value-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* --------------------------------
   15. Partners
   -------------------------------- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Carte blanche : les logos fournisseurs sont livrés en PNG opaque sur
   blanc, c'est la bordure qui délimite la carte, pas le fond. */
.partner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.partner:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Contraindre la hauteur plutôt que la largeur : les logos n'ont pas la
   même densité graphique, une largeur commune les rendrait inégaux. */
.partner__logo {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

/* --------------------------------
   16. Prestations Page
   -------------------------------- */
.prestation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.prestation--reverse {
    direction: rtl;
}

.prestation--reverse > * {
    direction: ltr;
}

.prestation__icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.prestation__icon svg {
    width: 100%;
    height: 100%;
}

.prestation__title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

.prestation__desc {
    color: var(--color-text-light);
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

.prestation__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.prestation__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-text);
    font-size: 0.9375rem;
}

.prestation__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-success);
    margin-top: 2px;
}

.prestation__check svg {
    width: 100%;
    height: 100%;
}

/* --------------------------------
   17. Contact Page
   -------------------------------- */
/* La bande alt serre les cartes : padding réduit au lieu du --section-gap
   hérité, sinon un grand vide gris s'ouvre sous les cartes.
   Le padding-top doit rester NON NUL — à 0, le margin-top négatif des cartes
   fusionne avec la marge de la section (margin collapsing) et déplace toute
   la bande grise sur le hero au lieu des seules cartes. */
.section--overlap {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    position: relative;
    z-index: 2;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: calc(-1 * var(--space-4xl));
}

/* Contenu aligné en haut : centrer verticalement désaligne les icônes d'une
   carte à l'autre, les cartes n'ayant pas la même quantité de texte. */
.contact-card {
    background: var(--color-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.contact-card__icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin: 0 auto var(--space-md);
}

.contact-card__icon svg {
    width: 100%;
    height: 100%;
}

.contact-card__title {
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.contact-card__info {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.contact-card__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
}

/* Contact Layout */
.contact-layout {
    max-width: 760px;
    margin: 0 auto;
}

.contact-form__intro {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* Form */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.form-group .required {
    color: var(--color-primary);
}

.form-group .optional {
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 0.8125rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 113, 42, 0.28);
    outline: 2px solid transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form__footer {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.contact-form__status {
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form__status.success { color: var(--color-success); }
.contact-form__status.error { color: var(--color-error); }

/* --------------------------------
   18. Footer
   -------------------------------- */
/* --color-bg-dark désigne une surface, --color-secondary une encre.
   Employer le second comme fond a déjà cassé ce footer par le passé :
   garder la distinction même s'il n'y a plus qu'un seul thème. */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-4xl) 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 40rem) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
    .site-footer__grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
        gap: var(--space-3xl);
    }
}

.site-footer__logo {
    height: 52px;
    width: auto;
    margin-bottom: var(--space-lg);
    /* Le logo est bleu foncé : sur la bande foncée du footer il faut
       l'inverser en blanc, quel que soit le thème. */
    filter: brightness(0) invert(1);
}

.site-footer__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
}

.site-footer__socials {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.site-footer__socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.site-footer__socials svg { width: 18px; height: 18px; }

.site-footer__socials a:hover {
    background: var(--brand-gold);
    color: var(--brand-blue-darker);
}

.site-footer__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.site-footer__badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    /* L'ancien #D4622B était la couleur d'avant la refonte. */
    background: rgba(232, 113, 42, 0.15);
    border: 1px solid rgba(232, 113, 42, 0.35);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary-light);
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-footer__nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.site-footer__nav a::before {
    content: '';
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.site-footer__nav a:hover {
    color: var(--color-primary-light);
}

.site-footer__nav a:hover::before {
    width: 12px;
    background: var(--color-primary-light);
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}

.site-footer__contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.site-footer__contact a:hover {
    color: var(--color-primary-light);
}

.site-footer__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-primary-light);
    margin-top: 3px;
}

.site-footer__icon svg {
    width: 100%;
    height: 100%;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__legal a:hover {
    color: var(--brand-gold);
}

/* --------------------------------
   19. Animations
   -------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll[data-animation="fadeRight"] {
    transform: translateX(-30px);
}

.animate-on-scroll[data-animation="fadeLeft"] {
    transform: translateX(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --------------------------------
   20. Responsive
   -------------------------------- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    :root {
        --space-4xl: 4rem;
        --space-5xl: 5rem;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    /* backdrop-filter fait de .site-header le bloc conteneur de ses
       descendants en position: fixed. Le panneau du menu, qui est un enfant
       de l'en-tête, se retrouvait donc dimensionné sur l'en-tête (80 px de
       haut) au lieu du plein écran : fond sombre limité à la barre du haut et
       liens débordant sur la page, les deux premiers hors de l'écran. Le fond
       de l'en-tête est déjà opaque à 97 %, le flou n'apporte rien ici. */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /* Même raison que le footer : surface sombre, pas couleur d'encre. */
        background: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }

    .nav__link {
        font-size: 1.25rem;
        color: rgba(255, 255, 255, 0.85);
        padding: var(--space-sm) var(--space-xl);
    }

    .nav__link:hover,
    .nav__link.active {
        color: var(--color-text-inverse);
        background: rgba(255, 255, 255, 0.1);
    }

    .nav__cta {
        margin-left: 0;
        margin-top: var(--space-md);
    }

    /* Nav open state: always show white close icon */
    .nav-toggle[aria-expanded="true"] .nav-toggle__icon--close {
        color: var(--color-text-inverse);
    }

    /* Le panneau du menu couvre tout l'ecran, barre d'en-tete comprise, et
       passe derriere le logo (z-index 1001). L'encre bleu nuit du logo
       devient alors illisible sur le fond sombre : on le repasse en blanc,
       comme l'icone de fermeture. */
    body.nav-is-open .site-header__logo-img {
        filter: brightness(0) invert(1);
    }

    /* Empeche le defilement de la page sous le panneau ouvert. */
    .nav.is-open {
        overscroll-behavior: contain;
    }

    /* Grid layouts */
    .intro,
    .prestation {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .prestation--reverse {
        direction: ltr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        margin-top: calc(-1 * var(--space-2xl));
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero__actions {
        flex-direction: column;
    }

    .cta .cta__inner {
        padding: var(--space-2xl);
    }

    .cta__actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .contact-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------
   21. Focus Visible
   -------------------------------- */
.btn:focus-visible,
.nav__link:focus-visible,
.site-footer__nav a:focus-visible,
.contact-card:focus-visible,
.partner:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.nav-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* --------------------------------
   22. Reduced Motion
   -------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }

}

/* --------------------------------
   23. Print Styles
   -------------------------------- */
@media print {
    .site-header,
    .nav-toggle,
    .btn,
    .cta,
    .contact-form,
    .contact-form-wrapper {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 12pt;
        line-height: 1.5;
    }

    .hero,
    .page-hero {
        min-height: auto;
        padding: 1cm 0;
        background: none !important;
    }

    .page-hero__bg,
    .page-hero__overlay,
    .media-panel__fallback {
        display: none !important;
    }

    .hero__title,
    .page-hero__title,
    .hero__subtitle,
    .page-hero__subtitle {
        color: #000 !important;
    }

    .section {
        padding: 1cm 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .site-footer {
        background: none;
        color: #000;
        border-top: 1px solid #ccc;
        padding: 0.5cm 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .site-footer a[href]::after,
    .nav a[href]::after {
        content: none;
    }
}
