/* SECOND — feuille de style unique. Aucune dépendance, aucune police à télécharger. */
/* Identité 2026-09 : logo retrouvé (deux cœurs entrelacés au trait, corail + marine,
   mot-marque en capitales espacées). L'ancienne palette vert sapin / terre cuite était
   une invention antérieure à la découverte du logo ; elle est remplacée intégralement. */

:root {
  --encre: #141B34;        /* bleu marine — porte tout le texte et les surfaces sombres */
  --encre-hover: #232B49;  /* marine éclairci — état survol/appui des surfaces sombres */
  --corail: #B8371F;       /* rouge corail fonctionnel — liens, focus, accents de texte */
  --corail-vif: #E5563A;   /* rouge corail du logo — réservé au tracé décoratif de la marque */
  --creme: #FBF8F3;
  --sable: #F1E9DC;
  --trait: #E6DCC9;
  --doux: #4B5468;
  --blanc: #FFFFFF;
  --vert: #2E6E52;         /* vérifié / disponible — lisible aussi en daltonisme rouge-vert */
  --vert-fond: #EAF3EE;
  --brun: #5F5548;         /* complet / neutre */
  /* Ombre du cadre (grande surface) : large et diffuse pour rester crédible. */
  --ombre: 0 1px 2px rgba(20,27,52,.06), 0 8px 24px rgba(20,27,52,.08);
  /* Ombre des composants (cartes, boutons de mode) : plus discrète, plus proche. */
  --ombre-carte: 0 1px 2px rgba(20,27,52,.05), 0 6px 16px rgba(20,27,52,.06);
  --ombre-carte-survol: 0 2px 4px rgba(20,27,52,.06), 0 10px 22px rgba(20,27,52,.09);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cadre: 430px;
  /* Échelle d'espacement — sert de repère pour les marges/paddings du fichier. */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  /* Durée courte et unique pour les états (survol / appui / focus). */
  --rapide: 140ms ease;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--sable);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

/* Focus clavier visible partout, discret à la souris/tactile grâce à :focus-visible. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--corail);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Le cadre : plein écran sur téléphone, colonne centrée sur ordinateur. */
.telephone {
  max-width: var(--cadre);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--creme);
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (min-width: 520px) {
  body { padding: 28px 16px; }
  .telephone {
    min-height: min(880px, calc(100dvh - 56px));
    border-radius: 28px;
    box-shadow: var(--ombre);
    overflow: hidden;
  }
}

#app {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  padding: 22px 20px 96px;
  -webkit-overflow-scrolling: touch;
}
#app.plein { padding: 0; display: flex; }

/* Titres : une seule famille (système, sans-serif), la hiérarchie se joue sur
   la graisse, la taille et l'interlettrage — pas sur un mélange de polices. */
h1, h2, h3 { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin: 0 0 .4rem; line-height: 1.28; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; line-height: 1.35; letter-spacing: -.005em; }
p { margin: 0 0 .7rem; }
a { color: var(--corail); }

.doux { color: var(--doux); }
.petit { font-size: .9rem; }
.centre { text-align: center; }

/* Les deux seuls paragraphes explicatifs portés par .petit (positionnement
   anti-gamification, mention démo) restent un texte courant : 16px minimum. */
.doux.petit.centre { font-size: 1rem; }

.entete { margin-bottom: var(--sp-5); }
.entete .doux { font-size: 1rem; margin: 0; }

.titre-section { font-size: 1.05rem; font-weight: 600; margin: var(--sp-7) 0 var(--sp-3); }

/* ── Accueil ───────────────────────────────────────────────────────────── */
.accueil {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
  background: radial-gradient(120% 80% at 50% 0%, #FFFDF9 0%, var(--creme) 55%, var(--sable) 100%);
}
.marque { width: 86px; height: 86px; }
/* Le tracé du mark (deux arcs entrelacés) est fixé en inline dans le HTML ;
   les attributs de présentation SVG ont la spécificité la plus basse et
   s'effacent devant ces règles — c'est ici qu'on porte les vraies couleurs. */
.marque path:first-of-type { stroke: var(--encre) !important; }
.marque path:last-of-type { stroke: var(--corail-vif) !important; }

.mot-marque {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: .5rem 0 0;
  line-height: 1;
}
.slogan {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  color: var(--corail);
  margin: .5rem 0 2rem;
  font-size: 1.02rem;
}
.accueil-texte { color: var(--doux); font-size: 1rem; margin-bottom: 2.2rem; }
.accueil-pied { margin-top: 2rem; font-size: .78rem; color: var(--doux); line-height: 1.7; }

/* ── Choix du Life Mode ────────────────────────────────────────────────── */
.ecran-mode { padding: 48px 20px 36px; width: 100%; }
.ecran-mode h2 { margin-bottom: .5rem; }
.ecran-mode .doux { font-size: 1rem; margin-bottom: 1.4rem; }

.modes { display: grid; gap: var(--sp-3); }
.mode {
  text-align: left;
  border: 1px solid var(--trait);
  border-left: 4px solid var(--teinte, var(--encre));
  background: var(--blanc);
  border-radius: 16px;
  padding: 15px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: grid;
  gap: 3px;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--rapide), box-shadow var(--rapide), border-color var(--rapide);
}
.mode:active { transform: scale(.985); }
.mode--actif { box-shadow: 0 0 0 2px var(--teinte); }
@media (hover: hover) and (pointer: fine) {
  .mode:hover { border-color: var(--teinte, var(--doux)); box-shadow: var(--ombre-carte); }
}
.mode-nom { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; letter-spacing: -.003em; }
.mode-fr { font-size: .82rem; color: var(--teinte); letter-spacing: .3px; font-weight: 600; }
.mode-phrase { font-size: 1rem; color: var(--doux); margin-top: 2px; }

/* ── Cartes ────────────────────────────────────────────────────────────── */
.carte {
  background: var(--blanc);
  border: 1px solid var(--trait);
  border-radius: 18px;
  padding: 17px 18px;
  margin-bottom: var(--sp-4);
  box-shadow: var(--ombre-carte);
}
.carte--profil {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--rapide), box-shadow var(--rapide);
}
.carte--profil:active { transform: scale(.99); }
.carte--pointille { border-style: dashed; background: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .carte--profil:hover { box-shadow: var(--ombre-carte-survol); }
}

.profil-tete { display: flex; gap: 14px; align-items: flex-start; }
.profil-tete h3 { margin-bottom: 1px; }
.portrait { flex: none; border-radius: 20px; }
.meta { font-size: .88rem; color: var(--doux); margin: 0 0 .4rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--vert);
  background: var(--vert-fond);
  border-radius: 20px;
  padding: 2px 8px 2px 6px;
  vertical-align: 3px;
  margin-left: 4px;
}

.pastille {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--teinte, var(--encre));
  background: var(--sable);
  background: color-mix(in srgb, var(--teinte, var(--encre)) 11%, transparent);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}
.pastille--grande { font-size: .92rem; padding: 5px 14px; margin-bottom: .5rem; }
.pastille--places { --teinte: var(--vert); }
.pastille--plein { --teinte: var(--brun); }

.accroche { font-family: var(--sans); font-style: italic; font-weight: 500; margin: .9rem 0 .5rem; }
.accroche--grande { font-size: 1.14rem; text-align: center; margin: 1rem 0 1.2rem; }

.pourquoi {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--doux);
  background: var(--sable);
  border-radius: 12px;
  padding: 11px 14px;
  margin: 0;
}
.pourquoi b { color: var(--encre); font-weight: 700; }

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.lien-carte { font-size: .88rem; color: var(--corail); font-weight: 600; transition: color var(--rapide); }
@media (hover: hover) and (pointer: fine) {
  .lien-carte:hover { color: var(--encre); }
}

.fin-liste {
  font-size: .88rem;
  color: var(--doux);
  text-align: center;
  padding: 10px 14px 0;
}

.profil-entete { text-align: center; margin: .6rem 0 0; }
.profil-entete h2 { margin: .6rem 0 .1rem; }
.profil-entete .portrait { margin: 0 auto; display: block; }

.etiquettes { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.etiquettes span {
  font-size: .85rem;
  background: var(--sable);
  border-radius: 20px;
  padding: 4px 11px;
}

.night-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.night-tete h3 { margin: 0 0 .1rem; }

.chiffre { font-family: var(--sans); font-weight: 800; font-size: 2.5rem; letter-spacing: -.02em; line-height: 1; margin: .2rem 0 .4rem; }

.regles { list-style: none; padding: 0; margin: 0; }
.regles li {
  border-left: 3px solid var(--trait);
  padding: 3px 0 3px 14px;
  margin-bottom: var(--sp-3);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--doux);
}
.regles span { color: var(--encre); font-weight: 700; }

.etiquette {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--corail);
  margin-bottom: .4rem;
}

.signature {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  text-align: center;
  color: var(--doux);
  font-size: .95rem;
  margin-top: 1.6rem;
  line-height: 1.6;
}
.signature span { font-style: normal; font-size: .78rem; letter-spacing: .4px; font-weight: 600; }

.page-texte { padding: 44px 22px 40px; width: 100%; }
.liste-num { padding-left: 1.1rem; }
.liste-num li { margin-bottom: .75rem; font-size: 1rem; line-height: 1.65; color: var(--doux); }
.liste-num b { color: var(--encre); font-weight: 700; }

.retour {
  display: inline-block;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px;
  margin: -12px -12px 4px;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--rapide);
}
@media (hover: hover) and (pointer: fine) {
  .retour:hover { color: var(--encre); }
}

/* ── Boutons ───────────────────────────────────────────────────────────── */
.bouton {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  background: var(--encre);
  color: #FFF;
  padding: 12px 22px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--rapide), transform var(--rapide), background-color var(--rapide);
}
.bouton:active { transform: scale(.985); }
.bouton:disabled {
  background: var(--sable);
  color: var(--doux);
  border: 1px solid var(--trait);
  cursor: default;
}
.bouton--large { display: block; width: 100%; padding: 15px; margin-top: .4rem; }
.bouton--doux {
  background: var(--sable);
  color: var(--encre);
  border: 1px solid var(--trait);
  padding: 11px 16px;
  font-size: .92rem;
  margin-top: calc(.5rem - 2px);
  margin-bottom: -2px;
}
.bouton--lien {
  background: none;
  color: var(--doux);
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  display: block;
  margin: calc(1.4rem - 6px) auto -6px;
  padding: 12px;
}
@media (hover: hover) and (pointer: fine) {
  .bouton:not(:disabled):hover { background: var(--encre-hover); }
  .bouton--doux:not(:disabled):hover { background: var(--trait); }
  .bouton--lien:hover { color: var(--encre); }
}

/* ── Barre d'onglets ───────────────────────────────────────────────────── */
#barre {
  position: sticky;
  bottom: 0;
  display: flex;
  background: rgba(251,248,243,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--trait);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
#barre[hidden] { display: none; }
.onglet {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--doux);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2px;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--rapide);
}
.onglet svg { width: 22px; height: 22px; }
.onglet--actif { color: var(--encre); }
.onglet--actif svg { stroke-width: 2.1; }
@media (hover: hover) and (pointer: fine) {
  .onglet:hover { color: var(--encre); }
}

/* ── Message éphémère ──────────────────────────────────────────────────── */
#toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translate(-50%, 14px);
  background: var(--encre);
  color: #FFF;
  font-size: .86rem;
  padding: 11px 18px;
  border-radius: 14px;
  max-width: min(360px, calc(100vw - 40px));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
#toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
