/* Site public de Steriva. Mêmes jetons que l'appli (porcelaine, graphite, trois bagues), tout en clair.
   Police : Atkinson Hyperlegible Next, celle de l'appli. */
:root {
  --fond: #EEF1F0; --surface: #FFFFFF; --encre: #15201C; --douce: #46534E; --filet: #D3DAD7;
  --leger: #E2E7E5; --manche: #C9D1CD; --ciel: #D5E0DC;
  --bleu: #1F5FD0; --orange: #D9661C; --sarcelle: #0F8C83; --sarcelle-texte: #0A6A63;
  --rayon: 28px; --rayon-petit: 14px; --marge: 16px; --largeur: 1120px;
  --sortie: cubic-bezier(.16, 1, .3, 1);
  --police: "Atkinson Hyperlegible Next", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fond); scroll-behavior: smooth; scrollbar-color: var(--manche) var(--fond); }
body { background: var(--fond); color: var(--encre); font: 17px/1.55 var(--police); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--ciel); color: var(--encre); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--encre); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--sarcelle-texte); }
strong { color: var(--encre); font-weight: 700; }
p, li { color: var(--douce); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Structure commune (pages légales et accueil) */
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; min-height: 44px; }
.marque img { width: 36px; height: 36px; border-radius: 9px; }
.haut nav { display: flex; gap: 4px; }
.haut nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; font-size: 16px; text-decoration: none; border-radius: 10px; }
.haut nav a:hover { background: var(--leger); color: var(--encre); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 26px; border-radius: var(--rayon-petit); font-weight: 700; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; }
.bouton-attente { background: var(--leger); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--manche); cursor: default; user-select: none; }
.bouton-fort { background: var(--encre); color: var(--surface); }
.bouton-clair { background: var(--surface); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.lien-fort { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--encre); }

/* Accueil : héros */
.heros { display: grid; gap: 32px; padding: 20px 0 40px; align-items: center; }
.heros h1 { font-size: clamp(2.2rem, 8.4vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; max-width: 15ch; }
.heros .intro { font-size: 19px; line-height: 1.45; max-width: 34ch; margin-top: 16px; color: var(--douce); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 28px; }
.vitrine { position: relative; background: var(--ciel); border-radius: 32px; height: 460px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; padding-top: 36px; }
.telephone { width: min(264px, 70%); border: 8px solid var(--encre); border-bottom: 0; border-radius: 40px 40px 0 0; background: var(--fond); overflow: hidden; flex: none; box-shadow: 0 24px 40px -20px rgba(21, 32, 28, .4); }
.telephone img { width: 100%; }

/* Sections */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.8rem, 6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; max-width: 20ch; }
.section .chapo { font-size: 18px; line-height: 1.5; max-width: 52ch; margin-top: 14px; }

/* Fonctionnement : tuiles de largeurs différentes */
.grille { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: 1fr; }
.tuile { background: var(--surface); border-radius: var(--rayon); padding: 24px; display: flex; flex-direction: column; gap: 20px; min-width: 0; overflow: hidden; }
.tuile h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
.tuile p { margin-top: 8px; max-width: 46ch; }
.tuile.ciel { background: var(--ciel); }
.tuile.encre { background: var(--encre); }
.tuile.encre h3 { color: #FFFFFF; }
.tuile.encre p { color: #D5DCD8; }
.ecran { border-radius: 20px; overflow: hidden; background: var(--fond); box-shadow: 0 0 0 1px var(--filet), 0 20px 30px -20px rgba(21, 32, 28, .35); flex: 1; min-height: 240px; }
.ecran { position: relative; }
.ecran img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.tuile.large .ecran { position: static; flex: none; }
.tuile.large .ecran img { position: static; }
.correction { background: rgba(255, 255, 255, .09); border-radius: 16px; padding: 14px 16px; margin-top: auto; }
.correction span { display: block; font-size: 14px; font-weight: 700; color: #B9C5C0; }
.correction b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 16px; font-weight: 700; color: #FFFFFF; line-height: 1.35; font-variant-numeric: tabular-nums; }
.tuile.ciel .ecran { box-shadow: 0 0 0 1px rgba(21, 32, 28, .08), 0 20px 30px -20px rgba(21, 32, 28, .4); }
.bagues { display: flex; gap: 10px; padding-top: 4px; }
.bague { width: 64px; height: 26px; border-radius: 13px; border: 3.5px solid var(--c); }
.bague.pleine { background: var(--c); }
.tuile.encre .bague { border-color: var(--c); }
.tuile.encre .bague.vide { background: transparent; }

/* Aucune donnée patient */
.bandeau { background: var(--surface); border-radius: 36px; padding: 32px 24px; display: grid; gap: 28px; }
.bandeau h2 { max-width: 14ch; }
.bandeau h2 + p { margin-top: 16px; }
.bandeau p + p { margin-top: 12px; }
.lot { background: var(--fond); border-radius: 22px; padding: 22px 24px; align-self: center; box-shadow: 0 0 0 1px var(--filet); }
.lot dt { font-size: 15px; font-weight: 700; color: var(--douce); }
.lot dd { font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; margin: 4px 0 14px; color: var(--encre); font-variant-numeric: tabular-nums; }
.lot dd:last-child { margin-bottom: 0; font-size: 18px; letter-spacing: 0; font-family: var(--police); font-weight: 500; color: var(--douce); line-height: 1.4; }

/* Offre et prix */
.offre { display: grid; gap: 28px; margin-top: 32px; }
.hublot { width: 168px; height: 168px; margin-bottom: 20px; }
.hublot svg { width: 100%; height: 100%; display: block; }
.offre-texte h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; max-width: 18ch; text-wrap: balance; }
.offre-texte p { margin-top: 10px; max-width: 44ch; }
.inclus { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.inclus li { display: flex; gap: 12px; align-items: flex-start; color: var(--encre); font-weight: 500; }
.inclus svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--sarcelle-texte); }
.formules { display: grid; gap: 14px; align-content: start; }
.formule { background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 2px var(--filet); position: relative; }
.formule.choisie { box-shadow: inset 0 0 0 2.5px var(--encre); padding-top: 36px; }
.formule .repere { position: absolute; top: -1px; left: 22px; background: var(--encre); color: #FFFFFF; font-weight: 700; font-size: 14px; line-height: 1; padding: 8px 12px; border-radius: 0 0 10px 10px; }
.formule h3 { font-size: 18px; font-weight: 700; color: var(--douce); }
.prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.prix b { font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; font-weight: 800; color: var(--encre); font-variant-numeric: tabular-nums; }
.prix span { font-size: 18px; font-weight: 700; color: var(--encre); }
.formule p { margin-top: 8px; max-width: 40ch; }
.reglage { margin-top: 6px; font-size: 15px; max-width: 60ch; }

/* Appel final */
.final { background: var(--surface); border-radius: 36px; padding: 36px 24px; }
.final h2 { max-width: 16ch; }
.final .actions { margin-top: 24px; }

/* Pied */
.pied { margin-top: 56px; padding: 32px 0 48px; border-top: 1px solid var(--filet); font-size: 15px; display: grid; gap: 20px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.pied nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 16px; }
.pied p { max-width: 62ch; font-size: 15px; }
.pied p a { font-weight: 700; }

/* Pages légales */
.texte { max-width: 700px; margin: 0 auto; padding: 0 var(--marge); }
.texte .haut { padding: 0; }
.texte h1 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin: 24px 0 14px; text-wrap: balance; }
.texte h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 800; margin: 36px 0 8px; }
.texte p + p { margin-top: 10px; }
.texte ul { padding-left: 20px; margin-top: 8px; }
.texte li + li { margin-top: 6px; }
.texte p, .texte li { max-width: 68ch; }
.carte { background: var(--surface); border-radius: 18px; padding: 20px; margin-top: 12px; }
.texte .pied { margin-top: 48px; }

/* Mouvement : une seule scène, jouée une fois, et rien si l'option est coupée */
.js .hublot .h-b { opacity: 0; transform: translateX(-70px); }
@media (prefers-reduced-motion: no-preference) {
  .vitrine .telephone { animation: monte 1s var(--sortie) both; }
  .js .hublot.vu .h-b { animation: glisse 1s var(--sortie) both; animation-delay: var(--d); }
  @keyframes monte { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes glisse { from { transform: translateX(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hublot .h-b { opacity: 1; transform: none; }
}

/* Tablette */
@media (min-width: 640px) {
  :root { --marge: 24px; }
  .grille { grid-template-columns: repeat(6, 1fr); }
  .tuile { padding: 28px; }
  .tuile.large { grid-column: span 6; }
  .tuile.moitie { grid-column: span 3; }
  .tuile.large { flex-direction: row; align-items: center; gap: 28px; }
  .tuile.large > .texte-tuile { flex: 1 1 45%; }
  .tuile.large > .ecran { flex: 1 1 55%; min-height: 0; align-self: center; }
  .bandeau { padding: 44px 40px; }
  .final { padding: 48px 40px; }
  .vitrine { height: 540px; }
}

/* Bureau */
@media (min-width: 1024px) {
  .heros { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 56px 0 72px; }
  .heros .intro { font-size: 21px; }
  .vitrine { height: 600px; }
  .telephone { width: 292px; }
  .section { padding: 88px 0; }
  .grille { grid-template-columns: repeat(12, 1fr); gap: 16px; }
  .tuile.a { grid-column: span 7; }
  .tuile.b { grid-column: span 5; }
  .tuile.c, .tuile.d, .tuile.e { grid-column: span 4; }
  .tuile.large { flex-direction: row; }
  .bandeau { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 64px; }
  .offre { grid-template-columns: .9fr 1.1fr; gap: 64px; margin-top: 48px; }
  .final { padding: 72px 64px; }
  .pied { grid-template-columns: 1fr auto; align-items: start; }
}

/* Petits écrans */
@media (max-width: 420px) {
  .bouton { width: 100%; }
  .actions { gap: 0 20px; }
  .haut nav a { padding: 0 8px; }
}

@media (max-width: 639px) {
  .ecran { position: static; flex: none; min-height: 0; }
  .ecran img { position: static; }
}
