/*
  Kravn Hosting : style épuré façon iOS (mode sombre, couleurs Kravn).

  Plan de design
  - Couleurs : fond #061222, cellules #0E2236, cellules en relief #143049,
    texte #EEF2F6 / #A3B4C5 / #7D91A5, action #447794, liens #8EC1DE.
    Petites tuiles d'icônes aux couleurs système iOS, seulement dans la liste
    des fonctions (comme l'app Réglages).
  - Police : police système (SF Pro sur Apple, Segoe UI sur Windows),
    chiffres des prix en version arrondie quand elle existe.
  - Formes : listes groupées arrondies avec séparateurs fins, boutons en
    pilule, icône d'app en squircle, barre du haut translucide.
  - Mouvement : une seule séquence d'arrivée en haut de l'accueil, puis
    uniquement des réponses aux gestes (pression, sélecteur, FAQ).
*/

:root {
  color-scheme: dark;
  --bg: #061222;
  --surface: #0E2236;
  --surface-2: #143049;
  --surface-3: #1A3A56;
  --label: #EEF2F6;
  --label-2: #A3B4C5;
  --label-3: #7D91A5;
  --separator: rgba(160, 190, 215, .16);
  --accent: #447794;
  --accent-press: #3A6883;
  --accent-text: #8EC1DE;
  --tint: rgba(68, 119, 148, .24);
  --tint-hover: rgba(68, 119, 148, .34);
  --gray-fill: rgba(118, 138, 158, .2);
  --gray-fill-hover: rgba(118, 138, 158, .28);
  --focus: #8EC1DE;
  --hairline: 1px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --header-h: 56px;
}

@media (min-resolution: 2dppx) {
  :root { --hairline: .5px; --separator: rgba(160, 190, 215, .24); }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--label);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--label); text-wrap: balance; }
.hero-lead, .section-lead, .notfound-text { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.visually-hidden {
  position: absolute !important;
  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: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container { width: min(100% - 40px, 1080px); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.1 var(--font);
  letter-spacing: -.01em;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .45s var(--ease-ios), background-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn .icon { width: 18px; height: 18px; }

.btn-filled { background: var(--accent); color: #fff; }
.btn-filled:hover { background: var(--accent-press); }
.btn-tinted { background: var(--tint); color: var(--accent-text); }
.btn-tinted:hover { background: var(--tint-hover); }
.btn-gray { background: var(--gray-fill); color: var(--label); }
.btn-gray:hover { background: var(--gray-fill-hover); }

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Barre du haut ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 34, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--hairline) solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--separator); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(6, 18, 34, .97); }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--label);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(160deg, #1B4A67 0%, #0D2A42 60%, #0A2034 100%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14);
}
.brand-icon img { width: 22px; height: 22px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }

.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--label-2);
  font-size: 15px;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--label); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: -10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--label);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-icon { position: relative; width: 20px; height: 14px; }
.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-ios), opacity .2s ease;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 6px; }
.menu-icon span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  html.js .menu-toggle { display: inline-flex; }

  html.js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    border-bottom: var(--hairline) solid var(--separator);
  }
  html.js .site-nav.is-open { display: flex; }

  html.js .nav-links {
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
  }
  html.js .nav-links li { position: relative; }
  html.js .nav-links li + li::before {
    content: "";
    position: absolute;
    top: 0; right: 0; left: 16px;
    height: var(--hairline);
    background: var(--separator);
  }
  html.js .nav-links a { display: flex; min-height: 50px; padding: 0 16px; color: var(--label); font-size: 17px; }
  html.js .nav-links a:active { background: rgba(255, 255, 255, .05); }

  html.js .nav-actions { display: grid; grid-template-columns: 1fr 1fr; }
  html.js .nav-actions .btn { min-height: 48px; font-size: 16px; }

  /* Sans JavaScript : liens affichés sous le nom, sur une ligne. */
  html:not(.js) .site-nav { width: 100%; margin: 0 0 10px; flex-wrap: wrap; gap: 4px 16px; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: 0 16px; }
}

/* ---------- Accueil : haut de page ---------- */

.hero { padding: 76px 0 0; text-align: center; }
html.hero-wait [data-hero] .app-icon,
html.hero-wait [data-hero] h1 .line,
html.hero-wait [data-hero] .hero-lead,
html.hero-wait [data-hero] .hero-actions,
html.hero-wait [data-hero] .hero-note,
html.hero-wait [data-hero] .mock-window { opacity: 0; }

.app-icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, #1B4A67 0%, #0D2A42 58%, #0A2034 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .09),
    0 20px 44px -14px rgba(0, 0, 0, .7),
    0 0 0 .5px rgba(0, 0, 0, .45);
}
.app-icon img { width: 76px; height: 76px; }

.hero h1 {
  max-width: 12em;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.45rem + 4.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero h1 .line { display: block; }

.hero-lead {
  max-width: 31em;
  margin: 20px auto 0;
  color: var(--label-2);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; color: var(--label-3); font-size: 14px; }

/* Exemple d'écran du panel */

.panel-mock { max-width: 900px; margin: 64px auto 0; transform-origin: 50% 0; }

.mock-window {
  overflow: hidden;
  text-align: left;
  border-radius: 22px;
  background: #0B1D30;
  box-shadow:
    inset 0 0 0 var(--hairline) rgba(160, 190, 215, .2),
    0 44px 90px -36px rgba(0, 0, 0, .8),
    0 0 0 .5px rgba(0, 0, 0, .5);
}

.mock-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .025);
  border-bottom: var(--hairline) solid var(--separator);
}
.mock-dots { display: flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2C3D4F; }
.mock-url {
  padding: 4px 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  color: var(--label-3);
  font-size: 12px;
}

.mock-body { padding: 20px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-title { display: flex; align-items: center; gap: 12px; }
.mock-app {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, #1B4A67 0%, #0D2A42 58%, #0A2034 100%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12);
}
.mock-app img { width: 28px; height: 28px; }
.mock-name { font-weight: 600; font-size: 17px; }
.mock-sub { color: var(--label-3); font-size: 13px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(48, 209, 88, .14);
  color: #4CD97B;
  font-size: 13px;
  font-weight: 600;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #30D158; }

@media (prefers-reduced-motion: no-preference) {
  .status-pill .dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, .5); }
  50% { box-shadow: 0 0 0 5px rgba(48, 209, 88, 0); }
}

.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.mbtn {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gray-fill);
  color: var(--label);
  font-size: 13px;
  font-weight: 600;
}
.mbtn-off { opacity: .45; }
.mbtn-stop { background: rgba(255, 69, 58, .16); color: #FF7A72; }

.mock-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; }

.mock-console {
  min-height: 206px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #06121F;
  color: #C9D6E2;
  font: 13px/1.75 var(--mono);
  letter-spacing: 0;
}
.mock-console p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-dim { color: #6F8498; }
.c-ok { color: #4CD97B; }
.c-warn { color: #FFD60A; }
.c-prompt { color: var(--accent-text); }
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -2px;
  background: var(--accent-text);
}
@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.mock-stats { display: grid; gap: 12px; align-content: start; }
.mock-stat { padding: 14px 16px; border-radius: 14px; background: #10263B; }
.mock-stat-k { color: var(--label-3); font-size: 13px; }
.mock-stat-v {
  margin: 2px 0 10px;
  font-family: var(--font-rounded);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.mock-stat-v small { color: var(--label-3); font-size: 15px; font-weight: 600; }
.meter { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent-text); transform-origin: left center; }
.meter-cpu i { width: 6%; }
.meter-ram i { width: 12%; }

.panel-mock figcaption { margin-top: 14px; color: var(--label-3); font-size: 13px; text-align: center; }

@media (max-width: 680px) {
  .hero { padding-top: 52px; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 24px; }
  .app-icon img { width: 64px; height: 64px; }
  .hero-actions .btn { width: 100%; max-width: 360px; }
  .panel-mock { margin-top: 48px; }
  .mock-body { padding: 16px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-console { min-height: 0; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Sections ---------- */

.section { padding-top: 120px; }
main > .section:last-child { padding-bottom: 120px; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.45rem + 1.9vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.section-lead { margin-top: 14px; color: var(--label-2); font-size: 19px; line-height: 1.45; }
.section-lead strong { color: var(--label); font-weight: 600; }

@media (max-width: 680px) {
  .section { padding-top: 88px; }
  main > .section:last-child { padding-bottom: 88px; }
  .section-lead { font-size: 17px; }
}

/* Mise en page en deux colonnes : titre à gauche, liste à droite */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split-head { position: sticky; top: calc(var(--header-h) + 40px); }
.split-head .section-lead { font-size: 17px; }
.split-head .side-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-head { position: static; max-width: 660px; margin: 0 auto; text-align: center; }
}

/* ---------- Listes groupées (style Réglages) ---------- */

.group {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hairline) var(--separator);
}

.row { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; }
.row + .row::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 62px;
  height: var(--hairline);
  background: var(--separator);
}
.row-body { min-width: 0; }
.row-title { color: var(--label); font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.35; }
.row-text { margin-top: 3px; color: var(--label-2); font-size: 15px; line-height: 1.45; }
.row-text strong { color: var(--label); font-weight: 600; }

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.tile .icon { width: 19px; height: 19px; }
.tile-blue { background: #0A84FF; }
.tile-orange { background: #FF9F0A; }
.tile-green { background: #30D158; }
.tile-indigo { background: #5E5CE6; }
.tile-teal { background: #32ADE6; }
.tile-gray { background: #5B6878; }
.tile-num {
  background: var(--accent);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Offres ---------- */

.segmented {
  position: relative;
  display: none;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 320px);
  margin: 0 auto 32px;
  padding: 2px;
  border-radius: 11px;
  background: var(--gray-fill);
}
html.js .segmented { display: grid; }

.seg-thumb {
  position: absolute;
  top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px);
  border-radius: 9px;
  background: #2D5B75;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .28), 0 0 0 .5px rgba(0, 0, 0, .1);
}

.segmented button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--label-2);
  font: 600 14px/1.1 var(--font);
  letter-spacing: -.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s ease;
}
.segmented button[aria-checked="true"] { color: var(--label); }
.segmented button:focus-visible { outline-offset: -2px; }

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hairline) var(--separator);
}
.offer-featured .offer-card {
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 30px 60px -34px rgba(68, 119, 148, .55);
}

.offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.offer-name { font-size: 22px; font-weight: 700; letter-spacing: -.022em; line-height: 1.2; }
.offer-for { margin-top: 2px; color: var(--label-2); font-size: 15px; }

.badge {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.offer-free {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
}
.offer-free .icon { width: 17px; height: 17px; }

.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin-top: 4px; }
.price-then { color: var(--label-2); font-size: 15px; }
.price-amount {
  display: inline-block;
  font-family: var(--font-rounded);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.price-unit { display: inline-block; color: var(--label-2); font-size: 17px; }
.offer-billed { display: block; margin-top: 6px; color: var(--label-3); font-size: 13px; }

.offer-specs {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  border-radius: 14px;
  background: var(--surface-2);
}
.offer-specs li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--label-2);
  font-size: 15px;
}
.offer-specs li + li::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 46px;
  height: var(--hairline);
  background: var(--separator);
}
.offer-specs strong { color: var(--label); font-weight: 600; }
.offer-specs .icon { width: 20px; height: 20px; color: var(--accent-text); }

.offer-card .btn { margin-top: auto; }

.offer-notes { max-width: 760px; margin: 28px auto 0; }

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .offer-featured { order: -1; }
}

/* ---------- Fonctions ---------- */

.feature-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-note { margin-top: 16px; }

@media (max-width: 760px) {
  .feature-columns { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-item { position: relative; }
.faq-item + .faq-item::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 16px;
  height: var(--hairline);
  background: var(--separator);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--label);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: 14px; }
.faq-item summary:active { background: rgba(255, 255, 255, .04); }

.chevron { width: 14px; height: 14px; flex: none; color: var(--label-3); transition: transform .45s var(--ease-ios); }
.faq-item[open] > summary .chevron { transform: rotate(90deg); }

.faq-inner { padding: 0 16px 16px; color: var(--label-2); font-size: 16px; line-height: 1.55; }
.faq-inner p + p { margin-top: 10px; }
.faq-inner strong { color: var(--label); font-weight: 600; }

/* ---------- Discord ---------- */

.cta-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hairline) var(--separator);
  text-align: center;
}
.discord-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 15px;
  background: #5865F2;
  color: #fff;
}
.discord-tile .icon { width: 34px; height: 34px; }
.cta-card .section-lead { max-width: 30em; margin-inline: auto; }
.cta-card .btn { margin-top: 28px; }

/* ---------- Pied de page ---------- */

.site-footer {
  border-top: var(--hairline) solid var(--separator);
  padding: 48px 0 36px;
  color: var(--label-3);
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 8px; }
.footer-title { margin-bottom: 8px; color: var(--label); font-size: 13px; font-weight: 600; }
.footer-col ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--label-2); }
.footer-col a:hover { color: var(--label); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: var(--hairline) solid var(--separator);
}
.footer-bottom a { color: var(--label-2); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Pages légales ---------- */

.legal-page { width: min(100% - 40px, 720px); margin: 0 auto; padding: 28px 0 104px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--label-3); font-size: 15px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--label-3); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }

.legal h1 {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.55rem + 1.8vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -.032em;
}
.legal-date { margin-bottom: 28px; color: var(--label-3); font-size: 14px; }

.legal h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.022em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal h3 { margin: 28px 0 8px; font-size: 18px; letter-spacing: -.018em; }
.legal p, .legal li { color: var(--label-2); font-size: 17px; line-height: 1.62; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--label); font-weight: 600; }
.legal a { text-decoration: underline; text-decoration-color: rgba(142, 193, 222, .4); text-underline-offset: .18em; }
.legal a:hover { text-decoration-color: currentColor; }

/* Sommaire : liste groupée avec chevrons */
.legal nav ol {
  counter-reset: sommaire;
  list-style: none;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 var(--hairline) var(--separator);
}
.legal nav li { position: relative; margin: 0; counter-increment: sommaire; }
.legal nav li + li { margin: 0; }
.legal nav li + li::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 52px;
  height: var(--hairline);
  background: var(--separator);
}
.legal nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--label);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}
.legal nav a::before {
  content: counter(sommaire);
  min-width: 24px;
  color: var(--label-3);
  font-variant-numeric: tabular-nums;
}
.legal nav a::after,
.link-list a::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 2px solid var(--label-3);
  border-right: 2px solid var(--label-3);
  border-radius: 1px;
  transform: rotate(45deg);
}
.legal nav a:hover { background: rgba(255, 255, 255, .04); }

mark.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 214, 10, .14);
  color: #FFE07A;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Liste de liens avec chevrons (fin des pages légales, 404) */
.link-list { list-style: none; margin: 0; padding: 0; overflow: hidden; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 var(--hairline) var(--separator); text-align: left; }
.link-list li { position: relative; }
.link-list li + li::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 16px;
  height: var(--hairline);
  background: var(--separator);
}
.link-list a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; color: var(--label); font-size: 17px; }
.link-list a:hover { background: rgba(255, 255, 255, .04); text-decoration: none; }
.link-list a[aria-current="page"] { color: var(--accent-text); }

.legal-more { margin-top: 64px; }
.group-header { margin: 0 0 8px 16px; color: var(--label-3); font-size: 13px; font-weight: 600; }
.group-footer { margin: 10px 16px 0; color: var(--label-3); font-size: 14px; }

/* ---------- 404 ---------- */

.notfound { padding: 88px 0 112px; text-align: center; }
.notfound .app-icon { margin-bottom: 24px; }
.notfound-code {
  color: var(--label-3);
  font-family: var(--font-rounded);
  font-size: 17px;
  font-weight: 600;
}
.notfound h1 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.034em;
}
.notfound-text { max-width: 30em; margin: 16px auto 0; color: var(--label-2); font-size: 19px; line-height: 1.45; }
.notfound .hero-actions { margin-top: 28px; }
.notfound .link-list { max-width: 420px; margin: 44px auto 0; }

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .btn:active { transform: none; }
}
