/* TYPIVO — typivo.app
   Mode clair = ambiance A (Clair éditorial), mode sombre = ambiance B (Nuit).
   Le site suit automatiquement le réglage clair/sombre de l'appareil du visiteur. */

/* ---------- Polices (licence SIL OFL, hébergées sur le site) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-wght-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: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-wght-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: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url("../fonts/bodoni-moda-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* ---------- Couleurs : mode clair (A) ---------- */
:root {
  color-scheme: light dark;
  --fond: #F7F5EF;
  --surface: #FFFFFF;
  --barre: #EFECE4;
  --champ: #F4F1EA;
  --bordure: #DAD5C9;
  --filet: #ECE8DF;
  --texte: #1D1D1B;
  --texte-2: #3E3B35;
  --texte-3: #55524B;
  --pastille-vide: #B4AE9F;
  --pastille-fenetre: #E4DFD4;
  --accent: #2433FF;            /* titres en italique, icônes */
  --bouton: #2433FF;  --bouton-texte: #FFFFFF;
  --bouton-2-bord: #1D1D1B;
  --permanente: #1E8A4C;
  --ephemere: #2433FF;
  --selection: #2433FF; --selection-texte: #FFFFFF;
  --carte-mise-en-avant: #2433FF;
  --vie-fond: #1D1D1B; --vie-texte: #F7F5EF; --vie-texte-2: #E4E0D6; --vie-bouton: #D5FF28; --vie-bouton-texte: #1D1D1B;
  --pied-fond: #1D1D1B; --pied-texte: #E4E0D6; --pied-texte-2: #B9B4A8;
  --surtitre-police: "Inter", system-ui, sans-serif;
  --surtitre-espacement: 0.14em;
}

/* ---------- Couleurs : mode sombre (B) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #12112B;
    --surface: #1C1A3D;
    --barre: #171634;
    --champ: #24224A;
    --bordure: #2E2C57;
    --filet: #2E2C57;
    --texte: #EEEEF6;
    --texte-2: #C9C8DE;
    --texte-3: #A9A8C4;
    --pastille-vide: #5D5B8A;
    --pastille-fenetre: #3A3866;
    --accent: #D5FF28;
    --bouton: #D5FF28;  --bouton-texte: #12112B;
    --bouton-2-bord: #5D5B8A;
    --permanente: #3DD68C;
    --ephemere: #7C86FF;
    --selection: #2433FF; --selection-texte: #FFFFFF;
    --carte-mise-en-avant: #7C86FF;
    --vie-fond: #D5FF28; --vie-texte: #12112B; --vie-texte-2: #22213F; --vie-bouton: #12112B; --vie-bouton-texte: #D5FF28;
    --pied-fond: #0C0B1F; --pied-texte: #C9C8DE; --pied-texte-2: #A9A8C4;
    --surtitre-police: "JetBrains Mono", ui-monospace, monospace;
    --surtitre-espacement: 0.08em;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: "Inter", system-ui, sans-serif; line-height: 1.5; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--carte-mise-en-avant); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--bouton); color: var(--bouton-texte); padding: 12px 16px; z-index: 10; }
.lien-evitement:focus { left: 16px; top: 16px; }

.conteneur { max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.etroit { max-width: 860px; }

.surtitre { font-family: var(--surtitre-police); font-size: 13px; font-weight: 600; letter-spacing: var(--surtitre-espacement); text-transform: uppercase; color: var(--texte-3); }
.titre-section { margin: 0; font-family: "Bodoni Moda", serif; font-weight: 400; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.08; }
.texte-2 { color: var(--texte-2); }

.bouton { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 16px 28px; border-radius: 999px; text-align: center; transition: transform .15s ease, opacity .15s ease; }
.bouton:hover { transform: translateY(-1px); opacity: .92; }
.bouton-plein { background: var(--bouton); color: var(--bouton-texte); }
.bouton-plein:hover { color: var(--bouton-texte); }
.bouton-contour { color: var(--texte); border: 1px solid var(--bouton-2-bord); padding: 15px 27px; }
.bouton-contour:hover { color: var(--texte); }
.bouton-inactif { cursor: default; }
.bouton-inactif:hover { transform: none; opacity: 1; }

/* ---------- En-tête ---------- */
.entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 24px; }
/* Logo : jusqu'à 230 px de large, réduit automatiquement sur petit écran (110 px minimum) */
.entete .logo img { width: clamp(110px, 17vw, 230px); height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav .bouton { padding: 12px 20px; font-size: 15px; }

/* ---------- Accroche ---------- */
.accroche { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-block: clamp(48px, 8vw, 96px) 48px; }
.accroche h1 { margin: 0; font-family: "Bodoni Moda", serif; font-weight: 400; font-size: clamp(44px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.01em; max-width: 960px; }
.accroche h1 em { color: var(--accent); }
.accroche p { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--texte-2); max-width: 640px; }
.accroche .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.accroche .mention { font-size: 14px; color: var(--texte-3); }

/* ---------- Aperçu de l'app ---------- */
.apercu { padding-bottom: 96px; }
.fenetre { overflow-x: auto; border-radius: 20px; background: var(--surface); border: 1px solid var(--bordure); }
.fenetre-interieur { min-width: 860px; }
.fenetre-titre { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--filet); }
.fenetre-titre span.point { width: 12px; height: 12px; border-radius: 50%; background: var(--pastille-fenetre); }
.fenetre-titre span.nom { flex: 1; text-align: center; font-size: 13px; color: var(--texte-3); }
.fenetre-corps { display: flex; height: 440px; }
.barre { width: 240px; flex: none; background: var(--barre); padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--texte-2); }
.barre .groupe { font-size: 11px; font-weight: 600; color: var(--texte-3); text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 10px 4px; }
.barre .groupe:first-child { padding-top: 4px; }
.barre .item { padding: 9px 10px; }
.barre .item.actif { border-radius: 8px; background: var(--selection); color: var(--selection-texte); }
.liste { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.liste-entete { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--filet); font-weight: 600; font-size: 15px; }
.recherche { flex: 1; max-width: 320px; background: var(--champ); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 400; color: var(--texte-3); }
.famille { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--filet); }
.famille:last-child { border-bottom: 0; }
.famille .chevron { width: 14px; font-size: 13px; color: var(--texte-3); }
.famille .pastille { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.famille .pastille.permanente { background: var(--permanente); }
.famille .pastille.ephemere { background: var(--ephemere); }
.famille .pastille.inactive { border: 1.5px solid var(--pastille-vide); }
.famille .specimen { flex: 1; font-size: 32px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.famille .infos { width: 190px; font-size: 14px; color: var(--texte-2); }
.famille .etat { width: 100px; text-align: right; font-size: 13px; font-weight: 600; color: var(--texte-3); }
.famille .etat.permanente { color: var(--permanente); }
.famille .etat.ephemere { color: var(--ephemere); }
.p-bodoni { font-family: "Bodoni Moda", serif; }
.p-bodoni-i { font-family: "Bodoni Moda", serif; font-style: italic; }
.p-inter { font-family: "Inter", sans-serif; font-weight: 600; }
.p-mono { font-family: "JetBrains Mono", monospace; font-size: 28px !important; }

/* ---------- Bandeaux ---------- */
.bandeau { background: var(--surface); border-block: 1px solid var(--bordure); }
@media (prefers-color-scheme: dark) { .bandeau { background: var(--barre); } }
.section { padding-block: 96px; display: flex; flex-direction: column; gap: 48px; }

/* ---------- Fonctionnalités ---------- */
.intro { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.grille-fonctions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.fonction { display: flex; flex-direction: column; gap: 12px; }
.fonction svg { width: 32px; height: 32px; stroke: var(--accent); }
.fonction h3 { margin: 0; font-size: 20px; font-weight: 600; }
.fonction p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--texte-2); }
.mot-permanente { color: var(--permanente); font-weight: 600; }
.mot-ephemere { color: var(--ephemere); font-weight: 600; }

/* ---------- Tarifs ---------- */
.intro-centre { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.intro-centre p { margin: 0; font-size: 17px; color: var(--texte-2); }
.grille-tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.offre { background: var(--surface); border: 1px solid var(--bordure); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.offre.mise-en-avant { border: 2px solid var(--carte-mise-en-avant); padding: 31px; }
.offre.a-vie { background: var(--vie-fond); color: var(--vie-texte); border: 0; }
.offre h3 { margin: 0; font-size: 15px; font-weight: 600; }
.offre .prix { font-family: "Bodoni Moda", serif; font-size: 52px; line-height: 1; }
.offre .periode { font-size: 15px; color: var(--texte-3); }
.offre ul { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.9; color: var(--texte-2); }
.offre.a-vie .periode, .offre.a-vie ul { color: var(--vie-texte-2); }
.offre .bouton { margin-top: auto; padding: 15px; }
.offre .bouton-contour { padding: 14px; }
.offre.mise-en-avant .bouton-plein { background: #2433FF; color: #FFFFFF; }
.offre.a-vie .bouton-plein { background: var(--vie-bouton); color: var(--vie-bouton-texte); font-weight: 700; }
.note-tarifs { margin: 0; text-align: center; font-size: 14px; color: var(--texte-3); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--bordure); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--bordure); }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--texte-3); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--texte-2); }

/* ---------- Pied de page ---------- */
.pied { background: var(--pied-fond); color: var(--pied-texte); }
.pied .conteneur { padding-block: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.pied .marque { display: flex; flex-direction: column; gap: 14px; }
.pied .marque img { height: 36px; width: auto; }
.pied .copyright { font-size: 14px; color: var(--pied-texte-2); }
.pied nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; align-items: flex-start; }
.pied a { color: var(--pied-texte); }
.pied a:hover { color: #D5FF28; }

/* ---------- Pages légales ---------- */
.page-legale { padding-block: 64px 96px; }
.page-legale h1 { margin: 0 0 32px; font-family: "Bodoni Moda", serif; font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.page-legale h2 { margin: 40px 0 12px; font-size: 20px; }
.page-legale p, .page-legale li { font-size: 16px; line-height: 1.7; color: var(--texte-2); }
.a-completer { background: var(--champ); border-radius: 6px; padding: 0 6px; font-family: "JetBrains Mono", monospace; font-size: 14px; }
.avertissement { border: 1px solid var(--bordure); border-radius: 12px; padding: 16px 20px; background: var(--surface); font-size: 15px; }
.choix-paiement { display: flex; flex-wrap: wrap; gap: 12px; }
