/* ==========================================================================
   PCI Mobile — systeme de design v2
   Palette d'origine conservee : or #E5B34C · bleu nuit #2D4456
   Polices auto-hebergees (aucune requete tierce, aucun cookie).
   ========================================================================== */

@font-face {
  font-family: 'Inter var';
  src: url('/fonts/inter-var.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Space Grotesk var';
  src: url('/fonts/space-grotesk-var.woff2') format('woff2-variations');
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  /* couleurs de marque */
  --gold:       #E5B34C;
  --gold-600:   #C9963A;
  --gold-700:   #A87B26;
  --gold-100:   #FCE7BD;
  --gold-50:    #FDF6E8;
  --gold-glow:  rgba(229, 179, 76, .22);

  --navy:       #2D4456;
  --navy-900:   #16242F;
  --navy-800:   #1E3140;
  --navy-700:   #263D4E;
  --navy-400:   #4C5D70;
  --slate:      #7C91BB;

  /* texte & surfaces */
  --ink:        #13212C;
  --body:       #4F5D6B;
  --muted:      #7C8B99;
  --faint:      #9DAAB6;
  --line:       #E3E9EE;
  --line-soft:  #EEF2F6;
  --bg:         #FFFFFF;
  --bg-soft:    #F6F8FA;
  --bg-warm:    #FBF8F2;

  /* etats */
  --ok: #2C7F5B;    --ok-bg: #E8F4EE;
  --warn: #A9700F;  --warn-bg: #FBF2DE;
  --bad: #B24A34;   --bad-bg: #FBEBE7;

  /* rythme : echelle 4 px */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px;

  --sh-xs: 0 1px 2px rgba(19,33,44,.05);
  --sh-sm: 0 2px 6px rgba(19,33,44,.06), 0 1px 2px rgba(19,33,44,.04);
  --sh:    0 10px 30px -8px rgba(19,33,44,.13), 0 2px 6px rgba(19,33,44,.05);
  --sh-lg: 0 28px 64px -16px rgba(19,33,44,.22), 0 4px 12px rgba(19,33,44,.06);
  --ring:  0 0 0 3px var(--gold-glow);

  --wrap: 1160px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --font: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Space Grotesk var', var(--font);

  /* echelle typographique fluide */
  --t-xs:  .78rem;
  --t-sm:  .875rem;
  --t-base: 1rem;
  --t-lg:  clamp(1.06rem, .99rem + .3vw, 1.16rem);
  --t-xl:  clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --t-2xl: clamp(1.45rem, 1.25rem + .95vw, 1.95rem);
  --t-3xl: clamp(1.85rem, 1.45rem + 1.9vw, 2.85rem);
  --t-4xl: clamp(2.25rem, 1.6rem + 3.1vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  font-feature-settings: 'cv02','cv03','cv04','ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.022em;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); font-weight: 700; }
h2 { font-size: var(--t-3xl); font-weight: 700; }
h3 { font-size: var(--t-xl);  font-weight: 600; letter-spacing: -.012em; }
h4 { font-size: var(--t-base); font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--gold-700); }
strong, b { font-weight: 600; color: var(--ink); }
img, svg, video { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
code {
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  font-size: .875em; background: var(--bg-soft); padding: .15em .45em;
  border-radius: var(--r-xs); color: var(--ink); border: 1px solid var(--line-soft);
}
sup { font-size: .68em; }

:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; border-radius: var(--r-xs); }
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--gold-100); color: var(--navy-900); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r) 0;
  font-weight: 600; font-size: var(--t-sm);
}
.skip:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------- structure -------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s5); }
.wrap-sm { max-width: 780px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.soft { background: var(--bg-soft); }
.warm { background: var(--bg-warm); }
.dark { background: var(--navy-900); color: #A9BAC7; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark strong, .dark b { color: #fff; }
.dark a { color: var(--gold-100); }
.dark a:hover { color: var(--gold); }
.dark code { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--gold-100); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold-700);
  margin-bottom: var(--s3);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.dark .eyebrow { color: var(--gold); }
.center .eyebrow::before { display: none; }

.lead { font-size: var(--t-lg); color: var(--body); max-width: 60ch; }
.dark .lead { color: #A9BAC7; }

.head { max-width: 720px; margin-bottom: var(--s7); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }
.head > :last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--s5); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-split { grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.stack { display: flex; flex-direction: column; gap: var(--s4); }

/* mises en page a deux colonnes (tunnels, contact, pages editoriales) */
.layout-app    { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: var(--s7); align-items: start; }
.layout-form   { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: var(--s7); align-items: start; }
.layout-doc    { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: var(--s7); align-items: start; }

/* --------------------------------- boutons -------------------------------- */

.btn {
  --btn-bg: var(--gold); --btn-fg: var(--navy-900); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--display); font-size: var(--t-sm); font-weight: 600; letter-spacing: -.005em;
  padding: 13px 24px; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn-primary { box-shadow: 0 3px 12px -2px var(--gold-glow); }
.btn-primary:hover { --btn-bg: var(--gold-600); --btn-fg: #fff; box-shadow: 0 10px 24px -6px var(--gold-glow); }
.btn-dark { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--navy-900); --btn-fg: #fff; box-shadow: var(--sh); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bd: var(--navy-400); --btn-bg: var(--bg-soft); --btn-fg: var(--navy); }
.btn-light { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.24); }
.btn-light:hover { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-bd: #fff; }
.btn-sm { padding: 8px 15px; font-size: var(--t-xs); border-radius: var(--r-xs); }
.btn-lg { padding: 16px 30px; font-size: var(--t-base); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btns.center { justify-content: center; }

/* ------------------------------- navigation ------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 200; height: var(--nav-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav.stuck { border-bottom-color: var(--line-soft); box-shadow: var(--sh-xs); }
.nav-in { display: flex; align-items: center; gap: var(--s5); height: 100%; }

.brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--display);
         font-weight: 700; font-size: 1.1rem; color: var(--navy-900); letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--navy-900); }
.brand img { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--gold-600); font-weight: 700; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: var(--r-xs); font-size: var(--t-sm);
  font-weight: 500; color: var(--navy-400); position: relative;
}
.nav-links a:hover { color: var(--navy-900); background: var(--bg-soft); }
.nav-links a[aria-current='page'] { color: var(--navy-900); font-weight: 600; }
.nav-links a[aria-current='page']::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta { display: flex; gap: var(--s2); align-items: center; flex: none; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--r-xs);
  padding: 7px; cursor: pointer; color: var(--navy); margin-left: auto;
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
  position: relative; overflow: clip; isolation: isolate;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, #35505F 100%);
  color: #AFC0CD; padding-block: clamp(52px, 7vw, 88px) clamp(60px, 8vw, 100px);
}
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(760px 520px at 88% -8%, var(--gold-glow), transparent 68%),
    radial-gradient(560px 420px at 8% 108%, rgba(124,145,187,.16), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 68% 22%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 78% 62% at 68% 22%, #000 20%, transparent 78%);
}
.hero-in { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--s4); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: #A9BAC7; }

.pill {
  display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 14px 6px 6px;
  background: rgba(229,179,76,.1); border: 1px solid rgba(229,179,76,.26);
  border-radius: 100px; font-size: var(--t-xs); font-weight: 500; color: var(--gold-100);
  margin-bottom: var(--s4);
}
.pill b { background: var(--gold); color: var(--navy-900); font-size: .68rem; font-weight: 700;
          padding: 3px 9px; border-radius: 100px; letter-spacing: .04em; }

.stats { display: flex; gap: clamp(20px, 4vw, 40px); margin-top: var(--s6);
         padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; color: #fff;
          line-height: 1; margin-bottom: 5px; letter-spacing: -.02em; }
.stat span { font-size: var(--t-xs); color: #90A5B5; }

.hero-panel { background: #fff; border-radius: var(--r-xl); padding: var(--s5);
              box-shadow: var(--sh-lg); color: var(--body); }
.hero-panel h2 { font-size: var(--t-lg); margin-bottom: 2px; }
.hero-panel > p { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s4); }

/* --------------------------------- cartes --------------------------------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s5); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: var(--s2); }
a.card:hover, .card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #D6DFE6; }
.dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); }

.ico {
  width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-100), var(--gold-50));
  color: var(--navy); margin-bottom: var(--s4); flex: none;
}
.ico svg { width: 23px; height: 23px; }
.ico.navy { background: linear-gradient(150deg, var(--navy), var(--navy-700)); color: var(--gold); }
.dark .ico { background: rgba(229,179,76,.12); color: var(--gold); }

/* categories d'appareils */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s3); }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center;
  padding: var(--s5) var(--s3); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); transition: all .2s var(--ease); color: var(--ink);
}
.cat:hover { border-color: var(--gold); background: var(--gold-50); transform: translateY(-3px); box-shadow: var(--sh-sm); color: var(--ink); }
.cat svg { width: 30px; height: 30px; color: var(--navy-400); stroke-width: 1.5; transition: color .2s var(--ease); }
.cat:hover svg { color: var(--gold-700); }
.cat b { font-family: var(--display); font-weight: 600; font-size: var(--t-sm); }
.cat span { font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }

/* nuage de prestations */
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); }
.tag {
  padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  font-size: var(--t-sm); color: var(--navy-400); transition: all .18s var(--ease);
}
a.tag:hover { border-color: var(--gold); color: var(--navy-900); background: var(--gold-50); }

/* etapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s6); counter-reset: st; }
.step { position: relative; }
.step::before {
  counter-increment: st; content: counter(st, decimal-leading-zero);
  font-family: var(--display); font-size: 2.4rem; font-weight: 700;
  color: var(--gold); opacity: .3; line-height: 1; display: block; margin-bottom: var(--s3);
}
.step h3 { margin-bottom: 5px; }
.step p { font-size: var(--t-sm); }

/* reassurance */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s5); }
.trust-item { display: flex; gap: var(--s3); align-items: flex-start; }
.trust-item svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.trust-item b { display: block; font-family: var(--display); font-size: var(--t-sm); color: var(--ink); margin-bottom: 1px; }
.trust-item span { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; display: block; }
.dark .trust-item b { color: #fff; }
.dark .trust-item span { color: #8DA1B0; }

/* agences */
.agency { display: flex; flex-direction: column; height: 100%; }
.agency-kicker { font-size: var(--t-xs); font-weight: 600; letter-spacing: .1em;
                 text-transform: uppercase; color: var(--gold-700); display: block; margin-bottom: 3px; }
.agency-city { font-family: var(--display); font-size: var(--t-xl); font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.agency address { font-style: normal; font-size: var(--t-sm); color: var(--body); margin: var(--s3) 0 var(--s4); }
.hours { font-size: var(--t-xs); color: var(--muted); border-top: 1px solid var(--line-soft);
         padding-top: var(--s3); margin-top: auto; }
.hours div { display: flex; justify-content: space-between; gap: var(--s3); padding: 2px 0; }
.hours b { color: var(--ink); font-weight: 500; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; gap: var(--s4); cursor: pointer; list-style: none;
  padding: var(--s4) 0; font-family: var(--display); font-weight: 600; font-size: var(--t-base);
  color: var(--ink); transition: color .16s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 11px; height: 11px; margin-left: auto; flex: none;
  border-right: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .22s var(--ease);
}
.faq details[open] summary { color: var(--gold-700); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px,-2px); }
.faq summary:hover { color: var(--gold-700); }
.faq .answer { padding: 0 0 var(--s5); font-size: var(--t-sm); max-width: 72ch; }
.faq .answer > :last-child { margin-bottom: 0; }

/* citations / avis */
.quote { border-left: 3px solid var(--gold); padding-left: var(--s4); }
.quote p { font-family: var(--display); font-size: var(--t-lg); color: var(--ink); line-height: 1.45; }
.quote cite { font-style: normal; font-size: var(--t-xs); color: var(--muted); }

/* ---------------------------------- forms --------------------------------- */

.field { margin-bottom: var(--s4); }
.field:last-child { margin-bottom: 0; }
.field label, .lbl { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--muted); }

.input, .select, .textarea {
  width: 100%; font-family: var(--font); font-size: var(--t-sm); color: var(--ink);
  padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: #CFDAE3; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: var(--ring); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input[aria-invalid='true'] { border-color: var(--bad); }
.textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%232D4456' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select:disabled { background-color: var(--bg-soft); color: var(--faint); cursor: not-allowed; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }

.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer;
         font-size: var(--t-sm); color: var(--body); line-height: 1.55; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold-600); flex: none; cursor: pointer; }

.help { font-size: var(--t-xs); color: var(--muted); margin-top: 6px; line-height: 1.55; }
.help a { text-decoration: underline; text-underline-offset: 2px; }

.alert { font-size: var(--t-sm); padding: 12px 15px; border-radius: var(--r-sm); border: 1px solid; margin-bottom: var(--s4); }
.alert-bad { display: none; background: var(--bad-bg); color: var(--bad); border-color: rgba(178,74,52,.22); }
.alert-bad.show { display: block; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(44,127,91,.22); }

.note { background: var(--gold-50); border: 1px solid var(--gold-100); border-left: 3px solid var(--gold);
        border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: var(--s4) var(--s5);
        font-size: var(--t-sm); line-height: 1.65; }
.note > :last-child { margin-bottom: 0; }

/* -------------------------------- tunnels --------------------------------- */

.stepper { display: flex; align-items: center; margin-bottom: var(--s6); }
.stepper-item { display: flex; align-items: center; gap: var(--s2); flex: 1; min-width: 0; }
.stepper-item:last-child { flex: none; }
.dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg-soft); border: 1.5px solid var(--line); color: var(--muted);
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600; transition: all .25s var(--ease);
}
.stepper-item > span:nth-child(2) { font-size: var(--t-sm); font-weight: 500; color: var(--muted); white-space: nowrap; }
.bar { flex: 1; height: 2px; background: var(--line); margin: 0 var(--s3); border-radius: 2px; transition: background .3s var(--ease); min-width: 12px; }
.stepper-item.active .dot { background: var(--gold); border-color: var(--gold); color: var(--navy-900); box-shadow: 0 0 0 4px var(--gold-glow); }
.stepper-item.active > span:nth-child(2) { color: var(--ink); font-weight: 600; }
.stepper-item.done .dot { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper-item.done .bar { background: var(--navy); }

.pane { display: none; }
.pane.on { display: block; animation: rise .3s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px,1fr)); gap: var(--s2); }
.choices.compact { grid-template-columns: repeat(auto-fit, minmax(92px,1fr)); }
.choices.compact .choice { padding: var(--s3) 6px; font-size: var(--t-xs); gap: 6px; }
.choices.list { grid-template-columns: repeat(auto-fill, minmax(196px,1fr)); }
.choice {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center;
  padding: var(--s4) var(--s3); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  cursor: pointer; transition: all .16s var(--ease); font-family: var(--font);
  font-size: var(--t-sm); font-weight: 500; color: var(--ink);
}
.choice svg { width: 26px; height: 26px; color: var(--navy-400); stroke-width: 1.5; }
.choice:hover { border-color: var(--gold); background: var(--gold-50); }
.choice[aria-pressed='true'], .choice.on { border-color: var(--gold); background: var(--gold-50); box-shadow: inset 0 0 0 1px var(--gold); }
.choice[aria-pressed='true'] svg, .choice.on svg { color: var(--gold-700); }
.choices.list .choice { flex-direction: row; justify-content: flex-start; text-align: left; padding: 11px 14px; }

.opts { display: grid; gap: var(--s2); }
.opt {
  display: flex; align-items: center; gap: var(--s3); padding: 13px 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r);
  cursor: pointer; transition: all .16s var(--ease);
}
.opt:hover { border-color: var(--gold); background: var(--gold-50); }
.opt:has(input:checked) { border-color: var(--gold); background: var(--gold-50); box-shadow: inset 0 0 0 1px var(--gold); }
.opt input { width: 18px; height: 18px; accent-color: var(--gold-600); flex: none; cursor: pointer; }
.opt-txt { flex: 1; min-width: 0; }
.opt-txt b { display: block; font-family: var(--display); font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.opt-txt span { font-size: var(--t-xs); color: var(--muted); line-height: 1.45; display: block; }
.opt-price { font-family: var(--display); font-weight: 700; font-size: var(--t-sm); color: var(--navy); white-space: nowrap; text-align: right; }
.opt-price small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); }

/* recapitulatif */
.summary { position: sticky; top: calc(var(--nav-h) + 20px);
           background: var(--navy-900); color: #A9BAC7; border-radius: var(--r-lg); padding: var(--s5); }
.summary h2 { color: #fff; font-size: var(--t-base); margin-bottom: var(--s4); }
.kv { display: flex; justify-content: space-between; gap: var(--s3); padding: 7px 0;
      font-size: var(--t-sm); border-bottom: 1px solid rgba(255,255,255,.07); }
.kv:last-child { border-bottom: 0; }
.kv span { color: #8DA1B0; }
.kv b { color: #fff; font-weight: 600; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline;
         margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.14); }
.total span { font-size: var(--t-sm); color: #8DA1B0; }
.total b { font-family: var(--display); font-size: 1.5rem; color: var(--gold); letter-spacing: -.02em; }
.summary .fine { font-size: var(--t-xs); color: #7C8FA0; margin-top: var(--s3); line-height: 1.5; }

/* variante claire du bloc cle/valeur */
.kv-light { border-color: var(--line-soft); }
.kv-light span { color: var(--muted); }
.kv-light b { color: var(--ink); }

/* creneaux */
.days { display: flex; gap: var(--s2); overflow-x: auto; padding: 3px 2px var(--s3);
        scrollbar-width: thin; scroll-snap-type: x proximity; }
.day {
  flex: none; width: 76px; padding: 11px 5px; text-align: center; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
  transition: all .16s var(--ease); scroll-snap-align: start; font-family: var(--font);
}
.day small { display: block; font-size: .68rem; color: var(--muted); text-transform: capitalize; }
.day b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.day i { display: block; font-style: normal; font-size: .65rem; color: var(--muted); }
.day .free { color: var(--ok); font-weight: 600; }
.day:hover:not(:disabled) { border-color: var(--gold); }
.day[aria-pressed='true'] { border-color: var(--gold); background: var(--gold); }
.day[aria-pressed='true'] small, .day[aria-pressed='true'] b,
.day[aria-pressed='true'] i, .day[aria-pressed='true'] .free { color: var(--navy-900); }
.day:disabled { opacity: .4; cursor: not-allowed; background: var(--bg-soft); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr)); gap: var(--s2); }
.slot {
  padding: 11px 4px; text-align: center; font-family: var(--display); font-weight: 600;
  font-size: var(--t-sm); background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-xs); color: var(--ink); cursor: pointer; transition: all .14s var(--ease);
}
.slot:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-50); }
.slot[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; background: var(--bg-soft); }

/* frise de suivi */
.tl { display: grid; }
.tl-i { display: grid; grid-template-columns: 30px 1fr; gap: var(--s4); }
.tl-m { display: grid; grid-template-rows: auto 1fr; justify-items: center; }
.tl-d { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
        background: var(--bg-soft); border: 2px solid var(--line); color: var(--muted);
        font-weight: 700; font-size: .72rem; }
.tl-b { width: 2px; flex: 1; background: var(--line); min-height: 20px; }
.tl-i:last-child .tl-b { display: none; }
.tl-t { padding-bottom: var(--s5); }
.tl-t b { display: block; font-family: var(--display); color: var(--muted); font-size: var(--t-sm); }
.tl-t span { font-size: var(--t-xs); color: var(--muted); }
.tl-i.done .tl-d { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl-i.done .tl-b { background: var(--navy); }
.tl-i.done .tl-t b { color: var(--ink); }
.tl-i.now .tl-d { background: var(--gold); border-color: var(--gold); color: var(--navy-900); box-shadow: 0 0 0 4px var(--gold-glow); }
.tl-i.now .tl-t b { color: var(--ink); }

/* etats */
.empty { text-align: center; padding: var(--s7) var(--s5); color: var(--muted); font-size: var(--t-sm); }
.spin { width: 20px; height: 20px; border: 2.5px solid var(--line); border-top-color: var(--gold);
        border-radius: 50%; animation: sp .65s linear infinite; margin: var(--s5) auto; }
@keyframes sp { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
         border-radius: 100px; font-size: var(--t-xs); font-weight: 600; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); }
.b-navy { background: #E7EDF2; color: var(--navy); }
.b-gold { background: var(--gold-100); color: var(--gold-700); }

/* fil d'ariane */
.crumbs { font-size: var(--t-xs); color: var(--muted); padding-top: var(--s5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: '›'; margin-left: 6px; color: var(--faint); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-700); }

/* ---------------------------------- footer -------------------------------- */

.footer { background: var(--navy-900); color: #8DA1B0; padding: var(--s8) 0 var(--s5); font-size: var(--t-sm); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6);
              padding-bottom: var(--s6); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h2 { color: #fff; font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
             margin-bottom: var(--s3); font-weight: 600; }
.footer nav a { color: #8DA1B0; display: block; padding: 4px 0; font-size: var(--t-sm); }
.footer nav a:hover { color: var(--gold); }
.footer .brand { color: #fff; margin-bottom: var(--s3); }
.footer .brand b { color: var(--gold); }
.footer-end { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap;
              padding-top: var(--s5); font-size: var(--t-xs); color: #6D8194; }
.footer-end a { color: #6D8194; display: inline; }
.footer-end nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
.footer-end nav a { display: inline; padding: 0; }

/* barre d'action mobile */
.dock {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: var(--s2);
}
.dock .btn { flex: 1; }

/* prose (pages editoriales) */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--t-2xl); margin-top: 1.8em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.15em; margin-bottom: 1.15em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-600); }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--gold); }

/* apparition au defilement */
.js .rise { opacity: 0; transform: translateY(10px); }
.js .rise.seen { opacity: 1; transform: none; transition: opacity .38s var(--ease-out), transform .38s var(--ease-out); }

/* ------------------------------- responsive ------------------------------- */

@media (max-width: 1000px) {
  .hero-in, .g-split { grid-template-columns: 1fr; }
  .g4, .trust, .cats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3, .steps, .footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; inset: var(--nav-h) 0 auto 0;
    background: #fff; padding: var(--s3); gap: 2px; box-shadow: var(--sh); border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 11px 14px; font-size: var(--t-base); }
  .nav-links a[aria-current='page']::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .summary { position: static; }
  .layout-app, .layout-form, .layout-doc { grid-template-columns: minmax(0,1fr); gap: var(--s6); }
  .layout-doc > nav { position: static !important; }
  .layout-app .summary { order: -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wrap { padding-inline: var(--s4); }
  .g2, .g3, .g4, .steps, .trust, .row2, .footer-top { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card { padding: var(--s4); }
  .stepper-item > span:nth-child(2) { display: none; }
  .bar { margin: 0 6px; }
  .btns .btn { flex: 1 1 auto; }
  .dock { display: flex; }
  body { padding-bottom: 68px; }
  .footer { padding-bottom: 80px; }
  .nav-cta .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}

@media print {
  .nav, .footer, .dock, .btn, .summary, .crumbs { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .section { padding-block: 12pt; }
  a::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
