/* Vivifio : feuille unique. Polices système, aucune ressource externe.
   Refonte visuelle du 03/12/2026 : moniteur et ligne de vie animée, tuiles à icônes, mots-clés plutôt que phrases.
   Deux thèmes posés sur <html data-theme="oled|clair"> par theme.js : noir OLED par défaut, clair au choix.
   Téléphone d'abord ; un point de rupture (861 px), comme le premier écran de lode-it,
   plus un à 600 px pour la seule barre du haut (sélecteur de langue sur une ou deux lignes). */

:root, [data-theme='oled'] {
  color-scheme: dark;
  --fond: #000; --fond-2: #050A09; --surface: #0A1210; --surface-2: #0E1915;
  --encre: #E8F3EF; --encre-douce: #BACDC6; --encre-pale: #8FA8A0;
  --ligne: rgba(143, 227, 196, .15); --ligne-forte: rgba(143, 227, 196, .28);
  --accent: #8FE3C4; --accent-fond: rgba(95, 212, 168, .10);
  --orange: #F26419; --orange-texte: #FF9A5C; --orange-fond: rgba(242, 100, 25, .14);
  --focus: #F26419;
  --pil-filet: rgba(255, 255, 255, .16); --pil-fond: rgba(255, 255, 255, .04);
  --ecran: #040B09; --trace: #8FE3C4; --trace-vif: #F2FFFA; --vif-a: #FFA36A; --vif-b: #F26419;
  --carte-ombre: 0 26px 60px -34px rgba(95, 212, 168, .55);
}
[data-theme='clair'] {
  color-scheme: light;
  --fond: #fff; --fond-2: #F2F8F6; --surface: #fff; --surface-2: #F7FBFA;
  --encre: #0F1A17; --encre-douce: #33433E; --encre-pale: #55665F;
  --ligne: #DCE7E3; --ligne-forte: #C3D6CF;
  --accent: #127A57; --accent-fond: #E8F5F0;
  --orange: #E0580F; --orange-texte: #B8490C; --orange-fond: #FEF0E7;
  --focus: #D9560F;
  --pil-filet: #C3D6CF; --pil-fond: #F7FBFA;
  --ecran: #06110E; --trace: #8FE3C4; --trace-vif: #F2FFFA; --vif-a: #E0580F; --vif-b: #A9430B;
  --carte-ombre: 0 24px 50px -30px rgba(18, 122, 87, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
  font-size: 17px; line-height: 1.55; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.mono { font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, 'DejaVu Sans Mono', monospace; }
.visuel-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 8px 14px; background: var(--surface); color: var(--encre); border: 1px solid var(--ligne-forte); border-radius: 8px; }
.evitement:focus { top: 8px; }

/* ---------- Logo selon le thème ---------- */
.logo-clair { display: none; }
[data-theme='clair'] .logo-clair { display: block; }
[data-theme='clair'] .logo-sombre { display: none; }

/* ---------- Barre du haut ---------- */
.barre { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; z-index: 5; }
.barre-pages { position: static; border-bottom: 1px solid var(--ligne); }
.barre-marque { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--encre); font-weight: 700; }
.barre-marque img { width: 120px; }
.barre-outil { font-size: 14px; color: var(--encre-pale); }
.barre-outil a { color: var(--encre-pale); }

.bascule-theme {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--pil-filet); border-radius: 999px; background: var(--pil-fond); color: var(--encre);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.bascule-theme:hover { border-color: var(--accent); }
.bascule-theme svg { width: 18px; height: 18px; }
.bascule-theme .ic-soleil, .bascule-theme .t-noir { display: inline; }
.bascule-theme .ic-lune, .bascule-theme .t-clair { display: none; }
[data-theme='clair'] .bascule-theme .ic-soleil, [data-theme='clair'] .bascule-theme .t-noir { display: none; }
[data-theme='clair'] .bascule-theme .ic-lune, [data-theme='clair'] .bascule-theme .t-clair { display: inline; }

/* ---------- Icônes ---------- */
.ic, .ic-puce, .ic-titre, .ic-mini, .chiffre-ic { flex: none; display: inline-block; }
.ic { width: 26px; height: 26px; }
.ic-puce { width: 18px; height: 18px; }
.ic-titre { width: 22px; height: 22px; }
.ic-mini { width: 14px; height: 14px; }

/* ---------- La ligne de vie (moniteur d'hôpital) ----------
   Même tracé en couches, longueur ramenée à 1 (pathLength) : le tracé reste affiché, un trou avance devant lui
   et une tête lumineuse écrit le battement. Sans animation (réglage du système), le tracé est simplement affiché. */
.ecg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg-trace { stroke: var(--trace); stroke-width: 3; }
.ecg-halo { stroke: var(--trace); stroke-width: 10; opacity: .22; }
.ecg-vif { stroke: var(--trace-vif); stroke-width: 3.6; }
.ecg-tete { stroke: var(--trace-vif); stroke-width: 9; }
.ecg-plat { stroke: var(--encre-pale); stroke-width: 2.5; opacity: .6; }
.ecg-vif, .ecg-tete { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ecg-trace, .ecg-halo { stroke-dasharray: .84 .16; animation: balayage 2.8s linear infinite; }
  .ecg-vif { display: inline; stroke-dasharray: .05 .95; animation: balayage-vif 2.8s linear infinite; }
  .ecg-tete { display: inline; stroke-dasharray: .001 .999; animation: balayage-tete 2.8s linear infinite; }
  .trace-pc .ecg, .ecg-deco .ecg { animation-duration: 2.2s; }
  .ecg-deco .ecg { animation-duration: 3.6s; }
  .m-coeur { transform-box: fill-box; transform-origin: center; animation: battre .93s ease-in-out infinite; }
  .m-led { animation: veille .93s ease-in-out infinite; }
}
@keyframes balayage { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
@keyframes balayage-vif { from { stroke-dashoffset: -.79; } to { stroke-dashoffset: -1.79; } }
@keyframes balayage-tete { from { stroke-dashoffset: -.839; } to { stroke-dashoffset: -1.839; } }
@keyframes battre { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } 60% { transform: scale(1); } }
@keyframes veille { 0%, 100% { opacity: .45; } 14% { opacity: 1; } }

/* ---------- Premier écran : la question, le moniteur qui bat ---------- */
.ouverture {
  position: relative; padding: 128px 16px 76px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 78% 45%, var(--accent-fond), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, var(--orange-fond), transparent 70%),
    var(--fond);
}
/* Téléphone : le moniteur passe juste sous la question (display: contents), le reste suit. */
.ouverture-grille { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.ouverture-texte { display: contents; }
.ouverture-grille .logo-h1 { order: 1; }
.ouverture-grille .promesse { order: 2; }
.ouverture-grille .moniteur { order: 3; width: min(100%, 330px); margin: 6px auto 10px; }
.ouverture-grille .promesse-suite { order: 4; }
.ouverture-grille .mots { order: 5; }
.ouverture-grille .actions { order: 6; }
.ouverture-grille .etat { order: 7; }
.logo-h1 { width: clamp(150px, 34vw, 210px); }
.logo-h1 img { width: 100%; }
.promesse { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; color: var(--encre); max-width: 19ch; text-wrap: balance; }
.vif { font-style: normal; color: var(--vif-b); background: linear-gradient(100deg, var(--vif-a), var(--vif-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.promesse-suite { font-size: clamp(17px, 2.1vw, 20px); color: var(--encre-douce); max-width: 40ch; }
.mots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mots li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: var(--accent-fond); color: var(--encre); font-size: 14px; font-weight: 700; }
.mots .ic-puce { color: var(--accent); width: 16px; height: 16px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.actions .lien-bouton { margin-top: 0; }
.lien-second {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--ligne-forte); color: var(--encre); font-weight: 800; text-decoration: none; background: var(--pil-fond);
}
.lien-second:hover { border-color: var(--accent); }
.etat { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--encre-pale); border: 1px dashed var(--ligne-forte); border-radius: 999px; padding: 4px 12px; }
.etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.moniteur { position: relative; width: min(100%, 440px); margin: 0 auto; }
.moniteur::before { content: ''; position: absolute; inset: 6% 4% 20%; border-radius: 40%; background: var(--accent-fond); filter: blur(40px); }
.moniteur-svg { position: relative; width: 100%; height: auto; overflow: visible; }
.m-cadre { fill: var(--surface); stroke: var(--accent); stroke-opacity: .55; stroke-width: 3; }
.m-ecran { fill: var(--ecran); stroke: #8FE3C4; stroke-opacity: .2; stroke-width: 1.5; }
.m-grille path { stroke: #8FE3C4; stroke-opacity: .07; stroke-width: 1; }
.m-coeur path { fill: var(--orange); }
.m-repere { stroke: #8FE3C4; stroke-opacity: .28; stroke-width: 5; stroke-linecap: round; }
.m-pied { fill: var(--surface); stroke: var(--accent); stroke-opacity: .4; stroke-width: 2.5; stroke-linejoin: round; }
.m-led { fill: var(--orange); }
.defiler { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--encre-pale); padding: 8px; border-radius: 50%; }
.defiler:hover { color: var(--encre); }

/* ---------- Sections ---------- */
.section { padding: 64px 16px; border-top: 1px solid var(--ligne); }
.section.alt { background: var(--fond-2); }
.dedans { max-width: 1040px; margin: 0 auto; }
.surtitre { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-texte); margin-bottom: 8px; }
.h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.chapo { margin-top: 12px; color: var(--encre-douce); max-width: 60ch; }

/* Listes à icônes : coche verte, croix pâle */
.liste-ic { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-ic li { display: flex; align-items: flex-start; gap: 10px; color: var(--encre-douce); font-weight: 600; }
.liste-ic .ic-puce { margin-top: 3px; color: var(--accent); }
.avant .liste-ic .ic-puce, .non .liste-ic .ic-puce { color: var(--encre-pale); }

/* Étiquettes (mots-clés) */
.etiquettes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.etiquettes li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--pil-fond); color: var(--encre-douce); font-size: 14px; font-weight: 600; line-height: 1.35; }
.envoi .etiquettes li { border-radius: 10px; }
.etiquettes li.fort { border-color: var(--orange); background: var(--orange-fond); color: var(--encre); }

/* Avant, après */
.duel { margin-top: 32px; display: grid; gap: 14px; align-items: stretch; }
.pc-etat { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; border: 1px solid var(--ligne); background: var(--surface); }
.pc-etat.avant { border-style: dashed; }
.pc-etat.apres { border-color: var(--accent); box-shadow: var(--carte-ombre); }
.trace-pc { width: 100%; height: auto; border-radius: 12px; background: var(--ecran); }
.avant .trace-pc { background: var(--surface-2); }
.etiquette-etat { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.avant .etiquette-etat { background: var(--pil-fond); color: var(--encre-pale); border: 1px solid var(--ligne-forte); }
.apres .etiquette-etat { background: var(--accent-fond); color: var(--accent); border: 1px solid var(--accent); }
.duel-fleche { display: grid; place-items: center; color: var(--orange); }
.duel-fleche .ic { width: 34px; height: 34px; transform: rotate(90deg); }

/* Fonctions : six tuiles */
.fonctions { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.fonction {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--ligne); border-radius: 18px;
  background: var(--surface); scroll-margin-top: 16px; transition: transform .2s, border-color .2s;
}
.fonction:hover { transform: translateY(-3px); border-color: var(--ligne-forte); }
.fonction:target { border-color: var(--orange); }
.fonction-tete { display: flex; justify-content: space-between; align-items: flex-start; }
.tuile-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--accent);
  background: linear-gradient(145deg, var(--accent-fond), transparent); border: 1px solid var(--ligne-forte);
}
.tuile-ic.petite { width: 44px; height: 44px; border-radius: 13px; }
.tuile-ic.petite .ic { width: 22px; height: 22px; }
.fonctions li:nth-child(3n+2) .tuile-ic { color: var(--orange-texte); background: linear-gradient(145deg, var(--orange-fond), transparent); border-color: var(--orange-fond); }
.fonction-n { font-size: 13px; color: var(--encre-pale); }
.fonction h3 { font-size: 20px; font-weight: 800; }
.aussi { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.aussi-t { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-pale); font-weight: 700; }

/* Comment ça marche : trois étapes */
.etapes { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; position: relative; }
.etape { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; }
.etape-ic {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--accent);
  background: radial-gradient(circle at 50% 35%, var(--accent-fond), var(--surface) 70%); border: 1px solid var(--ligne-forte);
}
.etape-ic .ic { width: 34px; height: 34px; }
.etape-n {
  position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 14px; font-weight: 700;
}
.etape h3 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.etape p { color: var(--encre-pale); }
.doute { margin-top: 28px; display: flex; justify-content: center; }
.doute a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: var(--pil-fond); color: var(--encre); font-weight: 700; text-decoration: none; }
.doute a:hover { border-color: var(--accent); }
.doute .ic-puce { color: var(--orange-texte); }

/* Confiance : deux cartes */
.deux { display: grid; gap: 16px; margin-top: 28px; }
.carte { padding: 22px; border: 1px solid var(--ligne); border-radius: 18px; background: var(--surface); }
.carte h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.carte.oui h3 .ic-titre { color: var(--accent); }
.carte.non h3 .ic-titre { color: var(--encre-pale); }
.carte.oui { border-color: var(--ligne-forte); }

/* Prix */
.offres { display: grid; gap: 14px; margin-top: 30px; }
.offre { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--ligne); border-radius: 20px; background: var(--surface); }
.offre.essai { border-color: var(--ligne-forte); }
.offre.vedette { border-color: var(--orange); box-shadow: 0 24px 60px -34px var(--orange); }
.vedette-badge { position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 800; }
[data-theme='clair'] .vedette-badge, [data-theme='clair'] .etape-n { background: #C24E0E; }
.offre h3 { font-size: 17px; font-weight: 700; color: var(--encre-douce); }
.montant { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.montant small { font-size: 16px; font-weight: 600; color: var(--encre-pale); letter-spacing: 0; }
.offre .montant-mois { margin-top: -8px; font-size: 14px; color: var(--encre-pale); }
.offre .liste-ic { font-size: 15px; gap: 8px; }
.bouton {
  margin-top: auto; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1px solid var(--ligne-forte); background: transparent; color: var(--encre-pale);
  font: inherit; font-size: 15px; font-weight: 700;
}
.bouton[disabled] { cursor: not-allowed; opacity: .85; }
.prix-notes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.prix-notes li { display: flex; align-items: flex-start; gap: 10px; color: var(--encre-douce); font-size: 15px; }
.prix-notes .ic-puce { margin-top: 2px; color: var(--accent); }
.tva { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--encre-pale); }

/* Vie privée */
.chiffres { margin-top: 30px; display: grid; gap: 12px; }
.chiffre { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--ligne-forte); background: var(--surface); }
.chiffre-v { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent); min-width: 44px; text-align: center; }
.chiffre-ic { width: 44px; height: 44px; color: var(--accent); }
.chiffre-t { font-weight: 700; color: var(--encre); }
.envois { margin-top: 14px; display: grid; gap: 12px; }
.envoi { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--ligne); border-radius: 16px; background: var(--surface); }
.envoi h3 { font-size: 17px; font-weight: 800; }
.jamais { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--orange-fond); background: var(--orange-fond); }
.jamais-t { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--orange-texte); }
.jamais ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.jamais li { display: inline-flex; align-items: center; gap: 6px; color: var(--encre); font-weight: 600; font-size: 15px; }
.jamais .ic-puce { color: var(--orange-texte); width: 16px; height: 16px; }
.detail-envois { margin-top: 14px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface); }
.detail-envois summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--encre-douce); }
.detail-envois > .chapo, .detail-envois > .petit { margin: 0 16px 12px; font-size: 15px; }
.envois-detail { display: grid; gap: 10px; padding: 0 16px 6px; }
.envoi-detail { padding: 14px; border: 1px solid var(--ligne); border-radius: 12px; }
.envoi-detail h3 { font-size: 16px; font-weight: 800; }
.envoi-detail dl { margin: 8px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.envoi-detail dt { color: var(--encre-pale); }
.envoi-detail dd { margin: 0; color: var(--encre-douce); }

/* Questions */
.questions { margin-top: 24px; display: grid; gap: 10px; }
.questions details { border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface); }
.questions summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style-position: inside; }
.questions details p { padding: 0 16px 16px; color: var(--encre-douce); }

/* Être prévenu */
.prevenu { text-align: center; }
.prevenu .chapo { margin-left: auto; margin-right: auto; }
.ecg-deco { width: min(100%, 560px); height: auto; margin: 0 auto 18px; }
.lien-bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; background: var(--orange); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 14px 34px -14px var(--orange);
}
[data-theme='clair'] .lien-bouton { background: #C24E0E; }
.lien-bouton:hover { filter: brightness(1.08); }
.petit { margin-top: 12px; font-size: 14px; color: var(--encre-pale); }

/* Pied */
.pied { padding: 32px 16px 40px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--encre-pale); }
.pied .dedans { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.pied nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pied a { color: var(--encre-pale); }
.pied a:hover { color: var(--encre); }

/* Langues : une liste de liens, sans script, dans la barre du haut et rappelée au pied.
   Téléphone : la liste passe sur une deuxième ligne de la barre, alignée sous le bouton de thème ;
   dès 600 px, tout tient sur une ligne. Placé après le pied pour l'emporter sur « .pied a ». */
.barre { flex-wrap: wrap; row-gap: 10px; }
.barre .langues { order: 3; flex: 1 0 100%; display: flex; justify-content: flex-end; }
.barre-outil { flex: 1 1 0%; min-width: 0; }  /* sur 320 px, le texte passe à la ligne plutôt que de repousser le bouton */
.ouverture { padding-top: 128px; }
nav.langues ul { list-style: none; margin: 0; padding: 2px; display: flex; flex-wrap: nowrap; gap: 0; border: 1px solid var(--pil-filet); border-radius: 999px; background: var(--pil-fond); }
.langues a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; padding: 0 6px;
  border-radius: 999px; color: var(--encre-douce); font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1; text-decoration: none;
}
.langues a:hover { color: var(--encre); background: var(--accent-fond); }
.langues a[aria-current='page'] { color: var(--accent); background: var(--accent-fond); box-shadow: inset 0 0 0 1px var(--accent); }
@media (min-width: 600px) {
  .barre .langues { order: 0; flex: 0 0 auto; margin-left: auto; }
  .ouverture { padding-top: 96px; }
  .fonctions { grid-template-columns: 1fr 1fr; }
  .chiffres { grid-template-columns: repeat(3, 1fr); }
  .chiffre { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
  .envois { grid-template-columns: 1fr 1fr; }
}

/* Pages de texte (mentions, confidentialité, 404) */
.page-texte { padding: 40px 16px 64px; }
.page-texte .dedans { max-width: 760px; }
.page-texte h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; }
.page-texte h2 { font-size: 20px; font-weight: 800; margin-top: 32px; }
.page-texte p, .page-texte li { color: var(--encre-douce); }
.page-texte p { margin-top: 10px; }
.page-texte ul { padding-left: 20px; }
.maj { margin-top: 8px; font-size: 14px; color: var(--encre-pale); }
.introuvable { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.introuvable img { width: 200px; }
.toutes-langues { max-width: 36ch; font-size: 15px; }
.toutes-langues a { white-space: nowrap; }
/* Pages légales traduites : la version française fait foi */
.page-texte .avis-traduction { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-fond); border-radius: 0 12px 12px 0; font-size: 15px; }

@media (min-width: 861px) {
  body { font-size: 18px; }
  .barre { padding: 18px 28px; }
  .section { padding: 96px 28px; }
  .ouverture { padding: 112px 28px 84px; min-height: 92vh; min-height: 92svh; display: grid; align-content: center; }
  .ouverture-grille { width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; text-align: left; }
  .ouverture-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .ouverture-grille .moniteur { width: min(100%, 460px); margin: 0 auto; }
  .mots, .actions { justify-content: flex-start; }
  .duel { grid-template-columns: 1fr auto 1fr; }
  .duel-fleche .ic { transform: none; }
  .fonctions { grid-template-columns: repeat(3, 1fr); }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .etapes::before { content: ''; position: absolute; top: 42px; left: 17%; right: 17%; border-top: 2px dashed var(--ligne-forte); }
  .deux { grid-template-columns: 1fr 1fr; }
  .offres { grid-template-columns: repeat(3, 1fr); }
  .envois { grid-template-columns: repeat(4, 1fr); }
  .envois-detail { grid-template-columns: 1fr 1fr; }
}

/* Ouverture des ventes (03/12) : état « disponible », boutons d'achat, onglet Pro de l'accueil */
.etat.dispo::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-fond); }
a.bouton { text-decoration: none; color: var(--encre); }
a.bouton:hover { border-color: var(--accent); }
.bouton.plein { background: var(--orange); border-color: var(--orange); color: #fff; }
[data-theme='clair'] .bouton.plein { background: #C24E0E; border-color: #C24E0E; }
a.bouton.plein:hover { filter: brightness(1.08); }
.lien-bouton .ic-puce, .lien-second .ic-puce { width: 18px; height: 18px; }
.lien-second { gap: 8px; }
.barre-pro {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ligne-forte);
  background: var(--pil-fond); color: var(--encre); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-decoration: none;
}
.barre-pro:hover { border-color: var(--accent); color: var(--accent); }

/* Pages Télécharger et Vivifio Pro */
.page-large .dedans { max-width: 1080px; }
.systemes, .pro-cartes { display: grid; gap: 16px; margin-top: 28px; }
.systeme, .pro-carte { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border: 1px solid var(--ligne); border-radius: 20px; background: var(--surface); }
.systeme-tete { display: flex; align-items: center; gap: 14px; }
.page-texte .systeme h2, .page-texte .pro-carte h2, .page-texte .pro-service h2 { margin-top: 0; font-size: 19px; }
.page-texte .systeme-detail { margin-top: 2px; font-size: 14px; color: var(--encre-pale); }
.page-texte ul.fichiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fichier .lien-bouton, .fichier .lien-second { margin-top: 0; width: 100%; }
.page-texte .fichier-info { margin-top: 8px; font-size: 13px; color: var(--encre-pale); overflow-wrap: anywhere; }
.page-texte .empreinte { margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--encre-pale); overflow-wrap: anywhere; word-break: break-all; }
.page-texte .note { margin-top: auto; padding: 10px 12px; border-radius: 12px; background: var(--accent-fond); font-size: 13.5px; }
.badge-beta { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--orange-fond); color: var(--orange-texte); font-size: 12px; font-weight: 800; vertical-align: middle; }
.page-texte .pastilles-pro { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles-pro li { padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--orange); color: var(--orange-texte); font-size: 13px; font-weight: 800; }
.page-texte .chapo-pro { font-size: 18px; max-width: 62ch; }
.page-texte .pro-carte .liste-ic, .page-texte .pro-service .etiquettes { padding-left: 0; }
.page-texte .pro-carte .liste-ic { margin-top: 4px; }
.pro-service { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 22px; border: 1px solid var(--ligne-forte); border-radius: 20px; background: linear-gradient(145deg, var(--accent-fond), transparent); }
.pro-service .tuile-ic { flex: none; }
.page-texte .pro-service .etiquettes { margin-top: 12px; }
.pro-devis { margin-top: 28px; text-align: center; }
@media (min-width: 861px) {
  .systemes { grid-template-columns: repeat(3, 1fr); }
  .pro-cartes { grid-template-columns: 1fr 1fr; }
}
