/* SIKADI AI — le site public. Soft, aéré, humain. Aucune dépendance, aucun script. */

/* ---------------------------------------------------------------- polices (Nunito Sans, OFL) */
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(/statique/polices/nunito-sans-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(/statique/polices/nunito-sans-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(/statique/polices/nunito-sans-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(/statique/polices/nunito-sans-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(/statique/polices/nunito-sans-latin-ext-700-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(/statique/polices/nunito-sans-latin-700-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url(/statique/polices/nunito-sans-latin-ext-800-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: 'Nunito Sans'; font-style: normal; font-display: swap; font-weight: 800; src: url(/statique/polices/nunito-sans-latin-800-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; }

/* ---------------------------------------------------------------- couleurs et base */
:root {
  --vert: #1B4D3E;
  --vert-profond: #0F3D2E;
  --lavande: #7B6EF6;
  --lavande-texte: #5446D6;
  --lavande-douce: #EFEDFD;
  --brume: #EAF2EE;
  --encre: #17201D;
  --gris: #4E5A55;
  --gris-2: #5F6B66;
  --gris-3: #8A9590;
  --trait: #E7EAE6;
  --trait-doux: #EEF1EE;
  --fond-doux: #F6F8F7;
  --bulle-moi: #DCEBE4;
  --bord-champ: #D8DED9;
  --doux: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: #FFFFFF; }
body {
  margin: 0; background: #FFFFFF; color: var(--encre);
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--vert); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s ease; }
a:hover { color: var(--vert-profond); }
:focus-visible { outline: 3px solid rgba(123, 110, 246, .55); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lavande-douce); color: var(--encre); }
strong { font-weight: 700; }
.cache { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.enveloppe { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------------------------------------------------------------- la marque */
.lien-marque { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-radius: 10px; }   /* (36b-3, AJ-8) cible ≥ 44 px */
.marque { display: inline-flex; align-items: center; gap: 10px; }
.marque-mot { font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--vert); white-space: nowrap; }
.marque-ai { font-weight: 600; color: var(--lavande-texte); }
.marque-sombre .marque-mot { color: #FFFFFF; font-size: 16px; }
.marque-sombre .marque-ai { color: #C9C3FC; }
.icone { flex: none; }
.icone-lavande { color: var(--lavande-texte); }
.icone-gris { color: var(--gris-3); }

/* ---------------------------------------------------------------- boutons */
.bouton {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border: 0; border-radius: 14px;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease, transform .2s var(--doux), box-shadow .25s ease;
}
.bouton-plein { background: var(--vert); color: #FFFFFF; }
.bouton-plein:hover { background: var(--vert-profond); color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(15, 61, 46, .55); }
.bouton-clair { background: var(--brume); color: var(--vert); min-height: 50px; font-size: 16px; }
.bouton-clair:hover { background: #DCEBE4; color: var(--vert-profond); }
.bouton-discret { background: transparent; color: var(--gris); min-height: 48px; font-size: 15px; border: 1.5px solid #E1E6E2; }
.bouton-discret:hover { border-color: #C8D1CB; color: var(--encre); }
.bouton:active { transform: translateY(0); box-shadow: none; }

/* ---------------------------------------------------------------- communs gardés (espace, liaison, conditions) */
.petit { font-size: 14px; line-height: 1.5; color: var(--gris-2); text-align: center; }
.petit a { font-weight: 700; }
.bulles { display: flex; flex-direction: column; gap: 12px; }
.bulle { max-width: 78%; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.bulle-moi { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--bulle-moi); transform-origin: right bottom; }
.bulle-lui { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: var(--lavande-douce); transform-origin: left bottom; }
.bulle-heure { display: block; margin-top: 4px; font-size: 11px; color: var(--gris); }
.bulle-moi .bulle-heure { text-align: right; }
.atouts { display: flex; flex-direction: column; gap: 36px; }
.atout { display: flex; gap: 16px; }
.pastille-icone { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brume); color: var(--vert); display: flex; align-items: center; justify-content: center; }
.atout h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.atout p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--gris); }
.geste-numero { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--vert); color: var(--vert); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- les pages de formulaire */
.auth-cote { display: none; }
.auth-principal { min-height: 100vh; min-height: 100svh; display: flex; justify-content: center; }
.auth-colonne { width: 100%; max-width: 440px; padding: 16px 24px 32px; display: flex; flex-direction: column; }
.auth-entete { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.retour { width: 44px; height: 44px; margin-left: -10px; display: flex; align-items: center; justify-content: center; color: var(--encre); border-radius: 50%; transition: background-color .2s ease; }
.retour:hover { background: var(--fond-doux); color: var(--encre); }
.etape { font-size: 14px; color: var(--gris-2); }
.auth-entete-marque { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 8px; }   /* (AJ-8) */
.auth-titre { padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.auth-titre h1 { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.auth-titre p { font-size: 16px; line-height: 1.55; color: var(--gris); }

.alerte { margin-top: 24px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #FBF1EC; color: #6B3A2C; font-size: 15px; line-height: 1.5; animation: doux .4s var(--doux) both; }
.alerte .icone { color: #B4664F; margin-top: 1px; }
.alerte a { color: #6B3A2C; font-weight: 700; }

.formulaire { padding-top: 32px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ label { font-size: 15px; font-weight: 700; }
.champ-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lien-discret { font-size: 14px; font-weight: 600; display: inline-block; padding: 12px 0; margin: -12px 0; }   /* (AJ-8) cible ≥ 44 px, ligne inchangée */
.saisie, .saisie-numero {
  height: 54px; border: 1.5px solid var(--bord-champ); border-radius: 12px; background: #FFFFFF;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.saisie { width: 100%; padding: 0 16px; font: inherit; font-size: 17px; color: var(--encre); outline: none; }
.saisie-code { letter-spacing: .06em; text-transform: uppercase; }
.saisie-code::placeholder { text-transform: none; letter-spacing: .02em; }
.saisie::placeholder, .saisie-numero input::placeholder { color: var(--gris-3); opacity: 1; }
.saisie:hover, .saisie-numero:hover { border-color: #C3CBC6; }
.saisie:focus, .saisie-numero:focus-within { border-color: var(--vert); box-shadow: 0 0 0 4px rgba(27, 77, 62, .10); }
.saisie.en-erreur, .saisie-numero.en-erreur { border-color: #D39A88; }
.saisie-numero { display: flex; align-items: center; overflow: hidden; }
.saisie.saisie-figee, .saisie-numero.saisie-figee { background: var(--fond-doux); border-color: var(--trait); color: var(--gris); }
.saisie-figee:hover { border-color: var(--trait); }
.saisie-numero.saisie-figee input { color: var(--gris); }
.indicatif { height: 100%; display: flex; align-items: center; padding: 0 14px; background: var(--fond-doux); border-right: 1.5px solid var(--bord-champ); font-size: 16px; font-weight: 700; color: var(--gris); }
.saisie-numero input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 14px; font: inherit; font-size: 17px; color: var(--encre); outline: none; background: transparent; }
.aide { font-size: 13px; line-height: 1.5; color: var(--gris-2); }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--gris); padding-top: 4px; cursor: pointer; }
.case input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--vert); cursor: pointer; }
.case a { font-weight: 700; }
.formulaire-bas { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 14px; }
.formulaire-bas .bouton { width: 100%; }
.texte-doux { padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.texte-doux p { font-size: 16px; line-height: 1.65; color: var(--gris); }
.texte-doux + .formulaire-bas { margin-top: auto; padding-top: 40px; }
.page-auth .auth-colonne > .formulaire-bas { flex: none; }

/* ---------------------------------------------------------------- l'espace */
.espace { width: 100%; max-width: 600px; margin: 0 auto; padding: 16px 24px 28px; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.espace-entete { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lavande-douce); color: var(--lavande-texte); font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.espace-principal { display: flex; flex-direction: column; }
a.avatar { text-decoration: none; transition: box-shadow .2s ease, transform .2s var(--doux); }
a.avatar:hover, a.avatar:focus-visible { box-shadow: 0 0 0 4px rgba(123, 110, 246, .16); }
.avatar-actif { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--lavande); }
/* « Mon compte » (saas-17) */
.lien-retour-espace { margin-top: 18px; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--gris); text-decoration: none; }
.lien-retour-espace:hover { color: var(--vert); }
.page-compte .espace h1, .page-compte .espace-principal > h1 { margin-top: 10px; }
.titre-section { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gris-2); }
.carte-compte { gap: 16px; }
.carte-compte .alerte { margin-top: 0; }
.carte-compte .formulaire { padding-top: 0; gap: 18px; flex: none; }
.carte-compte .formulaire-bas { margin-top: 4px; padding-top: 0; }
.etat-mot { font-weight: 700; color: var(--encre) !important; }
.fiche { display: flex; flex-direction: column; border-radius: 14px; background: #FFFFFF; padding: 4px 16px; }
.fiche > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--trait-doux); }
.fiche > div:first-child { border-top: 0; }
.fiche dt { font-size: 14px; color: var(--gris); }
.fiche dd { font-size: 15px; font-weight: 700; color: var(--encre); white-space: nowrap; }
.bandeau-ok { margin-top: 20px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #EAF5EE; color: #1E4D35; font-size: 15px; line-height: 1.55; animation: doux .4s var(--doux) both; }
.bandeau-ok .icone { flex: none; color: #2E8B57; margin-top: 1px; }
.espace h1 { margin-top: 28px; font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.bandeau-pause { margin-top: 20px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #FBF5E9; color: #5C4A1E; font-size: 15px; line-height: 1.55; }
.bandeau-pause .icone { color: #A07A1F; margin-top: 1px; }
.bandeau-pause a { color: #5C4A1E; font-weight: 700; }
.carte { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--brume); display: flex; flex-direction: column; gap: 14px; animation: doux .5s var(--doux) both; }
.carte h2 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.carte p { font-size: 15px; line-height: 1.55; color: #3F4B46; }
.etat-ligne { display: flex; align-items: center; gap: 10px; }
.voyant { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.voyant-vert { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .14); }
.voyant-gris { background: #A3ADA8; }
.voyant-lavande { background: var(--lavande); box-shadow: 0 0 0 4px rgba(123, 110, 246, .14); }
.carte .bouton { min-height: 50px; font-size: 16px; border-radius: 12px; }
.carte-coupe { background: var(--fond-doux); }
.carte-attente { align-items: center; text-align: center; padding: 40px 24px; gap: 12px; }
.carte-attente h2 { font-size: 20px; font-weight: 800; margin-top: 8px; }
.carte-attente p { max-width: 32ch; }
.carte-calme { background: var(--fond-doux); }
.carte-calme .pastille-icone { background: #FFFFFF; }
.logo-anime .point { transform-box: fill-box; transform-origin: center; animation: ecrit 1.4s ease-in-out infinite; }
.logo-anime .p2 { animation-delay: .18s; }
.logo-anime .p3 { animation-delay: .36s; }

.compteur { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.compteur-rang { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.compteur-rang p { color: var(--gris); }
.compteur-rang .compteur-valeur { font-weight: 700; color: var(--encre); white-space: nowrap; }
.barre { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--trait-doux); color: var(--vert); overflow: hidden; }
.barre::-webkit-progress-bar { background: var(--trait-doux); border-radius: 3px; }
.barre::-webkit-progress-value { background: var(--vert); border-radius: 3px; transition: width .6s var(--doux); }
.barre::-moz-progress-bar { background: var(--vert); border-radius: 3px; }

.liste-reglages { margin-top: 26px; display: flex; flex-direction: column; }
.reglage { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 0; border-top: 1px solid var(--trait-doux); color: var(--encre); text-decoration: none; font-size: 15px; }
.reglage:last-child { border-bottom: 1px solid var(--trait-doux); }
a.reglage:hover { color: var(--vert); }
.reglage-nom { display: flex; align-items: center; gap: 12px; }
.reglage-nom .icone { color: var(--gris-2); }
.reglage-valeur { color: var(--gris); font-weight: 600; white-space: nowrap; }
.deconnexion { margin-top: 28px; display: flex; justify-content: center; }
.deconnexion .bouton { padding: 0 22px; }
.merci { margin-top: auto; padding-top: 36px; font-size: 13px; line-height: 1.5; color: var(--lavande-texte); text-align: center; }

/* ---------------------------------------------------------------- les conditions */
.entete-simple { border-bottom: 1px solid var(--trait-doux); }
.texte-long { max-width: 760px; padding-top: 40px; padding-bottom: 88px; }
.texte-long h1 { margin-top: 12px; font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.texte-long .surtitre { font-size: 14px; line-height: 1.5; color: var(--lavande-texte); }
.texte-long .date { margin-top: 10px; font-size: 14px; color: var(--gris-2); }
.texte-long h2 { margin-top: 40px; font-size: 19px; line-height: 1.35; font-weight: 800; scroll-margin-top: 24px; }
.texte-long p, .texte-long li { font-size: 16px; line-height: 1.7; color: var(--gris); }
.texte-long h2 + p, .texte-long h2 + ul { margin-top: 10px; }
.texte-long ul { display: flex; flex-direction: column; gap: 10px; }
.texte-long li { position: relative; padding-left: 22px; }
.texte-long li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #9C92FA; }
.note-douce { margin-top: 24px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--lavande-douce); }
.texte-long .note-douce { font-size: 14px; line-height: 1.6; color: #3D3399; }
.note-douce .icone { color: var(--lavande-texte); margin-top: 1px; }

/* ---------------------------------------------------------------- les erreurs */
.erreur { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 20px 24px 40px; max-width: 1160px; margin: 0 auto; }
.erreur-carte { margin: auto; max-width: 420px; padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; animation: doux .5s var(--doux) both; }
.erreur-carte h1 { margin-top: 8px; font-size: 26px; line-height: 1.25; font-weight: 800; }
.erreur-carte p { font-size: 16px; line-height: 1.6; color: var(--gris); }
.erreur-carte .bouton { margin-top: 12px; padding: 0 28px; }

/* ---------------------------------------------------------------- la liaison du numéro (saas-15) */
.numero-rappel { margin-top: 24px; padding: 14px 16px; border-radius: 14px; background: var(--fond-doux); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.numero-rappel-titre { font-size: 13px; color: var(--gris-2); }
.numero-rappel-valeur { font-size: 17px; font-weight: 700; }
.action-seule, .action-lien { display: contents; }
.action-seule .bouton { width: 100%; }
.lien-bouton { padding: 10px 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--vert); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; transition: color .2s ease, text-decoration-color .2s ease; }
.lien-bouton:hover { color: var(--vert-profond); text-decoration-color: currentColor; }
.petit .lien-bouton { padding: 6px 2px; }
.prealables { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.prealables li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--gris); }
.prealables .icone { margin-top: 2px; flex: none; }
.jumelage { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: doux .5s var(--doux) both; }
.jumelage-titre { font-size: 14px; font-weight: 700; color: var(--gris); }
.code-jumelage { display: flex; align-items: center; gap: 6px; }
.code-case { width: 34px; height: 46px; border-radius: 10px; background: var(--brume); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--vert); font-variant-numeric: tabular-nums; }
.code-tiret { width: 10px; display: flex; justify-content: center; font-size: 20px; color: var(--gris-3); }
.code-validite { font-size: 13px; color: var(--gris-2); }
.jumelage-etat { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--lavande-texte); }
.point-lavande { width: 8px; height: 8px; border-radius: 50%; background: var(--lavande); animation: respire 1.6s ease-in-out infinite; }
.qr-cadre { padding: 14px; border-radius: 18px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--trait), 0 10px 30px rgba(23, 32, 29, .06); }
.qr-image { display: block; width: 232px; height: 232px; image-rendering: pixelated; }
.gestes-liaison { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.gestes-liaison li { display: flex; gap: 14px; font-size: 15px; line-height: 1.5; }
.gestes-liaison .geste-numero { width: 26px; height: 26px; font-size: 13px; }
.attente-code { margin-top: 28px; padding: 32px 20px; border-radius: 18px; background: var(--fond-doux); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.attente-code > p:first-of-type { font-size: 16px; font-weight: 700; }
.verification { margin-top: 28px; padding: 24px 20px; border-radius: 18px; background: var(--lavande-douce); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.verification-titre { font-size: 16px; font-weight: 700; }
.verification-code { margin-top: 6px; font-size: 32px; font-weight: 800; letter-spacing: .08em; color: var(--lavande-texte); font-variant-numeric: tabular-nums; }
.actions-verification { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.centre { text-align: center; }
.reussite { margin-top: 24px; padding: 28px 20px; border-radius: 18px; background: var(--brume); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; animation: doux .5s var(--doux) both; }
.pastille-reussite { width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; }
.numero-relie { font-size: 20px; font-weight: 800; color: var(--vert); }
.carte .petit { text-align: left; }
@keyframes respire { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .point-lavande { animation: none; } }
@media (min-width: 720px) {
  .code-case { width: 40px; height: 52px; font-size: 26px; }
  .petit.centre { text-align: center; }
}

/* ---------------------------------------------------------------- animations douces */
@keyframes monte { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes doux { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ecrit { 0%, 60%, 100% { opacity: .45; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-6px); } }
.auth-colonne > * { animation: doux .5s var(--doux) both; }
.auth-colonne > :nth-child(2) { animation-delay: .05s; }
.auth-colonne > :nth-child(n+3) { animation-delay: .1s; }

/* ---------------------------------------------------------------- tablette */
@media (min-width: 720px) {
  .enveloppe { padding-left: 40px; padding-right: 40px; }
  .atouts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .auth-colonne { padding-top: 24px; }
  .formulaire-bas .petit { text-align: center; }
  .texte-long h1 { font-size: 40px; }
}

/* ---------------------------------------------------------------- ordinateur */
@media (min-width: 1000px) {
  .atouts { gap: 48px 80px; }
  .atout h3 { font-size: 18px; }
  .atout p { font-size: 16px; max-width: 40ch; }

  .espace { max-width: 640px; padding-top: 28px; }
  .espace h1 { margin-top: 48px; font-size: 34px; }
  .carte { padding: 28px; }
  .carte-attente { padding: 56px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- l'accueil en conversation (saas-16) */
.page-fil { background: var(--fond-doux); }
.espace-fil { max-width: 640px; padding-bottom: 20px; }
.fil-principal { margin-top: 16px; display: flex; flex-direction: column; gap: 18px; }
.fil { background: #FFFFFF; border-radius: 26px; box-shadow: 0 0 0 1px var(--trait-doux), 0 24px 60px -32px rgba(23, 32, 29, .28); overflow: hidden; animation: doux .5s var(--doux) both; }
.fil-entete { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--trait-doux); }
.fil-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brume); display: flex; align-items: center; justify-content: center; flex: none; }
.fil-nom { font-size: 16px; font-weight: 800; line-height: 1.25; }
.fil-etat { font-size: 13px; color: var(--gris-2); display: flex; align-items: center; gap: 6px; }
.fil-etat::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3BB273; flex: none; }
.fil-bulles { padding: 22px 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.fil-rang { display: flex; }
.fil-moi { justify-content: flex-end; }
.fil-bulle { max-width: 86%; font-size: 15.5px; line-height: 1.55; color: var(--encre); }
.fil-lui .fil-bulle { background: var(--fond-doux); border-radius: 20px 20px 20px 6px; }
.fil-moi .fil-bulle { background: var(--vert); color: #FFFFFF; border-radius: 20px 20px 6px 20px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.fil-bulle strong { font-weight: 800; }
.bulle-large { width: 86%; }
.bulle-alerte { background: #FDF3EC !important; color: #6B3A16; }
.bulle-succes { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--vert); }
.bulle-succes .icone { color: #2F9E63; }
.bulle-ecrit { display: inline-flex; align-items: center; gap: 10px; color: var(--gris-2); font-size: 14.5px; }
.points-ecrit { display: inline-flex; gap: 4px; }
.points-ecrit i { width: 7px; height: 7px; border-radius: 50%; background: var(--lavande); opacity: .5; animation: ecrit 1.3s ease-in-out infinite; }
.points-ecrit i:nth-child(2) { animation-delay: .15s; }
.points-ecrit i:nth-child(3) { animation-delay: .3s; }
.fil-bulle .code-jumelage { margin: 14px 0 8px; justify-content: center; }
.fil-bulle .code-case { background: #FFFFFF; box-shadow: 0 0 0 1px var(--trait); width: 32px; height: 44px; font-size: 22px; }
.fil-bulle .code-validite { display: block; text-align: center; }
.fil-verif { display: block; margin: 12px 0 4px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .08em; color: var(--vert); font-variant-numeric: tabular-nums; }
.fil-qr { display: flex; justify-content: center; margin: 12px auto 4px; width: fit-content; }
.fil-qr .qr-image { width: 216px; height: 216px; }
.fil-bulle .gestes-liaison { margin: 0; gap: 12px; }
.fil-bulle .gestes-liaison li { font-size: 15px; }
.fil-bulle .geste-numero { background: #FFFFFF; }
.fil-nouveau { animation: monte .6s var(--doux) both; }
.fil-nouveau.r1 { animation-delay: .55s; }
.fil-nouveau.r2 { animation-delay: 1.1s; }
.fil-nouveau.r3 { animation-delay: 1.65s; }
.fil-nouveau.r4 { animation-delay: 2.2s; }
.fil-nouveau.r5 { animation-delay: 2.75s; }
.fil-nouveau.r6 { animation-delay: 3.3s; }
.fil-pied { padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.fil-pied:empty { display: none; }
.reponses { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.reponse-rapide { margin: 0; }
.puce { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--bord-champ); background: #FFFFFF; color: var(--vert); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s var(--doux); }
.puce:hover { border-color: var(--vert); background: var(--brume); }
.puce:active { transform: scale(.98); }
.puce-pleine { background: var(--vert); border-color: var(--vert); color: #FFFFFF; }
.puce-pleine:hover { background: var(--vert-profond); border-color: var(--vert-profond); color: #FFFFFF; }
.saisie-fil { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.saisie-fil-barre { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 0 0 1.5px var(--bord-champ); transition: box-shadow .2s ease; }
.saisie-fil-barre:focus-within { box-shadow: 0 0 0 2px var(--lavande); }
.saisie-fil-barre.en-erreur { box-shadow: 0 0 0 2px #D9822B; }
.saisie-fil-barre .indicatif { font-weight: 700; color: var(--gris-2); }
.saisie-fil-barre input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; padding: 10px 2px; color: var(--encre); }
.saisie-fil-barre input::placeholder { color: var(--gris-3); font-size: 15px; }
.envoyer { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--vert); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, transform .2s var(--doux); }
.envoyer:hover { background: var(--vert-profond); transform: translateY(-1px); }
.aide-fil { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris-2); }
.aide-fil.centre { justify-content: center; }
.fil-action { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.bouton-large { width: 100%; min-height: 54px; font-size: 16.5px; border-radius: 16px; }
.fil-pied .jumelage-etat { justify-content: center; font-size: 13px; }
.fil-liens { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 0 8px; }
.fil-liens a, .fil-liens .lien-bouton { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--gris); }
.fil-liens form { margin: 0; }
.bienvenue-fil { margin-top: 20px; gap: 10px; align-items: flex-end; animation: monte .6s var(--doux) both; }
.bienvenue-fil .fil-avatar { width: 40px; height: 40px; }
.bienvenue-fil .fil-bulle { background: var(--lavande-douce); border-radius: 20px 20px 20px 6px; padding: 12px 14px; }
@media (min-width: 720px) {
  .espace-fil { padding-top: 24px; }
  .fil-bulles { padding: 26px 24px 12px; }
  .fil-pied { padding: 8px 24px 24px; }
  .fil-bulle { max-width: 78%; }
  .bulle-large { width: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .fil, .fil-nouveau, .bienvenue-fil { animation: none; }
  .points-ecrit i { animation: none; opacity: .8; }
}
#suite { scroll-margin-top: 12px; }

/* ---------------------------------------------------------------- les vidéos de l'accueil (saas-16 v2) */
.bulle-video { width: 86%; }
.fil-video { display: block; position: relative; width: 200px; max-width: 100%; aspect-ratio: 9 / 16; margin: 12px auto 6px; border-radius: 18px; overflow: hidden;
  background: #E9EFEC; box-shadow: 0 14px 30px -18px rgba(15, 61, 46, .45), 0 0 0 1px rgba(15, 61, 46, .06); }
.fil-video video, .fil-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fil-video-lien { text-decoration: none; }
.fil-video-jouer { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--vert); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(15, 61, 46, .55); transition: transform .25s var(--doux); }
.fil-video-jouer .icone { margin-left: 3px; fill: currentColor; }
.fil-video-lien:hover .fil-video-jouer, .fil-video-lien:focus-visible .fil-video-jouer { transform: scale(1.06); }
.fil-video-lien:focus-visible { outline: 3px solid var(--lavande); outline-offset: 3px; }
.fil-video-legende { display: block; text-align: center; font-size: 13px; font-weight: 600; color: var(--gris-2); }
@media (prefers-reduced-motion: reduce) { .fil-video-jouer { transition: none; } }
.fil-actualiser { margin-top: 12px; }
.fil-actualiser a { font-weight: 700; }
.fil-pied .fil-actualiser { display: block; text-align: center; }

/* L'œil des mots de passe (saas-21) : posé par /statique/oeil.js ; sans JavaScript, le champ reste un champ normal. */
.champ-oeil { position: relative; display: block; }
.champ-oeil > .saisie { padding-right: 54px; }
.oeil {
  position: absolute; top: 50%; right: 5px; transform: translateY(-50%); width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent;
  color: var(--gris-2); cursor: pointer; transition: color .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.oeil:hover { color: var(--encre); background: var(--trait-doux); }
.oeil:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }
.oeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.oeil .oeil-ferme { display: none; }
.oeil[aria-pressed="true"] .oeil-ouvert { display: none; }
.oeil[aria-pressed="true"] .oeil-ferme { display: block; }
.oeil[aria-pressed="true"] { color: var(--vert); }
@media (prefers-reduced-motion: reduce) { .oeil { transition: none; } }

/* ---------------------------------------------------------------- le chat du site (saas-25) */
.carte-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.chat-raccourci { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--lavande-douce); color: var(--encre); text-decoration: none; font-size: 15px; line-height: 1.45; transition: background-color .2s ease; }
.chat-raccourci:hover { background: #E6E2FC; color: var(--encre); }
.chat-raccourci > .icone:first-child { color: var(--lavande-texte); flex: none; }
.chat-raccourci strong { display: block; font-weight: 800; }
.chat-raccourci > span { flex: 1; }
.page-chat { background: var(--fond-doux); }
.chat { min-height: 100vh; min-height: 100dvh; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; background: #FFFFFF; box-shadow: 0 0 0 1px var(--trait-doux); }
.chat-entete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait-doux); }
.chat-entete .retour { margin-left: -8px; flex: none; }
.chat-qui { flex: 1; min-width: 0; }
.chat-qui h1 { margin: 0; }
.chat-qui .fil-etat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-qui .fil-etat::before { display: inline-block; margin-right: 6px; vertical-align: middle; }
.chat-barre[hidden] { display: none; }
.chat-entete .avatar { flex: none; text-decoration: none; }
.chat-bandeau { margin: 12px 16px 0; }
.chat-bandeau-doux { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--brume); font-size: 14px; color: var(--gris); }
.chat-bandeau-doux .icone { color: var(--vert); flex: none; margin-top: 1px; }
.chat-fil { flex: 1; padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 10px; overflow-anchor: auto; }
.chat-fil:focus-visible { outline-offset: -3px; }
.chat-jour { align-self: center; margin: 8px 0 2px; padding: 4px 12px; border-radius: 999px; background: var(--fond-doux); font-size: 12.5px; font-weight: 700; color: var(--gris-2); }
.chat-bulle { font-weight: 400 !important; letter-spacing: 0 !important; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.fil-moi .chat-bulle a { color: #FFFFFF; }
.chat-texte { white-space: normal; }
.fil-moi .chat-bulle .bulle-heure { color: rgba(255, 255, 255, .78); }
.chat-bulle .bulle-heure { margin-top: 0; display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.fil-lui .chat-bulle .bulle-heure { justify-content: flex-start; }
.chat-via { display: inline-flex; align-items: center; gap: 3px; }
.chat-envoi { opacity: .72; }
/* (saas-30, R-b) un envoi coupé : le même enregistrement, renvoyé d'un geste */
.chat-renvoyer { display: block; min-height: 40px; margin-top: 8px; padding: 0 16px; font-size: 15px; }
.chat-photo img { max-width: min(260px, 100%); max-height: 320px; border-radius: 14px; object-fit: cover; background: rgba(0, 0, 0, .06); }
.chat-piece { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .7); color: var(--encre) !important; text-decoration: none; min-width: 200px; }
.fil-moi .chat-piece { background: rgba(255, 255, 255, .16); color: #FFFFFF !important; }
.chat-piece > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-piece-nom { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-piece-taille { font-size: 12.5px; opacity: .8; }
.chat-piece-passee { opacity: .8; }
.chat-vocal { display: flex; flex-direction: column; gap: 4px; }
.chat-vocal audio { width: 240px; max-width: 100%; height: 40px; }
.chat-vocal-titre { font-size: 12.5px; font-weight: 700; color: var(--gris-2); }
.chat-vocal-lien { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.chat-devis-pdf { display: flex; width: fit-content; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.04); }
.chat-echec { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: #8A4B1E; }
.fil-moi + .chat-echec, .fil-moi .chat-echec { justify-content: flex-end; }
.chat-fil .fil-rang.fil-moi { flex-direction: column; align-items: flex-end; }
.chat-fil .fil-rang.fil-lui { flex-direction: column; align-items: flex-start; }
.chat-ecrit[hidden] { display: none; }
.chat-saisie { position: sticky; bottom: 0; z-index: 2; margin: 0; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--trait-doux); display: flex; flex-direction: column; gap: 8px; }
.chat-barre { display: flex; align-items: flex-end; gap: 6px; padding: 5px; border-radius: 26px; background: #FFFFFF; box-shadow: 0 0 0 1.5px var(--bord-champ); transition: box-shadow .2s ease; }
.chat-barre:focus-within { box-shadow: 0 0 0 2px var(--lavande); }
.chat-barre textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 16px; line-height: 1.45; padding: 11px 6px; max-height: 160px; color: var(--encre); }
.chat-barre textarea::placeholder { color: var(--gris-3); }
.chat-bouton { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: transparent; color: var(--gris); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, color .2s ease; }
.chat-bouton:hover { background: var(--fond-doux); color: var(--vert); }
.chat-bouton[aria-pressed="true"] { background: #FDECEC; color: #C2352B; }
.chat-saisie [disabled] { opacity: .45; cursor: not-allowed; }
.js-seul { display: none !important; }
.avec-js .js-seul { display: flex !important; }
.chat-note { font-size: 13.5px; color: var(--gris-2); padding: 0 10px; }
.chat-note-erreur { color: #8A4B1E; }
.chat-enregistre { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border-radius: 26px; background: #FFF6F5; box-shadow: 0 0 0 1.5px #F3CFCB; font-variant-numeric: tabular-nums; font-weight: 700; }
.chat-enregistre[hidden] { display: none; }
.chat-enregistre-texte { flex: 1; font-weight: 400; color: var(--gris-2); font-size: 14px; }
.point-rouge { width: 10px; height: 10px; border-radius: 50%; background: #D93A2F; animation: ecrit 1.2s ease-in-out infinite; }
.chat-progres { height: 3px; border-radius: 3px; background: var(--trait); overflow: hidden; }
.chat-progres i { display: block; height: 100%; width: 0; background: var(--lavande); transition: width .2s linear; }
@media (min-width: 720px) {
  .chat { margin: 24px auto; min-height: calc(100vh - 48px); border-radius: 26px; overflow: clip; }
  .chat-fil { padding: 24px 28px 16px; }
}
@media (prefers-reduced-motion: reduce) { .point-rouge { animation: none; } }

/* saas-26 : les flyers dans le chat, la page « Voir en grand », l'acceptation des nouvelles conditions. */
.chat-flyer { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px; }
.chat-flyer .chat-photo img { max-width: min(300px, 100%); max-height: 420px; object-fit: contain; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.flyer-principal { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.flyer-image { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.flyer-principal .carte-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.accepter { display: flex; flex-direction: column; gap: 18px; }
.atouts-courts { gap: 14px; }
.atout-court { align-items: center; }
.atout-court p { margin-top: 0; color: var(--encre); }
/* (saas-36a) l'écran d'acceptation : ses points sont des phrases — une seule colonne, même sur ordinateur (jamais deux colonnes étroites) */
.accepter .atouts-courts { display: flex; flex-direction: column; gap: 16px; }
.flyer-face { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.flyer-face figcaption { font-size: 13px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }

/* saas-27 : « Nouveaux messages » quand on lit plus haut dans la conversation (la page ne saute plus). */
.chat-nouveaux { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center;
  gap: 8px; border: 1px solid rgba(27, 77, 62, .18); border-radius: 999px; padding: 10px 16px; background: #FFFFFF; color: var(--vert);
  font: inherit; font-size: 14px; font-weight: 800; box-shadow: 0 12px 28px -10px rgba(15, 61, 46, .45); cursor: pointer; }
.chat-nouveaux:hover { background: var(--brume); color: var(--vert-profond); }
.chat-nouveaux[hidden] { display: none; }

/* ---------------------------------------------------------------- (saas-31 v2) « Mon compte » / « Crédits » */
.onglets { margin-top: 16px; display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fond-doux); box-shadow: inset 0 0 0 1px var(--trait-doux); }
.onglets a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--gris); text-decoration: none; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.onglets a:hover { color: var(--vert); }
.onglets a.actif { background: #FFFFFF; color: var(--vert); box-shadow: 0 1px 2px rgba(23, 32, 29, .06), 0 6px 16px -10px rgba(23, 32, 29, .25); }
.page-credits .espace-principal > h1 { margin-top: 22px; }
.credits-page .carte { margin-top: 18px; padding: 22px 20px; gap: 16px; }
.credits-page .carte h2.titre-section { font-size: 12.5px; }
.carte.credits-solde { background: var(--vert); color: #FFFFFF; position: relative; overflow: hidden; }
.credits-solde::after { content: ''; position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .05); pointer-events: none; }
.credits-solde .titre-section { color: rgba(255, 255, 255, .72); }
.carte .credits-nombre { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 46px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.carte .credits-unite { font-size: 17px; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, .78); }
.carte .credits-sous { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.credits-sous span { display: inline-flex; align-items: center; gap: 6px; }
.credits-sous .icone { color: #C9C3FC; }
.credits-solde .aide, .carte.credits-solde p.aide { color: rgba(255, 255, 255, .78); }
.carte .bouton.credits-vers { position: relative; z-index: 1; align-self: flex-start; min-height: 46px; padding: 0 18px; background: #FFFFFF; color: var(--vert); font-size: 15.5px; }
.carte .bouton.credits-vers:hover { background: var(--brume); color: var(--vert-profond); }
.carte.credits-recharge { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--trait); }
.credits-recharge .formulaire { padding-top: 0; gap: 20px; flex: none; }
.credits-recharge .formulaire-bas { margin-top: 2px; padding-top: 0; }
.credits-montants { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.credits-montants legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.credits-puces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.credits-puces .puce { min-height: 52px; border-radius: 14px; font-size: 16px; font-variant-numeric: tabular-nums; }
.saisie-unite { position: relative; display: block; }
.saisie-unite .saisie { padding-right: 44px; }
.saisie-unite span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--gris-3); pointer-events: none; }
.credits-suivis { display: flex; flex-direction: column; gap: 10px; }
.recharge-suivi { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--lavande-douce); animation: doux .4s var(--doux) both; }
.recharge-suivi.recharge-ok { background: #EAF5EE; }
.recharge-suivi.recharge-ko { background: var(--fond-doux); }
.recharge-pastille { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: var(--lavande-texte); }
.recharge-ok .recharge-pastille { color: #2E8B57; }
.recharge-ko .recharge-pastille { color: var(--gris-2); }
.recharge-points { display: inline-flex; gap: 3px; }
.recharge-points i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: points 1.2s infinite ease-in-out; }
.recharge-points i:nth-child(2) { animation-delay: .15s; }
.recharge-points i:nth-child(3) { animation-delay: .3s; }
@keyframes points { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.recharge-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.carte .recharge-montant { font-size: 17px; font-weight: 800; color: var(--encre); font-variant-numeric: tabular-nums; }
.recharge-montant span { font-size: 14px; font-weight: 600; color: var(--gris-2); }
.carte .recharge-mot { font-size: 14.5px; color: var(--gris); }
.recharge-recu { margin-top: 12px; display: flex; gap: 14px; align-items: center; }
.recharge-recu-image { flex: none; width: 76px; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--trait), 0 8px 20px -14px rgba(23, 32, 29, .45); }
.recharge-recu-image img { width: 100%; height: auto; }
.recharge-recu-liens { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.carte .recharge-recu-liens .recu-numero { font-size: 14px; white-space: nowrap; }
.carte .bouton.bouton-petit { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.bouton-icone { gap: 8px; }
.credits-actualiser { text-align: right; }
.carte .credits-texte { font-size: 15px; line-height: 1.6; color: var(--gris); }
.credits-niveau .formulaire { padding-top: 0; gap: 16px; flex: none; }
.credits-niveau .formulaire-bas { margin-top: 0; padding-top: 0; }
.niveaux { display: flex; flex-direction: column; gap: 10px; }
.niveau { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; transition: box-shadow .2s ease; }
.niveau:hover { box-shadow: inset 0 0 0 1.5px var(--bord-champ); }
.niveau input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.niveau-rond { flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bord-champ); background: #FFFFFF; transition: box-shadow .2s ease; }
.niveau input:checked ~ .niveau-rond { box-shadow: inset 0 0 0 6px var(--lavande); }
.niveau input:focus-visible ~ .niveau-rond { outline: 3px solid rgba(123, 110, 246, .55); outline-offset: 3px; }
.niveau:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--lavande); }
.niveau-texte { display: flex; flex-direction: column; gap: 2px; }
.niveau-nom { font-size: 15.5px; font-weight: 800; color: var(--encre); }
.niveau-mots { font-size: 14px; line-height: 1.5; color: var(--gris); }
.histo, .recus { display: flex; flex-direction: column; border-radius: 14px; background: #FFFFFF; padding: 2px 16px; }
.histo li, .recus li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--trait-doux); }
.histo li:first-child, .recus li:first-child { border-top: 0; }
.carte .histo-quoi { font-size: 15px; font-weight: 700; color: var(--encre); }
.carte .histo-le { font-size: 13px; color: var(--gris-2); font-variant-numeric: tabular-nums; }
.carte .histo-montant { text-align: right; font-size: 15.5px; font-weight: 800; color: var(--gris); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carte .histo-montant.plus { color: #2E7D52; }
.histo-montant span { display: block; font-size: 12px; font-weight: 600; color: var(--gris-3); }
.recus li { justify-content: flex-start; gap: 14px; }
.recu-vignette { flex: none; width: 46px; height: 62px; border-radius: 7px; overflow: hidden; background: var(--fond-doux); box-shadow: 0 0 0 1px var(--trait); display: flex; align-items: flex-start; justify-content: center; }
.recu-vignette img { width: 100%; height: auto; }
.recu-vignette-vide { align-items: center; color: var(--gris-3); }
.recu-texte { flex: 1; min-width: 0; }
.carte .recu-numero { font-size: 15px; font-weight: 800; color: var(--encre); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carte .recu-somme { font-size: 13.5px; font-weight: 700; color: var(--gris); }
.recu-telecharger { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brume); color: var(--vert); display: flex; align-items: center; justify-content: center; transition: background-color .2s ease; }
.recu-telecharger:hover { background: #DCEBE4; color: var(--vert-profond); }
@media (min-width: 720px) {
  .credits-puces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .carte .credits-nombre { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) { .recharge-points i { animation: none; opacity: .7; } }

/* ---------------------------------------------------------------- (saas-31 v2) le reçu dans le chat */
.chat-recu { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.chat-recu-image { display: block; width: 100%; max-width: 240px; border-radius: 12px; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(23, 32, 29, .06); }
.chat-recu-image img { width: 100%; height: auto; }
.chat-recu-attend { display: none; font-size: 13px; color: var(--gris-2); }
.chat-recu-attente .chat-recu-image { display: none; }
.chat-recu-attente .chat-recu-attend { display: block; }

/* ================================================================ saas-32 : chat moderne, site plus beau */
/* Jetons : blanc, brume, menthe (la bulle de l'invité), encre, vert SIKADI pour les actions, lavande rare (le point de
   l'assistant, l'attente, le focus). Le sombre ne vaut que pour les pages qui le demandent (body.sombre-possible). */
:root {
  --fond: #FFFFFF; --surface: #F3F6F4; --surface-2: #E9EFEB; --menthe: #E3EEE8; --menthe-texte: #10261E;
  --trait-chat: #E6EBE8; --accent: #1B4D3E; --accent-fort: #0F3D2E; --point: #7B6EF6;
  --ombre-douce: 0 1px 2px rgba(23, 32, 29, .05), 0 22px 50px -26px rgba(23, 32, 29, .30);
}
.sombre-possible { background: var(--fond); }

/* ---------------------------------------------------------------- l'accueil */
.entete-rang { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.lien-entete { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; color: var(--vert); box-shadow: inset 0 0 0 1.5px var(--trait); transition: background-color .2s ease, box-shadow .2s ease; }
.lien-entete:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px transparent; }

.heros { display: grid; gap: 44px; padding-top: 24px; padding-bottom: 16px; }
.heros-texte { display: flex; flex-direction: column; gap: 22px; }
.surtitre { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 700; color: var(--gris); }
.point-acces { width: 8px; height: 8px; border-radius: 50%; background: var(--point); box-shadow: 0 0 0 4px rgba(123, 110, 246, .16); }
.heros h1 { font-size: clamp(38px, 10.4vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; color: var(--encre); text-wrap: balance; }
.chapeau { font-size: 18px; line-height: 1.6; color: var(--gris); max-width: 36ch; }
.heros-actions { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.heros-actions .bouton, .appel .bouton { min-height: 58px; border-radius: 16px; padding: 0 30px; flex: none; white-space: nowrap; }
.heros-faits { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; font-size: 14.5px; color: var(--gris-2); }
.heros-faits li { display: flex; align-items: center; gap: 10px; }
.heros-faits .icone { color: var(--vert); }

/* La scène : le chat mis en scène, joué une fois. */
.scene { position: relative; margin: 0 -4px; padding: 20px 12px 44px; border-radius: 32px; background: var(--surface); }
.scene-ecran { max-width: 420px; margin: 0 auto; border-radius: 24px; background: var(--fond); box-shadow: var(--ombre-douce); overflow: hidden; }
.scene-entete { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--trait-chat); }
.scene-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; flex: none; }
.scene-nom { font-size: 15px; font-weight: 800; line-height: 1.2; }
.scene-etat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gris-2); }
.scene-etat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #3BB273; }
.scene-fil { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px 22px; }
.scene > .scene-ecran .scene-fil { padding-bottom: 40px; }
.sc-jour { align-self: center; font-size: 12px; font-weight: 700; color: var(--gris-3); }
.sc { font-size: 14.5px; line-height: 1.55; }
.sc-moi { align-self: flex-end; max-width: 84%; display: flex; flex-direction: column; padding: 9px 14px; border-radius: 20px 20px 6px 20px; background: var(--menthe); color: var(--menthe-texte); }
.sc-lui { align-self: flex-start; max-width: 96%; color: var(--encre); }
.sc-heure { align-self: flex-end; margin-top: 2px; font-size: 11px; color: var(--gris-2); }
.sc-vocal { display: flex; align-items: center; gap: 10px; }
.sc-jouer { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; }
.sc-jouer .icone { fill: currentColor; margin-left: 2px; }
.sc-onde { fill: var(--vert); opacity: .62; flex: 1; min-width: 0; height: 24px; }
.sc-duree { font-size: 12.5px; font-weight: 700; color: var(--gris); font-variant-numeric: tabular-nums; }
.sc-ecrit { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--gris-2); overflow: hidden; }
.sc-doc, .chat-doc { display: flex; align-items: center; gap: 12px; width: min(100%, 330px); padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--fond); box-shadow: inset 0 0 0 1px var(--trait-chat); color: var(--encre); text-decoration: none; }
.sc-doc { align-self: flex-start; }
.sc-doc > span:nth-child(2), .chat-doc-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-doc-nom, .chat-doc-nom { font-size: 14.5px; font-weight: 800; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-doc-sous, .chat-doc-sous { font-size: 12.5px; color: var(--gris-2); }
.sc-doc > .icone, .chat-doc > .icone { color: var(--gris-3); }
.chat-doc-icone { width: 40px; height: 46px; flex: none; border-radius: 10px; background: var(--lavande-douce); color: var(--lavande-texte); font-size: 11px; font-weight: 800; letter-spacing: .04em; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.sc-rappel { position: absolute; right: 14px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--fond); box-shadow: 0 0 0 1px var(--trait-chat), 0 18px 40px -18px rgba(23, 32, 29, .4); }
.sc-rappel-icone { width: 38px; height: 38px; border-radius: 12px; background: var(--lavande-douce); color: var(--lavande-texte); display: flex; align-items: center; justify-content: center; flex: none; }
.sc-rappel-titre { display: block; font-size: 12px; font-weight: 700; color: var(--gris-2); }
.sc-rappel-texte { display: block; font-size: 14px; font-weight: 800; color: var(--encre); }
@keyframes ecrit-passe {
  0% { opacity: 0; max-height: 0; margin-bottom: -12px; }
  14%, 82% { opacity: 1; max-height: 40px; margin-bottom: 0; }
  100% { opacity: 0; max-height: 0; margin-bottom: -12px; }
}
@keyframes monte-doux { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.scene .s0 { animation: monte-doux .5s var(--doux) .15s both; }
.scene .s1 { animation: monte .6s var(--doux) .45s both; }
.scene .s2 { animation: ecrit-passe 1.7s ease 1.15s both; }
.scene .s3 { animation: monte-doux .6s var(--doux) 2.75s both; }
.scene .s4 { animation: monte .6s var(--doux) 3.15s both; }
.scene .s5 { animation: monte .6s var(--doux) 3.95s both; }
.scene .s6 { animation: monte-doux .6s var(--doux) 4.55s both; }
.scene .s7 { animation: monte .7s var(--doux) 5.15s both; transform-origin: right bottom; }

/* Une journée avec lui */
.journee { padding-top: 96px; display: grid; gap: 40px; }
.journee h2, .bloc-gestes h2, .confiance-texte h2, .appel h2 { font-size: clamp(30px, 7.6vw, 46px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; color: var(--encre); text-wrap: balance; }
.journee-intro p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--gris); max-width: 44ch; }
.frise { position: relative; display: flex; flex-direction: column; gap: 40px; }
.frise::before { content: ''; position: absolute; left: 17.25px; top: 18px; bottom: 18px; width: 1.5px; background: var(--trait); }
.moment { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "icone heure" "icone texte" ". vignette"; column-gap: 16px; }
.moment-heure { display: contents; }
.moment-icone { grid-area: icone; align-self: start; width: 36px; height: 36px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--trait); color: var(--vert); display: flex; align-items: center; justify-content: center; position: relative; }
.moment time { grid-area: heure; padding-top: 7px; font-size: 13px; font-weight: 700; color: var(--gris-2); font-variant-numeric: tabular-nums; }
.moment-texte { grid-area: texte; padding-top: 4px; }
.moment-texte h3 { font-size: 19px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.moment-texte p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--gris); max-width: 46ch; }
.vignette { grid-area: vignette; margin-top: 16px; max-width: 380px; padding: 14px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.v-lui { align-self: flex-start; max-width: 94%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--fond); font-size: 14px; line-height: 1.5; color: var(--encre); box-shadow: 0 1px 2px rgba(23, 32, 29, .05); }
.v-moi { align-self: flex-end; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: var(--menthe); color: var(--menthe-texte); font-size: 14px; }
.v-piece { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.v-rappel, .v-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--fond); box-shadow: 0 1px 2px rgba(23, 32, 29, .05); font-size: 14px; }
.v-rappel > .icone { color: var(--lavande-texte); }
.v-rappel strong, .v-doc strong { display: block; font-weight: 800; color: var(--encre); }
.v-rappel strong { font-size: 12.5px; color: var(--gris-2); }
.v-rappel span, .v-doc span span { display: block; color: var(--gris); }
.v-rappel span { color: var(--encre); font-weight: 700; }
.v-flyer { align-self: flex-start; width: 168px; aspect-ratio: 4 / 5; padding: 16px; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; color: #FFFFFF; background: radial-gradient(120% 70% at 100% 0%, rgba(156, 146, 250, .55), transparent 60%), #1B4D3E; box-shadow: 0 14px 30px -18px rgba(15, 61, 46, .7); }
.v-flyer-haut { font-size: 11.5px; font-weight: 700; opacity: .85; }
.v-flyer-titre { font-size: 22px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.v-flyer-bas { font-size: 11px; opacity: .8; }
.aussis { display: grid; gap: 26px; padding-top: 36px; border-top: 1px solid var(--trait); }
.aussi { display: flex; gap: 14px; }
.aussi-icone { width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--surface); color: var(--vert); display: flex; align-items: center; justify-content: center; }
.aussi h3 { font-size: 16.5px; font-weight: 800; line-height: 1.35; }
.aussi p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--gris); }
.bientot { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--lavande-douce); color: #3D3399; font-size: 14px; line-height: 1.45; }

/* Trois gestes : une vraie suite, reliée par un trait. */
.bloc-gestes { padding-top: 104px; display: flex; flex-direction: column; gap: 36px; }
.gestes { display: grid; gap: 30px; }
.geste { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.geste .geste-numero { width: 40px; height: 40px; border: 0; background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--vert); color: var(--vert); font-size: 16px; position: relative; z-index: 1; }
.geste:first-child .geste-numero { background: var(--accent); box-shadow: none; color: #FFFFFF; }
.geste:not(:last-child)::after { content: ''; position: absolute; left: 19.25px; top: 46px; bottom: -24px; width: 1.5px; background: var(--trait); }
.geste h3 { padding-top: 8px; font-size: 18px; font-weight: 800; }
.geste p { margin-top: 4px; font-size: 15.5px; line-height: 1.6; color: var(--gris); max-width: 34ch; }

/* Confiance, avec la place d'une photo. */
.confiance-bloc { padding-top: 104px; display: grid; gap: 32px; align-items: center; }
.photo-cadre { border-radius: 28px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-repli { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 28px; }
.photo-repli-cadenas { width: 72px; height: 72px; border-radius: 50%; background: var(--fond); color: var(--vert); display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre-douce); }
.photo-repli .v-lui { max-width: 300px; text-align: center; border-radius: 18px; padding: 12px 16px; font-size: 15px; }
.garde { width: min(100%, 340px); padding: 26px 24px 22px; border-radius: 24px; background: var(--fond); box-shadow: var(--ombre-douce); display: flex; flex-direction: column; gap: 14px; }
.garde-cadenas { width: 48px; height: 48px; border-radius: 16px; background: var(--brume); color: var(--vert); display: flex; align-items: center; justify-content: center; }
.garde-titre { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.garde-liste { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--trait-chat); }
.garde-liste li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gris); }
.garde-liste .icone { color: #3BA571; }
.confiance-texte p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--gris); max-width: 44ch; }
.confiance-texte a { font-weight: 700; }

.appel { padding: 112px 24px 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.appel h2 { max-width: 15ch; margin-bottom: 6px; }

/* Le pied de page : sombre, mais doux et aéré. */
.pied { background: var(--vert-profond); color: #CFDDD6; padding: 64px 0 36px; border-radius: 32px 32px 0 0; }
.pied-grille { display: flex; flex-direction: column; gap: 36px; }
.pied-marque { display: flex; flex-direction: column; gap: 14px; }
.pied p { font-size: 15px; line-height: 1.6; max-width: 40ch; }
.pied .pied-famille { font-size: 14px; color: #9FB8AD; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.pied-liens a { color: #E3EEE8; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }   /* (AJ-8) */
.pied-liens a:hover { color: #FFFFFF; text-decoration: underline; }
.pied .pied-droits { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #8FAAA0; }

/* ---------------------------------------------------------------- les pages de formulaire */
.page-auth { background: var(--fond); }
.auth-colonne { max-width: 420px; }
.auth-titre h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.03em; }
.saisie, .saisie-numero { height: 56px; border-radius: 14px; background: var(--fond); }
.indicatif { background: var(--surface); }
.page-auth .bouton-plein { border-radius: 16px; min-height: 58px; }
.scene.scene-courte { padding: 0; margin: 0; background: none; border-radius: 0; }
.scene-courte .scene-ecran { margin: 0; max-width: 420px; }
.auth-cote .photo { border-radius: 24px; aspect-ratio: 4 / 5; max-height: 54vh; width: auto; max-width: 100%; }

/* ---------------------------------------------------------------- le chat (saas-32) */
.page-chat { background: var(--fond); }
.page-chat .chat { max-width: none; margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--fond); box-shadow: none; border-radius: 0; }
.page-chat .chat-entete { padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); gap: 12px; background: var(--fond); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--trait-chat); }
.page-chat .chat-entete .fil-avatar { width: 40px; height: 40px; background: var(--surface); }
.page-chat .chat-entete .avatar { width: 38px; height: 38px; font-size: 15px; }
.page-chat .chat-qui .fil-etat { font-size: 12.5px; }
.page-chat .chat-bandeau { width: calc(100% - 32px); max-width: 728px; margin: 12px auto 0; }
.page-chat .chat-fil { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 18px 28px; gap: 20px; }
.page-chat .chat-jour { margin: 10px 0 0; padding: 0; background: none; font-size: 12.5px; font-weight: 700; color: var(--gris-3); }
.page-chat .chat-bulle { gap: 8px; }
/* L'assistant : sans bulle, son texte posé sur la page. */
.page-chat .fil-lui .chat-bulle { max-width: 100%; padding: 0; background: none; border-radius: 0; font-size: 16.5px; line-height: 1.62; color: var(--encre); }
/* L'invité : une bulle menthe, à droite. */
.page-chat .fil-moi .chat-bulle { max-width: min(84%, 540px); padding: 10px 16px; border-radius: 22px 22px 6px 22px; background: var(--menthe); color: var(--menthe-texte); font-size: 16px; line-height: 1.55; }
.page-chat .fil-moi .chat-bulle a { color: var(--vert); }
.page-chat .chat-bulle .bulle-heure { font-size: 12px; color: var(--gris-3); }
.page-chat .fil-moi .chat-bulle .bulle-heure { color: var(--gris-2); }
.page-chat .chat-via { color: var(--gris-2); }
.page-chat .chat-photo { display: block; }
.page-chat .chat-photo img { max-width: min(280px, 100%); max-height: 340px; border-radius: 16px; background: var(--surface); }
.page-chat .fil-moi .chat-bulle:has(.chat-photo) { padding: 5px 5px 8px; }
.page-chat .fil-moi .chat-bulle:has(.chat-photo) > .chat-texte, .page-chat .fil-moi .chat-bulle:has(.chat-photo) > .bulle-heure { padding: 0 10px; }
.page-chat .chat-piece { min-width: 230px; gap: 12px; padding: 9px 14px 9px 9px; border-radius: 16px; background: var(--fond); box-shadow: inset 0 0 0 1px var(--trait-chat); color: var(--encre) !important; }
.page-chat .fil-moi .chat-piece { background: rgba(255, 255, 255, .62); box-shadow: none; color: var(--menthe-texte) !important; }
.page-chat .chat-piece > .icone:first-child { box-sizing: border-box; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--vert); }
.page-chat .fil-moi .chat-piece > .icone:first-child { background: var(--fond); }
.page-chat .chat-piece-taille { color: var(--gris-2); opacity: 1; }
.page-chat .chat-devis-pdf { margin-top: 6px; }
.page-chat .chat-doc:hover { box-shadow: inset 0 0 0 1px var(--bord-champ); }
.page-chat .chat-echec { color: #8A4B1E; }
.page-chat .chat-envoi { opacity: 1; }
.page-chat .chat-envoi .bulle-heure { color: var(--gris-2); }
.arrive { animation: monte-doux .34s var(--doux) both; }

/* Le lecteur des vocaux : la barre glisse, sans à-coups (voir statique/chat.js). */
.page-chat .chat-vocal { position: relative; gap: 6px; }
.page-chat .chat-vocal-titre { font-size: 12.5px; font-weight: 700; color: var(--gris-2); }
.page-chat .chat-vocal-lien { gap: 6px; font-size: 13px; color: var(--vert); }
.lecteur-natif { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.lecteur { display: flex; align-items: center; gap: 12px; width: min(320px, 100%); padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); }
.page-chat .fil-moi .lecteur { width: min(300px, 64vw); padding: 2px 4px 2px 0; background: none; }
.lecteur-jouer { position: relative; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s var(--doux), background-color .2s ease; }
.lecteur-jouer:hover { background: var(--accent-fort); }
.lecteur-jouer:active { transform: scale(.94); }
.lecteur-jouer svg { display: block; }
.lecteur-i-pause, .lecteur[data-etat="lecture"] .lecteur-i-jouer { display: none !important; }
.lecteur[data-etat="lecture"] .lecteur-i-pause { display: block !important; }
.lecteur[data-etat="chargement"] .lecteur-jouer::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(123, 110, 246, .25); border-top-color: var(--point); animation: tourne .8s linear infinite; }
.lecteur[data-etat="erreur"] .lecteur-jouer { background: var(--gris-3); }
@keyframes tourne { to { transform: rotate(360deg); } }
.lecteur-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 4px; }
.lecteur-piste { position: relative; height: 20px; display: flex; align-items: center; cursor: pointer; touch-action: none; border-radius: 6px; }
.lecteur-rail { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(27, 77, 62, .16); overflow: hidden; }
.lecteur-rempli { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.lecteur-tete { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; will-change: transform; }
.lecteur-curseur { position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); transform: scale(0); transition: transform .2s var(--doux); }
.page-chat .fil-moi .lecteur-curseur { box-shadow: 0 0 0 3px var(--menthe); }
.lecteur[data-etat="lecture"] .lecteur-curseur, .lecteur[data-etat="pause"] .lecteur-curseur, .lecteur-piste:hover .lecteur-curseur, .lecteur-piste:focus-visible .lecteur-curseur { transform: scale(1); }
.lecteur-infos { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--gris-2); font-variant-numeric: tabular-nums; }
.lecteur-vitesse { min-width: 40px; padding: 2px 8px; border: 0; border-radius: 999px; background: rgba(27, 77, 62, .09); color: var(--vert); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.lecteur[data-etat="pret"] .lecteur-vitesse, .lecteur-envoi .lecteur-vitesse { visibility: hidden; }
.lecteur-envoi .lecteur-jouer { background: var(--surface-2); color: var(--gris-2); }
.page-chat .fil-moi .lecteur-envoi .lecteur-jouer { background: rgba(255, 255, 255, .7); }
.lecteur-rail-envoi .lecteur-rempli { right: auto; width: 38%; transform: none; animation: envoi 1.3s ease-in-out infinite; }
@keyframes envoi { from { transform: translateX(-100%); } to { transform: translateX(270%); } }

/* L'assistant travaille : son logo (la bulle aux trois points) respire, le texte a un reflet doux. */
.page-chat .chat-ecrit .bulle-ecrit { max-width: 100%; padding: 2px 0; background: none; border-radius: 0; gap: 12px; font-size: 15px; }
.page-chat .points-ecrit, .sc-ecrit .points-ecrit { width: 34px; height: 26px; flex: none; border-radius: 12px 12px 12px 4px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.page-chat .points-ecrit i, .sc-ecrit .points-ecrit i { width: 5px; height: 5px; border-radius: 50%; background: #FFFFFF; opacity: 1; animation: point-respire 1.25s ease-in-out infinite; }
.page-chat .points-ecrit i:nth-child(3), .sc-ecrit .points-ecrit i:nth-child(3) { background: #B9B2FC; }
.page-chat .points-ecrit i:nth-child(2), .sc-ecrit .points-ecrit i:nth-child(2) { animation-delay: .16s; }
.page-chat .points-ecrit i:nth-child(3), .sc-ecrit .points-ecrit i:nth-child(3) { animation-delay: .32s; }
@keyframes point-respire { 0%, 70%, 100% { transform: translateY(0); opacity: .55; } 35% { transform: translateY(-3px); opacity: 1; } }
.page-chat .bulle-ecrit > span:last-child, .sc-ecrit > span:last-child { background: linear-gradient(90deg, var(--gris-2) 0%, var(--gris-2) 38%, var(--encre) 50%, var(--gris-2) 62%, var(--gris-2) 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 2.4s linear infinite; }
@keyframes reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Les idées de la conversation vide. */
.chat-salut { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px 0 8px; }
.chat-salut-logo { margin-bottom: 10px; animation: monte-doux .6s var(--doux) both; }
.chat-salut-titre { font-size: clamp(30px, 8vw, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: var(--encre); animation: monte-doux .6s var(--doux) .08s both; }
.chat-salut-sous { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--gris-3); animation: monte-doux .6s var(--doux) .16s both; }
.chat-idees { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.chat-idee { align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--fond); box-shadow: inset 0 0 0 1px var(--trait-chat); color: var(--encre); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; transition: background-color .2s ease; }
.chat-idee:hover { background: var(--surface); }
.chat-idee .icone { color: var(--vert); }

/* La saisie : une carte flottante, la conversation s'efface doucement dessous. */
.page-chat .chat-saisie { padding: 18px 12px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--fond) 22px); border-top: 0; gap: 8px; }
.page-chat .chat-saisie > * { width: 100%; max-width: 736px; margin-left: auto; margin-right: auto; }
.page-chat .chat-barre { align-items: flex-end; gap: 2px; padding: 6px; border-radius: 28px; background: var(--fond); box-shadow: 0 0 0 1px var(--trait-chat), var(--ombre-douce); }
.page-chat .chat-barre:focus-within { box-shadow: 0 0 0 1.5px rgba(123, 110, 246, .6), var(--ombre-douce); }
.page-chat .chat-barre textarea { padding: 11px 8px; font-size: 16px; }
.page-chat .chat-bouton { color: var(--gris-2); }
.page-chat .chat-bouton:hover { background: var(--surface); }
.page-chat .chat-barre .envoyer { width: 44px; height: 44px; background: var(--surface-2); color: var(--gris-2); transition: background-color .2s ease, color .2s ease, transform .2s var(--doux); }
.page-chat .a-du-texte .chat-barre .envoyer { background: var(--accent); color: #FFFFFF; }
.page-chat .a-du-texte .chat-barre .envoyer:hover { background: var(--accent-fort); }
.page-chat .a-du-texte #chat-micro { display: none !important; }
.page-chat .chat-enregistre { gap: 10px; padding: 6px; border-radius: 28px; background: var(--fond); box-shadow: 0 0 0 1px #F0D2CE, var(--ombre-douce); }
.page-chat .chat-enregistre .envoyer { background: var(--accent); }
.page-chat #chat-duree { min-width: 38px; font-size: 15px; color: var(--encre); }
.page-chat .point-rouge { width: 9px; height: 9px; flex: none; background: #D93A2F; animation: point-respire 1.4s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(217, 58, 47, .14); }
.chat-onde { flex: 1; min-width: 0; height: 32px; color: #C9544A; }
.page-chat .chat-note { padding: 0 14px; }
.page-chat ~ .chat-nouveaux, .chat-nouveaux { bottom: 96px; border: 0; background: var(--fond); box-shadow: 0 0 0 1px var(--trait-chat), 0 14px 30px -12px rgba(23, 32, 29, .35); }

/* ---------------------------------------------------------------- tablette et ordinateur (saas-32) */
@media (min-width: 720px) {
  .heros-actions { flex-direction: row; align-items: center; gap: 24px; }
  .heros-actions .petit { text-align: left; }
  .heros-faits { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
  .scene { padding: 36px 32px 56px; }
  .aussis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .pied-grille { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .pied-liens { justify-content: flex-end; }
  .page-chat .chat { margin: 0; min-height: 100vh; border-radius: 0; overflow: visible; }
  .page-chat .chat-fil { padding: 32px 28px 36px; gap: 24px; }
  .chat-idees { flex-direction: row; }
  .chat-idee { flex: 1; flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1000px) {
  .entete-rang { padding-top: 26px; padding-bottom: 26px; }
  .marque-mot { font-size: 18px; }
  .heros { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
  .heros h1 { font-size: 68px; }
  .chapeau { font-size: 20px; }
  .scene { padding: 48px 48px 72px; border-radius: 40px; }
  .sc-rappel { right: -28px; bottom: 22px; }
  .scene > .scene-ecran .scene-fil { padding-bottom: 26px; }
  .journee { padding-top: 152px; grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr); gap: 48px 64px; align-items: start; }
  .journee-intro { position: sticky; top: 48px; }
  .frise { gap: 56px; }
  .moment { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 330px); grid-template-areas: "icone heure heure" "icone texte vignette"; column-gap: 24px; }
  .vignette { margin-top: 0; align-self: start; }
  .aussis, .bientot { grid-column: 1 / -1; }
  .aussis { margin-top: 24px; }
  .bloc-gestes { padding-top: 152px; }
  .gestes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .geste { grid-template-columns: 1fr; gap: 20px; }
  .geste:not(:last-child)::after { left: 56px; right: -24px; top: 19.25px; bottom: auto; width: auto; height: 1.5px; }
  .geste h3 { padding-top: 0; font-size: 19px; }
  .confiance-bloc { padding-top: 152px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .appel { padding: 160px 24px 168px; }
  .pied { padding: 80px 0 40px; border-radius: 40px 40px 0 0; }

  .auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
  .auth-cote { display: block; margin: 16px 0 16px 16px; border-radius: 32px; background: var(--surface); }
  .auth-cote-dedans { position: sticky; top: 16px; height: calc(100vh - 32px); min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px; }
  .auth-cote-milieu { display: flex; flex-direction: column; gap: 32px; }
  .auth-cote-titre { font-size: 46px; line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--encre); max-width: 13ch; text-wrap: balance; }
  .auth-cote-bas { font-size: 14px; color: var(--gris-2); }
  .auth-principal { min-height: 100vh; align-items: center; padding: 48px 32px; }
  .auth-colonne { padding: 0; }
  .auth-entete-marque { display: none; }
  .formulaire { flex: none; }
  .formulaire-bas { margin-top: 10px; }
  .texte-doux + .formulaire-bas { margin-top: 0; padding-top: 36px; }
  .auth-titre h1 { font-size: 40px; }
}

/* ---------------------------------------------------------------- le mode sombre (pages faites : accueil, formulaires, chat) */
@media (prefers-color-scheme: dark) {
  body.sombre-possible {
    color-scheme: dark;
    --fond: #0F1714; --surface: #17211D; --surface-2: #1F2B26; --menthe: #21392F; --menthe-texte: #E4ECE8;
    --encre: #E4ECE8; --gris: #A9B6B0; --gris-2: #909F98; --gris-3: #6F7E78; --trait: #27342F; --trait-doux: #1F2A26; --trait-chat: #25312C;
    --fond-doux: #17211D; --brume: #1B2A24; --bulle-moi: #21392F; --bord-champ: #33423C; --lavande-douce: #252340; --lavande-texte: #BDB6FC;
    --vert: #93CFB5; --vert-profond: #B5E0CC; --accent: #2E7660; --accent-fort: #368A70; --point: #A59CFB;
    --ombre-douce: 0 0 0 1px rgba(255, 255, 255, .02), 0 22px 50px -26px rgba(0, 0, 0, .7);
  }
  .sombre-possible { color: var(--encre); }
  html:has(> body.sombre-possible) { color-scheme: dark; background: #0F1714; }
  body.sombre-possible .logo-bulle path[fill="#1B4D3E"] { fill: #2E7660; }
  body.sombre-possible .marque-mot { color: #E4ECE8; }
  body.sombre-possible .marque-ai { color: #BDB6FC; }
  body.sombre-possible .bouton-plein { background: var(--accent); color: #FFFFFF; }
  body.sombre-possible .bouton-plein:hover { background: var(--accent-fort); color: #FFFFFF; box-shadow: none; }
  body.sombre-possible .retour, body.sombre-possible .chat-entete .retour { color: var(--encre); }
  body.sombre-possible .saisie, body.sombre-possible .saisie-numero { background: var(--surface); color: var(--encre); }
  body.sombre-possible .saisie-numero input { color: var(--encre); }
  body.sombre-possible .indicatif { background: var(--surface-2); border-right-color: var(--bord-champ); color: var(--gris); }
  body.sombre-possible .saisie:focus, body.sombre-possible .saisie-numero:focus-within { border-color: #5FA889; box-shadow: 0 0 0 4px rgba(95, 168, 137, .16); }
  body.sombre-possible .alerte { background: #33231D; color: #F1D6CC; }
  body.sombre-possible .alerte a { color: #F1D6CC; }
  body.sombre-possible .bientot { color: #CFC9FD; }
  body.sombre-possible .pied { background: #13201B; box-shadow: 0 -1px 0 var(--trait); }
  body.sombre-possible .avatar { background: var(--lavande-douce); color: var(--lavande-texte); }
  body.sombre-possible.page-chat .chat-saisie { background: linear-gradient(to bottom, rgba(15, 23, 20, 0), var(--fond) 22px); }
  body.sombre-possible.page-chat .fil-moi .chat-piece { background: rgba(0, 0, 0, .18); }
  body.sombre-possible .lecteur-rail { background: rgba(147, 207, 181, .18); }
  body.sombre-possible .lecteur-vitesse { background: rgba(147, 207, 181, .12); }
  body.sombre-possible.page-chat .chat-enregistre { box-shadow: 0 0 0 1px #4A2B27, var(--ombre-douce); }
  body.sombre-possible .chat-onde { color: #E08A80; }
  body.sombre-possible .chat-bandeau-doux { background: var(--surface); }
  body.sombre-possible .chat-bandeau-doux .icone { color: var(--vert); }
  body.sombre-possible.page-chat .chat-echec, body.sombre-possible .chat-note-erreur { color: #E8B48F; }
  body.sombre-possible .chat-nouveaux { color: var(--vert); }
  body.sombre-possible .v-lui, body.sombre-possible .v-rappel, body.sombre-possible .v-doc { box-shadow: none; }
  body.sombre-possible .case input { accent-color: #2E7660; }
}

@media (prefers-reduced-motion: reduce) {
  .scene .s2 { display: none; }
  .page-chat .bulle-ecrit > span:last-child, .sc-ecrit > span:last-child { color: var(--gris-2); background: none; }
}

/* ================================================================ saas-35 : l'essai sans compte, la galerie, les pages au même style */
/* L'accueil : les deux boutons du héros, la galerie « Quelques réalisations ». */
.heros-boutons, .appel-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton-essai .icone, .appel-boutons .bouton .icone { flex: none; }
.bouton-clair.bouton-essai { background: var(--surface); color: var(--vert); box-shadow: inset 0 0 0 1.5px var(--trait); }
.bouton-clair.bouton-essai:hover { background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--vert); }
.realisations { padding-top: 88px; display: grid; gap: 28px; }
.realisations-tete h2 { font-size: clamp(28px, 6.4vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.realisations-tete p { margin-top: 10px; color: var(--gris); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }
.realisations-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.realisation { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.realisation a { display: block; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--trait-chat);
  transition: transform .35s var(--doux), box-shadow .35s var(--doux); }
.realisation a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--trait-chat), 0 22px 40px -28px rgba(23, 32, 29, .45); }
.realisation img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.realisation-logo img { aspect-ratio: 1 / 1; object-fit: contain; padding: 14%; background: var(--fond); }
.realisation p { font-size: 14px; line-height: 1.45; color: var(--gris-2); overflow-wrap: anywhere; }

/* L'invitation venue de l'essai : comment avoir un code. */
.note-douce { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; margin-bottom: 18px; padding: 14px 16px; border-radius: 16px;
  background: var(--lavande-douce); color: var(--encre); font-size: 15px; line-height: 1.55; }
.note-douce .icone { flex: none; margin-top: 1px; color: var(--lavande-texte); }
.note-douce a { color: var(--lavande-texte); font-weight: 700; }

/* Une page simple (l'essai pas encore ouvert) : centrée, aérée. */
.page-simple .simple { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding-top: 56px; padding-bottom: 56px; }
.simple-marque { margin-bottom: 8px; }
.page-simple h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; max-width: 18ch; }
.simple-texte { color: var(--gris); font-size: 17px; line-height: 1.6; max-width: 44ch; }
.simple-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.simple-actions .bouton { min-height: 54px; border-radius: 16px; padding: 0 24px; }
.simple-retour a { display: inline-flex; align-items: center; gap: 6px; color: var(--gris-2); font-weight: 700; text-decoration: none; }
.simple-retour a:hover { color: var(--vert); }

/* L'essai sans compte : le même chat, une saisie sans fichier ni micro, des idées, la carte « Créer mon compte », la galerie. */
.page-essai .chat-entete { gap: 10px; }
.page-essai .chat-qui { flex: 1; min-width: 0; }
.essai-creer { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 800;
  text-decoration: none; color: var(--vert); background: var(--surface); white-space: nowrap; transition: background .2s ease; }
.essai-creer:hover { background: var(--brume); }
.essai-apercu { margin-top: 10px; }
.essai-idees { margin-top: 2px; }
.essai-idees[hidden] { display: none; }
.essai-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.essai-mention { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--gris-2); text-align: center; }
.essai-mention a { color: inherit; font-weight: 700; }
.essai-mention .icone { flex: none; color: var(--gris-3); }
.page-essai .chat-texte { white-space: pre-line; }
.essai-carte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; margin-top: 12px; padding: 16px; border-radius: 18px;
  background: var(--lavande-douce); color: var(--encre); max-width: 420px; }
.essai-carte > .icone { color: var(--lavande-texte); }
.essai-carte-titre { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.essai-carte-sous { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--gris); }
.essai-carte-note { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--gris-2); }
.essai-carte-bouton { grid-column: 1 / -1; justify-self: start; margin-top: 10px; min-height: 46px; border-radius: 14px; padding: 0 20px; }
.essai-galerie { list-style: none; margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.essai-exemple { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.essai-exemple a { display: block; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--trait-chat); }
.essai-exemple img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.essai-exemple-logo img { aspect-ratio: 1 / 1; object-fit: contain; padding: 12%; background: var(--fond); }
.essai-exemple p { font-size: 12.5px; line-height: 1.4; color: var(--gris-2); overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .realisations-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .essai-galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .realisation a, .realisation a:hover { transition: none; transform: none; }
}

/* Les idées de l'essai : de petites pastilles qui se suivent (pas des cartes) ; l'en-tête du chat d'essai plus court. */
.chat-idees.essai-idees { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.page-essai .chat-idee.essai-idee { display: inline-flex; width: auto; flex: none; flex-direction: row; align-items: center; gap: 8px; min-height: 42px;
  padding: 0 16px 0 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700; text-align: left; }
.page-essai .chat-idee.essai-idee .icone { flex: none; }
.page-essai .essai-idee .icone { color: var(--lavande-texte); }
.page-essai .chat-qui .fil-etat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) {
  .essai-creer { padding: 0 12px; font-size: 13px; }
}
/* L'accueil : les boutons du héros sur une ligne, la petite phrase dessous. */
.heros-actions { align-items: flex-start; }
@media (min-width: 720px) {
  .heros-actions { flex-direction: column; align-items: flex-start; }
}

/* Toutes les pages du site en sombre (saas-35) : les couleurs écrites en dur des pages d'avant suivent le thème du téléphone. */
@media (prefers-color-scheme: dark) {
  body.sombre-possible .bouton-clair { background: var(--surface-2); color: var(--vert); }
  body.sombre-possible .bouton-clair:hover { background: #26352F; color: var(--vert-profond); }
  body.sombre-possible .bouton-clair.bouton-essai { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait); }
  body.sombre-possible .bouton-discret { border-color: var(--trait); color: var(--gris); }
  body.sombre-possible .bouton-discret:hover { border-color: #3A4A43; color: var(--encre); }
  body.sombre-possible .saisie:hover, body.sombre-possible .saisie-numero:hover { border-color: #3A4A43; }
  body.sombre-possible .saisie.en-erreur, body.sombre-possible .saisie-numero.en-erreur { border-color: #B5735F; }
  body.sombre-possible .avatar-actif { box-shadow: 0 0 0 2px var(--fond), 0 0 0 4px var(--point); }
  body.sombre-possible .fiche { background: var(--surface); }
  body.sombre-possible .bandeau-ok { background: #17302A; color: #CDEBDD; }
  body.sombre-possible .bandeau-ok .icone { color: #6CC79A; }
  body.sombre-possible .bandeau-pause { background: #2E2818; color: #EADFC0; }
  body.sombre-possible .bandeau-pause .icone { color: #D9B65A; }
  body.sombre-possible .bandeau-pause a { color: #EADFC0; }
  body.sombre-possible .carte { background: var(--surface); }
  body.sombre-possible .carte p { color: var(--gris); }
  body.sombre-possible .voyant-gris { background: #5B6863; }
  body.sombre-possible .carte-calme .pastille-icone, body.sombre-possible .pastille-reussite, body.sombre-possible .recharge-pastille { background: var(--surface-2); }
  body.sombre-possible .texte-long .note-douce { color: var(--lavande-texte); }
  body.sombre-possible .fil { background: var(--fond); box-shadow: 0 0 0 1px var(--trait), 0 24px 60px -32px rgba(0, 0, 0, .6); }
  body.sombre-possible .fil-moi .fil-bulle { background: var(--accent); color: #FFFFFF; }
  body.sombre-possible .bulle-alerte { background: #33231D !important; color: #F1D6CC; }
  body.sombre-possible .fil-bulle .code-case, body.sombre-possible .fil-bulle .geste-numero { background: var(--surface-2); color: var(--encre); box-shadow: 0 0 0 1px var(--trait); }
  body.sombre-possible .puce { background: var(--surface); border-color: var(--bord-champ); color: var(--vert); }
  body.sombre-possible .puce-pleine, body.sombre-possible .puce-pleine:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
  body.sombre-possible .saisie-fil-barre { background: var(--surface); }
  body.sombre-possible .envoyer { background: var(--accent); color: #FFFFFF; }
  body.sombre-possible .envoyer:hover { background: var(--accent-fort); }
  body.sombre-possible .chat-raccourci:hover { background: #2B2950; }
  body.sombre-possible .chat-bouton[aria-pressed="true"] { background: #3A2321; color: #F2A39A; }
  body.sombre-possible .chat-flyer .chat-photo img, body.sombre-possible .flyer-image { background: var(--surface); }
  body.sombre-possible .onglets { background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait); }
  body.sombre-possible .onglets a.actif { background: var(--surface-2); color: var(--vert); box-shadow: none; }
  body.sombre-possible .carte.credits-solde { background: #1E4A3C; color: #FFFFFF; }
  body.sombre-possible .carte .bouton.credits-vers { background: #FFFFFF; color: #1B4D3E; }
  body.sombre-possible .carte.credits-recharge { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait); }
  body.sombre-possible .recharge-suivi.recharge-ok { background: #17302A; }
  body.sombre-possible .niveau, body.sombre-possible .niveau-rond { background: var(--surface-2); }
  body.sombre-possible .histo, body.sombre-possible .recus { background: var(--surface-2); }
  body.sombre-possible .carte .histo-montant.plus { color: #7FD1A8; }
  body.sombre-possible .recu-telecharger:hover { background: #26352F; }
  body.sombre-possible .chat-recu-image { background: var(--surface); }
  body.sombre-possible .qr-cadre { background: #FFFFFF; }
  body.sombre-possible .chat-echec { color: #E8B48F; }
  body.sombre-possible .note-douce { background: #24223E; }
  body.sombre-possible .essai-carte { background: #24223E; }
  body.sombre-possible .realisation-logo img, body.sombre-possible .essai-exemple-logo img { background: #F6F8F7; }
}

/* (saas-35) L'inscription venue de l'essai : les deux chemins (pas encore de code : le demander ; un code : le formulaire). */
.deux-chemins { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 24px; }
.chemin-sans { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 18px; background: var(--lavande-douce); }
.chemin-sans p:not(.chemin-titre) { font-size: 15px; line-height: 1.55; color: var(--gris); }
.chemin-sans .bouton { min-height: 48px; border-radius: 14px; padding: 0 20px; }
.chemin-titre { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--encre); }
.chemin-titre .icone { flex: none; color: var(--lavande-texte); }
.chemin-avec { padding: 2px 4px 0; font-size: 15px; }
.chemin-avec .icone { color: var(--vert); }

/* (saas-35) L'accueil : au téléphone, la scène du chat commence dans le PREMIER écran, juste sous les boutons (elle se joue à
   l'ouverture, et sa suite invite à défiler) ; les trois atouts viennent après elle. Sur l'écran large, ils restent sous le texte,
   la scène à côté. */
@media (max-width: 999px) {
  .heros { gap: 26px; }
  .heros-texte { gap: 18px; }
  .heros-faits { margin-top: 0; }
}
@media (min-width: 1000px) {
  .heros { grid-template-rows: auto auto; row-gap: 26px; align-items: start; }
  .heros-texte { grid-column: 1; grid-row: 1; align-self: end; }
  .heros > .scene { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .heros > .heros-faits { grid-column: 1; grid-row: 2; align-self: start; margin-top: 0; }
}

/* ================================================================ saas-36a : l'application installable */
/* L'INVITATION À INSTALLER : un bouton dans la barre et son point lumineux, doux ; une carte refermable. Rien ne se montre dans
   l'application installée (display-mode: standalone), ni une fois l'installation notée par le script (.app-installee). */
.entete-actions { display: flex; align-items: center; gap: 10px; }
.app-inviter { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--surface); color: var(--vert); font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, transform .2s var(--doux); }
.app-inviter:hover { background: var(--surface-2); color: var(--vert-profond); }
.app-inviter:active { transform: scale(.97); }
.app-inviter-compact { width: 40px; min-height: 40px; height: 40px; padding: 0; justify-content: center; }
.app-inviter-compact .app-inviter-mot { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.app-point { position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--point); box-shadow: 0 0 0 2px var(--fond); }
.app-point::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--point); opacity: 0; animation: app-halo 3.2s ease-out infinite; }
@keyframes app-halo { 0%, 55% { transform: scale(1); opacity: 0; } 62% { opacity: .42; } 100% { transform: scale(3.1); opacity: 0; } }
.app-discret .app-point { display: none; }
.app-carte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; margin-top: 16px; padding: 12px 8px 12px 14px; border-radius: 18px;
  background: var(--lavande-douce); animation: monte-doux .5s var(--doux) both; }
.app-carte[hidden] { display: none; }
.app-carte-icone { width: 40px; height: 40px; border-radius: 12px; background: var(--fond); display: flex; align-items: center; justify-content: center; }
.app-carte-texte { font-size: 14.5px; line-height: 1.45; color: var(--gris); }
.app-carte-texte strong { display: block; font-weight: 800; color: var(--encre); }
.app-carte-oui { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 14.5px; font-weight: 800;
  text-decoration: none; transition: background-color .2s ease; }
.app-carte-oui:hover { background: var(--accent-fort); color: #FFFFFF; }
.app-carte-non { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--gris-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.app-carte-non:hover { background: rgba(123, 110, 246, .12); color: var(--encre); }
/* dans le chat : une ligne, dans la barre (elle reste en haut de l'écran) */
.chat-entete { flex-wrap: wrap; }
.app-carte.app-carte-chat { flex: 0 0 100%; margin: 4px 0 0; padding: 8px 4px 8px 10px; border-radius: 14px; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0 10px; }
.app-carte-chat .app-carte-icone { width: 32px; height: 32px; border-radius: 10px; }
.app-carte-chat .app-carte-texte strong { font-size: 14.5px; }
.app-carte-chat .app-carte-oui { min-height: 36px; padding: 0 14px; font-size: 14px; }
.app-installee .app-inviter, .app-installee .app-carte { display: none !important; }
@media (display-mode: standalone), (display-mode: minimal-ui) { .app-inviter, .app-carte { display: none !important; } }
.app-js-seul { display: none !important; }
.app-js .app-js-seul { display: flex !important; }
@media (max-width: 479px) {
  .entete .app-inviter { width: 44px; padding: 0; justify-content: center; }
  .entete .app-inviter-mot { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-carte { grid-template-columns: auto minmax(0, 1fr) auto; }
  .app-carte-texte { grid-column: 2 / 3; }
  .app-carte-oui { grid-column: 2 / 3; grid-row: 2; justify-self: start; margin-top: 6px; }
  .app-carte-non { grid-column: 3; grid-row: 1; align-self: start; }
  .app-carte-chat .app-carte-texte, .app-carte-chat .app-carte-oui, .app-carte-chat .app-carte-non { grid-column: auto; grid-row: auto; margin-top: 0; align-self: center; justify-self: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .app-point::after { animation: none; }
  .app-carte { animation: none; }
  .app-inviter { transition: none; }
}

/* LA PAGE /installer : les gestes de l'appareil, dessinés ; le bouton d'installation quand le navigateur le propose. */
.installer { max-width: 760px; padding-top: 28px; padding-bottom: 96px; }
.inst-tete { display: flex; flex-direction: column; gap: 16px; }
.inst-tuile { width: 76px; height: 76px; border-radius: 22px; background: var(--surface); display: flex; align-items: center; justify-content: center; box-shadow: var(--ombre-douce); animation: monte-doux .6s var(--doux) both; }
.inst-tete h1 { font-size: clamp(32px, 8.6vw, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.inst-tete .chapeau { font-size: 17px; line-height: 1.6; color: var(--gris); max-width: 52ch; }
.inst-surete { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; font-size: 14.5px; color: var(--gris-2); }
.inst-surete li { display: flex; align-items: flex-start; gap: 10px; }
.inst-surete .icone { color: var(--vert); margin-top: 1px; }
.inst-bloc { margin-top: 44px; display: flex; flex-direction: column; }
.inst-bloc h2 { font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.inst-bloc > p { font-size: 15.5px; line-height: 1.6; color: var(--gris); }
.inst-bloc > h2 + p { margin-top: 8px; }
.inst-bloc > .bouton { margin-top: 18px; align-self: flex-start; min-height: 54px; }
.inst-second { margin-top: 40px; }
.inst-natif { margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--brume); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; animation: monte-doux .5s var(--doux) both; }
.inst-natif[hidden] { display: none; }
.inst-natif .bouton { min-height: 56px; padding: 0 28px; }
.inst-natif .petit { text-align: left; }
.inst-bloc > .inst-ou { margin-top: 18px; font-size: 15px; }
.si-pret { display: none; }
.app-pret .si-pret { display: inline; }
.app-pret .si-attente { display: none; }
.inst-etapes { margin-top: 18px; display: flex; flex-direction: column; gap: 26px; }
.inst-etape { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; }
.inst-etape .geste-numero { width: 40px; height: 40px; font-size: 16px; }
.inst-etape-texte h3 { padding-top: 7px; font-size: 17.5px; line-height: 1.3; font-weight: 800; }
.inst-etape-texte p { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--gris); }
.inst-dessin { grid-column: 2; max-width: 360px; }
.dessin { display: block; width: 100%; height: auto; font-family: inherit; }
.d-ecran { fill: var(--surface); }
.d-champ, .d-tuile { fill: var(--fond); stroke: var(--trait); stroke-width: 1; }
.d-ligne { fill: var(--surface-2); }
.d-trait { fill: none; stroke: var(--gris-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-plein { fill: var(--gris-3); }
.d-texte { fill: var(--gris-2); font-size: 12px; font-weight: 600; }
.d-texte-fort { fill: var(--encre); font-size: 13px; font-weight: 800; }
.d-fort { fill: var(--lavande-texte); }
.d-fort-trait { fill: none; stroke: var(--lavande-texte); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-halo { fill: var(--point); opacity: .13; }
.d-anneau { fill: none; stroke: var(--point); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: app-anneau 2.8s ease-in-out infinite; }
@keyframes app-anneau { 0%, 100% { transform: scale(.94); opacity: .28; } 50% { transform: scale(1.06); opacity: .62; } }
.d-choix { fill: var(--lavande-douce); stroke: var(--point); stroke-opacity: .38; stroke-width: 1.2; }
.d-bulle { fill: var(--accent); }
.inst-note { margin-top: 22px; display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 14.5px; line-height: 1.55; color: var(--gris); }
.inst-note .icone { flex: none; margin-top: 1px; color: var(--gris-2); }
.inst-note-douce { margin-top: 12px; background: var(--lavande-douce); }
.inst-note-douce .icone { color: var(--lavande-texte); }
.inst-qr { margin-top: 20px; display: grid; gap: 22px; }
.inst-qr-cadre { width: 208px; padding: 10px; }
.qr-dessin { display: block; width: 100%; height: auto; border-radius: 6px; }
.inst-qr-texte { display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.6; color: var(--gris); }
.inst-lien { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.inst-qr-texte .inst-lien { margin-top: 0; }
.inst-lien-champ { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--bord-champ); border-radius: 12px; background: var(--fond); color: var(--encre); font: inherit; font-size: 15px; }
.inst-lien .bouton { flex: none; }
.inst-deja { padding: 20px; border-radius: 20px; background: var(--brume); gap: 14px; align-items: flex-start; }
.inst-deja[hidden] { display: none; }
.inst-deja .bouton { margin-top: 0; }
.app-installee .inst-natif { display: none; }
.inst-autres { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--trait-doux); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14.5px; color: var(--gris-2); }
.inst-autres a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }   /* (AJ-8) */
.inst-autres [aria-current] { font-weight: 800; color: var(--encre); }
@media (min-width: 720px) {
  .installer { padding-top: 56px; }
  .inst-qr { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .d-anneau { animation: none; opacity: .5; }
  .inst-tuile, .inst-natif { animation: none; }
}
@media (prefers-color-scheme: dark) {
  body.sombre-possible .app-carte-non:hover { background: rgba(165, 156, 251, .16); }
  body.sombre-possible .inst-lien-champ { background: var(--surface); }
  body.sombre-possible .app-carte-icone { background: var(--surface-2); }
}

/* ================================================================ saas-36a : la page « Notifications » */
/* Sobre : des cartes blanches sur le fond de l'espace, un seul bouton plein par carte, des couleurs calmes ; clair et sombre par les
   variables du thème ; rien ne déborde à 360 px. */
.notif-page .notif-chapeau { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--gris); max-width: 46ch; }
.bandeau-note { background: var(--surface); color: var(--encre); }
.bandeau-note .icone { color: var(--lavande); }
/* le bandeau « Réactiver » (créé par app.js quand les notifications se sont arrêtées sur cet appareil) : doux, refermable, jamais dans la conversation */
.bandeau-reactiver { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; border-radius: 16px; background: var(--lavande-douce); color: var(--encre); font-size: 15px; line-height: 1.5; animation: doux .4s var(--doux) both; }
.bandeau-reactiver[hidden] { display: none; }
.bandeau-reactiver p { flex: 1 1 200px; margin: 0; font-weight: 600; }
.bandeau-reactiver .bouton { min-height: 44px; padding: 0 20px; }
.bandeau-reactiver-tard { min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--gris); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bandeau-reactiver-tard:hover { color: var(--encre); }
.bandeau-reactiver-chat { flex: 0 0 100%; flex-wrap: nowrap; margin: 4px 0 0; padding: 8px 6px 8px 14px; border-radius: 14px; gap: 4px 8px; font-size: 14.5px; animation: none; }
.bandeau-reactiver-chat p { flex: 1 1 auto; min-width: 0; font-weight: 800; line-height: 1.35; }
.bandeau-reactiver-chat .bouton { flex: none; min-height: 36px; padding: 0 14px; font-size: 14px; }
.bandeau-reactiver-chat .bandeau-reactiver-tard { flex: none; min-height: 36px; padding: 0 8px; font-size: 13.5px; }
.chat-entete:has(.bandeau-reactiver:not([hidden])) .app-carte { display: none; }
@media (prefers-reduced-motion: reduce) { .bandeau-reactiver { animation: none; } }
.notif-etat { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--encre); }
.notif-etat .icone { flex: none; margin-top: 2px; color: var(--gris-2); }
.notif-etat[data-push-etat="actif"] .icone { color: var(--vert); }
.notif-etat[data-push-etat="bloque"], .notif-etat[data-push-etat="impossible"], .notif-etat[data-push-etat="installer"], .notif-etat[data-push-etat="service"] { font-weight: 600; color: var(--gris); }
[data-push-bloc] { display: flex; flex-direction: column; gap: 12px; }
[data-push-bloc][hidden], [data-push-refus][hidden] { display: none; }
.notif-refus { margin-top: 0; }
.notif-choisir { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.notif-choisir legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--gris); }
.notif-choix { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--fond); border: 1px solid var(--trait-doux); cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.notif-choix:has(input:checked) { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(27, 77, 62, .08); }
.notif-choix input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--vert); cursor: pointer; }
.notif-choix-corps { min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--encre); }
.notif-apercu { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; line-height: 1.4; color: var(--gris); overflow-wrap: anywhere; }
.notif-apercu-nom { font-weight: 800; color: var(--encre); }
.notif-delais { display: flex; flex-wrap: wrap; gap: 10px; }
.notif-delais .bouton { flex: 1 1 150px; min-width: 0; }
/* (vu sur la première capture) dans une carte, un bouton clair aurait la couleur de la carte : il devient blanc, cerné d'un trait doux ;
   et l'explication d'une case passe à la ligne sous son titre */
.notif-page .carte .bouton-clair { background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--trait); }
.notif-page .carte .bouton-clair:hover { background: var(--fond); box-shadow: inset 0 0 0 1.5px var(--vert); }
.notif-page .carte .bouton-clair[disabled] { opacity: .55; box-shadow: inset 0 0 0 1.5px var(--trait); cursor: default; }
.notif-page .case strong { display: block; color: var(--encre); }
.notif-page .case .aide { display: block; margin-top: 2px; }
.notif-suivi { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--fond); border: 1px solid var(--trait-doux); scroll-margin-top: 90px; }
.notif-suivi-tete { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--encre); }
.notif-suivi-tete .icone { flex: none; margin-top: 2px; color: var(--vert); }
.notif-suivi-liste { display: flex; flex-direction: column; gap: 10px; }
.notif-suivi-ligne { display: flex; align-items: flex-start; gap: 12px; }
.notif-suivi-ligne .voyant { margin-top: 7px; }
.notif-suivi-ligne p { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; color: var(--gris); overflow-wrap: anywhere; }
.notif-suivi-ligne strong { color: var(--encre); }
.notif-appareils { display: flex; flex-direction: column; }
.notif-appareil { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait-doux); }
.notif-appareil:first-child { border-top: 0; padding-top: 0; }
.notif-appareil-icone { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--vert); display: flex; align-items: center; justify-content: center; }
.notif-appareil-nom { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; color: var(--encre); }
.notif-appareil-nom span { font-size: 13px; color: var(--gris-2); overflow-wrap: anywhere; }
.notif-appareil-ici .notif-appareil-nom strong::after { content: ' · cet appareil'; font-weight: 600; color: var(--vert); }
.notif-retirer { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--gris-2); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease; }
.notif-retirer:hover { background: var(--surface); color: var(--encre); }
.notif-guide > p { font-size: 15px; line-height: 1.6; color: var(--gris); }
.notif-marque { border-top: 1px solid var(--trait-doux); }
.notif-marque summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 15.5px; font-weight: 700; color: var(--encre); cursor: pointer; list-style: none; }
.notif-marque summary::-webkit-details-marker { display: none; }
.notif-marque summary .icone { flex: none; transition: transform .25s var(--doux); }
.notif-marque[open] summary .icone { transform: rotate(90deg); }
.notif-marque ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; color: var(--gris); }
.fil-vise .bulle { animation: notif-vise 2.2s ease-out 1; }
@keyframes notif-vise { 0%, 40% { box-shadow: 0 0 0 4px rgba(123, 110, 246, .22); } 100% { box-shadow: 0 0 0 4px rgba(123, 110, 246, 0); } }
@media (prefers-reduced-motion: reduce) { .fil-vise .bulle { animation: none; } .notif-marque summary .icone { transition: none; } }
.notif-page .bouton:disabled { opacity: .5; cursor: default; }

/* ---------------------------------------------------------------- (saas-36b-1) la connexion avec Google : sobre, en second */
.bouton-google { width: 100%; min-height: 52px; gap: 12px; background: #FFFFFF; color: #1F1F1F; font-size: 16px; font-weight: 700;
  box-shadow: inset 0 0 0 1.5px #DADCE0; }
.bouton-google:hover { background: #F8FAF9; color: #1F1F1F; box-shadow: inset 0 0 0 1.5px #B9C0BC, 0 8px 20px -16px rgba(23, 32, 29, .45); transform: translateY(-1px); }
.bouton-google:active { transform: translateY(0); box-shadow: inset 0 0 0 1.5px #B9C0BC; }
.g-logo { flex: none; }
.g-bloc { margin-top: 4px; display: flex; flex-direction: column; gap: 12px; animation: doux .45s var(--doux) both; }
.g-bloc-seul { margin-top: 28px; }
.g-ou { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris-3); }
.g-ou::before, .g-ou::after { content: ''; flex: 1; height: 1px; background: var(--trait); }
.formulaire-bas .g-ou { margin: 4px 0 0; }
.g-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--fond-doux); font-size: 14px; line-height: 1.55; color: var(--gris); }
.g-note .icone { flex: none; margin-top: 1px; color: var(--gris-3); }
.g-note-app { display: none; }
@media (display-mode: standalone) { .g-note-app { display: flex; } }
.g-petit { margin-top: 2px; }
.auth-bas { margin-top: 22px; }
.g-formulaire { padding-top: 0; gap: 10px; flex: none; }
.g-compte { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--fond-doux); margin-top: 24px; }
.carte-compte .g-compte { margin-top: 0; }
.g-compte-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--trait); }
.g-compte-titre { display: block; font-size: 13px; font-weight: 700; color: var(--gris-2); }
.g-compte-adresse { display: block; font-size: 16px; font-weight: 700; color: var(--encre); word-break: break-all; }
.g-accord .case { padding-top: 0; }
.g-accord .bouton-clair, #appareils .bouton-clair, #mot-de-passe-oublie .bouton-clair { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--trait); }
.g-accord .bouton-clair:hover, #appareils .bouton-clair:hover, #mot-de-passe-oublie .bouton-clair:hover { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--vert); }
.g-details { border-top: 1px solid var(--trait-doux); padding-top: 4px; }
.g-details summary { min-height: 48px; display: flex; align-items: center; font-size: 15px; font-weight: 700; color: var(--gris); cursor: pointer; list-style: none; }
.g-details summary::-webkit-details-marker { display: none; }
.g-details[open] summary { color: var(--encre); }
.g-details .formulaire { margin-top: 8px; }
@media (prefers-color-scheme: dark) {
  body.sombre-possible .bouton-google { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1.5px #5F6762; }
  body.sombre-possible .bouton-google:hover { background: #1A1D1C; color: #E3E3E3; box-shadow: inset 0 0 0 1.5px #8E918F; }
  body.sombre-possible .g-compte-logo { background: #FFFFFF; }
  body.sombre-possible .g-accord .bouton-clair, body.sombre-possible #appareils .bouton-clair, body.sombre-possible #mot-de-passe-oublie .bouton-clair { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--trait); }
}
@media (prefers-reduced-motion: reduce) { .g-bloc { animation: none; } .bouton-google:hover { transform: none; } }

/* ================================================================ saas-36b-2 : LA JOURNÉE (le brief et le bilan par le site) */
/* « Mon brief et mon bilan » : deux grandes touches côte à côte (une seule ligne à 360 px), la choisie cernée de vert ; la carte d'action
   du chat : une touche claire SOUS le texte de l'annonce ; ce qui est fait : une ligne douce avec « Annuler ». Clair et sombre par les
   variables du thème. */
.notif-canaux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notif-canal-form { margin: 0; display: flex; }
.notif-canal { position: relative; flex: 1; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--trait-doux); background: var(--fond); color: var(--encre); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.notif-canal > .icone { flex: none; color: var(--gris-2); }
.notif-canal > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; }
.notif-canal .aide { margin: 0; font-size: 13px; font-weight: 600; color: var(--gris-2); }
.notif-canal:hover { border-color: var(--trait); }
.notif-canal[aria-pressed="true"] { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(27, 77, 62, .08); }
.notif-canal[aria-pressed="true"] > .icone { color: var(--vert); }
.notif-canal:focus-visible { outline: 3px solid var(--lavande); outline-offset: 2px; }
.chat-action { margin: 10px 0 2px; }
.chat-action-bouton { min-height: 44px; padding: 0 16px; font-size: 14.5px; gap: 8px; }
.chat-action-fait { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 2px; padding: 10px 12px; border-radius: 14px; background: var(--brume); color: var(--encre); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.chat-action-fait > .icone { flex: none; color: var(--vert); }
.chat-action-fait > span { flex: 1 1 160px; }
.chat-action-fait form { margin: 0; }
.chat-action-fait .lien-bouton, .chat-action-fait a { padding: 4px 2px; font-size: 14px; font-weight: 700; }
#chat-fil > .chat-action-fait { align-self: center; max-width: 520px; margin: 6px auto 4px; }
.bouton-commencer { min-width: 168px; }
@media (prefers-color-scheme: dark) {
  body.sombre-possible .notif-canal { background: var(--surface); border-color: var(--trait); }
  body.sombre-possible .notif-canal[aria-pressed="true"] { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(147, 207, 181, .12); }
  body.sombre-possible .chat-action-fait { background: var(--surface-2); }
}

/* ================================================================ saas-37 : LE CHAT TRÈS BEAU — ce qui est PARTAGÉ (le lecteur vidéo, la feuille
   « navigateur intégré », /installer). Le chat lui-même est dans statique/chat.css (chargé par /chat seulement). Aucune règle ici ne vise
   .chat, .chat-entete, .chat-fil, .chat-saisie, .bulle ni .fil-* : la page « Essayer sans compte » ne bouge pas (I4). */
/* LE LECTEUR VIDÉO MAISON (statique/lecteur.js) : sans script, le lecteur du navigateur ; avec lui, l'aperçu doux et les commandes fines. */
.lv { position: relative; margin: 0; width: 100%; max-width: 420px; }
.lv-portrait { max-width: 260px; }
.lv-video { display: block; width: 100%; height: auto; border-radius: 16px; background: #E4EEE9; }
.lv-legende { margin-top: 6px; font-size: 12.5px; color: var(--gris-2); }
.lv-js .lv-legende { display: none; }
.lv-cadre { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, #E3EEE8 0%, #ECF3F6 52%, #EFEDFD 100%); box-shadow: inset 0 0 0 1px rgba(23, 32, 29, .06); user-select: none; -webkit-user-select: none; }
.lv-portrait .lv-cadre { aspect-ratio: 9 / 16; }
.lv-paysage .lv-cadre { aspect-ratio: 16 / 9; }
.lv-js .lv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: transparent; }
.lv-js .lv-video::cue { font-family: inherit; font-size: 15px; font-weight: 700; background: rgba(15, 23, 20, .66); color: #FFFFFF; }
.lv-apercu { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 13px 14px; background: linear-gradient(to bottom, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .7)); transition: opacity .4s ease; pointer-events: none; }
.lv-apercu-tete { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: #1B4D3E; }
.lv-apercu-titre { max-width: 90%; font-size: 19px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; color: #17201D; order: 3; }
.lv-poids { order: 2; margin-top: auto; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .82); color: #4E5A55; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lv-paysage .lv-apercu-titre { max-width: 55%; order: 2; margin-top: auto; }
.lv-paysage .lv-poids { order: 3; margin: 8px 0 0; }
.lv:not([data-etat="pret"]) .lv-apercu { opacity: 0; }
/* une affiche dessinée (elle porte déjà la marque) : l'aperçu ne garde que le titre et le poids, en bas ; le bouton en bas à droite */
.lv-affiche .lv-apercu-tete { display: none; }
.lv-affiche .lv-apercu { background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, .9) 74%, rgba(255, 255, 255, .96)); }
.lv-affiche .lv-apercu-titre { max-width: calc(100% - 70px); }
.lv-affiche[data-etat="pret"] .lv-gros, .lv-affiche[data-etat="fin"] .lv-gros { left: auto; top: auto; right: 14px; bottom: 14px; margin: 0; width: 54px; height: 54px; }
.lv-gros { position: absolute; z-index: 3; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #1B4D3E; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 9px rgba(255, 255, 255, .32), 0 14px 32px -14px rgba(23, 32, 29, .5); transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), opacity .3s ease; -webkit-tap-highlight-color: transparent; }
.lv-gros svg { margin-left: 3px; }
.lv-gros:hover { transform: scale(1.06); }
.lv[data-etat="lecture"] .lv-gros { opacity: 0; transform: scale(.7); pointer-events: none; }
.lv[data-etat="charge"] .lv-gros svg { opacity: .35; }
.lv[data-etat="charge"] .lv-gros::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #FFFFFF; animation: lv-tourne .8s linear infinite; }
@keyframes lv-tourne { to { transform: rotate(360deg); } }
.lv-commandes { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding: 22px 6px 4px; background: linear-gradient(to bottom, rgba(15, 23, 20, 0), rgba(15, 23, 20, .55)); color: #FFFFFF; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.lv:not([data-etat="pret"]) .lv-commandes { opacity: 1; pointer-events: auto; }
.lv-commandes button { position: relative; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.lv-commandes button:hover { background: rgba(255, 255, 255, .14); }
.lv-jouer svg { grid-area: 1 / 1; }
.lv-jouer .lv-i-pause, .lv[data-etat="lecture"] .lv-jouer .lv-i-jouer { opacity: 0; }
.lv[data-etat="lecture"] .lv-jouer .lv-i-pause { opacity: 1; }
.lv-temps { flex: none; padding: 0 6px 0 2px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-piste { position: relative; flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; cursor: pointer; touch-action: none; border-radius: 6px; }
.lv-piste::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.lv-piste i { position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: #FFFFFF; transform-origin: left center; transform: scaleX(0); }
.lv-cc span { padding: 1px 4px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.lv-cc[aria-pressed="true"] span { background: #FFFFFF; color: #17201D; }
.lv:fullscreen { max-width: none; width: 100vw; height: 100vh; background: #000000; display: grid; place-items: center; }
.lv:fullscreen .lv-cadre { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: #000000; }
.lv:fullscreen .lv-video { object-fit: contain; }
@media (prefers-color-scheme: dark) {
  body.sombre-possible .lv-cadre { background: linear-gradient(135deg, #1A2C25 0%, #172630 52%, #24223D 100%); box-shadow: none; }
  body.sombre-possible .lv-apercu { background: linear-gradient(to bottom, rgba(15, 23, 20, .7), rgba(15, 23, 20, 0) 46%, rgba(15, 23, 20, 0) 64%, rgba(15, 23, 20, .66)); }
  body.sombre-possible .lv-affiche .lv-apercu { background: linear-gradient(to bottom, rgba(15, 23, 20, 0) 52%, rgba(15, 23, 20, .86) 74%, rgba(15, 23, 20, .94)); }
  body.sombre-possible .lv-apercu-tete { color: #93CFB5; }
  body.sombre-possible .lv-apercu-titre { color: #E4ECE8; }
  body.sombre-possible .lv-poids { background: rgba(0, 0, 0, .34); color: #C9D3CE; }
  body.sombre-possible .lv-legende { color: var(--gris-2); }
}
@media (prefers-reduced-motion: reduce) { .lv-gros, .lv-apercu, .lv-commandes { transition: none; } .lv[data-etat="charge"] .lv-gros::after { animation-duration: 2.4s; } }

/* LA FEUILLE « NAVIGATEUR INTÉGRÉ » (lib/application.js feuilleIntegre ; statique/app.js) : sans script, en tête de page ; avec lui,
   par-dessus, presque tout l'écran ; refermée, un bandeau fin qui la rouvre. */
.ig { display: block; padding: 16px 16px 4px; }
.ig-feuille { max-width: 520px; margin: 0 auto; padding: 20px 22px 22px; border-radius: 26px; background: var(--fond, #FFFFFF); box-shadow: 0 0 0 1px var(--trait, #E7EAE6); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ig-logo { position: relative; isolation: isolate; margin: 6px 0 4px; }
.ig-logo::before { content: ''; position: absolute; z-index: -1; inset: -26px -30px; border-radius: 50%; background: radial-gradient(closest-side at 40% 50%, rgba(127, 196, 166, .42), rgba(0, 0, 0, 0)), radial-gradient(closest-side at 62% 48%, rgba(165, 156, 251, .34), rgba(0, 0, 0, 0)); }
.ig h2 { margin: 0; font-size: 25px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--encre); text-wrap: balance; }
.ig-geste { width: 100%; padding: 12px; border-radius: 20px; background: var(--surface, #F3F6F4); }
.ig-geant { width: 100%; min-height: 60px; justify-content: center; border-radius: 18px; font-size: 17px; gap: 10px; box-shadow: 0 14px 30px -16px rgba(15, 61, 46, .6); }
.ig-continuer { margin-top: 2px; padding: 8px 12px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--gris-2); cursor: pointer; }
.ig.ig-ouverte { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(15, 23, 20, .32); animation: ig-fondu .35s ease both; }
.ig.ig-ouverte .ig-feuille { width: 100%; max-height: 92%; overflow-y: auto; padding-bottom: max(26px, env(safe-area-inset-bottom)); border-radius: 30px 30px 0 0; box-shadow: none; animation: ig-monte .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ig-fondu { from { opacity: 0; } }
@keyframes ig-monte { from { transform: translateY(100%); } }
.ig-bandeau { position: sticky; top: 0; z-index: 60; width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--lavande-douce); color: var(--lavande-texte); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
@media (prefers-color-scheme: dark) {
  body.sombre-possible .ig-feuille { background: var(--fond); box-shadow: 0 0 0 1px var(--trait); }
  body.sombre-possible .ig.ig-ouverte { background: rgba(0, 0, 0, .5); }
}
@media (prefers-reduced-motion: reduce) { .ig.ig-ouverte, .ig.ig-ouverte .ig-feuille { animation: none; } }

/* /installer : le tutoriel iPhone, « Ouvrir l'application », le bloc d'essai (?essai=ouvrir) */
.inst-film { margin-top: 16px; }
.app-ouvrir-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--encre); }
.app-ouvrir-note .icone { flex: none; margin-top: 2px; color: var(--vert); }
.inst-essai-ouvrir p { margin-top: 6px; font-size: 15px; color: var(--gris); }
.inst-essai-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* LA PAGE D'ACCUEIL (H1 à H3) : la scène prend l'aspect du nouveau chat — la réponse dans son cadre, un tour de lumière LED (CSS seul), la
   pilule « Demander à SIKADI AI » — ; « Voir la vidéo » sous « Commencer » (le lecteur dans une feuille) ; « Ouvrir l'application ». */
.sc-cadre { position: relative; align-self: stretch; max-width: 100%; padding: 11px 13px 12px; border-radius: 18px; background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px var(--trait-chat), 0 12px 30px -22px rgba(23, 32, 29, .25); }
.sc-led { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sc-led rect { x: .6px; y: .6px; width: calc(100% - 1.2px); height: calc(100% - 1.2px); rx: 17.4px; fill: none; stroke-width: 1.25px; stroke-linecap: round; opacity: 0; stroke-dashoffset: 0; animation: sc-led 2.6s cubic-bezier(.45, .1, .4, .95) 2.85s 1 backwards; }
.sc-led .sc-led-q1 { stroke: #A49BF0; stroke-dasharray: 22 78; opacity: 0; }
.sc-led .sc-led-q2 { stroke: #8EC6D4; stroke-dasharray: 13 87; }
.sc-led .sc-led-t { stroke: #66B793; stroke-dasharray: 6 94; }
@keyframes sc-led { 0% { opacity: 0; stroke-dashoffset: 0; } 10% { opacity: .9; } 82% { opacity: .9; } 100% { opacity: 0; stroke-dashoffset: -100; } }
.sc-pilule { display: flex; align-items: center; gap: 10px; margin: 0 12px 14px; padding: 12px 14px; border-radius: 26px; background: var(--fond); box-shadow: 0 0 0 1.5px var(--trait-chat), 0 14px 30px -20px rgba(23, 32, 29, .35); color: var(--gris-3); font-size: 14px; }
.sc-pilule span { flex: 1; }
.sc-pilule .icone { color: var(--gris-2); }
.scene > .scene-ecran .scene-fil { padding-bottom: 20px; }
.bouton-video { align-self: flex-start; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--vert); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease; }
.bouton-video:hover { background: var(--surface-2); }
.bouton-video .icone { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--vert); color: #FFFFFF; fill: currentColor; }
.vf { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 20, .55); animation: ig-fondu .3s ease both; }
.vf[hidden] { display: none; }
.vf-boite { position: relative; width: min(100%, 360px); }
.vf-boite .lv { max-width: none; }
.vf-fermer { position: absolute; z-index: 5; top: -52px; right: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #17201D; display: grid; place-items: center; cursor: pointer; }
.lien-entete.lien-ouvrir { gap: 6px; }
/* (saas-37) caché tant que l'application n'est pas vue installée, ou la feuille ouverte : l'attribut « hidden » l'emporte toujours sur la classe */
[data-app-ouvrir][hidden], .ig-bandeau[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  body.sombre-possible .sc-cadre { background: rgba(22, 32, 28, .78); }
  body.sombre-possible .sc-led .sc-led-q1 { stroke: #9890EA; }
  body.sombre-possible .sc-led .sc-led-q2 { stroke: #77B3C3; }
  body.sombre-possible .sc-led .sc-led-t { stroke: #8FD3B6; }
}
@media (prefers-reduced-motion: reduce) { .sc-led { display: none; } .vf { animation: none; } }

/* (saas-40, P6) /installer ouvert DANS l'application : « Vous êtes dans l'application », rien à installer (CSS seul, sans décision serveur) */
.inst-dedans { text-align: center; padding: 28px 0 40px; }
.inst-dedans h1 { margin-top: 18px; font-size: clamp(26px, 7vw, 36px); line-height: 1.15; font-weight: 800; }
.inst-dedans-boutons { display: grid; gap: 10px; max-width: 360px; margin: 24px auto 0; }
.inst-autre { max-width: 360px; margin: 18px auto 0; text-align: left; }
.inst-autre summary { display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; color: var(--vert); cursor: pointer; }
.inst-autre p { margin-top: 8px; font-size: 15px; color: var(--gris); }
@media (display-mode: standalone), (display-mode: minimal-ui) {
  .installer > .inst-dedans { display: block !important; }
  .installer > :not(.inst-dedans) { display: none !important; }
}

/* (saas-40, A13/P8) l'aide : un sommaire en boutons (chaque cible ≥ 44 px), qui passe à la ligne sans déborder */
.aide-sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.aide-sommaire a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 14px; background: var(--brume); color: var(--vert); font-size: 14.5px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.aide-sommaire a:hover { background: var(--bulle-moi); color: var(--vert-profond); }
.inst-dedans .inst-tuile { margin-left: auto; margin-right: auto; }

/* (saas-44, § 0ter.2 b) en canal play, tout élément de l’inventaire du paiement est caché, même si le serveur l’a rendu */
html.canal-play [data-paiement] { display: none !important; }

/* (saas-44-play) pages publiques de l'appli : cartes et tableaux, téléphone d'abord, rien ne déborde */
.play-page h1 { margin-bottom: .4rem; }
.play-page .date { margin-bottom: 1.6rem; overflow-wrap: anywhere; }
.play-cartes { display: grid; gap: 1rem; margin: 1.6rem 0; }
.play-carte { background: var(--carte, #fff); border: 1px solid rgba(15, 23, 20, .08); border-radius: 18px; padding: 1.1rem 1.2rem; min-width: 0; }
.play-carte h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.play-carte p { margin: 0; overflow-wrap: anywhere; }
.play-carte .bouton { width: 100%; justify-content: center; }
.play-tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .8rem 0 1.2rem; border-radius: 14px; border: 1px solid rgba(15, 23, 20, .08); }
.play-tableau table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.play-tableau th, .play-tableau td { text-align: left; padding: .6rem .75rem; vertical-align: top; overflow-wrap: anywhere; }
.play-tableau tr + tr td { border-top: 1px solid rgba(15, 23, 20, .06); }
.play-tableau th { font-weight: 800; background: rgba(15, 23, 20, .03); }
@media (min-width: 720px) { .play-cartes { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-color-scheme: dark) {
  .play-carte, .play-tableau { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); }
  .play-tableau th { background: rgba(255, 255, 255, .04); }
}
/* (saas-44-play) Supprimer mon compte, Mon téléphone : boutons larges, pile verticale, rien ne déborde à 360 px */
.bouton-supprimer { background: #c0504d; border-color: #c0504d; }
.appli-boutons { display: grid; gap: 12px; margin: 16px 0; }
.appli-boutons .bouton { width: 100%; min-height: 48px; }
.appli-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(0,0,0,.06); flex-wrap: wrap; }
.appli-ligne span { min-width: 0; overflow-wrap: anywhere; }
.play-carte label.champ { display: grid; gap: 6px; margin: 12px 0; }
.play-carte label.champ input { width: 100%; box-sizing: border-box; min-height: 44px; }
[data-appli-action][hidden], .cb-carte-appli[hidden] { display: none !important; }
.play-carte h2 { display: flex; align-items: center; gap: 8px; }
.play-logo { display: flex; justify-content: center; margin: 8px 0 16px; }
.bouton.bouton-plein.bouton-supprimer, .bouton.bouton-plein.bouton-supprimer:hover { background: #c0504d; border-color: #c0504d; color: #fff; }
.appli-boutons[hidden] { display: none !important; }
