/* =========================================================================
   Scriptio — site vitrine. Design repris de l'application (constants/Colors.ts).
   Esprit : épuré, moderne, beaucoup d'air. Le contenu est porté par les
   captures d'écran (iPhones), pas par le texte.
   ========================================================================= */

/* --- Police serif auto-hébergée -------------------------------------------
   Source Serif 4 (OFL, déjà utilisée par l'app), servie en .woff2 local —
   sans Google Fonts CDN (engagement « zéro tracking »). Rendu identique sur
   tous les appareils. Re-télécharger via @fontsource si besoin.

   Deux sous-ensembles : « latin » couvre FR/EN/ES/PT/IT/DE ; « latin-ext »
   ajoute les caractères polonais (ą ć ę ł ń ó ś ź ż). Le `unicode-range` fait
   que le navigateur ne télécharge latin-ext QUE sur les pages qui en ont
   besoin — les six autres langues ne paient rien. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --gold: #CFB156;
  --gold-light: #D9C374;
  --gold-dark: #B89A3E;

  --cream: #FAF8F5;
  --card: #FFFFFF;
  --muted: #F3F1ED;

  --ink: #1A1A1A;
  --ink-2: #6B6B6B;
  --border: #E8E4DF;

  /* Couleurs des catégories de profils (reprises de l'app, Colors.ts) */
  --cat-bordeaux: #8B3A4A;
  --cat-blue: #5E7FB3;
  --card-gold: #FFFCF0;
  --card-bordeaux: #FAF0EE;
  --card-blue: #EFF4FC;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26,26,26,.05);
  --shadow: 0 10px 40px -12px rgba(26,26,26,.12);
  --shadow-phone: 0 36px 70px -24px rgba(26,26,26,.4);

  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1080px;
}

/* Mode sombre : automatique (réglage système) OU choisi via le bouton du
   header (attribut data-theme posé sur <html>, mémorisé en localStorage).
   ⚠️ Les deux blocs ci-dessous doivent rester identiques. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: #D9C374; --gold-light: #E0CC85; --gold-dark: #CFB156;
    --cream: #1C1C1E; --card: #2C2C2E; --muted: #242426;
    --ink: #F5F5F5; --ink-2: #A0A0A0; --border: #3A3A3C;
    --cat-bordeaux: #B05566; --cat-blue: #7B92B8;
    --card-gold: #2E2A1F; --card-bordeaux: #251A1B; --card-blue: #20262F;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 10px 40px -12px rgba(0,0,0,.5);
    --shadow-phone: 0 36px 70px -24px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --gold: #D9C374; --gold-light: #E0CC85; --gold-dark: #CFB156;
  --cream: #1C1C1E; --card: #2C2C2E; --muted: #242426;
  --ink: #F5F5F5; --ink-2: #A0A0A0; --border: #3A3A3C;
  --cat-bordeaux: #B05566; --cat-blue: #7B92B8;
  --card-gold: #2E2A1F; --card-bordeaux: #251A1B; --card-blue: #20262F;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 10px 40px -12px rgba(0,0,0,.5);
  --shadow-phone: 0 36px 70px -24px rgba(0,0,0,.7);
}

/* ------------------------------------------------------------------ Base -- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .18s ease, opacity .18s ease; }
h1,h2,h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
main section[id] { scroll-margin-top: 82px; }
/* SÉLECTION DE TEXTE — teinte translucide, pas un aplat opaque : le texte
   reste lisible, et les blancs entre les blocs ne forment plus de bandes
   dorées en travers de la page. */
::selection { background: color-mix(in srgb, var(--gold) 32%, transparent); color: inherit; }

/* Ce qui n'est PAS du contenu ne se sélectionne pas : en-tête, boutons,
   pastilles de store, décorations. On garde évidemment tout le texte de la
   page sélectionnable et copiable — le désactiver serait hostile au lecteur. */
.site-header,
.store-badge,
.btn,
.btn-nav,
.theme-toggle,
.lang-menu,
.lang-switch,
.rule,
.cat-icon,
.step__n,
.eyebrow,
.hero__icon {
  -webkit-user-select: none;
  user-select: none;
}

/* SÉLECTION DE TEXTE — RÈGLE SIMPLE ET SANS SURPRISE
   L'ACCUEIL ne se sélectionne pas du tout (`<body class="home">`). Motif :
   glisser la souris à travers une page de présentation ne sert à rien, et
   Safari peignait des bandes de sélection d'un bord à l'autre de l'écran dès
   que le glisser traversait deux blocs. Trois parades successives (couleur
   translucide, `user-select` sur les conteneurs, suppression des nœuds de
   blancs du HTML) n'ont pas suffi dans Safari : celle-ci est déterministe.
   ⚠️ LES PAGES D'INFORMATION (CGU, confidentialité, mentions légales,
   assistance…) N'ONT PAS cette classe : leur texte reste intégralement
   sélectionnable et copiable — un document juridique doit pouvoir l'être. */
body.home {
  -webkit-user-select: none;
  user-select: none;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; }
.section-head { max-width: 600px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); }
.section-head p { margin-top: 14px; color: var(--ink-2); }

/* Eyebrow : petit surtitre doré commun à toutes les sections */
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }

/* ---------------------------------------------------------------- Header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav__right { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: .96rem; font-weight: 500; }
.nav__right a:hover { color: var(--gold-dark); }
.nav__right .btn-nav { background: var(--gold); color: #fff; font-weight: 600; font-size: .9rem; padding: 7px 16px; border-radius: 999px; white-space: nowrap; transition: background .18s ease; }
.nav__right .btn-nav:hover { background: var(--gold-dark); color: #fff; }
.lang-switch { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.lang-switch .is-active { color: var(--gold-dark); }
.lang-switch span[aria-hidden] { opacity: .4; }
.lang-switch a:hover { color: var(--ink); }

/* ----------------------------------------------------------- Theme toggle - */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; flex: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: none; color: var(--ink-2); cursor: pointer;
  transition: color .18s, border-color .18s;
}
.theme-toggle:hover { color: var(--gold-dark); border-color: var(--gold-light); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* --------------------------------------------------------- Language menu -- */
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; -webkit-appearance: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px 5px 9px;
  user-select: none; white-space: nowrap;
  transition: color .18s, border-color .18s;
}
.lang-menu > summary::-webkit-details-marker,
.lang-menu > summary::marker { display: none; }
.lang-menu .lang-icon { width: 13px; height: 13px; flex: none; }
.lang-menu .chev-icon { width: 8px; height: 5px; flex: none; transition: transform .18s ease; }
.lang-menu[open] > summary { color: var(--gold-dark); border-color: var(--gold-light); }
.lang-menu[open] .chev-icon { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 5px; min-width: 130px; z-index: 200;
  display: flex; flex-direction: column;
  animation: langIn .14s ease;
}
@keyframes langIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lang-menu__list a,
.lang-menu__list span {
  display: block; padding: 7px 12px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  white-space: nowrap; transition: background .12s;
}
.lang-menu__list a:hover { background: var(--muted); }
.lang-menu__list .is-active { color: var(--gold-dark); font-weight: 700; cursor: default; }

/* --------------------------------------------------------------- Buttons -- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .18s ease; }
.btn--primary { background: var(--gold); color: #fff; }
.btn--primary:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--muted); }

/* Badges stores */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store-badge { position: relative; display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 20px; min-width: 200px; }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge__txt small { font-size: .68rem; opacity: .8; }
.store-badge__txt strong { font-size: 1.12rem; font-weight: 600; }
.store-badge.is-soon { cursor: default; }
.store-badge.is-soon::after { content: "Bientôt"; position: absolute; top: -9px; right: -8px; background: var(--gold); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.store-badge.is-soon:lang(en)::after { content: "Soon"; }
.store-badge.is-soon:lang(es)::after { content: "Pronto"; }
.store-badge.is-soon:lang(pt)::after { content: "Em breve"; }
.store-badge.is-soon:lang(it)::after { content: "Presto"; }
.store-badge.is-soon:lang(de)::after { content: "Bald"; }
.store-badge.is-soon:lang(pl)::after { content: "Wkrótce"; }
.store-note { margin-top: 16px; font-size: .9rem; color: var(--ink-2); text-align: center; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .store-badge { background: #000; border: 1px solid var(--border); }
}
:root[data-theme="dark"] .store-badge { background: #000; border: 1px solid var(--border); }

/* ------------------------------------------------------------------ Hero -- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .container > * { animation: rise .6s cubic-bezier(.16,.84,.32,1) both; }
.hero .container > *:nth-child(2) { animation-delay: .08s; }
.hero .container > *:nth-child(3) { animation-delay: .16s; }
.hero .container > *:nth-child(4) { animation-delay: .24s; }
.hero .container > *:nth-child(5) { animation-delay: .32s; }
.hero .container > *:nth-child(6) { animation-delay: .4s; }
.hero { position: relative; text-align: center; padding-block: 104px 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -160px; left: 50%; width: 620px; height: 620px; transform: translateX(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--gold) 20%, transparent) 0%, transparent 60%); pointer-events: none; }
.hero > * { position: relative; }
.hero__icon { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 22px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.8rem, 1.8rem + 4vw, 4.2rem); letter-spacing: -0.025em; }
.hero__slogan { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, .9rem + 1vw, 1.5rem); color: var(--gold-dark); margin-top: 12px; letter-spacing: .005em; }
.hero__pitch { max-width: 40ch; margin: 26px auto 38px; font-size: 1.16rem; color: var(--ink-2); }
/* Accueil sobre : le hero n'a plus de phrase d'accroche. Sans elle, le slogan
   tombait directement sur les pastilles de store — il lui faut sa respiration
   à lui, plus large que l'espace titre/slogan. */
.hero__slogan + .store-row { margin-top: 64px; }
.hero__pitch strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------- Composant iPhone */
.device { width: 244px; flex: none; }
.device__frame {
  position: relative;
  background: linear-gradient(150deg, #34343a 0%, #161618 55%, #0d0d0f 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(255,255,255,.05);
}
.device__island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 33%; height: 3.6%; background: #08080a; border-radius: 999px; z-index: 3; }
/* Les vraies captures contiennent déjà la Dynamic Island d'iOS : on masque
   alors la fausse island du cadre (gardée seulement sur les placeholders). */
.device__frame:has(.device__shot) .device__island { display: none; }
/* L'écran adopte EXACTEMENT le ratio des captures iPhone 16 Pro Max
   (1320×2868) : object-fit:cover ne rogne donc plus les côtés. */
.device__screen { position: relative; width: 100%; aspect-ratio: 1320 / 2868; background: var(--cream); border-radius: 36px; overflow: hidden; }
.device__shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Capture claire / sombre : bascule avec le thème (système ET bouton manuel),
   en miroir exact de la logique des variables de couleur ci-dessus. */
.device__screen .device__shot--dark { position: absolute; inset: 0; display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device__shot--light { display: none; }
  :root:not([data-theme="light"]) .device__shot--dark { display: block; }
}
:root[data-theme="dark"] .device__shot--light { display: none; }
:root[data-theme="dark"] .device__shot--dark { display: block; }
/* État placeholder (avant que les vraies captures soient fournies) */
.device__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: center; background:
  linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, var(--cream)) 0%, var(--cream) 38%); }
.device__ph .wm { width: 52px; height: 52px; background: var(--gold); opacity: .42; -webkit-mask: url(../img/cross.svg) center/contain no-repeat; mask: url(../img/cross.svg) center/contain no-repeat; }
.device__ph .name { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.device__ph .soon { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px dashed var(--border); border-radius: 999px; padding: 4px 11px; }

/* --------------------------------- Vitrine épinglée (étapes au scroll) ---- */
/* UN grand téléphone épinglé au centre ; pendant le scroll, les écrans
   glissent l'un sur l'autre À L'INTÉRIEUR du téléphone et l'étape active
   s'allume dans la colonne de texte. JS minime (classe is-active),
   transitions GPU uniquement (opacity/transform). */
.showcase { padding-block: 0; }
.showcase__track { height: 280vh; }
.showcase__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 66px; box-sizing: border-box; overflow: hidden;
}
/* Titre + étapes dans la colonne de gauche : le téléphone prend toute la hauteur */
.showcase .section-head { text-align: left; margin: 0 0 36px; max-width: none; }
.showcase__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.showcase__text { max-width: 480px; justify-self: end; }
.showcase__steps { display: grid; gap: 12px; }
.showcase__step {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
  padding: 16px 18px; border-left: 2px solid var(--border);
  opacity: .35;
  transition: opacity .35s ease, border-color .35s ease, background .35s ease;
}
.showcase__step.is-active { opacity: 1; border-color: var(--gold); }
.showcase__step .step__n, .showcase__step .cat-icon { grid-row: 1 / span 2; margin: 0; }
.showcase__step h3 { grid-column: 2; font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); align-self: center; }
.showcase__step p { grid-column: 2; color: var(--ink-2); margin-top: 6px; font-size: .98rem; }
.step__n { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.showcase__device { width: calc((100vh - 130px) * .4603 + 20px); min-width: 260px; max-width: 430px; }
.showcase__slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(28px) scale(.985);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}
.showcase__slide.is-active { opacity: 1; transform: none; }
.showcase__slide.is-past { transform: translateY(-20px) scale(.99); }

/* Profils : l'étape active devient une carte teintée, comme dans l'app */
.profiles .showcase__step { border: 1px solid transparent; border-radius: 14px; }
.profiles .showcase__step.is-active { background: var(--catcard); border-color: color-mix(in srgb, var(--cat) 38%, var(--border)); }

/* Sans JS : pas d'épinglage, premier écran affiché, toutes les étapes lisibles */
html:not(.js) .showcase__track { height: auto; }
html:not(.js) .showcase__sticky { position: static; height: auto; padding-block: 96px; overflow: visible; }
html:not(.js) .showcase__step { opacity: 1; }
html:not(.js) .showcase__slide:first-child { opacity: 1; transform: none; }

/* ------------------------------------------------------- Tuto partage ---- */
.tuto { background: var(--muted); border-block: 1px solid var(--border); }

/* ----------------------------------------------- Garde ta Bible papier --- */
.paper .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.paper__text h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); }
.paper__lead { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 46ch; }
.paper__steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; max-width: 480px; }
.paper__steps li { display: flex; gap: 15px; align-items: flex-start; }
.paper__steps .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.paper__steps li > span:last-child { padding-top: 3px; color: var(--ink-2); }
.paper__steps strong { color: var(--ink); font-weight: 700; }
.paper__media { display: flex; justify-content: center; gap: 22px; }
.paper__media .device { width: 230px; }
.paper__media .device:nth-child(2) { margin-top: 46px; }
@media (max-width: 880px) {
  .paper .container { grid-template-columns: 1fr; gap: 48px; }
  .paper__text { text-align: center; }
  .paper__lead { margin-inline: auto; }
  .paper__steps { margin-inline: auto; text-align: left; }
}
@media (max-width: 600px) {
  .paper__media { gap: 14px; }
  .paper__media .device { width: 150px; }
  .paper__media .device:nth-child(2) { margin-top: 30px; }
}

/* ------------------------------------------------ Profils (3 catégories) - */
.profiles { background: var(--muted); border-block-start: 1px solid var(--border); }
.cat { --cat: var(--gold-dark); --catcard: var(--card-gold); }
.cat--bordeaux { --cat: var(--cat-bordeaux); --catcard: var(--card-bordeaux); }
.cat--blue { --cat: var(--cat-blue); --catcard: var(--card-blue); }
/* Cartes teintées comme dans l'app (écran « Mon profil de foi ») */
.profiles .stack-card { background: var(--catcard); border-color: color-mix(in srgb, var(--cat) 38%, var(--border)); }
.cat h3 { color: var(--cat); }
.cat-icon {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--cat) 13%, transparent);
  color: var(--cat);
}
.cat-icon svg { width: 20px; height: 20px; }

/* ------------------------------------------------------ Voix vérifiées --- */
.verified .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.verified__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 50%; background: var(--gold); color: #fff;
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--gold) 14%, transparent);
}
.verified__badge svg { width: 20px; height: 20px; }
.verified__text h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); }
.verified__text p { margin-top: 18px; max-width: 48ch; color: var(--ink-2); font-size: 1.08rem; }
.verified__text p strong { color: var(--ink); font-weight: 600; }
.verified__media { display: flex; justify-content: center; gap: 22px; }
.verified__media .device { width: 230px; }
.verified__media .device:nth-child(2) { margin-top: 46px; }
@media (min-width: 881px) {
  .verified__media { order: 1; }
  .verified__text { order: 2; }
}
@media (max-width: 880px) {
  .verified .container { grid-template-columns: 1fr; gap: 48px; }
  .verified__text { text-align: center; }
  .verified__text p { margin-inline: auto; }
}
@media (max-width: 600px) {
  .verified__media { gap: 14px; }
  .verified__media .device { width: 150px; }
  .verified__media .device:nth-child(2) { margin-top: 30px; }
}

/* ------------------------------------------------------------- CTA + foot- */
.cta-band { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, var(--cream)) 0%, var(--muted) 100%); border-block: 1px solid var(--border); text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.cta-band p { color: var(--ink-2); margin: 14px auto 30px; }

.site-footer { border-top: 1px solid var(--border); background: var(--cream); padding-block: 48px 30px; font-size: .94rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { font-size: 1.22rem; margin-bottom: 12px; }
.footer-brand p { color: var(--ink-2); font-size: .9rem; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links h4 { font-family: var(--font-sans); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--gold-dark); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: .86rem; }

/* ------------------------------------------------- Révélation au scroll -- */
/* Activée seulement si JS pose la classe .js sur <html> (sinon tout est
   visible d'office) ; neutralisée par prefers-reduced-motion plus bas. */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.16,.84,.32,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Responsive -- */
@media (max-width: 820px) {
  .showcase__track { height: 300vh; }
  .showcase__sticky { padding-top: 60px; }
  .showcase .section-head { text-align: center; margin-bottom: 14px; }
  .showcase__grid { grid-template-columns: 1fr; gap: 16px; justify-items: center; }
  .showcase__text { max-width: 100%; justify-self: stretch; }
  .showcase__steps { gap: 6px; }
  .showcase__device { width: min(58vw, calc((100vh - 430px) * .4603 + 20px)); min-width: 180px; }
  .showcase__step { padding: 10px 12px; column-gap: 12px; }
  .showcase__step h3 { font-size: 1.02rem; }
  .showcase__step p { display: none; font-size: .88rem; margin-top: 3px; }
  .showcase__step.is-active p { display: block; }
  .showcase__step .step__n { width: 28px; height: 28px; font-size: .9rem; }
  .showcase__step .cat-icon { width: 34px; height: 34px; }
  .showcase__step .cat-icon svg { width: 16px; height: 16px; }
  .section { padding-block: 72px; }
}
@media (max-width: 600px) {
  .nav__right { gap: 12px; }
  .nav__right .desktop-only { display: none; }
  .nav__right .btn-nav { padding: 6px 13px; font-size: .85rem; }
  .brand { flex: none; }
  .store-badge { flex: 1 1 100%; }
  .hero { padding-block: 64px 56px; }
}
@media (max-width: 480px) {
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 10px; }
  .nav__right { gap: 9px; }
  .nav__right .btn-nav { padding: 6px 11px; font-size: .8rem; }
  .lang-menu > summary { padding: 4px 8px 4px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

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

/* --------------------------------------------------------- Pages légales -- */
.legal-main { padding-block: 44px 96px; }
.legal { max-width: 760px; margin-inline: auto; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--ink-2); margin-bottom: 26px; }
.legal__back:hover { color: var(--gold-dark); }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.legal__updated { margin-top: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--border); color: var(--ink-2); font-size: .9rem; }
.legal h2 { font-size: 1.42rem; margin-top: 2.6rem; }
.legal h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin-top: 1.8rem; }
.legal p { margin-top: 1rem; }
.legal ul { margin-top: 1rem; padding-left: 1.3rem; display: grid; gap: .5rem; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ------------------------------------------------- L'essentiel (accueil sobre) --
   Version dépouillée de l'accueil : trois lignes de texte, aucune image.
   Colonne étroite, filets fins, rien qui bouge. */
/* Resserre l'espace quand le bloc suit directement le hero (accueil sobre) :
   92/76 + 96 px d'air faisaient un trou au milieu de la page. */
.hero:has(+ .essentials) { padding-bottom: 44px; }
.hero + .essentials { padding-block-start: 52px; }
.essentials .container { max-width: 660px; }
.essentials .eyebrow { display: block; text-align: center; margin-bottom: 32px; }
.essentials__list { border-top: 1px solid var(--border); }
.essential { padding-block: 32px; border-bottom: 1px solid var(--border); }
.essential h2 { font-size: 1.3rem; }
.essential p { margin-top: 10px; color: var(--ink-2); line-height: 1.66; }

@media (max-width: 600px) {
  .essential { padding-block: 26px; }
  .essential h2 { font-size: 1.18rem; }
}

/* -------------------------------------------------- Sections de texte (accueil) --
   Colonne étroite, surtitre et titre centrés, corps de texte aligné à gauche.
   Aucune image : c'est le texte qui porte la page. */
/* RYTHME DE L'ACCUEIL SOBRE (passe de design du 2026-08-05)
   Un seul fond pour toutes les sections — les anciens aplats alternés
   (`.section--muted`) donnaient des « variantes de noir » disgracieuses. Ce
   qui sépare les idées, c'est le blanc, pas la couleur. Trois valeurs, et
   trois seulement : 72 px de respiration de chaque côté d'une section (donc
   144 px entre deux idées, y compris sous le hero), 44 px sous un titre,
   20 px entre deux paragraphes. */
.prose, .essentials, .duo { padding-block: 72px; }
.prose .container { max-width: 660px; text-align: center; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem); margin-bottom: 44px; }
.prose p { text-align: left; color: var(--ink-2); font-size: 1.06rem; line-height: 1.72; }
.prose p + p { margin-top: 20px; }
.prose p strong, .duo strong { color: var(--ink); font-weight: 600; }
/* Conservé pour les pages illustrées ; l'accueil sobre ne s'en sert plus. */
.section--muted { background: var(--muted); }

/* PETIT FILET DORÉ au-dessus de chaque titre de section. Il remplace les
   surtitres supprimés : même fonction de rythme, mais graphique au lieu de
   textuel — la page respire sans se répéter en mots. */
.rule { display: block; width: 44px; height: 3px; border-radius: 999px; background: var(--gold); margin: 0 auto 24px; }

/* Pastille dorée devant chaque principe : la couleur de la marque entre dans
   le corps de la page, pas seulement dans le hero et la bande de fin. */
/* Les 3 principes portent une icône dorée au trait (générateur : ICONS
   shieldCheck / people / globeLarge, d'après les Ionicons de l'app). Elle
   REMPLACE l'ancienne pastille `::before` — ne pas rétablir les deux. */
.essential { display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; align-items: start; }
.essential h3 { grid-column: 2; }
.essential p { grid-column: 2; }
.essential__icon { grid-row: 1 / span 2; color: var(--gold); margin-top: 3px; line-height: 0; }
.essential__icon svg { width: 24px; height: 24px; }

@media (max-width: 600px) {
  .essential { grid-template-columns: 22px 1fr; column-gap: 13px; }
  .essential__icon svg { width: 21px; height: 21px; }
}

/* Titre du bloc « Trois principes » (le bloc sobre s'en passe) */
.essentials__title { text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem); margin-bottom: 44px; }
.essential h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }

/* ------------------------------------------------------------ Deux colonnes -- */
.duo .container { max-width: 980px; text-align: center; }
.duo h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.15rem); margin-bottom: 52px; }
.duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.duo__col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px 32px; }
.duo__col h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 16px; }
.duo__col ul { list-style: none; padding: 0; display: grid; gap: 13px; }
.duo__col li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: .99rem; line-height: 1.5; }
.duo__col li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
/* Variante à UNE colonne (une seule liste, centrée) */
.duo__grid--one { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
/* Colonnes de texte (accueil sobre : les deux rôles, recevoir et transmettre) */
.duo__col p { color: var(--ink-2); font-size: 1rem; line-height: 1.66; }
.duo__col h3 + p { margin-top: 0; }
/* La phrase de clôture n'appartient à aucune des deux cartes : elle a besoin
   d'air au-dessus, sinon elle a l'air collée à la grille. En serif italique
   doré, elle fait écho au slogan du hero et ferme la page. */
.duo__note { margin-top: 48px; font-family: var(--font-serif); font-style: italic; font-size: 1.08rem; color: var(--gold-dark); }

/* LES TROIS CATÉGORIES DE PROFIL, dans le gabarit exact de l'écran « Mon
   profil de foi » de l'app : cadre teinté, bordure de la couleur, pastille
   ronde à gauche, titre coloré, « Exemples : … » en gris dessous.
   Les couleurs viennent des variables --cat / --catcard (classes `.cat--*`
   partagées avec les pages illustrées) = Colors.ts. */
.rolecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.rolecard {
  background: var(--catcard);
  border: 1px solid color-mix(in srgb, var(--cat) 38%, var(--border));
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform .22s cubic-bezier(.16,.84,.32,1), box-shadow .22s ease;
}
.rolecard__head { display: flex; align-items: flex-start; gap: 14px; }
.rolecard .cat-icon { margin: 2px 0 0; flex: none; }
.rolecard h3 { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.25; color: var(--cat); }
.rolecard__examples { margin-top: 6px; color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.rolecard__text { margin-top: 16px; color: var(--ink-2); font-size: .99rem; line-height: 1.6; }
@media (max-width: 880px) {
  .rolecards { grid-template-columns: 1fr; gap: 16px; }
}
@media (hover: hover) {
  .rolecard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .store-badge { transition: transform .18s cubic-bezier(.16,.84,.32,1); }
  .store-badge:hover { transform: translateY(-2px); }
  .essential { transition: border-color .2s ease; }
  .essential:hover { border-bottom-color: var(--gold); }
}

/* Lien discret vers la version illustrée, sous la bande d'appel */
.cta-band__more { margin-top: 26px; font-size: .95rem; }
.cta-band__more a { color: var(--gold-dark); }
.cta-band__more a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .duo__grid { grid-template-columns: 1fr; gap: 18px; }
  .duo__col { padding: 26px 24px; }
}
/* Même rythme, resserré : 52 px de chaque côté = 104 px entre deux idées. */
@media (max-width: 600px) {
  .prose, .essentials, .duo { padding-block: 52px; }
  .prose h2, .duo h2, .essentials__title { margin-bottom: 32px; }
  .duo__note { margin-top: 32px; }
  .hero__slogan + .store-row { margin-top: 48px; }
}

/* ------------------------------------------- Encart adressé aux annotateurs --
   Seul bloc de la page qui vouvoie : il s'adresse aux prêtres, religieux et
   théologiens, pas au lecteur. Le cadre doré marque cette rupture. */
.callout { padding-block: 84px; }
.callout .container { max-width: 760px; }
.callout__box {
  text-align: center;
  padding: 44px 36px;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--border));
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--gold) 7%, var(--card));
}
.callout__box h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); max-width: 22ch; margin-inline: auto; }
.callout__box p { margin-top: 16px; color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.callout__link { margin-top: 22px !important; font-size: .97rem; }
.callout__link a { color: var(--gold-dark); font-weight: 600; }
.callout__link a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 600px) {
  .callout { padding-block: 64px; }
  .callout__box { padding: 32px 22px; }
}
