/* XWOOR CMS — Template XWOOR
 * Feuille du site public. Source de vérité visuelle :
 * public/previews/xwoor-home.php + public/assets/css/xwoor-home-preview.css
 * (direction : docs/TEMPLATES/XWOOR-VISUAL-DIRECTION.md).
 * Mobile first — adaptations écran large à partir de min-width: 780px.
 */

:root {
    --ink: #050806;
    --green: #0b3d2d;
    --green-2: #135940;
    --mint: #a5e7ae;
    --paper: #f1f4ee;
    --white: #fbfcf8;
    --muted: #9ba79e;
    --line: rgba(241, 244, 238, .18);
    --line-soft: rgba(241, 244, 238, .12);
    --glass-bg: rgba(241, 244, 238, .06);
    --glass-bg-strong: rgba(241, 244, 238, .1);
    --glass-border: rgba(241, 244, 238, .2);
    --glass-highlight: rgba(255, 255, 255, .12);
    --glass-shadow: 0 14px 32px rgba(0, 0, 0, .18);
    --blur: 14px;
    --radius-lg: 16px;
    --radius-xl: 23px;
    --hero-interval: 6500ms;
    --header-h: 67px;
    --shell: min(100% - 32px, 1200px);
    --font: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-h);
    background:
        radial-gradient(1100px 540px at 88% -6%, rgba(19, 89, 64, .18), transparent 62%),
        radial-gradient(920px 500px at -12% 42%, rgba(11, 61, 45, .16), transparent 58%),
        radial-gradient(700px 420px at 108% 86%, rgba(19, 89, 64, .12), transparent 60%),
        var(--ink);
    color: var(--paper);
    font-family: var(--font);
    line-height: 1.45;
    overflow-x: hidden;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

h1, h2, h3, p { margin-top: 0; }

:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

/* --- En-tête (transparent sur le noir ; fond clair au scroll) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 24px;
    background: transparent;
    transition: background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.is-stuck {
    background: rgba(251, 252, 248, 0.97);
    padding-block: 12px;
    box-shadow: 0 1px 0 rgba(5, 8, 6, 0.06), 0 8px 30px rgba(5, 8, 6, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Inversion des couleurs au scroll : logo sombre, bouton et hamburger à l'encre */
.site-header.is-stuck .header-cta { border-color: var(--ink); color: var(--ink); }
.site-header.is-stuck .header-cta span { color: var(--green-2); }
.site-header.is-stuck .hamburger-line { background: var(--ink); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .17em;
    white-space: nowrap;
    color: inherit;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1001;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(165, 231, 174, .7);
    color: var(--mint);
    font-size: .98rem;
    font-weight: 500;
    transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}

/* --- Logo officiel XWOOR (sous forme de fond — permet la bascule clair/sombre) ---
 * Header : logo blanc sur le fond sombre, fondu vers le logo noir quand
 * l'en-tête devient clair au scroll (.is-stuck). Footer : logo noir sur
 * pastille claire. */
.brand-logo {
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: opacity .35s ease;
}

.brand-logo--light {
    width: 150px;
    height: 34px;
    background-image: url('/assets/images/LOGOTYPE-XWOOR-Hor_blanc.png');
}

.brand-logo--dark {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 34px;
    background-image: url('/assets/images/LOGOTYPE-XWOOR-Hor.png');
    opacity: 0;
}

.site-header.is-stuck .brand-logo--light { opacity: 0; }
.site-header.is-stuck .brand-logo--dark { opacity: 1; }

.brand-logo--footer {
    width: 150px;
    height: 34px;
    background-image: url('/assets/images/LOGOTYPE-XWOOR-Hor.png');
}

/* --- Hamburger (mobile) --- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.25s ease;
    transform-origin: center;
}

.hamburger[aria-expanded="true"] .hamburger-line {
    background: var(--paper);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile nav --- */
.main-nav { display: none; }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 8, 6, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: min(80vw, 340px);
    background: var(--ink);
    padding: 90px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(165, 231, 174, 0.1);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--paper);
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-nav__close:hover {
    border-color: var(--mint);
    color: var(--mint);
    transform: rotate(90deg);
}

.mobile-nav a {
    display: block;
    padding: 14px 16px;
    color: rgba(241, 244, 238, 0.75);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: color 0.2s ease, background 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.is-open a { opacity: 1; transform: translateX(0); }
.mobile-nav a:nth-child(2) { transition-delay: 0.12s; }
.mobile-nav a:nth-child(3) { transition-delay: 0.16s; }
.mobile-nav a:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav a:nth-child(5) { transition-delay: 0.24s; }
.mobile-nav a:nth-child(6) { transition-delay: 0.28s; }
.mobile-nav a:nth-child(7) { transition-delay: 0.32s; }

.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--mint);
    background: rgba(165, 231, 174, 0.06);
}

.mobile-nav__cta {
    margin-top: auto;
    padding: 14px 20px;
    border: 1px solid var(--mint);
    border-radius: 99px;
    color: var(--mint) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.mobile-nav__cta:hover {
    background: var(--mint);
    color: var(--ink) !important;
}

.mobile-nav__divider {
    height: 1px;
    background: var(--line);
    margin: 8px 0;
}

.header-cta {
    display: none;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #dfe7df;
    font-size: .68rem;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.4s ease, color 0.4s ease;
}

.header-cta span { color: var(--mint); font-size: 1rem; }

/* --- Pied de page --- */
.site-footer {
    position: relative;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-block: 40px 22px;
    background: linear-gradient(180deg, rgba(241, 244, 238, .025), transparent 46%);
}

/* Marque du pied de page : logo noir sur une pastille claire (fond sombre) */
.site-footer .brand {
    display: inline-flex;
    align-items: center;
    padding: 10px 13px;
    border-radius: 12px;
    background: rgba(251, 252, 248, .96);
    box-shadow: inset 0 1px rgba(255, 255, 255, .4), 0 12px 26px rgba(0, 0, 0, .16);
}

.footer-grid { display: grid; gap: 30px; }

.footer-grid > div:first-child p {
    max-width: 200px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: #c0c9c0;
    font-size: .78rem;
    text-decoration: none;
}

.footer-contact { display: grid; gap: 8px; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #727c74;
    font-size: .64rem;
}

/* --- Hero (carrousel éditorial sans image — mission design v2) ---
 * MOBILE : hauteur intelligente — 100% du viewport sur les petits écrans
 * (le hero est vu entier), plafonnée à 700px sur les smartphones longs pour
 * éviter le grand vide vertical. Le slide remplit la hauteur via space-between
 * (aucun trou à l'intérieur). Repli vh pour les navigateurs sans svh.
 * DESKTOP (>= 780px) : hauteur du contenu uniquement (aucune contrainte
 * de viewport), voir la media query plus bas. */
.hero {
    position: relative;
    display: grid;
    grid-template-areas: "stage" "glass" "controls";
    grid-template-rows: 1fr auto auto;
    gap: 16px;
    min-height: min(calc(100vh - var(--header-h)), 700px);
    min-height: min(calc(100svh - var(--header-h)), 700px);
    padding: 20px 22px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background:
        radial-gradient(circle at 91% 75%, rgba(19, 89, 64, .75), transparent 42%),
        linear-gradient(135deg, #101c15, #050806 74%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.hero::before {
    position: absolute;
    right: -160px;
    bottom: -180px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(165, 231, 174, .36);
    border-radius: 50%;
    box-shadow:
        0 0 0 38px rgba(165, 231, 174, .035),
        0 0 0 76px rgba(165, 231, 174, .025);
    content: "";
    animation: heroPulse 9s ease-in-out infinite;
}

/* Grille technique discrète (profondeur, coin supérieur droit) */
.hero::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(241, 244, 238, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 244, 238, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 86% 16%, #000 0%, transparent 62%);
    mask-image: radial-gradient(circle at 86% 16%, #000 0%, transparent 62%);
    content: "";
    pointer-events: none;
}

@keyframes heroPulse {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}

.hero-stage,
.hero-glass,
.hero-controls {
    position: relative;
    z-index: 1;
}

.hero-stage {
    display: grid;
    grid-area: stage;
    /* Mobile : chaque slide remplit toute la hauteur de la scène (1fr),
       ses éléments sont répartis sur toute la hauteur : aucun trou. */
    align-content: stretch;
}

/* Slides empilés dans la même cellule : hauteur du bloc = slide le plus haut,
   aucune jumping layout entre les transitions. */
.hero-slide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    /* Mobile : le slide couvre toute la hauteur de la scène et ses éléments
       sont répartis du haut au bas (eyebrow, titre, lead, actions). */
    height: 100%;
    justify-content: space-between;
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
                transform .6s cubic-bezier(.22, .61, .36, 1),
                visibility 0s linear .6s;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1),
                visibility 0s;
    pointer-events: auto;
}

/* Cascade d'entrée des éléments du slide (JS uniquement — classe .hero--js) */
.hero--js .hero-slide > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s cubic-bezier(.22, .61, .36, 1),
                transform .55s cubic-bezier(.22, .61, .36, 1);
}

.hero--js .hero-slide.is-active > * {
    opacity: 1;
    transform: translateY(0);
}

.hero--js .hero-slide.is-active > :nth-child(1) { transition-delay: .1s; }
.hero--js .hero-slide.is-active > :nth-child(2) { transition-delay: .18s; }
.hero--js .hero-slide.is-active > :nth-child(3) { transition-delay: .26s; }
.hero--js .hero-slide.is-active > :nth-child(4) { transition-delay: .34s; }

/* Espacements homogènes des éléments du slide (l'écart vient de la colonne flex) */
.hero-slide .hero-title,
.hero-slide .hero-lead { margin: 0; }

h1, .hero-title {
    max-width: 640px;
    margin-block: 12px 14px;
    font-size: clamp(1.35rem, 8.5vw, 4.9rem);
    font-size: clamp(1.35rem, min(8.5vw, 11vh), 4.9rem);
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1.05;
}

h1 em, .hero-title em {
    color: var(--mint);
    font-style: normal;
}

.hero h1, .hero .hero-title { color: var(--white); }

.hero-lead {
    max-width: 410px;
    color: #d0d9d0;
    font-size: clamp(.78rem, 3.4vw, .95rem);
    font-size: clamp(.78rem, min(3.4vw, 2.4vh), .95rem);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* --- Boutons et liens d'action --- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 99px;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}

.button span { font-size: 1rem; }

.button-light {
    background: var(--white);
    color: var(--ink);
}

.button-light:hover { background: var(--mint); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--paper);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link span { color: var(--mint); font-size: 1rem; }

.text-link:hover { color: var(--mint); }

/* --- Glass (surface de verre — information secondaire uniquement) --- */
.hero-glass {
    align-self: end;
    padding: 14px 16px;
    border: 1px solid rgba(241, 244, 238, .22);
    border-radius: 17px;
    background: rgba(241, 244, 238, .075);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .13),
        0 14px 32px rgba(0, 0, 0, .14);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.glass-index {
    color: var(--mint);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.hero-glass p {
    margin: 10px 0 12px;
    font-size: clamp(.8rem, 3.4vw, 1rem);
    font-size: clamp(.8rem, min(3.4vw, 2.3vh), 1rem);
    font-weight: 500;
    line-height: 1.3;
}

.glass-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: #b5c1b6;
    font-size: .66rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(165, 231, 174, .12);
}

/* Synchronisation du panneau de verre avec le slide actif (mission design v2) */
.hero-glass .glass-index,
.hero-glass .glass-text {
    transition: opacity .24s ease, transform .24s ease;
}

.hero-glass.is-swapping .glass-index,
.hero-glass.is-swapping .glass-text {
    opacity: 0;
    transform: translateY(-7px);
}

/* --- Contrôles du carrousel (mobile first) --- */
.hero-controls {
    display: none;
    grid-area: controls;
    align-items: center;
    gap: 10px 16px;
}

.hero--js .hero-controls {
    display: flex;
    flex-wrap: wrap;
}

.hero-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    color: var(--mint);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.hero-counter i {
    color: var(--muted);
    font-style: normal;
}

.hero-counter span:last-child { color: var(--muted); }

.hero-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-dot {
    position: relative;
    width: 30px;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.hero-dot::after {
    position: absolute;
    top: 50%;
    left: 5px;
    right: 5px;
    height: 3px;
    border-radius: 99px;
    background: rgba(241, 244, 238, .22);
    transform: translateY(-50%);
    transition: background .3s ease, box-shadow .3s ease;
    content: "";
}

.hero-dot:hover::after { background: rgba(241, 244, 238, .5); }

.hero-dot.is-active::after {
    background: var(--mint);
    box-shadow: 0 0 12px rgba(165, 231, 174, .45);
}

/* Barre de progression de l'autoplay (durée liée à --hero-interval) */
.hero-progress {
    flex: 1 1 100%;
    height: 2px;
    border-radius: 99px;
    background: rgba(241, 244, 238, .12);
    overflow: hidden;
}

.hero-progress b {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-2), var(--mint));
    transform: scaleX(0);
    transform-origin: left;
}

.hero-progress.is-running b {
    animation: heroProgress var(--hero-interval) linear forwards;
}

.hero.is-paused .hero-progress.is-running b { animation-play-state: paused; }

@keyframes heroProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Flèches (affichées à partir de l'écran large) */
.hero-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--paper);
    font-size: 1rem;
    cursor: pointer;
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: border-color .3s ease, color .3s ease, transform .3s ease, background .3s ease;
}

.hero-arrow:hover {
    border-color: var(--mint);
    background: var(--glass-bg-strong);
    color: var(--mint);
    transform: translateY(-2px);
}

/* --- Eyebrow (légende capitales) --- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--mint);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 17px;
    height: 1px;
    background: currentColor;
}

/* --- Bandeau d'intro (carte en verre, écho visuel au hero) --- */
.intro-strip {
    position: relative;
    display: grid;
    gap: 26px;
    /* Espace entre le hero et le bandeau (le hero ne colle plus) */
    margin-top: clamp(28px, 6vw, 48px);
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 92% 12%, rgba(165, 231, 174, .1), transparent 52%),
        linear-gradient(135deg, rgba(19, 89, 64, .26), rgba(241, 244, 238, .045));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 18px 44px rgba(0, 0, 0, .18);
    overflow: hidden;
}

/* Cercle technique discret (écho au décor du hero) */
.intro-strip::before {
    content: "";
    position: absolute;
    right: -92px;
    top: -108px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(165, 231, 174, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(165, 231, 174, .03);
    pointer-events: none;
}

.intro-strip__text {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.intro-strip__mark {
    margin-top: 8px;
    color: var(--mint);
    font-size: clamp(2.4rem, 8vw, 4rem);
    font-weight: 600;
    line-height: .62;
    user-select: none;
}

.intro-strip p {
    max-width: 820px;
    margin: 0;
    color: #eef3ee;
    font-size: clamp(1.15rem, 4.6vw, 2rem);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.4;
}

.intro-strip__tag {
    position: relative;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid rgba(165, 231, 174, .5);
    border-radius: 99px;
    background: rgba(11, 61, 45, .3);
    color: var(--mint);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.intro-strip__tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(165, 231, 174, .16);
}

/* --- Sections génériques --- */
.section { padding-block: 54px; }

.section-heading h2,
.contact-panel h2,
.page-hero h1 {
    margin: 16px 0 0;
    font-size: clamp(2.8rem, 11vw, 5.3rem);
    font-weight: 600;
    letter-spacing: -.075em;
    line-height: .86;
}

.page-hero h1 {
    max-width: 720px;
    margin-block: 16px 22px;
}

.page-hero {
    position: relative;
    padding: 26px 22px 40px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

/* Ornements techniques (cohérence avec le hero — mission design v2) */
.page-hero::before {
    position: absolute;
    top: -150px;
    right: -110px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(165, 231, 174, .26);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(165, 231, 174, .03),
        0 0 0 68px rgba(165, 231, 174, .02);
    content: "";
}

.page-hero::after {
    position: absolute;
    bottom: -190px;
    left: -150px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(19, 89, 64, .4), transparent 68%);
    content: "";
    pointer-events: none;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero .lead {
    max-width: 620px;
    margin: 0;
    color: #aeb8ae;
    font-size: 1rem;
}

/* --- Engagements (listes numérotées à bordures) --- */
.commitments { display: grid; gap: 43px; }

.commitment-list { border-top: 1px solid var(--line); }

.commitment-list article {
    padding: 22px 0 26px;
    border-bottom: 1px solid var(--line);
}

.commitment-list span {
    color: var(--mint);
    font-size: .68rem;
    font-weight: 700;
}

.commitment-list h3 {
    margin: 18px 0 8px;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.04em;
}

.commitment-list p {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.55;
}

/* --- Services (accueil, zone papier) --- */
.services-wrap {
    background: var(--paper);
    color: var(--ink);
}

.services-heading { margin-bottom: 34px; }

.services-heading .eyebrow { color: var(--green-2); }

.services-heading h2 { max-width: 580px; }

.services-heading > p:last-child {
    max-width: 335px;
    margin: 22px 0 0;
    color: #526258;
    font-size: .94rem;
}

.services-grid {
    display: grid;
    gap: 1px;
    border: 1px solid #cbd4cc;
    border-radius: 21px;
    background: #cbd4cc;
    overflow: hidden;
}

.service-card {
    position: relative;
    display: block;
    min-height: 175px;
    padding: 20px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
    z-index: 1;
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(5, 8, 6, .14);
}

.service-card span {
    color: var(--green-2);
    font-size: .66rem;
    font-weight: 800;
}

.service-card h3 {
    position: absolute;
    left: 20px;
    bottom: 18px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 570;
    letter-spacing: -.055em;
    line-height: .94;
}

.service-card i {
    position: absolute;
    right: 18px;
    bottom: 17px;
    color: var(--green-2);
    font-size: 1.3rem;
    font-style: normal;
}

.service-card-featured {
    background: var(--green);
    color: var(--white);
}

.service-card-featured:hover { background: var(--green-2); }

.service-card-featured span,
.service-card-featured i { color: var(--mint); }

/* --- Travail / méthode (panneau orbite) --- */
.work { display: grid; gap: 42px; }

.work-panel {
    position: relative;
    min-height: 440px;
    padding: 26px 22px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: linear-gradient(140deg, rgba(19, 89, 64, .45), rgba(5, 8, 6, .9));
    box-shadow:
        inset 0 1px var(--glass-highlight),
        0 24px 54px rgba(0, 0, 0, .3);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}

.work-panel:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px var(--glass-highlight),
        0 30px 64px rgba(0, 0, 0, .38);
}

.work-orbit {
    position: absolute;
    top: -71px;
    right: -67px;
    width: 285px;
    height: 285px;
    border: 1px solid rgba(165, 231, 174, .38);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--mint);
    font-size: 4rem;
    font-weight: 300;
}

.work-orbit::before,
.work-orbit::after,
.work-orbit span {
    position: absolute;
    border: 1px solid rgba(165, 231, 174, .22);
    border-radius: 50%;
    content: "";
}

.work-orbit::before { inset: 32px; }

.work-orbit::after { inset: 65px; }

.work-orbit span:first-of-type {
    width: 8px;
    height: 8px;
    top: 32px;
    right: 37px;
    background: var(--mint);
}

.work-orbit span:last-of-type {
    width: 6px;
    height: 6px;
    left: 14px;
    bottom: 81px;
    background: var(--white);
}

.work-copy {
    position: absolute;
    z-index: 1;
    right: 22px;
    bottom: 25px;
    left: 22px;
}

.work-kicker {
    color: var(--mint) !important;
    font-size: .7rem !important;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.work-copy p {
    max-width: 490px;
    margin: 0 0 23px;
    font-size: 1.11rem;
    line-height: 1.4;
}

/* Liste des réalisations dans le panneau (données administrées) */
.work-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.work-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.work-year {
    color: var(--mint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.work-title { color: var(--white); font-size: .92rem; }

.work-cat {
    margin-left: auto;
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.work-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--paper);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.work-cta span { color: var(--mint); font-size: 1rem; }

.work-cta:hover { color: var(--mint); }

/* --- Équipe --- */
.team { display: grid; gap: 40px; }

.team-grid {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--line);
    overflow: hidden;
}

.member {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 15px;
    align-items: start;
    padding: 18px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: background .3s ease;
}

.member:hover { background: var(--glass-bg-strong); }

.member-initials,
.member-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(165, 231, 174, .4);
    border-radius: 50%;
    color: var(--mint);
    font-size: .74rem;
    font-weight: 700;
}

.member-lead {
    grid-template-columns: 64px 1fr;
}

.member-lead .member-initials,
.member-lead .member-mark {
    width: 64px;
    height: 64px;
}

.member h3 {
    margin: 3px 0 6px;
    font-size: 1rem;
    letter-spacing: -.03em;
}

.member h2 {
    margin: 3px 0 6px;
    font-size: 1rem;
    letter-spacing: -.03em;
}

.member-role {
    color: var(--mint);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.member p {
    margin: 0;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.45;
}

/* --- Citation (bandeau vert, texture verre — mission design v2) --- */
.quote-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(560px 300px at 88% 0%, rgba(165, 231, 174, .12), transparent 60%),
        radial-gradient(480px 320px at 0% 100%, rgba(5, 8, 6, .55), transparent 65%),
        var(--green);
}

.quote-section::before {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(165, 231, 174, .3);
    border-radius: 50%;
    box-shadow:
        0 0 0 36px rgba(165, 231, 174, .05),
        0 0 0 72px rgba(165, 231, 174, .03);
    content: "";
}

.quote-inner {
    position: relative;
    z-index: 1;
    padding-block: 58px;
}

.quote-mark {
    display: block;
    margin-bottom: -7px;
    color: var(--mint);
    font-size: 5rem;
    line-height: 1;
}

.quote-inner blockquote {
    max-width: 900px;
    margin: 0;
    font-size: clamp(1.75rem, 7.3vw, 4.4rem);
    font-weight: 520;
    letter-spacing: -.065em;
    line-height: 1.01;
}

.quote-inner p {
    margin: 28px 0 0;
    color: #b8d5bd;
    font-size: .76rem;
}

/* --- Appel à l'action contact (panneau verre — mission design v2) --- */
.contact-panel {
    position: relative;
    display: grid;
    gap: 35px;
    padding: 30px 22px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 82%, rgba(19, 89, 64, .55), transparent 46%),
        linear-gradient(135deg, #101c15, #050806 76%);
    box-shadow:
        inset 0 1px var(--glass-highlight),
        0 26px 60px rgba(0, 0, 0, .32);
}

.contact-panel::before {
    position: absolute;
    top: -110px;
    right: -90px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(165, 231, 174, .3);
    border-radius: 50%;
    box-shadow:
        0 0 0 32px rgba(165, 231, 174, .04),
        0 0 0 64px rgba(165, 231, 174, .025);
    content: "";
}

.contact-panel > * {
    position: relative;
    z-index: 1;
}

.contact-side { display: grid; gap: 23px; }

.contact-side p {
    max-width: 350px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-btn,
.button-outline {
    justify-self: start;
    border: 1px solid var(--paper);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 99px;
    color: var(--paper);
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-btn span { color: var(--mint); font-size: 1rem; }

.contact-btn:hover { border-color: var(--mint); color: var(--mint); }

/* --- Page Services (liste numérotée) --- */
.service-list { border-top: 1px solid var(--line); }

.service-row {
    display: grid;
    gap: 10px;
    padding: 26px 0 30px;
    border-bottom: 1px solid var(--line);
}

.service-row .service-number {
    color: var(--mint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.service-row h2 {
    margin: 6px 0 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.04em;
}

.service-row p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}

.prose {
    max-width: 620px;
    color: #c4cec4;
    font-size: .95rem;
    line-height: 1.65;
}

/* --- Page Réalisations --- */
.filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
}

.filter-nav a {
    padding: 9px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    background: var(--glass-bg);
    color: #c0c9c0;
    font-size: .72rem;
    text-decoration: none;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: color .3s ease, border-color .3s ease, background .3s ease, transform .3s ease;
}

.filter-nav a:hover {
    color: var(--white);
    border-color: rgba(165, 231, 174, .45);
    transform: translateY(-1px);
}

.filter-nav a.is-active {
    border-color: var(--mint);
    background: rgba(165, 231, 174, .1);
    color: var(--mint);
}

.project-grid {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--line);
    overflow: hidden;
}

.project-card {
    padding: 22px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: background .3s ease;
}

.project-card:hover { background: var(--glass-bg-strong); }

.project-card h2 { transition: color .3s ease; }

.project-card:hover h2 { color: var(--mint); }

.project-media {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--mint);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-card h2 {
    margin: 10px 0 8px;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.04em;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}

/* --- Page Témoignages --- */
.testimonial-list {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--line);
    overflow: hidden;
}

.testimonial-card {
    margin: 0;
    padding: 22px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: background .3s ease;
}

.testimonial-card:hover { background: var(--glass-bg-strong); }

.testimonial-card p {
    margin: 0 0 18px;
    color: var(--paper);
    font-size: 1.02rem;
    line-height: 1.5;
}

.testimonial-card footer {
    display: grid;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.testimonial-card cite {
    color: var(--white);
    font-size: .82rem;
    font-style: normal;
    font-weight: 700;
}

.testimonial-card span {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* --- Page Contact --- */
.contact-grid {
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--line);
    overflow: hidden;
}

.contact-card {
    padding: 22px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: background .3s ease;
}

.contact-card:hover { background: var(--glass-bg-strong); }

.contact-card-label {
    display: block;
    color: var(--mint);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.contact-card a,
.contact-card p,
.contact-card span {
    margin: 14px 0 0;
    color: var(--paper);
    font-size: .95rem;
    text-decoration: none;
}

.contact-card a:hover { color: var(--mint); }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.social-links a {
    color: var(--paper);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.social-links a span { color: var(--mint); font-size: 1rem; }

.social-links a:hover { color: var(--mint); }

/* --- Formulaire de contact --- */
.contact-form-section {
    border-top: 1px solid var(--line);
    padding-top: 80px;
    margin-top: 60px;
}

.contact-form-wrap {
    max-width: 720px;
}

.contact-form {
    margin-top: 32px;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-field {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    color: #c0c9c0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--paper);
    font-family: var(--font);
    font-size: 0.95rem;
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    box-shadow: inset 0 1px var(--glass-highlight);
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(165, 231, 174, .7);
    background: var(--glass-bg-strong);
    box-shadow: 0 0 0 3px rgba(165, 231, 174, .12), inset 0 1px var(--glass-highlight);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(189, 198, 189, 0.5);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .button-primary {
    margin-top: 8px;
    padding: 14px 28px;
    background: var(--mint);
    color: var(--ink);
    border: none;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(165, 231, 174, .14);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.contact-form .button-primary:hover {
    background: #c4f2cb;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(165, 231, 174, .22);
}

.alert-contact {
    padding: 15px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.alert-contact.alert-success {
    border-color: rgba(165, 231, 174, .35);
    background: linear-gradient(140deg, rgba(11, 61, 45, .5), rgba(5, 8, 6, .7));
    color: var(--mint);
}

.alert-contact.alert-error {
    border-color: rgba(232, 136, 136, .35);
    background: linear-gradient(140deg, rgba(120, 30, 30, .32), rgba(5, 8, 6, .72));
    color: #f3c2c2;
}

.alert-contact p {
    margin: 0;
}

@media (max-width: 779px) {
    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* --- Notification contact (toast verre noir + vert — mission design v2) ---
 * Position mobile : au-dessus du bouton retour en haut ; écran large : bas gauche
 * pour ne jamais recouvrir le bouton retour en haut (bas droite). */
.toast-glass {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 1150;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px 19px;
    border: 1px solid rgba(165, 231, 174, .38);
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(11, 61, 45, .55), rgba(5, 8, 6, .84));
    color: var(--paper);
    box-shadow:
        inset 0 1px var(--glass-highlight),
        0 18px 44px rgba(0, 0, 0, .42);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(26px) scale(.97);
    transition: opacity .45s cubic-bezier(.22, .61, .36, 1),
                transform .45s cubic-bezier(.22, .61, .36, 1);
}

.toast-glass.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-glass.is-leaving {
    opacity: 0;
    transform: translateY(16px) scale(.97);
}

.toast-glass__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(165, 231, 174, .5);
    border-radius: 50%;
    background: rgba(165, 231, 174, .16);
    color: var(--mint);
}

.toast-glass__body { flex: 1 1 auto; }

.toast-glass__body strong {
    display: block;
    margin-bottom: 3px;
    color: var(--white);
    font-size: .92rem;
    letter-spacing: -.01em;
}

.toast-glass__body p {
    margin: 0;
    color: #c9d6ca;
    font-size: .8rem;
    line-height: 1.5;
}

.toast-glass__close {
    flex: none;
    width: 34px;
    height: 34px;
    margin: -4px -6px 0 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9fb3a2;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color .25s ease, background .25s ease;
}

.toast-glass__close:hover {
    color: var(--white);
    background: rgba(165, 231, 174, .12);
}

.toast-glass__progress {
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    border-radius: 99px 99px 0 0;
    background: rgba(165, 231, 174, .14);
    overflow: hidden;
}

.toast-glass__progress b {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-2), var(--mint));
    transform: scaleX(0);
    transform-origin: left;
    animation: toastProgress 7s linear forwards;
}

.toast-glass.is-paused .toast-glass__progress b { animation-play-state: paused; }
.toast-glass.is-leaving .toast-glass__progress b { animation-play-state: paused; }

@keyframes toastProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* --- Bouton retour en haut (toutes pages — mission design v2) --- */
.to-top {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 940;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(165, 231, 174, .38);
    border-radius: 50%;
    background: linear-gradient(140deg, rgba(19, 89, 64, .55), rgba(5, 8, 6, .8));
    color: var(--mint);
    cursor: pointer;
    box-shadow:
        inset 0 1px var(--glass-highlight),
        0 12px 30px rgba(0, 0, 0, .38);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.9);
    transition: opacity .4s cubic-bezier(.22, .61, .36, 1),
                transform .4s cubic-bezier(.22, .61, .36, 1),
                visibility 0s linear .4s,
                border-color .3s ease,
                color .3s ease;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity .4s cubic-bezier(.22, .61, .36, 1),
                transform .4s cubic-bezier(.22, .61, .36, 1),
                visibility 0s,
                border-color .3s ease,
                color .3s ease;
}

.to-top:hover {
    border-color: var(--mint);
    color: var(--white);
    transform: translateY(-3px);
}

.to-top:active { transform: translateY(-1px) scale(.97); }

/* --- Apparition au défilement (JS uniquement — classes posées par le layout) --- */
.js-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1);
}

.js-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Respect des préférences utilisateur --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-header,
    .hamburger-line,
    .mobile-nav,
    .mobile-nav-overlay,
    .mobile-nav a,
    .mobile-nav__close {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .mobile-nav a { opacity: 1; transform: none; }
    .hero::before { animation: none; }
    .hero-progress { display: none; }
    .hero-slide,
    .hero--js .hero-slide > *,
    .hero-glass .glass-index,
    .hero-glass .glass-text,
    .toast-glass,
    .to-top,
    .js-reveal {
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .js-reveal { opacity: 1; transform: none; }
}

/* --- Écran large (à partir de 780px — maquette) --- */
@media (min-width: 780px) {
    .hamburger,
    .mobile-nav-overlay,
    .mobile-nav { display: none !important; }

    .main-nav {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .main-nav a {
        color: #aeb8ae;
        font-size: .85rem;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .main-nav a:hover,
    .main-nav .is-active { color: var(--white); }

    .site-header.is-stuck .main-nav a { color: var(--muted); }
    .site-header.is-stuck .main-nav a:hover,
    .site-header.is-stuck .main-nav .is-active { color: var(--ink); }

    .header-cta { display: inline-flex; font-size: .77rem; }

    .hero {
        grid-template-columns: minmax(0, 1.32fr) minmax(290px, .68fr);
        grid-template-areas:
            "stage glass"
            "controls glass";
        grid-template-rows: auto auto;
        align-items: start;
        /* Annule la hauteur plein écran réservée au mobile uniquement */
        min-height: 0;
        padding: 44px 44px 26px;
        gap: 24px;
    }

    .hero-stage { align-content: start; }

    /* Desktop : on restaure l'empilement vertical simple des éléments du slide
       (la répartition pleine hauteur est réservée au mobile). */
    .hero-slide { height: auto; justify-content: flex-start; }

    .hero-controls { flex-wrap: nowrap; }

    .hero-progress { flex: 1 1 auto; }

    .hero-arrow { display: inline-grid; }

    .hero::before {
        right: -74px;
        bottom: -155px;
        width: 490px;
        height: 490px;
    }

    .hero-glass {
        align-self: start;
        justify-self: center;
        width: 100%;
        max-width: 360px;
        padding: 22px 26px;
    }

    .intro-strip {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 40px;
    }

    .intro-strip__tag { justify-self: end; }

    .section { padding-block: 84px; }

    .commitments {
        grid-template-columns: .75fr 1.25fr;
        gap: 100px;
    }

    .commitment-list article {
        display: grid;
        grid-template-columns: 68px 1fr 1.05fr;
        gap: 22px;
        padding: 28px 0;
    }

    .commitment-list h3 { margin: 0; }

    .services-heading {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .services-heading .eyebrow,
    .services-heading h2 { grid-column: 1; }

    .services-heading > p:last-child {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: end;
        margin: 0;
    }

    .services-grid { grid-template-columns: repeat(3, 1fr); }

    .service-card {
        min-height: 235px;
        padding: 28px;
    }

    .service-card h3 {
        left: 28px;
        bottom: 25px;
        font-size: 1.7rem;
    }

    .service-card i {
        right: 25px;
        bottom: 23px;
    }

    .work {
        grid-template-columns: .72fr 1.28fr;
        gap: 100px;
    }

    .work-panel {
        min-height: 510px;
        padding: 44px;
    }

    .work-orbit {
        top: -112px;
        right: -87px;
        width: 390px;
        height: 390px;
        font-size: 5rem;
    }

    .work-copy {
        right: 44px;
        bottom: 42px;
        left: 44px;
    }

    .team {
        grid-template-columns: .72fr 1.28fr;
        gap: 100px;
    }

    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .member { padding: 25px; }

    .quote-inner { padding-block: 90px; }

    .contact-panel {
        grid-template-columns: 1fr .7fr;
        align-items: end;
        padding: 52px 48px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr .8fr .8fr;
        gap: 45px;
    }

    .footer-bottom { grid-column: 1 / -1; }

    .footer-links { grid-template-columns: 1fr; }

    .footer-contact { align-content: start; }

    /* Pages intérieures (grille plus riche) */
    .page-hero { padding: 44px 0 50px; }

    .service-row {
        grid-template-columns: 68px 1fr;
        gap: 22px;
        padding: 30px 0;
    }

    .service-row .service-number { padding-top: 6px; }

    .project-grid { grid-template-columns: repeat(2, 1fr); }

    .project-card { padding: 25px; }

    .contact-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-card { padding: 25px; }

    .testimonial-list { grid-template-columns: repeat(2, 1fr); }

    /* Toast (écran large) : bas gauche pour ne pas recouvrir le retour en haut */
    .toast-glass {
        right: auto;
        left: 32px;
        bottom: 32px;
        width: min(420px, 46vw);
    }

    .to-top {
        right: 28px;
        bottom: 28px;
    }
}

/* --- Smartphones en paysage (écrans bas, largeur < 780px) ---
 * Le hero bascule en deux colonnes (texte + verre côte à côte, contrôles
 * dessous) pour rester visible en entier malgré la hauteur réduite.
 * Les typographies du hero sont déjà à tiroirs vw/vh : elles se resserrent
 * automatiquement. */
@media (max-height: 520px) and (max-width: 779px) {
    .hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(230px, .75fr);
        grid-template-areas:
            "stage glass"
            "controls glass";
        grid-template-rows: 1fr auto;
        align-items: end;
        gap: 10px;
        padding: 10px 16px 8px;
    }

    .hero-stage { align-content: end; }

    /* Paysage : le slide reprend sa hauteur naturelle (pas de répartition
       pleine hauteur — la scène est deux colonnes très basse). */
    .hero-slide { height: auto; justify-content: flex-start; }

    .hero-title { margin-block: 8px 10px; }

    .hero-lead { margin-bottom: 10px; }

    .hero-glass {
        margin-left: auto;
        max-width: 300px;
        padding: 12px 14px;
    }
}
