/* ═══════════════════════════════════════════════════════════════════
   CleanSell — page institutionnelle de pré-lancement
   Feuille de style unique. Aucun JavaScript, aucune ressource distante.

   La palette reprend les jetons réels du produit (« Studio Teal &
   Corail ») pour que cette page provisoire et l'application à venir
   soient visiblement de la même main.

   Les polices sont celles du système : aucune requête réseau ne part
   de cette page, et c'est une propriété que le lecteur peut vérifier
   lui-même dans l'inspecteur de son navigateur.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Marque */
  --ink:        #0D4A5C;  /* teal-ink profond */
  --ink-deep:   #083440;
  --ink-mid:    #1A6B7F;
  --ink-soft:   #E8F0F2;
  --coral:      #FB7185;
  --coral-deep: #E11D48;
  --coral-soft: #FFF1F3;

  /* Surfaces */
  --cream:  #FAF7F2;
  --paper:  #FFFFFF;
  --line:   #E7E5E4;
  --line-2: #D6D3D1;

  /* Texte */
  --text:       #1C1917;
  --text-muted: #57534E;
  --on-dark:        #F5F5F4;
  --on-dark-muted:  #BFD3D9;

  /* Typographie système */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Échelle — clamp() plutôt que des paliers de media queries */
  --t-display: clamp(2rem, 1.35rem + 2.9vw, 3.4rem);
  --t-h2:      clamp(1.5rem, 1.22rem + 1.25vw, 2.1rem);
  --t-h3:      clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --t-lead:    clamp(1.02rem, 0.97rem + 0.28vw, 1.18rem);

  /* Rythme */
  --gut: clamp(1.15rem, 0.8rem + 1.6vw, 2.5rem);
  --sec: clamp(3.2rem, 2.2rem + 4vw, 5.5rem);
  --max: 70rem;

  --r:    12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgb(13 74 92 / 6%), 0 8px 24px -12px rgb(13 74 92 / 18%);
}

/* ── Base ───────────────────────────────────────────────────────── */

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

html {
  /* PAS de `overflow-x: hidden` ici, et c'est délibéré.
     La machine de vérification ne dispose d'aucun moteur exécutant
     JavaScript : le débordement horizontal ne peut donc être constaté
     qu'à l'œil, sur un rendu réel. Or `overflow-x: hidden` masquerait
     précisément ce qu'il faut voir. Le repli est obtenu par les règles
     de mise en page — grilles qui s'empilent, `clamp()`, coupure des
     mots longs — et non par une troncature qui cacherait un défaut. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-mid); }

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

/* Le corail #E11D48 ne ressort pas sur les fonds sombres de la page :
   2,08:1 sur le teal du bandeau principal et 2,84:1 sur le teal profond
   de l'en-tête et du pied de page, là où WCAG 1.4.11 demande 3:1. Sur
   ces surfaces, l'anneau passe au blanc — 13,3:1 sur le teal profond,
   9,1:1 sur le teal. */
.masthead :focus-visible,
.hero :focus-visible,
.foot :focus-visible,
.skip:focus-visible {
  outline-color: #FFFFFF;
}

/* Les mots longs (adresses, identifiants) ne doivent jamais pousser
   une colonne au-delà de sa largeur. */
address, dd, .id__v, .wrap { overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--on-dark);
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r) 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

.eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mid); margin-bottom: 0.9rem;
}
.on-dark .eyebrow { color: var(--on-dark-muted); }

/* ── En-tête ────────────────────────────────────────────────────── */

.masthead { background: var(--ink-deep); color: var(--on-dark); }

.masthead__in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.7rem var(--gut); padding-block: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit; }
.brand__mark { flex: none; display: block; }
.brand__name { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.015em; color: var(--paper); }
.brand__sub { display: block; font-size: 0.74rem; font-weight: 400; letter-spacing: 0.01em; color: var(--on-dark-muted); }

.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.35rem 1.35rem; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.9rem; }
.nav a:hover { color: var(--paper); text-decoration: underline; }

/* ── Bandeau de statut ──────────────────────────────────────────────
   Dit une fois, en haut, et nulle part ailleurs. Une page qui répète
   six fois qu'elle n'est pas ouverte finit par en avoir l'air. */

.status { background: var(--coral-soft); border-block: 1px solid #F6D3D9; }
.status__in { display: flex; gap: 0.75rem; align-items: flex-start; padding-block: 0.8rem; }
.status__dot { flex: none; width: 9px; height: 9px; margin-top: 0.55rem; border-radius: 50%; background: var(--coral-deep); }
.status__txt { font-size: 0.94rem; color: #7A1229; }
.status__txt b { color: #5C0D1F; }

/* ── Section principale ─────────────────────────────────────────── */

.hero { background: var(--ink); color: var(--on-dark); padding-block: var(--sec); }

.hero__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
@media (min-width: 62rem) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.hero h1 { font-size: var(--t-display); color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--coral); }

.hero__lead { margin-top: 1.4rem; font-size: var(--t-lead); color: var(--on-dark-muted); max-width: 46ch; }

.hero__note {
  margin-top: 1.8rem; padding: 1rem 1.15rem;
  border-left: 3px solid var(--ink-mid); border-radius: 0 var(--r) var(--r) 0;
  background: rgb(255 255 255 / 5%);
  font-size: 0.9rem; color: var(--on-dark-muted); max-width: 52ch;
}

/* ── Carte d'identité de l'exploitant ───────────────────────────────
   Au-dessus de la ligne de flottaison, et non reléguée en pied de
   page : c'est la première question que se pose un vérificateur. */

.idcard { background: var(--paper); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.idcard__hd {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: space-between;
  padding: 0.85rem 1.25rem; background: var(--ink-soft); border-bottom: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.idcard__bd { padding: 1.25rem; margin: 0; display: grid; gap: 0.95rem; }
@media (min-width: 30rem) and (max-width: 61.99rem) { .idcard__bd { grid-template-columns: 1fr 1fr; } }

.id__k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.id__v { margin: 0.2rem 0 0; font-size: 0.94rem; }
.id__v--mono { font-family: var(--mono); font-size: 0.88rem; letter-spacing: 0.01em; }
.id__v address { font-style: normal; }

/* ── Sections claires ───────────────────────────────────────────── */

.band { padding-block: var(--sec); }
.band--paper { background: var(--paper); border-block: 1px solid var(--line); }
.band h2 { font-size: var(--t-h2); max-width: 24ch; }
.band__lead { margin-top: 1.1rem; font-size: var(--t-lead); color: var(--text-muted); max-width: 62ch; }

/* ── Capacités ──────────────────────────────────────────────────── */

.caps { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 46rem) { .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cap { padding: 1.4rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.band--paper .cap { background: var(--cream); }
.cap__ico { display: block; margin-bottom: 0.9rem; color: var(--ink); }
.cap h3 { font-size: var(--t-h3); }
.cap p { margin-top: 0.5rem; font-size: 0.93rem; color: var(--text-muted); }

/* ── Schéma de principe ─────────────────────────────────────────────
   Deux dessins pour un seul schéma : à plat sur écran large, empilé
   en dessous. Le repli se fait par restructuration, pas par
   compression — un schéma rétréci devient illisible. */

.figure { margin: 2.6rem 0 0; }
.figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.figure figcaption { margin-top: 0.85rem; font-size: 0.82rem; color: var(--text-muted); max-width: 68ch; }

/* Le sélecteur porte `svg` explicitement. Sans lui, `.figure svg`
   ci-dessus — plus spécifique d'un élément — l'emporterait, et les deux
   dessins s'afficheraient l'un au-dessus de l'autre à toute largeur.
   C'est exactement ce qui s'est produit avant que le rendu à 375 px ne
   le montre. */
.figure svg.fig--wide { display: none; }
@media (min-width: 52rem) {
  .figure svg.fig--wide { display: block; }
  .figure svg.fig--tall { display: none; }
}

/* ── Publics ────────────────────────────────────────────────────── */

.who { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
@media (min-width: 46rem) { .who { grid-template-columns: 1fr 1fr; } }
.who li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.96rem; }
.who svg { flex: none; margin-top: 0.28rem; color: var(--ink-mid); }

/* ── Tarifs ─────────────────────────────────────────────────────── */

.tariff-note {
  margin-top: 1.5rem; padding: 1rem 1.15rem;
  background: var(--ink-soft); border: 1px solid #CFE0E5; border-radius: var(--r);
  font-size: 0.92rem; color: #0A3D4C; max-width: 64ch;
}

.plans { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.plan {
  display: flex; flex-direction: column;
  padding: 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r);
}
.plan__name { font-size: var(--t-h3); font-weight: 700; }
.plan__price { margin-top: 0.7rem; font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.plan__per { font-size: 0.86rem; font-weight: 500; color: var(--text-muted); }
.plan__desc { margin-top: 0.7rem; font-size: 0.9rem; color: var(--text-muted); }

.plan--extra { grid-column: 1 / -1; background: var(--cream); }
@media (min-width: 40rem) { .plan--extra { flex-direction: row; align-items: baseline; gap: 1rem; flex-wrap: wrap; } }
.plan--extra .plan__price { margin-top: 0; }
.plan--extra .plan__desc { margin-top: 0; flex: 1 1 18rem; }

/* ── Éditeur ────────────────────────────────────────────────────── */

.editor { display: grid; gap: clamp(1.6rem, 1rem + 2.5vw, 3rem); margin-top: 2.4rem; }
@media (min-width: 56rem) { .editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.dl { margin: 0; display: grid; gap: 0.9rem; }
.dl > div { padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dl dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.dl dd { margin: 0.25rem 0 0; font-size: 0.96rem; }
.dl dd address { font-style: normal; }
.dl .mono { font-family: var(--mono); font-size: 0.9rem; }

/* Éditeur et hébergeur sont deux personnes morales distinctes : ils
   portent donc deux titres de même rang, sous un h2 volontairement
   neutre. */
.party { font-size: var(--t-h3); margin-bottom: 1.2rem; }

/* Le trait qui sépare les deux identités porte une distinction
   juridique : il doit se voir. En --line-2 (#D6D3D1) sur le fond de
   section (#FAF7F2) il ne faisait que 1,39:1 ; #8A847C en donne 3,46:1,
   au-dessus du seuil de 3:1 applicable aux éléments non textuels. */
.host { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 2px solid #8A847C; }
.host__note { margin: 0 0 1.3rem; font-size: 0.9rem; color: var(--text-muted); max-width: 56ch; }

.panels { display: grid; gap: 1rem; align-content: start; }
.panel { padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.panel h3 { font-size: var(--t-h3); }
.panel p { margin-top: 0.7rem; font-size: 0.92rem; color: var(--text-muted); }
.panel p + p { margin-top: 0.7rem; }
/* `.panel p` vaut (0,1,1) : un simple `.panel__mail` en (0,1,0) perdrait.
   On ajoute l'élément plutôt qu'un !important. */
.panel p.panel__mail { font-size: 1.02rem; font-weight: 600; color: var(--text); }
.panel p.panel__mail a { color: var(--ink); }

/* Constats que le lecteur peut vérifier lui-même dans son navigateur. */
.checks { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.91rem; color: var(--text-muted); }
.checks svg { flex: none; margin-top: 0.3rem; color: var(--ink-mid); }

/* ── Pied de page ───────────────────────────────────────────────── */

.foot { background: var(--ink-deep); color: var(--on-dark-muted); padding-block: 2.6rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 1.2rem var(--gut); justify-content: space-between; align-items: baseline; }
.foot p { font-size: 0.88rem; }
.foot a { color: var(--paper); }
.foot__legal { font-size: 0.82rem; max-width: 52ch; line-height: 1.9; }
/* Marqueur d'actualité : il répond à « ce projet est-il encore vivant ? »
   sans rien promettre — ce n'est pas une date de lancement. */
.foot__date { color: var(--paper); }

/* ── Préférences utilisateur ────────────────────────────────────── */

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

/* À l'impression, les fonds sombres deviennent blancs. Il ne suffit pas
   de reposer la couleur sur les conteneurs : une couleur déclarée
   DIRECTEMENT sur un descendant n'est pas héritée, donc pas annulée.
   `.foot a { color: var(--paper) }` survivait ainsi à `.foot { color:
   #000 }` et imprimait l'adresse de contact en blanc sur blanc — le
   seul moyen de joindre l'éditeur, invisible sur la page imprimée. */
@media print {
  .masthead, .nav, .foot { background: #FFF; color: #000; }
  .hero, .status { background: #FFF; color: #000; }
  .hero h1, .brand__name { color: #000; }
  .hero__lead, .hero__note, .status__txt, .brand__sub { color: #333; }

  /* Mêmes sélecteurs que les règles à annuler, sinon rien ne change. */
  .nav a, .foot a, .foot__date { color: #000; }
  .on-dark .eyebrow { color: #333; }
  .hero h1 em { color: #000; }
  .hero__note { border-left-color: #999; }

  a { text-decoration: underline; }
}
