/* ==========================================================================
   LEO Creation — feuille de style
   Direction artistique « Atelier de précision » : papier clair, encre bleu nuit,
   bleu du logo comme signal, une touche ambre « faisceau laser ».
   Approche mobile first : les règles de base visent le téléphone,
   les @media (min-width) enrichissent pour tablette, portable et grand écran.

   Sommaire
   1. Polices            7. Hero                13. FAQ
   2. Variables          8. À propos            14. Contact + formulaire
   3. Base               9. Services            15. Pied de page
   4. Utilitaires       10. Approche            16. Éléments flottants
   5. Boutons           11. Réalisations        17. Lightbox
   6. En-tête + menu    12. Témoignages         18. Animations + préférences
   ========================================================================== */

/* 1. Polices (hébergées sur le site, licence SIL OFL) --------------------- */
@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations'),
         url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
    font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Instrument Serif';
    src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}

/* 2. Variables ------------------------------------------------------------ */
:root {
    /* Surfaces */
    --paper: #f5f3ee;
    --paper-2: #ece9e1;
    --card: #fbfaf7;
    --white: #ffffff;
    --night: #08141f;
    --night-2: #0d1e2e;
    --night-3: #13283c;

    /* Encre */
    --ink: #0b1a2b;
    --ink-2: #44515f;
    --ink-3: #5c6773;
    --line: rgba(11, 26, 43, 0.11);
    --line-2: rgba(11, 26, 43, 0.2);
    --on-night: rgba(255, 255, 255, 0.92);
    --on-night-2: rgba(255, 255, 255, 0.66);
    --line-night: rgba(255, 255, 255, 0.12);

    /* Couleurs de marque (logo) */
    --brand: #004878;
    --signal: #0080c8;
    --signal-text: #00679f;     /* bleu du logo assombri : contraste AA sur papier */
    --signal-light: #6cc0f2;
    --laser: #e0702f;
    --danger: #b3261e;
    --whatsapp: #25d366;

    /* Typographie */
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Instrument Serif', ui-serif, Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    /* Mise en page */
    --maxw: 1240px;
    --gutter: clamp(20px, 4.5vw, 44px);
    --header-h: 64px;
    --section-y: clamp(80px, 11vw, 148px);
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;

    /* Mouvement */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --shadow-1: 0 1px 2px rgba(11, 26, 43, 0.06), 0 6px 20px -8px rgba(11, 26, 43, 0.14);
    --shadow-2: 0 2px 4px rgba(11, 26, 43, 0.05), 0 24px 48px -16px rgba(11, 26, 43, 0.28);
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
html.no-scroll, html.no-scroll body { overflow: hidden; }

[hidden] { display: none !important; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite .f { fill: currentColor; stroke: none; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 4. Utilitaires ---------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

section { padding-block: var(--section-y); position: relative; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ink-3);
}
.eyebrow .mono { color: var(--signal-text); }
.eyebrow::after { content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.5; order: 3; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 1.15rem + 3.2vw, 3.6rem); letter-spacing: -0.035em; line-height: 1.02; }
.section-head > p, .section-head .lead { margin-top: 18px; max-width: 58ch; color: var(--ink-2); font-size: 1.06rem; }
@media (min-width: 900px) {
    .section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
    .section-head.split > p { margin-top: 0; justify-self: end; }
}

/* 5. Boutons -------------------------------------------------------------- */
.btn {
    --h: 50px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 0.97rem; line-height: 1.15; text-align: center; white-space: nowrap;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--brand); box-shadow: 0 10px 24px -10px rgba(0, 72, 120, 0.7); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: rgba(11, 26, 43, 0.04); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-wa { border-color: var(--line-night); color: var(--on-night); background: rgba(255, 255, 255, 0.04); }
.btn-wa .i { color: var(--whatsapp); width: 1.3em; height: 1.3em; }
.btn-wa:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); }
.btn-wa:hover .i { transform: none; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: currentColor; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 6. En-tête + menu ------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 80;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.site-header.is-scrolled, html.menu-open .site-header {
    background: rgba(245, 243, 238, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.wm { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--brand); }
.wm span { font-weight: 500; color: var(--ink); }
.brand-slogan { margin-top: 4px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ink-3); }

.links { display: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang button { min-width: 36px; height: 30px; padding: 0 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.lang button.active { background: var(--ink); color: var(--paper); }
.lang button:not(.active):hover { color: var(--ink); background: rgba(11, 26, 43, 0.06); }

.menu-toggle { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease); }
.menu-toggle span:nth-child(1) { transform: translateY(-4px); }
.menu-toggle span:nth-child(2) { transform: translateY(4px); }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: var(--header-h) 0 0; z-index: 70;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--paper); overflow-y: auto;
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
    display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
    font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1;
    opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
.mm-links a .mono { font-size: 0.75rem; color: var(--signal-text); transform: translateY(-0.6em); }
.mm-links a:hover { color: var(--brand); }
.mobile-menu.is-open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-links a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.is-open .mm-links a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.is-open .mm-links a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.is-open .mm-links a:nth-child(5) { transition-delay: 0.16s; }
.mm-foot { display: grid; gap: 18px; }
.mm-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 500; color: var(--ink-2); }
.mm-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1024px) {
    .links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; }
    .links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 0.93rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s, background-color 0.2s; }
    .links a:hover { color: var(--ink); background: rgba(11, 26, 43, 0.05); }
    .links a.active { color: var(--ink); }
    .links a.active::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--laser); }
    .menu-toggle, .mobile-menu { display: none !important; }
    .brand img { width: 42px; height: 42px; }
}

/* 7. Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(72px, 10vw, 128px); overflow: hidden; }
.hero::before { /* trame de plan technique, très discrète */
    content: ''; position: absolute; inset: calc(-1 * var(--header-h)) 0 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(11, 26, 43, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(11, 26, 43, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 10%, transparent 75%);
}
.hero-grid { display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }

.kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; margin-bottom: 26px;
    border: 1px solid var(--line-2); border-radius: 999px; background: rgba(251, 250, 247, 0.7);
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--laser); }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--laser); opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
    font-size: clamp(2.6rem, 1.2rem + 6.2vw, 6rem);
    font-weight: 600; line-height: 0.98; letter-spacing: -0.045em;
    max-width: 14ch;
}
.hero-title em {
    font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
    color: var(--signal-text); padding-right: 0.04em;
    background: linear-gradient(transparent 82%, rgba(224, 112, 47, 0.28) 82%, rgba(224, 112, 47, 0.28) 94%, transparent 94%) no-repeat;
    background-size: 0% 100%;
    animation: laser-underline 1.1s var(--ease-in-out) 0.9s forwards;
}
@keyframes laser-underline { to { background-size: 100% 100%; } }
.hero-tagline { margin-top: 26px; max-width: 54ch; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 34px; }
@media (max-width: 479px) { .hero-ctas .btn { flex: 1 1 100%; } .hero-ctas .link-wa { margin-inline: auto; } }
.link-wa { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 6px; font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.link-wa .i { color: #1aa851; width: 1.35em; height: 1.35em; }
.link-wa span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size 0.3s var(--ease); }
.link-wa:hover span { background-size: 0 1px; background-position: 100% 100%; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .i { color: var(--signal-text); stroke-width: 2.2; width: 1em; height: 1em; }

/* Composition des trois pôles */
.poles-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ring { display: none; }
.node { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease); -webkit-tap-highlight-color: transparent; }
.node:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: var(--shadow-2); z-index: 3; }
.node:focus-visible { outline-offset: 4px; border-radius: var(--r-md); }
.node-media { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 5; background: var(--paper-2); }
.node-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.node:hover .node-media img { transform: scale(1.05); }
.node-label { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.node-label .mono { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 0.68rem; }
.node-label span:last-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease); }
.node:hover .node-label span:last-child { background-size: 100% 1px; }
.node-digital { grid-column: 1 / -1; }
.node-media.code { aspect-ratio: auto; min-height: 150px; display: flex; flex-direction: column; background: var(--night); color: #d8e6f2; }
.code-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-night); }
.code-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.code-bar i:first-child { background: var(--laser); }
.code-body { display: block; padding: 16px 16px 18px; font-family: var(--font-mono); font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.84rem); line-height: 1.85; white-space: nowrap; overflow: hidden; }
.c-k { color: var(--signal-light); } .c-s { color: #f2b48a; } .c-f { color: #ffffff; font-weight: 500; } .c-c { color: rgba(255, 255, 255, 0.42); }
.caret { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 4px; vertical-align: -0.2em; background: var(--signal-light); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.12fr 0.88fr; }
    .poles-visual { display: block; aspect-ratio: 1 / 1.2; width: 100%; max-width: 540px; justify-self: end; }
    .ring { display: block; position: absolute; inset: 4% 2% 6% 4%; width: 94%; height: 90%; overflow: visible; pointer-events: none; }
    .ring circle { fill: none; }
    .ring-base { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
    .ring-draw { stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 72 28; transform: rotate(-60deg); transform-origin: 200px 200px; animation: ring-draw 2.2s var(--ease-in-out) 0.3s both; }
    .node { position: absolute; }
    .node-make { left: 0; top: 2%; width: 47%; transform: rotate(-3deg); }
    .node-infra { right: 0; top: 11%; width: 41%; transform: rotate(3.5deg); }
    .node-digital { left: 14%; bottom: 1%; width: 64%; transform: rotate(-1deg); z-index: 2; }
    .node-media.code { min-height: 0; }
}
@keyframes ring-draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 72 28; } }

/* 8. À propos ------------------------------------------------------------- */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; gap: 28px; }
.about-lead { font-size: clamp(1.55rem, 0.95rem + 2.5vw, 2.85rem); font-weight: 500; line-height: 1.14; letter-spacing: -0.03em; max-width: 26ch; }
.about-text { color: var(--ink-2); max-width: 46ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line-2); }
.facts > div { padding: 22px 18px 6px 0; }
.facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.facts dt { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.facts dd { margin-top: 12px; font-size: 0.93rem; color: var(--ink-2); max-width: 26ch; }
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1.55fr 0.75fr; gap: 64px; align-items: end; }
    .facts { grid-template-columns: repeat(4, 1fr); }
    .facts > div { padding: 26px 24px 6px 0; border-top: 0 !important; }
    .facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* 9. Services ------------------------------------------------------------- */
.services { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.seg {
    position: relative; display: flex; gap: 2px; width: max-content; max-width: 100%;
    padding: 4px; margin-bottom: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
    overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg .tab { position: relative; z-index: 1; flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; transition: color 0.3s var(--ease); }
.seg .tab:hover { color: var(--ink); }
.seg .tab.active { color: var(--paper); background: var(--ink); }
.seg.has-ind .tab.active { background: transparent; }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transform: translateX(var(--x, 0)); width: var(--w, 0); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.seg:not(.has-ind) .seg-ind { display: none; }

.pole { display: grid; gap: 20px; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-2); }
.pole.is-first { border-top: 0; padding-top: 0; }
.pole.is-entering { animation: fade-up 0.5s var(--ease) both; }
.pole-idx { font-size: 0.74rem; color: var(--signal-text); }
.pole-head h3 { margin-top: 8px; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -0.035em; }
.pole-head p:last-child { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }

.svc { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 18px; padding-block: 26px; border-top: 1px solid var(--line); }
.pole-list .svc:first-child { border-top: 0; padding-top: 6px; }
.svc-n { position: absolute; right: 0; top: 30px; font-size: 0.72rem; color: var(--ink-3); transition: color 0.3s; }
.pole-list .svc:first-child .svc-n { top: 10px; }
.svc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--brand); transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease), border-color 0.35s; }
.svc-icon .i { width: 22px; height: 22px; stroke-width: 1.6; }
.svc:hover .svc-icon { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-6deg); }
.svc:hover .svc-n { color: var(--laser); }
.svc-body { min-width: 0; padding-right: 28px; }
.svc h4 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); letter-spacing: -0.025em; }
.svc-body > p { margin-top: 6px; color: var(--ink-2); max-width: 54ch; }
.svc-subs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.svc-subs li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.84rem; line-height: 1.35; color: var(--ink-2); }
.svc-quote { display: inline-block; padding: 11px 0 4px; margin-top: 6px; font-weight: 600; font-size: 0.92rem; line-height: 1.4; color: var(--signal-text); }
.svc-quote span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; transition: text-decoration-color 0.3s var(--ease); }
.svc-quote:hover span { text-decoration-color: transparent; }
.svc-quote .i { display: inline-block; margin-left: 6px; vertical-align: -0.18em; transition: transform 0.3s var(--ease); }
.svc-quote:hover .i { transform: translateX(4px); }
.svc-photo { grid-column: 1 / -1; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: var(--paper-2); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc:hover .svc-photo img { transform: scale(1.04); }
.pos-50-28 { object-position: 50% 28%; } .pos-50-45 { object-position: 50% 45%; } .pos-50-50 { object-position: 50% 50%; }

@media (min-width: 768px) {
    .svc { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 24px; padding-block: 32px; }
    .svc-icon { width: 56px; height: 56px; }
    .svc-photo { grid-column: auto; grid-row: 1; grid-column-start: 3; width: 190px; aspect-ratio: 4 / 5; align-self: start; margin-top: 4px; }
    .svc-body { padding-right: 0; }
    .svc-n { position: static; grid-row: 1; display: none; }
}
@media (min-width: 1024px) {
    .pole { grid-template-columns: 290px minmax(0, 1fr); gap: 56px; }
    .pole-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
    .svc { grid-template-columns: 34px 56px minmax(0, 1fr) auto; }
    .svc-n { display: block; padding-top: 18px; }
    .svc-photo { grid-column-start: 4; width: 210px; }
}

/* 10. Approche ------------------------------------------------------------ */
.process { background: var(--night); color: var(--on-night); overflow: hidden; }
.process::before { content: ''; display: none; position: absolute; right: -180px; top: -180px; width: 560px; height: 560px; border-radius: 50%; border: 1px solid var(--line-night); pointer-events: none; }
.process .eyebrow { color: var(--on-night-2); }
.process .eyebrow .mono { color: var(--signal-light); }
.process .section-head > p { color: var(--on-night-2); }
.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 40px 44px; }
.steps li::before { /* rail vertical (mobile) */
    content: ''; position: absolute; left: 7px; top: 22px; bottom: 0; width: 1px; background: var(--line-night);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.steps li::after { /* repère */
    content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%;
    border: 1px solid var(--signal-light); background: var(--night);
    box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 8px var(--signal);
}
.step-n { font-size: 0.74rem; color: var(--on-night-2); }
.step-tag { margin-top: 10px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1; color: var(--signal-light); }
.steps h3 { margin-top: 14px; font-size: 1.3rem; color: #fff; letter-spacing: -0.02em; }
.steps li > p:last-child { margin-top: 10px; color: var(--on-night-2); max-width: 36ch; }
@media (min-width: 900px) {
    .process::before { display: block; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 34px; }
    .steps::before, .steps::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-night); }
    .steps::after { background: linear-gradient(90deg, var(--laser), var(--signal) 45%, var(--signal-light)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-in-out) 0.2s; }
    .steps.is-in::after, html:not(.js) .steps::after { transform: scaleX(1); }
    .steps li { padding: 0; }
    .steps li::before { display: none; }
    .steps li::after { top: -34px; }
}

/* 11. Réalisations -------------------------------------------------------- */
.chips { display: flex; gap: 8px; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-inline: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 500; font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; transition: all 0.25s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }

.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .g-grid { gap: 20px; } }
.g-card {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
    overflow: hidden; border-radius: var(--r-md); background: var(--paper-2); text-align: left;
    animation: fade-up 0.6s var(--ease) both; animation-delay: var(--d, 0ms);
    -webkit-tap-highlight-color: transparent;
}
/* Cartes élargies calculées par main.js pour que la grille tombe toujours juste */
@media (max-width: 767px) { .g-card.wide-sm { grid-column: span 2; aspect-ratio: 16 / 10; } }
@media (min-width: 768px) { .g-card.wide-lg { grid-column: span 2; aspect-ratio: auto; } }
.g-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s; }
.g-card:hover img { transform: scale(1.045); }
.g-over {
    position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    padding: 64px 16px 14px; color: #fff;
    background: linear-gradient(to top, rgba(8, 20, 31, 0.88), rgba(8, 20, 31, 0.5) 50%, transparent);
}
.g-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-cat { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal-light); }
.g-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
@media (min-width: 768px) { .g-title { font-size: 0.98rem; } }

.g-zoom { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform 0.4s var(--ease), background-color 0.3s; }
.g-zoom .i { width: 16px; height: 16px; }
.g-card:hover .g-zoom { transform: rotate(90deg); background: var(--paper); color: var(--ink); }
@media (hover: hover) {
    .g-over .g-txt { transform: translateY(6px); transition: transform 0.45s var(--ease); }
    .g-card:hover .g-over .g-txt { transform: none; }
}
.g-card.is-empty { cursor: default; background: linear-gradient(145deg, var(--night-2), var(--brand)); }
.g-card.is-empty::before { content: ''; position: absolute; right: -12%; top: -12%; width: 64%; aspect-ratio: 1; background: url('../img/logo-mark-white.png') center / contain no-repeat; opacity: 0.1; }
.g-card.is-empty .g-zoom { display: none; }
@media (max-width: 559px) {
    .g-over { padding: 40px 10px 10px; }
    .g-zoom, .g-cat { display: none; }
    .g-title { font-size: 0.8rem; font-weight: 500; }
    .g-card.wide-sm .g-cat { display: block; }
}
.g-note { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ink-2); }

/* 12. Témoignages --------------------------------------------------------- */
.testimonials { background: var(--card); border-top: 1px solid var(--line); }
.t-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.t-stars { color: var(--laser); letter-spacing: 3px; font-size: 0.95rem; }
.t-quote { margin-top: 14px; font-size: 1.08rem; line-height: 1.55; flex: 1; }
.t-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.t-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 600; overflow: hidden; flex: none; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-author strong { display: block; line-height: 1.2; font-weight: 600; }
.t-author span { font-size: 0.88rem; color: var(--ink-2); }

/* 13. FAQ ----------------------------------------------------------------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; gap: 8px; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list details:first-child { border-top: 1px solid var(--line-2); }
.faq-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 0; min-height: 56px; list-style: none; cursor: pointer;
    font-weight: 600; font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem); letter-spacing: -0.015em; line-height: 1.35;
    transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s; }
.faq-list summary:hover { color: var(--brand); }
.faq-list details[open] summary .i { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 0 24px; max-width: 62ch; color: var(--ink-2); }
@media (min-width: 900px) {
    .faq-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
    .faq .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
    .faq-a p { padding-right: 56px; }
}

/* 14. Contact + formulaire ------------------------------------------------ */
.contact { background: var(--night); color: var(--on-night); overflow: hidden; }
.contact::before { /* l'anneau ouvert du logo, en filigrane */
    content: ''; position: absolute; right: -260px; top: -300px; width: 720px; height: 720px; border-radius: 50%;
    border: 1px solid var(--line-night); border-left-color: transparent; transform: rotate(-30deg); pointer-events: none;
}
.contact-grid { position: relative; display: grid; gap: 48px; }
.contact .eyebrow { color: var(--on-night-2); }
.contact .eyebrow .mono { color: var(--signal-light); }
.contact h2 { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4rem); letter-spacing: -0.04em; line-height: 1; color: #fff; }
.contact-lead { margin-top: 20px; max-width: 44ch; color: var(--on-night-2); }
.contact-info { display: grid; gap: 4px; margin: 36px 0 28px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-night); }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--night-3); color: var(--signal-light); }
.contact-info .lbl { display: block; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-night-2); margin-bottom: 3px; }
.contact-info a, .contact-info .val { font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.contact-info a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease), color 0.2s; }
.contact-info a:hover { color: var(--signal-light); background-size: 100% 1px; }

.form-card { padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.form-head h3 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); letter-spacing: -0.03em; }
.form-intro { margin: 10px 0 28px; color: var(--ink-2); font-size: 0.97rem; }
.quote-form { display: grid; grid-template-columns: 1fr; gap: 18px 16px; }
@media (min-width: 640px) { .quote-form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.req { color: var(--danger); }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--white);
    font-size: 1rem; /* 16 px : évite le zoom automatique sur iPhone */
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    -webkit-appearance: none; appearance: none;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(11, 26, 43, 0.38); }
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #737c86; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(0, 128, 200, 0.16); }
.select { position: relative; }
.select select { padding-right: 42px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.err { display: none; font-size: 0.84rem; color: var(--danger); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fff8f7; }
.field.invalid .err { display: block; animation: fade-up 0.25s var(--ease) both; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; cursor: pointer; }
.submit-row { gap: 10px; }
.req-note { font-size: 0.82rem; color: var(--ink-3); }
.form-note { min-height: 1.4em; font-size: 0.92rem; color: var(--ink-2); }
.form-note:empty { display: none; }
.form-note.is-error { color: var(--danger); }
.form-wa .i { color: #1aa851; width: 1.25em; height: 1.25em; }
.form-ref { margin-top: 16px !important; padding: 10px 14px; display: inline-block; border-radius: 10px; background: var(--paper-2); color: var(--ink) !important; font-size: 0.92rem; }
.form-ref .mono { letter-spacing: 0.04em; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-success { text-align: center; padding: 40px 8px; outline: none; animation: fade-up 0.5s var(--ease) both; }
.form-success .ok { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--paper); margin-bottom: 20px; }
.form-success .ok .i { width: 30px; height: 30px; stroke-width: 2; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: start; }
    .contact-copy { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Réseaux sociaux (section Contact + menu mobile) */
.follow { margin-top: 28px; }
.follow-lbl { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.follow-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.follow-icons a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: transform 0.3s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s; }
.follow-icons a:hover { transform: translateY(-3px); }
.follow-icons .i { width: 20px; height: 20px; }
.contact-follow .follow-lbl { color: var(--on-night-2); }
.contact-follow .follow-icons a { border: 1px solid var(--line-night); color: #fff; background: rgba(255, 255, 255, 0.04); }
.contact-follow .follow-icons a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.mm-follow { margin-top: 4px; }
.mm-follow .follow-lbl { color: var(--ink-3); }
.mm-follow .follow-icons a { border: 1px solid var(--line-2); color: var(--ink); }
.mm-follow .follow-icons a:hover { background: var(--ink); color: var(--paper); }

/* 15. Pied de page -------------------------------------------------------- */
.site-footer { background: #050e16; color: var(--on-night-2); font-size: 0.95rem; padding-top: clamp(56px, 8vw, 96px); }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-night); }
.foot-mark { font-size: clamp(3rem, 1.4rem + 7.5vw, 8.5rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.055em; color: #fff; }
.foot-mark em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--signal-light); }
.foot-grid { display: grid; gap: 36px; padding-block: clamp(40px, 6vw, 64px); }
.foot-brand img { width: 44px; height: 44px; margin-bottom: 14px; }
.foot-brand .wm { color: #fff; font-size: 1.1rem; }
.foot-brand .wm span { color: var(--on-night-2); }
.foot-brand p:last-child { margin-top: 12px; max-width: 36ch; }
.foot-h { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.58); margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer ul a { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; color: var(--on-night); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--signal-light); }
.socials .i { width: 1.1em; height: 1.1em; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-night); font-size: 0.85rem; }
.foot-top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-night); }
.foot-top-link:hover { color: var(--signal-light); }
.foot-top-link .i { transition: transform 0.3s var(--ease); }
.foot-top-link:hover .i { transform: translateY(-3px); }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 48px; } }

/* 16. Éléments flottants -------------------------------------------------- */
.wa-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
    background: var(--whatsapp); color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .i { width: 28px; height: 28px; }
.to-top {
    position: fixed; right: 23px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
    opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease), background-color 0.2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top .i { width: 18px; height: 18px; }
@media (min-width: 768px) {
    .wa-float { right: 24px; bottom: 24px; width: 58px; height: 58px; }
    .to-top { right: 33px; bottom: 96px; }
}

.notice {
    position: fixed; left: 12px; right: 82px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 65;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    padding: 16px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-2);
    transform: translateY(calc(100% + 40px)); visibility: hidden;
    transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
}
.notice.show { transform: none; visibility: visible; transition: transform 0.5s var(--ease), visibility 0s; }
.notice p { font-size: 0.88rem; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 640px) {
    .notice { left: 24px; right: auto; bottom: 24px; max-width: 440px; flex-direction: row; align-items: center; gap: 18px; }
    .notice .btn { flex: none; }
}

/* 17. Lightbox ------------------------------------------------------------ */
.lightbox {
    position: fixed; inset: 0; z-index: 120;
    display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    background: rgba(5, 14, 22, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff; animation: fade 0.3s var(--ease) both;
    touch-action: pan-y;
}
.lb-top { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; padding: 4px 4px 8px; }
.lb-count { font-size: 0.78rem; color: var(--on-night-2); }
.lb-fig { grid-row: 2; grid-column: 1 / -1; justify-self: center; display: flex; flex-direction: column; align-items: center; max-width: min(1100px, 100%); min-height: 0; height: 100%; justify-content: center; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 190px); max-height: calc(100vh - 190px); border-radius: var(--r-sm); object-fit: contain; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
@supports (height: 100dvh) { .lb-fig img { max-height: calc(100dvh - 190px); } }
.lb-fig img.is-switching { opacity: 0; transform: scale(0.985); }
.lb-fig figcaption { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lb-fig figcaption span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal-light); }
.lb-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; transition: background-color 0.2s, transform 0.2s; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn:active { transform: scale(0.94); }
.lb-btn .i { width: 22px; height: 22px; }
.lb-prev, .lb-next { grid-row: 3; }
.lb-prev { justify-self: start; margin-left: 4px; grid-column: 1; }
.lb-next { justify-self: end; margin-right: 4px; grid-column: 1; }
@media (min-width: 768px) {
    .lightbox { grid-template-columns: auto 1fr auto; padding: 20px 28px; gap: 16px; }
    .lb-fig { grid-column: 2; }
    .lb-prev, .lb-next { grid-row: 2; margin: 0; }
    .lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
    .lb-fig img { max-height: calc(100vh - 160px); }
}

/* 18. Animations + préférences ------------------------------------------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Apparition au défilement : uniquement si JavaScript est actif (classe posée par boot.js) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
    html.js .reveal { opacity: 1; transform: none; }
    .hero-title em { background-size: 100% 100%; }
}

@media print {
    .site-header, .mobile-menu, .wa-float, .to-top, .notice, .lightbox, .form-card, .hero::before { display: none !important; }
    body { background: #fff; }
    .process, .contact, .site-footer { background: #fff; color: #000; }
    html.js .reveal { opacity: 1; transform: none; }
}
