/* ==========================================================================
   THE KING365TV — feuille de style unique
   Direction artistique : nuit profonde, halo violet/cyan, angles coupés.
   Aucune police externe, aucune librairie : tout est natif.
   ========================================================================== */

/* --- 1. Jetons de design ------------------------------------------------ */
:root {
  --ink: #05070c;
  --ink-2: #080b12;
  --surface: #0d111b;
  --surface-2: #121826;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edf6;
  --muted: #93a0b8;
  --muted-2: #6f7c95;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --amber: #ffb020;
  --danger: #ff6b6b;
  --ok: #34d399;

  --grad: linear-gradient(100deg, var(--violet), var(--cyan));
  --radius: 14px;
  --notch: 18px;
  --shell: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --sp-section: clamp(3.75rem, 9vw, 7rem);

  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: dark;
}

/* --- 2. Réinitialisation ------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--violet); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- 3. Utilitaires de mise en page ------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }

.section--rule { border-top: 1px solid var(--line); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--violet);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.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;
}

/* Titre d'amorce ("kicker") — signature typographique du site */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--grad);
}

.display {
  font-size: clamp(2.1rem, 6.2vw, 3.9rem);
  letter-spacing: -0.035em;
}

.h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.015em; }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.head--center { margin-inline: auto; text-align: center; }
.head--center .kicker { justify-content: center; }
.head p { margin-top: 1rem; }

/* --- 4. Boutons -------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: transparent;
  background: var(--grad);
  color: #06070d;
  font-weight: 750;
  box-shadow: 0 14px 34px -18px rgba(124, 92, 255, 0.95);
}
.btn--primary:hover { box-shadow: 0 20px 40px -18px rgba(34, 211, 238, 0.85); }

.btn--ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.045); }

.btn--wa {
  border-color: transparent;
  background: #1faa54;
  color: #fff;
  font-weight: 750;
}
.btn--wa:hover { background: #23c161; }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.88rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- 5. Carte à angle coupé (motif récurrent) -------------------------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
}

.notch {
  border-radius: 0;
  clip-path: polygon(
    var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch)
  );
}

/* --- 6. En-tête / navigation ------------------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  flex: none;
}
.logo__mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.logo__txt small {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: -2px;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  padding: 0.5rem 0.72rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 550;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--grad);
}

.site-head__cta { flex: none; }

.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  position: relative;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--text);
  transition: transform 0.22s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem var(--gut) 1.25rem;
  background: var(--ink-2);
}
.drawer[data-open="true"] { display: block; }
.drawer a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
.drawer a[aria-current="page"] { color: var(--text); }
.drawer .btn { margin-top: 1.1rem; }

@media (max-width: 940px) {
  .nav, .site-head__cta { display: none; }
  .burger { display: inline-flex; }
}

/* --- 7. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -35% 30% auto -20%;
  height: 720px;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.3), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -25% auto 45%;
  height: 620px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, 0.17), transparent 72%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { margin-bottom: 1.9rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.hero__meta svg { color: var(--cyan); flex: none; }

/* Maquette d'écrans, 100 % CSS/SVG */
.stage { position: relative; }
.stage__tv {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(160deg, #161d2e, #0a0e18 62%);
  padding: 12px;
  box-shadow: var(--shadow);
}
.stage__screen {
  border-radius: 9px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(124, 92, 255, 0.5), transparent 58%),
    radial-gradient(110% 90% at 88% 96%, rgba(34, 211, 238, 0.42), transparent 55%),
    #070a12;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 14px;
}
.stage__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stage__tiles i {
  display: block;
  height: 42px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.stage__tiles i:nth-child(2) { background: rgba(124, 92, 255, 0.35); }
.stage__tiles i:nth-child(4) { background: rgba(34, 211, 238, 0.28); }
.stage__bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.stage__bar b {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--grad);
}
.stage__foot {
  width: 34%;
  height: 8px;
  margin: 10px auto 0;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #1a2233, #0b0f18);
  border: 1px solid var(--line);
  border-top: 0;
}
.stage__phone {
  position: absolute;
  right: -6px;
  bottom: -34px;
  width: 27%;
  min-width: 92px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(160deg, #1a2233, #090d16);
  padding: 7px;
  box-shadow: var(--shadow);
}
.stage__phone i {
  display: block;
  aspect-ratio: 9 / 17;
  border-radius: 10px;
  background:
    radial-gradient(90% 60% at 50% 12%, rgba(34, 211, 238, 0.42), transparent 60%),
    #070a12;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { max-width: 460px; margin: 0.5rem auto 2.25rem; }
}

/* --- 8. Bandeau de repères --------------------------------------------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.strip ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip li {
  padding: 1.15rem 1rem;
  text-align: center;
  border-left: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.strip li:first-child { border-left: 0; }
.strip b {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
@media (max-width: 760px) {
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* --- 9. Grilles de cartes ---------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.55rem; font-size: 1.06rem; }
.card p { color: var(--muted); font-size: 0.93rem; }

.icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.12);
  color: var(--cyan);
  margin-bottom: 1rem;
}

.card__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 0.75rem;
}

/* --- 10. Duo texte / liste --------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; display: grid; gap: 0.8rem; }
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.94rem;
}
.checklist svg { color: var(--cyan); margin-top: 4px; }
.checklist strong { color: var(--text); font-weight: 650; }

/* --- 11. Offres : rail comparatif -------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem 1.35rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.plan--featured {
  border-color: rgba(124, 92, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(124, 92, 255, 0.13), transparent 45%),
    var(--surface-2);
}
.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: var(--grad);
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 1.35rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--grad);
  color: #06070d;
}
.plan--alt .plan__badge { background: rgba(255, 176, 32, 0.16); color: var(--amber); border: 1px solid rgba(255, 176, 32, 0.4); }

.plan__dur {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: 0.55rem 0 0.2rem;
  font-size: clamp(2.2rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.plan__price span { font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.plan__rate { font-size: 0.82rem; color: var(--muted-2); }
.plan__tag { font-size: 0.9rem; color: var(--muted); margin: 0.9rem 0 1.15rem; }

.plan__perks {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.plan__perks li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.6rem;
  align-items: start;
}
.plan__perks svg { color: var(--cyan); margin-top: 4px; }
.plan .btn { margin-top: auto; }

.plans-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-2);
  max-width: 70ch;
}

/* Tableau comparatif horizontal (page Offres) */
.compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.compare-hint {
  display: none;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-2);
}
@media (max-width: 700px) { .compare-hint { display: block; } }
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare th, .compare td {
  padding: 0.9rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--surface-2);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.compare td:first-child { font-weight: 650; }
.compare .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare .best { color: var(--cyan); font-weight: 700; }

/* --- 12. Étapes (rail vertical) ---------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.35rem, 3vw, 2.25rem);
  margin-left: 12px;
}
.steps li {
  position: relative;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: attr(data-step);
  position: absolute;
  left: calc(-1 * clamp(1.35rem, 3vw, 2.25rem) - 13px);
  top: 1.3rem;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan);
}
.steps h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.steps p { color: var(--muted); font-size: 0.93rem; }

/* --- 13. Compatibilité : tuiles ---------------------------------------- */
.devices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.85rem;
}
.device {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.device:hover { border-color: var(--line-strong); background: var(--surface-2); }
.device svg { color: var(--cyan); flex: none; }
.device small { display: block; font-weight: 500; color: var(--muted-2); font-size: 0.78rem; }

/* --- 14. FAQ ----------------------------------------------------------- */
.faq { display: grid; gap: 0.7rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 650;
  font-size: 0.98rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.3rem;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: #fff; }
.faq .faq__body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.faq .faq__body p + p { margin-top: 0.75rem; }
.faq .faq__body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* --- 15. Appel à l'action final ---------------------------------------- */
.cta-final {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(124, 92, 255, 0.24), transparent 62%),
    radial-gradient(80% 130% at 92% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
    var(--surface);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}
.cta-final .lede { margin: 1rem auto 2rem; }
.cta-final .btn-row { justify-content: center; }

/* --- 16. Pied de page --------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(2.5rem, 5vw, 3.75rem) 1.75rem;
  font-size: 0.9rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

.foot__brand p { color: var(--muted); margin-top: 1rem; max-width: 38ch; font-size: 0.88rem; }
.foot h2 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
  font-weight: 700;
}
.foot ul { list-style: none; display: grid; gap: 0.6rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

.foot__contact { display: grid; gap: 0.75rem; }
.foot__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.foot__contact svg { color: var(--cyan); flex: none; }

.foot__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 0.82rem;
}
.foot__base nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* --- 17. Formulaire / checkout ----------------------------------------- */
.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  /* Le récapitulatif passe au-dessus du formulaire et cesse d'être collant :
     épinglé, il mangerait la moitié de l'écran pendant la saisie. */
  .checkout__summary { order: -1; position: static; }
}

.field { display: grid; gap: 0.4rem; margin-bottom: 1.05rem; }
.field label { font-size: 0.85rem; font-weight: 650; }
.field .hint { font-size: 0.78rem; color: var(--muted-2); }

.input,
select.input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
.input[aria-invalid="true"] { border-color: var(--danger); }

.error {
  font-size: 0.79rem;
  color: var(--danger);
  min-height: 0;
}
.error:empty { display: none; }

.fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
.fieldset legend { font-size: 0.85rem; font-weight: 650; padding: 0; margin-bottom: 0.6rem; }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot {
  width: 17px; height: 17px;
  border: 1.6px solid var(--muted);
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
}
.choice .dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: transparent;
}
.choice:hover { background: rgba(255, 255, 255, 0.04); }
.choice:has(input:checked) { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); }
.choice:has(input:checked) .dot { border-color: var(--cyan); }
.choice:has(input:checked) .dot::after { background: var(--cyan); }
.choice:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.checkout__summary {
  position: sticky;
  top: 88px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; font-weight: 650; text-align: right; }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.1rem;
  margin-top: 0.4rem;
}
.sum-total span { font-size: 0.85rem; color: var(--muted); }
.sum-total b { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; }

.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
  background: rgba(34, 211, 238, 0.06);
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 0 10px 10px 0;
}
.notice strong { color: var(--text); }
.notice--warn { border-left-color: var(--amber); background: rgba(255, 176, 32, 0.07); }

.order-code {
  display: none;
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px dashed rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.07);
  border-radius: 12px;
}
.order-code[data-visible="true"] { display: block; }
.order-code b {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ok);
  margin-top: 0.35rem;
  word-break: break-all;
}
.order-code p { font-size: 0.85rem; color: var(--muted); }

/* --- 18. Contenus légaux / texte long ---------------------------------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 2.5rem 0 0.85rem; }
.prose h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); font-size: 0.95rem; }
.prose p + p { margin-top: 0.9rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose .todo {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px dashed rgba(255, 176, 32, 0.55);
  border-radius: 6px;
  background: rgba(255, 176, 32, 0.08);
  color: var(--amber);
  font-size: 0.85em;
  font-weight: 600;
}

/* --- 19. Fil d'Ariane & bandeau de page -------------------------------- */
.page-head {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
  background:
    radial-gradient(70% 130% at 8% 0%, rgba(124, 92, 255, 0.18), transparent 62%),
    var(--ink-2);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.79rem;
  color: var(--muted-2);
  margin-bottom: 1.1rem;
  list-style: none;
}
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line-strong); }
.crumbs a:hover { color: var(--text); }

/* --- 20. Divers --------------------------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.muted { color: var(--muted); }
