/* =========================================================
   KitClub — base commune (site, connexion, application)

   DA inspirée d'Apple :
   - Typo système (SF Pro sur Mac/iPhone, Inter ailleurs), titres
     gras serrés en minuscules, pas d'italique ni de majuscules.
   - Fonds blanc et gris clair #f5f5f7 en alternance, texte #1d1d1f.
   - Un seul bleu (#0071e3) pour les actions et les liens.
   - Boutons en pilule, cartes très arrondies, sans bordure.
   ========================================================= */

:root {
  /* Couleurs */
  --white: #ffffff;
  --bg: #f5f5f7;             /* gris clair Apple : fond de l'application, sections alternées */
  --light: #e8e8ed;
  --ink: #1d1d1f;
  --grey: #6e6e73;
  --grey-2: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --line-strong: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --blue-soft: #e8f2fd;
  --navy: #1d1d1f;
  --green: #248a3d;
  --red: #e30000;
  --red-soft: #fcedec;

  /* Formes */
  --r-s: 12px;
  --r: 18px;
  --r-l: 22px;
  --r-xl: 28px;

  /* Ombres : légères, au survol ou pour un élément mis en avant */
  --shadow-2: 0 4px 24px rgba(0, 0, 0, .08);
  --shadow-3: 0 20px 50px rgba(0, 0, 0, .12);
  --focus: 0 0 0 4px rgba(0, 113, 227, .3);

  /* Verre : barre de navigation seulement */
  --glass: rgba(251, 251, 253, .8);
  --blur: saturate(180%) blur(20px);

  /* Typo */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --t: .2s;
}

/* ---------- Réinitialisation ---------- */
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.47; color: var(--ink); background: var(--white); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table, .plan__price, .sub__price, .usage__big, .stat-line b { font-variant-numeric: tabular-nums; }

/* ---------- Mise en page ---------- */
.wrap { width: min(980px, 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(692px, 100% - 48px); }
.center { text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ---------- Textes ---------- */
.eyebrow { margin-bottom: 8px; font-size: 21px; font-weight: 600; letter-spacing: .011em; color: var(--blue); }
.display, .headline { font-family: var(--display); font-weight: 700; line-height: 1.07; letter-spacing: -.028em; }
.display { font-size: clamp(44px, 6.4vw, 80px); line-height: 1.05; letter-spacing: -.035em; }
.headline { max-width: 820px; margin-bottom: 64px; font-size: clamp(36px, 4.6vw, 56px); }
.muted { color: var(--grey-2); }
.lede { margin-top: 20px; max-width: 600px; font-size: 21px; line-height: 1.38; letter-spacing: .011em; color: var(--grey); }
.center .lede { margin-inline: auto; }
.fineprint { margin-top: 24px; font-size: 12px; letter-spacing: -.01em; color: var(--grey-2); }

/* ---------- Boutons : pilules ---------- */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 28px; height: 44px; padding: 0 22px; border: 0; border-radius: 980px; cursor: pointer; white-space: nowrap;
  font-size: 17px; font-weight: 400; letter-spacing: -.022em; color: #fff; background: var(--blue);
  transition: background var(--t), box-shadow var(--t), color var(--t), transform var(--t); }
.pill:hover { background: var(--blue-hover); }
.pill:active { transform: scale(.98); }
.pill:disabled { opacity: .4; cursor: default; }
.pill svg { width: 17px; height: 17px; stroke-width: 2; }
.pill--sm { height: 32px; padding: 0 14px; font-size: 14px; letter-spacing: -.016em; }
.pill--big { height: 50px; padding: 0 28px; font-size: 17px; }
/* Bouton secondaire : contour bleu */
.pill--line { color: var(--blue); background: transparent; box-shadow: inset 0 0 0 1px var(--blue); }
.pill--line:hover { color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }

/* Lien « En savoir plus › » */
.more { display: inline-flex; align-items: center; gap: 2px; font-weight: 400; color: var(--link); }
.more::after { content: "›"; margin-left: 2px; font-size: 1.15em; line-height: 1; transition: transform .2s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 2px; }
.more--plain { display: inline; }
.more--plain::after { content: none; }

/* ---------- Champs (libellé au-dessus) ---------- */
.field { display: flex; flex-direction: column-reverse; gap: 6px; position: relative; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: -.016em; color: var(--ink); }
.field input, .field select, .field textarea, .paste {
  width: 100%; height: 48px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-s); transition: border-color var(--t), box-shadow var(--t); }
.field textarea, .paste { height: auto; padding: 12px 16px; line-height: 1.47; resize: vertical; }
.paste { font: 13px/1.65 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0; }
.field input:hover, .field select:hover, .field textarea:hover, .paste:hover { border-color: #86868b; }
.field input:focus, .field select:focus, .field textarea:focus, .paste:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.field input::placeholder, .paste::placeholder { color: var(--grey-2); }
.field--select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field.is-error input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227, 0, 0, .12); }
.field.is-error label { color: var(--red); }
.field__eye { position: absolute; right: 6px; bottom: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font-size: 14px; color: var(--link); cursor: pointer; transition: background var(--t); }
.field__eye:hover { background: var(--bg); }
.field:has(.field__eye) input { padding-right: 96px; }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--blue); }
.check--top { align-items: flex-start; font-size: 14px; line-height: 1.43; color: var(--grey); }
.check--top input { margin-top: 1px; }

/* ---------- Logo ---------- */
.gnav__brand, .side__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.022em; color: var(--ink); }
.gnav__brand::before, .side__brand::before { content: "K"; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0; color: #fff; background: linear-gradient(180deg, #2b8cff, #0066dd); }

/* ---------- Barre de navigation : pleine largeur, translucide ---------- */
.gnav { position: sticky; top: 0; z-index: 30; width: 100%; height: 52px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: box-shadow .3s; }
.gnav.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.gnav__row { width: min(1024px, 100% - 44px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 8px; }
.gnav__brand { flex: 1; }
.gnav__links { display: flex; gap: 8px; }
.gnav__links a { padding: 6px 12px; font-size: 12px; font-weight: 400; letter-spacing: -.01em; color: rgba(0, 0, 0, .8); transition: color var(--t); }
.gnav__links a:hover { color: var(--blue); }
.gnav__right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.gnav__right .pill--sm { height: 28px; padding: 0 12px; font-size: 12px; letter-spacing: -.01em; }
.gnav__burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; cursor: pointer; }
.gnav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.gnav__burger span:first-child { top: 18px; }
.gnav__burger span:last-child { top: 25px; }
.gnav.is-open .gnav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.gnav.is-open .gnav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Pied de page simple (pages légales) ---------- */
.foot { padding: 40px 0 24px; font-size: 12px; letter-spacing: -.01em; color: var(--grey); background: var(--bg); }
.foot a:hover { text-decoration: underline; color: var(--ink); }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line-strong); }

/* ---------- Apparition douce ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .gnav { height: 48px; }
  .gnav__burger { display: block; }
  .gnav__right .pill--sm { display: none; }
  .gnav__links { position: fixed; top: 48px; left: 0; right: 0; height: calc(100vh - 48px); flex-direction: column; gap: 0; margin: 0; padding: 16px 40px;
    background: #fbfbfd;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .gnav__links a { padding: 10px 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
  .gnav.is-open .gnav__links { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 480px) {
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Détails iOS */
::selection { background: rgba(0, 113, 227, .18); }

/* Lien d'évitement : visible uniquement au focus clavier */
.skip { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 18px; border-radius: 980px; font-size: 14px; font-weight: 500; color: #fff; background: var(--blue); transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; outline: 2px solid var(--ink); outline-offset: 2px; }

/* Logos des moyens de paiement acceptés */
.paylogos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; }
.paylogos li { display: grid; place-items: center; width: 52px; height: 34px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.paylogos svg { width: 46px; height: 30px; fill: none; stroke: none; }
.offers__note + .paylogos { justify-content: flex-start; margin-top: 10px; }
.paylogos svg * { stroke: none; }
.fineprint:has(+ .paylogos) { text-align: center; }
