/* ==========================================================================
   SnapCase — feuille de styles principale
   Palette : encre noire (identité) + accent "paint splash" (habillage machine)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0a0a0d;
  --ink-soft: #16161c;
  --ink-70: #3d3d48;
  --ink-50: #6b6b78;
  --ink-30: #a3a3ae;
  --line: #e5e5ea;
  --line-strong: #d2d2da;
  --paper: #ffffff;
  --paper-warm: #f7f6f4;
  --paper-tint: #f2f1ee;

  --accent: #ff2d6f;
  --accent-2: #ff7a18;
  --accent-3: #14c8ff;
  --grad: linear-gradient(100deg, #ff2d6f 0%, #ff7a18 55%, #ffc300 100%);
  --grad-cool: linear-gradient(100deg, #14c8ff 0%, #7b5cff 60%, #ff2d6f 100%);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;

  --shadow-s: 0 1px 2px rgba(10, 10, 13, .06), 0 4px 14px rgba(10, 10, 13, .05);
  --shadow: 0 2px 6px rgba(10, 10, 13, .06), 0 18px 44px rgba(10, 10, 13, .09);
  --shadow-l: 0 30px 80px rgba(10, 10, 13, .18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 74px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-70);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.15rem); }
h2 { font-size: clamp(1.95rem, 3.9vw, 2.95rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.02rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 650; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

section { position: relative; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding: clamp(52px, 6vw, 84px) 0; }

.section--dark {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
}
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong { color: #fff; }

.section--warm { background: var(--paper-warm); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr .85fr; }

.stack-s > * + * { margin-top: 10px; }

/* ---------- 4. Éléments d'écriture ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.section--dark .eyebrow { color: rgba(255, 255, 255, .55); }

.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-70);
}
.section--dark .lead { color: rgba(255, 255, 255, .74); }
/* Le bandeau CTA porte son propre fond noir sans passer par .section--dark :
   sans cette règle, .lead resterait en gris foncé, illisible. Contraste poussé
   plus haut que dans les sections sombres, car c'est l'appel à l'action final. */
.cta-band .lead { color: rgba(255, 255, 255, .92); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }

.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.underline-mark {
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 100% 32%;
  background-position: 0 88%;
  padding: 0 .06em;
}

/* ---------- 5. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-s);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(10, 10, 13, .26); }

.btn--accent {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 45, 111, .3);
}
.btn--accent:hover { box-shadow: 0 14px 34px rgba(255, 45, 111, .4); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-warm); }

/* Le bandeau CTA a son propre fond noir sans passer par .section--dark :
   il doit hériter des mêmes variantes claires, sinon le texte devient invisible. */
.section--dark .btn--ghost,
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.section--dark .btn--ghost:hover,
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

.btn--light { background: #fff; color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: .89rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: gap .18s ease, border-color .18s ease;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .93);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: auto; height: 32px; object-fit: contain; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 550;
  color: var(--ink-70);
  transition: color .16s ease, background-color .16s ease;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-tint); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 650; }

.nav__cta { display: flex; gap: 10px; align-items: center; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 460px; height: 460px;
  top: -160px; right: -110px;
  background: radial-gradient(circle, #ff2d6f, transparent 68%);
}
.hero::after {
  width: 420px; height: 420px;
  bottom: -190px; left: -140px;
  background: radial-gradient(circle, #14c8ff, transparent 68%);
}
.hero > * { position: relative; z-index: 1; }

.hero__intro { max-width: 800px; }

.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 54ch; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: .82rem;
  font-weight: 550;
  color: var(--ink-70);
  margin-bottom: 26px;
  box-shadow: var(--shadow-s);
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #16c76a;
  box-shadow: 0 0 0 4px rgba(22, 199, 106, .16);
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: .84rem;
  line-height: 1.35;
  color: var(--ink-70);
}
.float-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.42rem;
  color: var(--ink);
  letter-spacing: -.03em;
}
.float-card--tl { top: 8%; left: -22px; }
.float-card--br { bottom: 9%; right: -18px; }

/* ---------- 7 bis. Vitrine du hero : parcours + visuel principal ---------- */
/* Hauteur réservée aux légendes. Identique pour les 4 étapes et le visuel
   principal : c'est ce qui garantit que les bas de photos et les lignes de
   texte tombent exactement au même niveau dans les deux colonnes. */
:root { --caption-h: 62px; }

.hero__showcase {
  display: grid;
  grid-template-columns: 1fr 1.12fr;   /* le visuel principal domine */
  gap: clamp(20px, 2.8vw, 40px);
  align-items: stretch;
  margin-top: clamp(38px, 4.5vw, 58px);
}

/* La colonne du visuel principal se cale sur la hauteur de la colonne des
   étapes : la légende se pose en bas, la photo occupe tout le reste. */
.hero__main {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.hero__main-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-tint);
  box-shadow: var(--shadow-l);
}
.hero__main-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process__title {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 16px;
}

.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}

.process__step { margin: 0; }

.process__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-tint);
  box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s ease;
}
.process__step:hover .process__media {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.process__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process__n {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(10, 10, 13, .3);
}

.process__step figcaption,
.hero__main figcaption {
  margin-top: 10px;
  min-height: var(--caption-h);
  font-size: .85rem;
  line-height: 1.4;
  color: var(--ink-70);
}
.process__step figcaption b,
.hero__main figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 650;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ---------- 9. Cartes ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

.section--dark .card {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(255, 255, 255, .1);
}
.section--dark .card--hover:hover { border-color: rgba(255, 255, 255, .28); }
.section--dark .card p { color: rgba(255, 255, 255, .68); }

.icon-tile {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--paper-tint);
  margin-bottom: 18px;
  font-size: 1.3rem;
}
/* Fond teinté plutôt que dégradé plein : l'emoji reste lisible. */
.icon-tile--accent {
  background: linear-gradient(135deg, rgba(255, 45, 111, .16), rgba(255, 122, 24, .18));
  box-shadow: inset 0 0 0 1px rgba(255, 45, 111, .22);
}
.section--dark .icon-tile { background: rgba(255, 255, 255, .09); }

/* Cartes des deux offres */
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease;
}
.offer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad);
}
.offer--alt::before { background: var(--grad-cool); }
.offer:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.offer__tag {
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 12px;
}
.offer h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 12px; }
.offer .btn { margin-top: auto; align-self: flex-start; }
.offer ul { margin: 20px 0 26px; }

/* ---------- 10. Listes ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: .97rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .18em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.6l4.6 4.6L19 7.4'/%3E%3C/svg%3E") center/70% no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.6l4.6 4.6L19 7.4'/%3E%3C/svg%3E") center/70% no-repeat;
}
.ticks--plain li::before { background: var(--ink); }

.crosses { list-style: none; margin: 0; padding: 0; }
.crosses li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: .97rem;
  color: var(--ink-50);
}
.crosses li::before {
  content: "—";
  position: absolute;
  left: 4px; top: -.06em;
  color: var(--ink-30);
  font-weight: 700;
}

/* ---------- 11. Étapes ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  counter-reset: step;
}
.step { position: relative; padding-top: 26px; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
}
.step:first-child::before { background: var(--grad); }
.step__n {
  counter-increment: step;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-30);
  margin-bottom: 10px;
  display: block;
}
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .94rem; }
.section--dark .step::before { background: rgba(255, 255, 255, .16); }
.section--dark .step:first-child::before { background: var(--grad); }
.section--dark .step__n { color: rgba(255, 255, 255, .45); }

/* Deux médias verticaux côte à côte : la vidéo d'impression puis le kakémono. */
.concept__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  justify-content: center;
  max-width: 720px;
  margin: clamp(52px, 6vw, 84px) auto 0;
}

.concept__kakemono {
  margin: 0;
  text-align: center;
}
.concept__kakemono img,
.concept__kakemono video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-tint);
  box-shadow: var(--shadow-l);
}
.concept__kakemono figcaption {
  margin-top: 12px;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--ink-70);
}

/* ---------- Façade vidéo YouTube (chargement au clic) ---------- */
.ytfacade {
  max-width: 340px;
  margin-inline: auto;
  text-align: center;
}
.ytfacade__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--paper-tint);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-l);
}
.ytfacade__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.ytfacade__btn:hover img { transform: scale(1.04); }

.ytfacade__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(10, 10, 13, .4);
  transition: transform .2s ease;
}
.ytfacade__play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 21px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.ytfacade__btn:hover .ytfacade__play { transform: scale(1.09); }

.ytfacade iframe {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
/* Timeline verticale */
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: tl; }
.timeline li {
  position: relative;
  padding: 0 0 34px 54px;
  counter-increment: tl;
}
.timeline li::before {
  content: counter(tl);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 700;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 16.5px; top: 38px; bottom: 6px;
  width: 1px;
  background: var(--line-strong);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline h3 { font-size: 1.06rem; margin-bottom: 5px; }
.timeline p { font-size: .95rem; }
.section--dark .timeline li::before { background: #fff; color: var(--ink); }
.section--dark .timeline li::after { background: rgba(255, 255, 255, .18); }

/* ---------- 12. Puces de lieux ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .91rem;
  color: var(--ink-70);
  transition: border-color .18s ease, transform .18s ease;
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.section--dark .chip {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .8);
}
.section--dark .chip:hover { border-color: rgba(255, 255, 255, .5); }

/* ---------- 14. Comparatif ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .95rem;
  background: var(--paper);
}
table.cmp th, table.cmp td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.cmp thead th {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--ink);
  background: var(--paper-warm);
  white-space: nowrap;
}
table.cmp tbody th {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  width: 30%;
}
table.cmp tr:last-child th,
table.cmp tr:last-child td { border-bottom: none; }

/* ---------- 15. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-30);
  transition: transform .22s ease, color .22s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details > div {
  padding: 0 60px 24px 4px;
  font-size: .98rem;
  color: var(--ink-70);
}

/* ---------- 16. Formulaire ---------- */
.form { display: grid; gap: 18px; }

/* Champ piège anti-robots : invisible et hors du parcours clavier. */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink);
}
.field .hint { font-size: .8rem; color: var(--ink-50); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: .98rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--paper);
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 13, .07);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-30); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 15px 17px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; }
.radio-card small { color: var(--ink-50); font-size: .82rem; }
.radio-card:hover { border-color: var(--ink-30); }
.radio-card:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-warm);
  box-shadow: 0 0 0 1px var(--ink);
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .84rem;
  color: var(--ink-50);
  line-height: 1.5;
}
.consent input { margin-top: 3px; accent-color: var(--ink); width: 17px; height: 17px; flex: 0 0 auto; }

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  font-size: .92rem;
  line-height: 1.5;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #e9f8ef; color: #15703f; border: 1px solid #bde5cd; }
.form-status--err { background: #fdecef; color: #9c1c36; border: 1px solid #f6ccd5; }

/* ---------- 17. Encadré CTA ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-l);
  padding: clamp(34px, 4.4vw, 62px);
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -110px; top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, .55), transparent 66%);
  filter: blur(60px);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 17ch; }
.cta-band p { max-width: 52ch; }

/* ---------- 18. Bloc citation / preuve ---------- */
.quote {
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  padding-left: 26px;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-family: var(--font-display);
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section--dark .quote { color: #fff; }
.quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font);
  font-size: .88rem;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-50);
  letter-spacing: 0;
}
.section--dark .quote cite { color: rgba(255, 255, 255, .55); }

/* ---------- 19. Pied de page ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .55);
  padding: clamp(52px, 6vw, 80px) 0 34px;
  font-size: .92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(26px, 3.6vw, 48px);
  padding-bottom: 42px;
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand img { filter: invert(1); }
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { transition: color .16s ease; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem;
  color: rgba(255, 255, 255, .42);
}

/* ---------- 20. Page interne : en-tête ---------- */
.page-head {
  position: relative;
  padding: clamp(52px, 6.5vw, 90px) 0 clamp(38px, 4.5vw, 58px);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -170px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, .3), transparent 66%);
  filter: blur(80px);
}
.page-head > * { position: relative; }
.page-head p { max-width: 62ch; }

/* Page contact : l'en-tête est raccourci pour que le formulaire soit visible
   sans avoir à faire défiler. */
.page-head--compact { padding: clamp(30px, 3.4vw, 48px) 0 clamp(24px, 2.8vw, 36px); }
.page-head--compact h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-head--compact .lead { font-size: clamp(1rem, 1.25vw, 1.08rem); }
.section--form { padding: clamp(36px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); }

.crumbs {
  font-size: .84rem;
  color: var(--ink-50);
  margin-bottom: 20px;
}
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--ink-30); }

/* ---------- 21. Divers ---------- */
.media {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Section « Le distributeur » : la photo se cale sur la hauteur de la colonne
   de texte au lieu d'imposer la sienne, qui la faisait déborder de 290 px. */
.section-distributeur .split { align-items: stretch; }
.section-distributeur .split > div { display: flex; }
.section-distributeur .split > div:last-child { flex-direction: column; justify-content: center; }
.section-distributeur .media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.section-distributeur .media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empilées, les colonnes n'ont plus de hauteur à partager : on rend son
   format à la photo. */
@media (max-width: 860px) {
  .section-distributeur .media { flex: none; aspect-ratio: 9 / 16; }
  .section-distributeur .split > div { display: block; }
}
.note {
  font-size: .84rem;
  color: var(--ink-50);
  line-height: 1.55;
}
.mono-list { list-style: none; margin: 0; padding: 0; }
.mono-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.mono-list li:last-child { border-bottom: none; }
.mono-list b { color: var(--ink); font-weight: 600; text-align: right; }
.section--dark .mono-list li { border-color: rgba(255, 255, 255, .12); }

.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 22. Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1040px) {
  .hero__showcase { grid-template-columns: 1fr 1.05fr; }
  .float-card--tl { left: 0; }
  .float-card--br { right: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 13px 12px; font-size: 1rem; }
  .nav__cta .btn--ghost { display: none; }
  .burger { display: grid; }

  /* Sous 860 px, le visuel principal passe en pleine largeur, au-dessus du parcours.
     Les colonnes étant empilées, plus rien à aligner : on rend leur hauteur naturelle. */
  .hero__showcase { grid-template-columns: 1fr; gap: 32px; }
  .hero__main { order: -1; max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__showcase > div { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero__main-media { flex: none; aspect-ratio: 3 / 4; }
  .process__step figcaption,
  .hero__main figcaption { min-height: 0; }

  .split, .split--wide-left { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .faq details > div { padding-right: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .float-card { position: static; margin-top: 12px; display: inline-block; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }

  /* La barre de navigation doit tenir sur une seule ligne, sans débordement. */
  .nav__inner { gap: 12px; }
  .brand { font-size: 1.02rem; }
  .brand img { height: 27px; }
  .nav__cta .btn {
    width: auto;
    padding: 10px 15px;
    font-size: .83rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
}

@media (max-width: 380px) {
  .nav__cta .btn { display: none; }
}
