/* JD_Connect — nouvelle version (style éditorial, typographie XXL) CSS écrit à la main, sans compilation. Toutes les couleurs sont ici. */

/* Polices hébergées sur jdconnect.fr (Inter Tight variable 400–800, Instrument Serif), sous-ensembles latin et latin étendu */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italique-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italique-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  /* Charte : papier clair, bleu nuit (éclairci le 30/09/2026), marine, pervenche d'accent */
  --paper: #ecebe7;
  --paper-2: #e3e2dd;
  --cream: #ecebe7;         /* texte sur fond bleu nuit */
  --ink: #272d52;           /* bleu nuit éclairci (texte) */
  --night: #272d52;         /* bleu nuit éclairci (fonds sombres) */
  --night-2: #313862;
  --navy: #3a4273;          /* marine : surfaces sur fond sombre */
  --accent: #9aa5e0;        /* pervenche : fonds, détails sur fond sombre */
  --accent-2: #9aa5e0;      /* pervenche : section contact */
  --accent-strong: #3f4bb0; /* pervenche foncée : texte d'accent sur fond clair (contraste AA) */
  --ok: #3fae6e;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 3.4vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --hd-h: 76px;
}

/* Thèmes de section : chaque section choisit son fond */
.t-paper { --bg: var(--paper); --fg: var(--ink); --mut: #5f616d; --ln: rgba(39, 45, 82, 0.16); --hi: var(--accent-strong); --soft: rgba(39, 45, 82, 0.05); }
.t-night { --bg: var(--night); --fg: var(--cream); --mut: #a9adc4; --ln: rgba(236, 235, 231, 0.15); --hi: var(--accent); --soft: rgba(236, 235, 231, 0.05); }
.t-accent { --bg: var(--accent-2); --fg: var(--ink); --mut: #2d3350; --ln: rgba(39, 45, 82, 0.28); --hi: var(--ink); --soft: rgba(39, 45, 82, 0.07); }
.t-sand { --bg: var(--accent); --fg: var(--ink); --mut: #5f616d; --ln: rgba(39, 45, 82, 0.24); --hi: var(--ink); --soft: rgba(39, 45, 82, 0.07); }
.t-paper, .t-night, .t-accent, .t-sand { background: var(--bg); color: var(--fg); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Défilement doux (Lenis, v2.js) : c'est lui qui anime, pas le navigateur */
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
.lenis-stopped { overflow: hidden; }
/* Changement de page en fondu (navigateurs récents ; les autres changent de page normalement) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-sortie 0.35s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-entree 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes vt-sortie { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-entree { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 99px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }

/* Typographie */
.label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3;
}
.num { color: var(--hi); font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); }

/* Titres géants : gras, serrés, en capitales */
.mega {
  font-weight: 800;
  text-transform: uppercase;
  --ls: -0.068em;
  letter-spacing: var(--ls);
  line-height: 0.9;
  font-size: clamp(56px, 13vw, 200px);
}
.out, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
.mega .out, .display .out, .h-proj .out { color: var(--hi); letter-spacing: -0.02em; }
.mega .out { font-size: 1.12em; line-height: 0.8; }
.display {
  font-weight: 800;
  --ls: -0.055em;
  letter-spacing: var(--ls);
  line-height: 0.92;
  font-size: clamp(40px, 6.4vw, 104px);
}
.h-proj {
  font-weight: 800; letter-spacing: -0.06em; line-height: 0.9;
  font-size: clamp(40px, 6vw, 96px);
}
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--mut); max-width: 46ch; }
.lead strong { color: var(--fg); font-weight: 600; }

/* Lignes ajustées à la largeur (data-fit) : chaque ligne occupe toute la largeur */
[data-fit] { display: block; }
/* Marge haute de 0,3em : les accents des capitales (É, Ê) ne sont jamais rognés par le masque de la ligne */
.fit-line { display: block; overflow: hidden; padding: 0.3em 0 0.03em; margin: -0.3em 0 -0.03em; white-space: nowrap; letter-spacing: var(--ls, inherit); }
/* Ligne en capitales accentuées sous une autre ligne : 0,1em d'air pour que l'accent ne touche pas la ligne du dessus */
.fit-line.fit-acc { margin-top: -0.2em; }
.fit-line .ln { display: inline-block; padding-right: 0.07em; }

/* Animations d'apparition (seulement si JavaScript est actif) */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Introduction du premier écran : visible dès le premier affichage (sans fondu), seul le glissement est gardé — vitesse mesurée par Google (LCP) */
.js .phero-foot[data-reveal], .js .merci-foot[data-reveal] { opacity: 1; }
.js [data-lines] .ln { transform: translateY(105%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 0.08s + var(--d, 0s)); }
.js [data-lines].is-in .ln { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-lines] .ln { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Écran de chargement de l'accueil (compteur 000 → 100, ≈ 2 s) : le script du <head> met « has-intro » sur <html>, v2.js fait défiler le compteur puis l'écran se lève. */
.ld { display: none; }
.has-intro .ld {
  display: flex; flex-direction: column; justify-content: space-between;
  position: fixed; inset: 0; z-index: 150;
  background: var(--night); color: var(--cream);
  padding: 22px var(--gutter) 0;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-in-out);
  animation: ld-secours 0.01s 6s forwards; /* au pire, disparaît seul */
}
.has-intro { overflow: hidden; }
.has-intro.intro-done { overflow: auto; }
.intro-done .ld { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes ld-secours { to { visibility: hidden; } }
.ld-top, .ld-bot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ld-top { padding-bottom: 14px; border-bottom: 1px solid rgba(236, 235, 231, 0.15); }
/* « JD_ / Connect » : le plus grand possible selon la largeur et la hauteur de l'écran */
.ld-words { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(12px, 3svh, 40px) 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.07em; line-height: 0.84; font-size: clamp(72px, min(22vw, 34svh), 420px); }
.ld-words span { display: block; overflow: hidden; padding-top: 0.08em; }
.ld-words i { display: inline-block; font-style: normal; transform: translateY(105%); animation: ld-in 1s var(--ease) forwards; }
.ld-words .ld-w2 { align-self: flex-end; }
.ld-words .ld-w2 i { animation-delay: 0.12s; color: var(--accent); }
.ld-words .out { font-style: italic; letter-spacing: -0.02em; font-size: 1.12em; line-height: 0.8; padding: 0.04em 0.06em 0.1em 0; }
@keyframes ld-in { to { transform: none; } }
.ld-bot { padding-bottom: 18px; align-items: flex-end; }
.ld-count { font-weight: 800; letter-spacing: -0.05em; line-height: 0.8; font-size: clamp(48px, 7vw, 96px); font-variant-numeric: tabular-nums; }
.ld-bar { height: 4px; margin: 0 calc(var(--gutter) * -1); background: rgba(236, 235, 231, 0.08); }
.ld-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* Téléphone : « JD_ » au-dessus de « Connect », alignés à gauche, sur toute la largeur */
@media (max-width: 700px) {
  .ld-words { font-size: min(29vw, 20svh); }
  .ld-words .ld-w2 { align-self: flex-start; }
  .ld-count { font-size: clamp(48px, 15vw, 64px); }
}

/* En-tête : fixe ; logo et navigation dans des pastilles sombres semi-opaques, bien visibles sur tous les fonds (papier, nuit, pervenche, photos) */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--hd-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: var(--paper);
  pointer-events: none;
}
.hd > * { pointer-events: auto; }
.hd-logo, .hd-nav ul, .hd-menu {
  background: rgba(39, 45, 82, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(236, 235, 231, 0.14), 0 12px 32px -14px rgba(0, 0, 0, 0.55);
  border-radius: 99px;
}
.hd-logo { display: flex; align-items: center; gap: 10px; padding: 5px 18px 5px 5px; }
.hd-logo svg { width: 38px; height: 38px; }
.hd-logo .label { font-size: 13px; letter-spacing: 0.02em; }
.hd-nav ul { display: flex; gap: 2px; padding: 5px; }
.hd-nav a { display: block; padding: 11px clamp(12px, 1.2vw, 18px); border-radius: 99px; transition: background-color 0.35s var(--ease), color 0.35s var(--ease); }
.hd-nav a:hover, .hd-nav a:focus-visible { background: rgba(236, 235, 231, 0.14); }
.hd-nav a[aria-current="page"] { background: var(--accent); color: var(--ink); }
.hd-nav a, .hd-menu { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: block; transition: transform 0.55s var(--ease); }
.roll > span + span { position: absolute; left: 0; top: 100%; }
a:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-100%); }
.hd-menu { display: none; align-items: center; gap: 10px; height: 48px; padding: 0 20px; }
.hd-menu .bars { width: 22px; height: 10px; position: relative; }
.hd-menu .bars::before, .hd-menu .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.hd-menu .bars::before { top: 0; }
.hd-menu .bars::after { top: 8.5px; }
.menu-open .hd-menu .bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .hd-menu .bars::after { top: 4.25px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .hd-nav { display: none; }
  .hd-menu { display: inline-flex; }
}

/* Menu plein écran (mobile) */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: calc(var(--hd-h) + 20px) var(--gutter) 28px;
  background: var(--night); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.8s var(--ease-in-out); }
.menu-open { overflow: hidden; }
.menu ol { display: flex; flex-direction: column; counter-reset: m; }
.menu li { border-top: 1px solid rgba(236, 235, 231, 0.14); overflow: hidden; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0 4px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.06em; line-height: 0.95; font-size: clamp(40px, 11vw, 84px); transform: translateY(100%); transition: transform 0.8s var(--ease); }
.menu li a::before { counter-increment: m; content: "0" counter(m); font-size: 12px; letter-spacing: 0.04em; font-weight: 600; color: var(--accent); transform: translateY(-1.6em); }
.menu-open .menu li a { transform: none; transition-delay: calc(0.18s + var(--i, 0) * 0.05s); }
.menu li a[aria-current="page"] { color: var(--accent); }
.menu-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; color: #a9adc4; }
.menu-foot a { color: var(--paper); }

/* Méta de section : filet qui se remplit au défilement + numéro + libellé */
.sec-meta { position: relative; display: flex; align-items: center; gap: clamp(24px, 4vw, 50px); padding-top: 16px; }
.sec-meta::before, .sec-meta::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ln); }
.sec-meta::after { background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 0)); }
.no-js .sec-meta::after { transform: scaleX(1); }
.sec-meta .push { margin-left: auto; }

.sec { position: relative; padding: clamp(96px, 12vw, 180px) 0; }
.sec-tight { padding-top: clamp(64px, 8vw, 110px); }

/* Boutons et liens */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 16px 0 26px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--fg); color: var(--bg);
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); border-radius: inherit; transform: translateY(101%); transition: transform 0.55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn .arr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--fg); font-size: 14px; transition: transform 0.5s var(--ease); }
.btn:hover .arr { transform: rotate(-45deg); }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--ln); }
.btn-line .arr { background: var(--fg); color: var(--bg); }
.t-accent .btn::before { background: var(--paper); }
.btn-plain { padding: 0 26px; }

.link-u { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding-bottom: 4px; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease); }
.link-u:hover::after { transform: scaleX(0); }

.round {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--ln); color: var(--fg); font-size: 18px;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.round:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--ln); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(47, 191, 113, 0.6); animation: pulse 2.2s infinite; }
.dot.is-wip { background: #e7b04a; }
.dot.is-done { background: var(--mut); }
.dot.is-wip::after, .dot.is-done::after { content: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(3.25); opacity: 0; } 100% { transform: scale(1); opacity: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.tags li:not(:last-child)::after { content: "·"; margin: 0 9px; opacity: 0.55; }

/* Accueil — hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hd-h) + 20px) 0 96px; overflow: hidden; }
.hero-title { position: relative; z-index: 1; }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.hero-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 26px; }
.hero-bar .label { color: var(--mut); }
.hero-bar a.label:hover { color: var(--fg); }
@media (max-width: 700px) {
  .hero-bar .wrap { flex-wrap: wrap; }
  .hero-bar .hide-sm { display: none; }
}

/* Texte qui se révèle mot à mot au défilement */
.read {
  font-weight: 700; letter-spacing: -0.05em; line-height: 1.02;
  font-size: clamp(34px, 5.2vw, 84px);
  max-width: 17ch;
}
.read-wide { max-width: 22ch; }
.read .w { opacity: var(--o, 1); transition: opacity 0.25s linear; }
.js .read[data-words] .w { --o: 0.16; }
.read.mots-instant .w { transition: none; } /* bascule loin ↔ proche de l'écran : immédiate, hors de la vue */
.read em { font-style: normal; color: var(--hi); }
.read-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(56px, 7vw, 100px); padding-top: 16px; border-top: 1px solid var(--ln); }
.indent { padding-left: clamp(0px, 8.5vw, 140px); }

/* Défilant géant en contour */
.ticker { overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker p { display: flex; align-items: center; flex-shrink: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -0.06em; line-height: 1; font-size: clamp(48px, 8vw, 128px); }
.ticker p span { padding: 0 0.28em; }
.ticker p span:nth-child(4n + 1) { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -0.01em; color: var(--hi); }
.ticker p i { font-style: normal; color: var(--hi); font-size: 0.5em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Services (liste en grandes lignes) */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); }
.head-row .lead { margin-bottom: 0.6em; }
.svc-list { border-bottom: 1px solid var(--ln); }
.svc { position: relative; border-top: 1px solid var(--ln); }
.svc-link { position: relative; z-index: 1; display: grid; grid-template-columns: 70px 1fr minmax(0, 36%) 60px; align-items: center; gap: 24px; padding: clamp(26px, 3vw, 40px) 0; transition: color 0.45s var(--ease), padding 0.6s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.svc:hover::before, .svc:focus-within::before { transform: scaleY(1); transform-origin: top; }
.svc:hover .svc-link, .svc:focus-within .svc-link { color: var(--ink); padding-left: 20px; padding-right: 20px; }
.svc:hover .svc-desc, .svc:focus-within .svc-desc { color: var(--ink); }
.svc-num { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--hi); }
.svc:hover .svc-num { color: var(--ink); }
.svc-title { font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; font-size: clamp(30px, 4.4vw, 68px); }
.svc-desc { font-size: 15px; line-height: 1.55; color: var(--mut); transition: color 0.45s; }
.svc-arrow { justify-self: end; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid currentColor; font-size: 18px; transition: transform 0.6s var(--ease); }
.svc:hover .svc-arrow { transform: rotate(-45deg); }
.svc-badge { display: inline-block; vertical-align: middle; margin-left: 10px; transform: translateY(-0.4em); }
@media (max-width: 860px) {
  .svc-link { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .svc-num { grid-column: 1 / -1; }
  .svc-desc { grid-column: 1; }
  .svc-arrow { grid-row: 2 / 4; grid-column: 2; width: 46px; height: 46px; }
}
/* Aperçu image qui suit la souris */
.svc-preview { position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(0.6) rotate(var(--r, 0deg)); transition: opacity 0.35s, transform 0.5s var(--ease); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
.svc-preview.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 860px) { .svc-preview { display: none; } }

/* Réalisations */
.proj { padding-top: clamp(64px, 8vw, 120px); }
.proj-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--ln); }
.proj-meta a:hover { color: var(--hi); }
.proj-head { display: grid; grid-template-columns: 1fr minmax(0, 34%); gap: 20px 40px; align-items: end; margin: 24px 0 clamp(28px, 3.5vw, 48px); }
.proj-head p { color: var(--mut); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; }
.proj-head .chip { margin-bottom: 18px; }
@media (max-width: 860px) { .proj-head { grid-template-columns: 1fr; } }

.proj-media { position: relative; display: block; overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); background: radial-gradient(90% 120% at 20% 0%, var(--g1), transparent 70%), linear-gradient(135deg, var(--g2), var(--g3)); padding: clamp(18px, 5vw, 64px) clamp(14px, 5.5vw, 86px) 0; isolation: isolate; }
/* Vente fermée : même visuel, sans lien (figure) */
figure.proj-media { margin: 0; }
.proj-media .big-n { position: absolute; right: -0.04em; bottom: -0.2em; z-index: -1; font-weight: 800; letter-spacing: -0.08em; line-height: 0.8; font-size: clamp(160px, 28vw, 420px); color: rgba(255, 255, 255, 0.12); }
.browser { border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55); transform: translateY(var(--py, 0px)) scale(var(--ps, 1)); transform-origin: 50% 100%; transition: transform 0.2s linear; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f1ef; border-bottom: 1px solid #e2e2df; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d4d4d0; }
.browser-bar span::before { content: attr(data-url); } /* adresse décorative de la fausse fenêtre : dessinée par la feuille de style */
.browser-bar span { flex: 1; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; color: #8a8a86; text-transform: uppercase; padding-right: 30px; }
.browser-body { aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.browser-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.proj-media:hover .browser-body img { transform: scale(1.03); }
.proj-media .pill { position: absolute; left: clamp(14px, 2.4vw, 34px); bottom: clamp(14px, 2.4vw, 34px); z-index: 2; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px 0 24px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: background-color 0.4s, color 0.4s; }
.proj-media:hover .pill { background: var(--accent); color: var(--ink); }
.proj-scope { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px 30px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--ln); }
.proj-scope .label:first-child { color: var(--mut); }
@media (max-width: 700px) {
  .proj-scope { grid-template-columns: 1fr; }
  .proj-media .pill { height: 42px; padding: 0 16px; font-size: 11px; }
}

/* Maquette du configurateur (projet vedette) */
.mock { height: 100%; display: grid; grid-template-columns: 1fr 31%; background: radial-gradient(80% 90% at 35% 40%, #262d5a, #0b0d1a 70%); }
.mock-stage { display: grid; place-items: center; perspective: 900px; }
.mock-card { width: 62%; aspect-ratio: 85.6 / 54; border-radius: 5% / 8%; position: relative; transform: rotateX(14deg) rotateY(-22deg) rotateZ(-4deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7); background: linear-gradient(135deg, #e8d7a0, #b69448 45%, #f3e6bd 60%, #a9853c); container-type: inline-size; overflow: hidden; }
.mock-card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px); }
.mock-card b { position: absolute; left: 8%; bottom: 20%; font-size: 9cqw; letter-spacing: -0.04em; color: #3b2d0c; }
.mock-card small { position: absolute; left: 8%; bottom: 10%; font-size: 3.6cqw; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(59, 45, 12, 0.75); }
.mock-card svg { position: absolute; right: 8%; top: 12%; width: 10cqw; stroke: #3b2d0c; fill: none; stroke-width: 2; stroke-linecap: round; }
.mock-panel { background: rgba(255, 255, 255, 0.05); border-left: 1px solid rgba(255, 255, 255, 0.1); padding: 8% 9%; display: flex; flex-direction: column; gap: 9%; }
.mock-panel p { font-size: clamp(7px, 0.75vw, 11px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 6px; }
.mock-sw { display: flex; gap: 7%; }
.mock-sw i { flex: 1; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.mock-seg { display: flex; border-radius: 99px; background: rgba(255, 255, 255, 0.08); padding: 3px; }
.mock-seg i { flex: 1; height: clamp(12px, 1.6vw, 22px); border-radius: 99px; }
.mock-seg i:first-child { background: var(--accent); }
.mock-btn { margin-top: auto; height: clamp(16px, 2.4vw, 34px); border-radius: 99px; background: var(--paper); }
.mock-line { height: clamp(8px, 1vw, 14px); border-radius: 4px; background: rgba(255, 255, 255, 0.1); }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ln); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 14px; padding: 22px 24px 0 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--ln); }
.stats dd { font-weight: 800; letter-spacing: -0.07em; line-height: 0.85; font-size: clamp(64px, 11vw, 176px); font-variant-numeric: tabular-nums; }
.stats dd .num { color: var(--hi); }
.stats dt { color: var(--mut); }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ln); margin-top: 22px; }
}

/* Mise en avant NFC */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.frame { position: relative; overflow: hidden; border-radius: clamp(14px, 1.6vw, 22px); }
.frame img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.frame-tall { aspect-ratio: 4 / 5; }
.frame-wide { aspect-ratio: 16 / 11; }
.frame .chip { position: absolute; left: 16px; bottom: 16px; background: var(--paper); color: var(--ink); border-color: transparent; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ln); margin: 40px 0 34px; }
.prices > div { padding: 16px 16px 0 0; }
.prices > div + div { padding-left: 16px; border-left: 1px solid var(--ln); }
.prices .p { display: block; margin-top: 10px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-size: clamp(26px, 3vw, 44px); white-space: nowrap; }
.prices .label { color: var(--mut); }
@media (max-width: 520px) {
  .prices { grid-template-columns: 1fr; }
  .prices > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--ln); margin-top: 16px; }
}
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.5; color: var(--mut); }
.notice strong { color: var(--fg); }
.is-bientot { opacity: 0.55; cursor: default; pointer-events: none; }
[data-vente="fermee"] [data-prix] { font-size: clamp(18px, 1.9vw, 28px); letter-spacing: -0.02em; white-space: normal; } /* « Bientôt disponible » à la place d'un prix : plus long, donc plus petit */
[hidden] { display: none !important; }
html:not([data-vente]) [data-si-vente="fermee"] { display: none; } /* page ouverte sans passer par le serveur (aperçu local) : version « vente ouverte » */ /* ex. remises masquées quand la vente est fermée, même si le bloc a son propre display */ /* bouton ou lien vers le configurateur quand la vente est fermée */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* Contact (fin de page) */

.contact { position: relative; overflow: hidden; padding: calc(var(--hd-h) + 24px) 0 0; }
.contact .bg-n { position: absolute; right: -0.06em; bottom: -0.12em; font-weight: 800; letter-spacing: -0.09em; line-height: 0.8; font-size: clamp(260px, 44vw, 720px); color: rgba(39, 45, 82, 0.07); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 22%) 1fr; gap: 24px 40px; align-items: start; margin: clamp(72px, 10vw, 150px) 0 clamp(48px, 6vw, 80px); }
.contact-grid .display { max-width: 15ch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.mailpill { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 22px) clamp(16px, 2vw, 24px) clamp(22px, 2.6vw, 34px); border: 1px solid var(--ln); border-radius: 999px; transition: background-color 0.5s var(--ease), color 0.5s; }
.mailpill:hover { background: var(--ink); color: var(--paper); }
.mailpill .label { color: var(--mut); transition: color 0.5s; }
.mailpill:hover .label { color: #a9adc4; }
.mailpill strong { display: block; margin-top: 4px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-size: clamp(24px, 4.4vw, 64px); overflow-wrap: anywhere; }
.mailpill .round { width: clamp(52px, 5.5vw, 76px); height: clamp(52px, 5.5vw, 76px); border-color: currentColor; font-size: 22px; transition: transform 0.6s var(--ease); }
.mailpill:hover .round { transform: rotate(45deg); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.contact-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin-top: 28px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.contact { padding-bottom: clamp(88px, 11vw, 160px); }

/* Pied de page : bandeau brun, 4 colonnes, grand logotype ajusté à la largeur, mentions */
/* overflow: clip (même découpe que hidden) : le pied de page n'est pas un conteneur de défilement, l'animation du grand mot suit bien la page */
.ft { position: relative; overflow: hidden; overflow: clip; padding: clamp(64px, 8vw, 110px) 0 0; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 44px clamp(24px, 4vw, 64px); }
.ft-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.ft-logo svg { width: 46px; height: 46px; }
.ft-logo .label { color: var(--fg); font-size: 13px; letter-spacing: 0.04em; }
.ft-pitch { margin: 22px 0 22px; max-width: 26ch; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(24px, 2.3vw, 34px); }
.ft-pitch .serif { color: var(--hi); letter-spacing: -0.01em; font-size: 1.1em; }
.ft-col .label { color: var(--mut); padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ln); }
.ft-col ul { display: flex; flex-direction: column; }
.ft-col li > * { display: inline-block; padding: 7px 0; font-size: 16px; font-weight: 500; }
.ft-col li > span { color: var(--mut); }
.ft-col a { position: relative; transition: color 0.3s, transform 0.5s var(--ease); }
.ft-col a:hover, .ft-col a:focus-visible { color: var(--hi); transform: translateX(6px); }
.ft-col a[aria-current="page"] { color: var(--hi); }
.ft-word {
  display: block; margin: clamp(56px, 8vw, 110px) 0 0; color: var(--fg);
  font-weight: 800; --ls: -0.065em; letter-spacing: var(--ls); line-height: 0.82; white-space: nowrap; user-select: none;
}
.ft-word .fit-line { padding-bottom: 0.08em; }
.ft-word .out { color: var(--hi); font-size: 1.14em; letter-spacing: -0.03em; }
.ft-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid var(--ln); font-size: 13px; color: var(--mut); }
.ft-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft-bottom a:hover, .ft-bottom a:focus-visible, .ft-bottom a[aria-current="page"] { color: var(--fg); }
.ft-up { color: var(--fg); }
.ft-up span { display: inline-block; transition: transform 0.5s var(--ease); }
.ft-up:hover span { transform: translateY(-4px); }
@media (max-width: 1000px) { .ft-top { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ft-top { grid-template-columns: 1fr; } .ft-bottom { flex-direction: column; align-items: flex-start; } }

/* Pages intérieures */
.phero { padding: calc(var(--hd-h) + clamp(40px, 7vw, 100px)) 0 clamp(64px, 8vw, 120px); }
.phero .mega { margin: clamp(40px, 6vw, 90px) 0 clamp(36px, 5vw, 70px); }
.phero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.crumb a:hover { color: var(--fg); }

/* Blocs de service détaillés */
.svc-block { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 6vw, 90px) 0; border-top: 1px solid var(--ln); align-items: start; }
.svc-block:nth-child(even) .frame { order: 2; }
.svc-block h2 { margin: 18px 0 22px; }
.svc-block p { color: var(--mut); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 52ch; }
.svc-block .tags { margin: 26px 0 32px; }
.svc-block .notice { margin: -8px 0 28px; }
.svc-block .frame { position: sticky; top: calc(var(--hd-h) + 16px); }
@media (max-width: 860px) {
  .svc-block { grid-template-columns: 1fr; }
  .svc-block:nth-child(even) .frame { order: 0; }
  .svc-block .frame { position: relative; top: 0; }
}

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.steps li { position: relative; padding: 22px 22px 0 0; border-top: 1px solid var(--ln); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 0.2s); }
.steps.is-in li::before, .no-js .steps li::before { transform: scaleX(1); }
.steps .big { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; line-height: 0.8; font-size: clamp(80px, 10vw, 164px); color: var(--hi); margin-bottom: 26px; }
.steps h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.steps p { color: var(--mut); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Lignes (expertise, valeurs, parcours) */
.rows > li { display: grid; grid-template-columns: 116px minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px 30px; padding: clamp(24px, 3vw, 38px) 0; border-top: 1px solid var(--ln); align-items: baseline; }
.rows > li:last-child { border-bottom: 1px solid var(--ln); }
.rows h3 { font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-size: clamp(28px, 3.4vw, 52px); }
.rows p { color: var(--mut); line-height: 1.6; }
.rows .tags { margin-top: 14px; color: var(--fg); }
.rows .when { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hi); }
@media (max-width: 760px) { .rows > li { grid-template-columns: 1fr; } }

/* Grilles de tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 36px); border-radius: 20px; border: 1px solid var(--ln); background: var(--soft); transition: transform 0.6s var(--ease), border-color 0.4s; }
.plan:hover { transform: translateY(-6px); border-color: var(--fg); }
.plan.is-hot { background: var(--fg); color: var(--bg); --mut: rgba(236, 235, 231, 0.62); --ln: rgba(236, 235, 231, 0.18); }
.t-night .plan.is-hot { --mut: #5f616d; --ln: rgba(39, 45, 82, 0.16); }
.plan.is-hot .btn { background: var(--bg); color: var(--fg); }
.plan.is-hot .btn .arr { background: var(--fg); color: var(--bg); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-size: clamp(32px, 3vw, 44px); }
.plan > p { color: var(--mut); font-size: 15px; min-height: 3em; }
.plan-price { padding-top: 16px; border-top: 1px solid var(--ln); }
.plan-price .label { color: var(--mut); }
.plan-price strong { display: block; margin-top: 6px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-size: clamp(34px, 3.4vw, 52px); white-space: nowrap; }
.plan ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "↗"; color: var(--hi); font-weight: 700; }
.plan.is-hot li::before { color: var(--accent); }
.t-night .plan.is-hot li::before { color: var(--accent-strong); }
.plan .delay { font-size: 13px; color: var(--mut); padding-top: 14px; border-top: 1px solid var(--ln); }
.plan .btn { width: 100%; justify-content: space-between; }
.plan-wide { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 50px; }
.plan-wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 860px) { .plan-wide, .plan-wide ul { grid-template-columns: 1fr; } }
.remises { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-top: 14px; padding: 24px clamp(24px, 2.6vw, 36px); border-radius: 20px; background: var(--accent); color: var(--ink); }
.remises h3 { font-weight: 800; letter-spacing: -0.04em; font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }
.remises p { color: #2d3350; font-size: 14px; margin-top: 4px; }
.remises ul { display: flex; flex-wrap: wrap; gap: 10px; }
.remises li { padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; }

/* FAQ */
.faq details { border-top: 1px solid var(--ln); }
.faq details:last-child { border-bottom: 1px solid var(--ln); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(22px, 2.6vw, 34px) 0; cursor: pointer; list-style: none; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(24px, 3vw, 44px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .round { width: 48px; height: 48px; transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s; }
.faq details[open] summary .round { transform: rotate(45deg); background: var(--fg); color: var(--bg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 0 clamp(24px, 3vw, 36px); max-width: 62ch; color: var(--mut); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; }

/* À propos */
.portrait { position: relative; overflow: hidden; border-radius: 999px 999px 22px 22px; aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 8%; transform: translateY(var(--py, 0px)); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.about-grid .copy p + p { margin-top: 1.1em; }
.about-grid .copy p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--mut); }
.about-grid .copy strong { color: var(--fg); font-weight: 600; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .portrait { max-width: 420px; } }

/* Contact : canaux + formulaire */
.chan li { border-top: 1px solid var(--ln); }
.chan li:last-child { border-bottom: 1px solid var(--ln); }
.chan a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: 20px 0; transition: padding 0.5s var(--ease); }
.chan a:hover { padding-left: 12px; padding-right: 12px; }
.chan .label { color: var(--mut); }
.chan strong { grid-column: 1; font-weight: 700; letter-spacing: -0.04em; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.chan .round { grid-row: 1 / 3; grid-column: 2; width: 50px; height: 50px; }
.chan a:hover .round { background: var(--fg); color: var(--bg); transform: rotate(-45deg); }
.chan .round { transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s; }

.form { display: flex; flex-direction: column; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.03em; color: var(--fg);
  background: transparent; border: 0; border-bottom: 1px solid var(--ln); border-radius: 0; padding: 8px 0 12px; outline: none;
  transition: border-color 0.3s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.35; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: var(--mut); opacity: 0.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--fg); }
.field [aria-invalid="true"] { border-bottom-color: #c0392b; }
.form .fine { font-size: 13px; color: var(--mut); }
.form .fine a { text-decoration: underline; text-underline-offset: 2px; }
.form .btn { align-self: flex-start; }
.form-status { font-size: 15px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1c6b41; }
.form-status.err { color: #a3261a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 404 */
.e404 { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hd-h) + 30px) 0 60px; }
@media (max-width: 700px) { .hide-sm { display: none !important; } }
.remises li span:first-child { font-weight: 800; }
.remises li span + span { opacity: 0.7; }
/* Mots en italique dans les titres ajustés : interlettrage normal de la police à empattements */
.fit-line .ln.out { letter-spacing: -0.015em; padding-bottom: 0.12em; } /* place pour les jambages (g, p, j) de l’italique */
@media (max-width: 700px) { .mailpill { border-radius: 28px; } }

/* ---- Pages légales ---- */
/* CGV, mentions légales, confidentialité : sommaire collant à gauche (grand écran), articles numérotés à droite, colonne de lecture d'environ 70 caractères. */
.lg-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lg-intro .chip { height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; text-transform: none; letter-spacing: 0.01em; font-size: 13px; }
.lg-intro .lead { max-width: 58ch; }

.lg { padding: 0 0 clamp(96px, 12vw, 180px); }
.lg-grid { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.lg-side {
  position: sticky; top: calc(var(--hd-h) + 20px);
  display: flex; flex-direction: column; gap: 28px;
  max-height: calc(100vh - var(--hd-h) - 40px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; /* place pour le contour de focus */
}

/* Sommaire */
.lg-toc > .label { color: var(--mut); padding-bottom: 14px; }
.lg-toc ol { border-top: 1px solid var(--ln); }
.lg-toc li { border-bottom: 1px solid var(--ln); }
.lg-toc a {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 10px 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3;
  color: var(--mut); transition: padding 0.5s var(--ease), color 0.3s;
}
.lg-toc a .num { font-size: 12px; }
.lg-toc a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--hi); transform: scale(0); transition: transform 0.4s var(--ease); }
.lg-toc a:hover, .lg-toc a:focus-visible, .lg-toc a.is-on { color: var(--fg); padding-left: 16px; }
.lg-toc a.is-on::before { transform: none; }

/* Encart « Une question ? » */
.lg-help { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border-radius: 20px; }
.lg-help .label { color: var(--mut); }
.lg-help-t { font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; font-size: 26px; }
.lg-help p:not([class]) { font-size: 14px; line-height: 1.6; color: var(--mut); }
.lg-help .link-u { margin-top: 6px; text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Articles */
.lg-body { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 120px); min-width: 0; }
.lg-art { scroll-margin-top: 24px; }
.lg-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; margin-top: clamp(22px, 2.6vw, 34px); }
.lg-h { font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; font-size: clamp(32px, 3.6vw, 56px); max-width: 17ch; text-wrap: balance; }
.lg-big { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; line-height: 0.78; font-size: clamp(64px, 8vw, 128px); color: var(--hi); opacity: 0.5; font-variant-numeric: tabular-nums; user-select: none; }

/* Texte de lecture */
.lg-txt {
  max-width: 62ch; margin-top: clamp(26px, 3vw, 40px);
  font-size: clamp(16px, 1.25vw, 18px); line-height: 1.7;
  color: var(--fg); color: color-mix(in srgb, var(--fg) 84%, var(--bg));
  overflow-wrap: break-word;
}
.lg-txt > * + * { margin-top: 1.05em; }
.lg-txt h3 {
  display: flex; align-items: center; gap: 12px; margin-top: 2.3em;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.35; color: var(--fg);
}
.lg-txt h3::before { content: ""; flex-shrink: 0; width: 18px; height: 1px; background: var(--hi); }
.lg-txt > h3:first-child { margin-top: 0; }
.lg-txt h3 + * { margin-top: 0.75em; }
.lg-txt strong { color: var(--fg); font-weight: 600; }
.lg-txt a { color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--hi); transition: color 0.3s; }
.lg-txt a:hover { color: var(--hi); }
.lg-txt code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; padding: 0.12em 0.45em; border-radius: 6px; background: var(--soft); color: var(--fg); white-space: nowrap; }
.lg-txt mark { background: var(--accent); color: var(--ink); padding: 0.05em 0.4em; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lg-list li { position: relative; padding-left: 28px; }
.lg-list li + li { margin-top: 0.65em; }
.lg-list li::before { content: "↗"; position: absolute; left: 0; top: 0; color: var(--hi); font-weight: 700; }

/* Fiches « libellé / valeur » (éditeur, hébergeur, responsable…) */
.lg-dl { border-top: 1px solid var(--ln); }
.lg-dl > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 4px 28px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--ln); }
.lg-dl dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.45; color: var(--mut); }
.lg-dl dd { color: var(--fg); }
.lg-box { padding: 18px 22px; border-radius: 14px; background: var(--soft); border: 1px solid var(--ln); font-size: 0.94em; }
.lg-box .lg-dl, .lg-box .lg-dl > div { border: 0; padding: 0; }

/* Tableaux éventuels : défilement horizontal dans leur cadre sur petit écran */
.lg-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ln); border-radius: 14px; }
.lg-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.94em; }
.lg-table th, .lg-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ln); }
.lg-table th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); background: var(--soft); }
.lg-table tr:last-child td { border-bottom: 0; }

@media (max-width: 1060px) {
  /* Le sommaire passe au-dessus des articles, l'encart « Une question ? » en dessous */
  .lg-grid { display: flex; flex-direction: column; align-items: stretch; gap: clamp(56px, 8vw, 80px); }
  .lg-side { display: contents; }
  .lg-toc { order: 0; }
  .lg-body { order: 1; }
  .lg-help { order: 2; width: 100%; max-width: 560px; }
  .lg-toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 48px); border-top: 0; }
  .lg-toc li:nth-child(-n + 2) { border-top: 1px solid var(--ln); }
}
@media (max-width: 640px) {
  .lg-toc ol { grid-template-columns: 1fr; }
  .lg-toc li:nth-child(2) { border-top: 0; }
  .lg-dl > div { grid-template-columns: 1fr; }
  .lg-head { gap: 16px; }
  .lg-box { padding: 16px 18px; }
}

/* ---- Sections sable et bleu-gris (répartition des trois couleurs de la charte) ---- */
.t-sand .btn::before { background: var(--paper); }
.t-sand .svc::before { background: var(--ink); }
.t-sand .svc:hover .svc-link, .t-sand .svc:focus-within .svc-link,
.t-sand .svc:hover .svc-desc, .t-sand .svc:focus-within .svc-desc,
.t-sand .svc:hover .svc-num, .t-sand .svc:focus-within .svc-num { color: var(--paper); }
.t-accent .plan.is-hot, .t-sand .plan.is-hot { --mut: rgba(236, 235, 231, 0.72); --ln: rgba(236, 235, 231, 0.2); }
.t-accent .plan.is-hot li::before, .t-sand .plan.is-hot li::before { color: var(--accent); }
.t-accent .notice, .t-sand .notice { background: rgba(255, 255, 255, 0.28); }

/* Animations au défilement en CSS pur, calculées par le navigateur (aucun JavaScript, donc parfaitement fluides) : Chrome, Edge, Safari récents. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Visuels : ils se dévoilent en entrant dans l'écran, puis l'image recule doucement */
    .frame, .portrait, .proj-media { animation: jd-devoile linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; view-timeline: --cadre; }
    /* (le cadre coupe ce qui dépasse : l'image suit donc la position du cadre, pas la sienne) */
    .frame img, .portrait img { animation: jd-recul linear both; animation-timeline: --cadre; animation-range: entry 0% exit 100%; }
    /* Formules de prix, étapes de la méthode : montée légère, décalée d'une carte à l'autre */
    .plan, .steps li { animation: jd-monte linear both; animation-timeline: view(); animation-range: entry 5% entry 95%; }
    .plan:nth-child(2), .steps li:nth-child(2) { animation-range: entry 12% entry 100%; }
    .plan:nth-child(3), .steps li:nth-child(3) { animation-range: entry 19% cover 30%; }
    /* Grand mot du pied de page : il remonte en s'éclairant */
    .ft-word { animation: jd-mot linear forwards; animation-timeline: view(); animation-range: entry 0% cover 40%; } /* forwards : pas d'état « avant » tant que le mot est sous l'écran */
  }
}
@keyframes jd-devoile { from { scale: 0.92 0.88; } to { scale: 1 1; } }
@keyframes jd-recul { from { scale: 1.12; } to { scale: 1; } }
@keyframes jd-monte { from { translate: 0 48px; scale: 0.97; } to { translate: 0 0; scale: 1; } }
@keyframes jd-mot { from { translate: 0 22%; opacity: 0.25; } to { translate: 0 0; opacity: 1; } }
