/* ================= Thème ================= */
:root {
  /* Identité Offrexpert : bleu Majorelle, safran, ivoire */
  --fond: #f8f6f0;
  --surface: #ffffff;
  --surface-2: #f0ede4;
  --encre: #121735;
  --doux: #5a6080;
  --ligne: #e3dfd3;
  --accent: #3550dc;
  --accent-fort: #2238b8;
  --accent-clair: #e6eaff;
  --or: #c47f00;
  --or-vif: #f2a516;
  --or-clair: #fdf1d8;
  --erreur: #b3261e;
  --nuit: #0b1035;
  --nuit-2: #141b4d;
  --sur-nuit: #eef0ff;
  --sur-nuit-doux: #a9b1e0;
  --rayon: 16px;
  --ombre: 0 1px 2px rgba(18, 23, 53, .05), 0 10px 28px rgba(18, 23, 53, .07);
  --titre: "Sora", "Manrope", system-ui, sans-serif;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Accueil 360° — mode jour */
  --hero-fond: radial-gradient(1200px 640px at 70% 40%, #d9e0ff 0%, #eef0fb 38%, #f8f6f0 70%);
  --hero-voile: linear-gradient(90deg, rgba(248,246,240,.96) 0%, rgba(248,246,240,.7) 32%, transparent 55%);
  --hero-voile-mobile: linear-gradient(to bottom, transparent 28%, rgba(248,246,240,.9) 44%, #f8f6f0 56%);
  --hero-titre: #121735; --hero-texte: #4a5175;
  --hero-puce-fond: rgba(53,80,220,.08); --hero-puce-bord: rgba(53,80,220,.28); --hero-puce-texte: #2238b8;
  --hero-btn-texte: #121735; --hero-btn-bord: rgba(18,23,53,.22);
  --hero-verre: rgba(255,255,255,.7); --hero-verre-bord: rgba(18,23,53,.12);
  --fiche-fond: rgba(255,255,255,.97); --fiche-bord: rgba(53,80,220,.25); --fiche-texte: #4a5175; --fiche-titre: #121735;
  --eh-fond: rgba(255,255,255,.72); --eh-bord: rgba(18,23,53,.08); --eh-texte: #121735; --eh-doux: #5a6080;
  color: var(--encre);
}
/* Mode nuit : automatique selon l'appareil, ou forcé par le bouton jour/nuit */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="jour"]) {
    --fond: #0a0e26; --surface: #121839; --surface-2: #19204a; --encre: #eceffd; --doux: #a1a8cf;
    --ligne: #262e60; --accent: #8a9dff; --accent-fort: #a8b6ff; --accent-clair: #1d2660;
    --or: #f5b83d; --or-vif: #f5b83d; --or-clair: #3a2a0c; --erreur: #ff8f87;
    --ombre: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --btn-plein: #3d5af0; --btn-plein-survol: #5571ff;
    --hero-fond: radial-gradient(1200px 600px at 70% 40%, #22309a 0%, #0b1035 60%);
    --hero-voile: linear-gradient(90deg, rgba(11,16,53,.92) 0%, rgba(11,16,53,.6) 32%, transparent 55%);
    --hero-voile-mobile: linear-gradient(to bottom, transparent 28%, rgba(11,16,53,.85) 44%, #0b1035 56%);
    --hero-titre: #ffffff; --hero-texte: #a9b1e0;
    --hero-puce-fond: rgba(242,165,22,.12); --hero-puce-bord: rgba(242,165,22,.35); --hero-puce-texte: #ffd27a;
    --hero-btn-texte: #eef0ff; --hero-btn-bord: rgba(255,255,255,.25);
    --hero-verre: rgba(255,255,255,.06); --hero-verre-bord: rgba(255,255,255,.12);
    --fiche-fond: rgba(20,27,77,.94); --fiche-bord: rgba(255,255,255,.14); --fiche-texte: #eef0ff; --fiche-titre: #ffffff;
    --eh-fond: rgba(11,16,53,.72); --eh-bord: rgba(255,255,255,.08); --eh-texte: #eef0ff; --eh-doux: #a9b1e0;
  }
}
:root[data-theme="nuit"] {
    --fond: #0a0e26; --surface: #121839; --surface-2: #19204a; --encre: #eceffd; --doux: #a1a8cf;
    --ligne: #262e60; --accent: #8a9dff; --accent-fort: #a8b6ff; --accent-clair: #1d2660;
    --or: #f5b83d; --or-vif: #f5b83d; --or-clair: #3a2a0c; --erreur: #ff8f87;
    --ombre: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --btn-plein: #3d5af0; --btn-plein-survol: #5571ff;
    --hero-fond: radial-gradient(1200px 600px at 70% 40%, #22309a 0%, #0b1035 60%);
    --hero-voile: linear-gradient(90deg, rgba(11,16,53,.92) 0%, rgba(11,16,53,.6) 32%, transparent 55%);
    --hero-voile-mobile: linear-gradient(to bottom, transparent 28%, rgba(11,16,53,.85) 44%, #0b1035 56%);
    --hero-titre: #ffffff; --hero-texte: #a9b1e0;
    --hero-puce-fond: rgba(242,165,22,.12); --hero-puce-bord: rgba(242,165,22,.35); --hero-puce-texte: #ffd27a;
    --hero-btn-texte: #eef0ff; --hero-btn-bord: rgba(255,255,255,.25);
    --hero-verre: rgba(255,255,255,.06); --hero-verre-bord: rgba(255,255,255,.12);
    --fiche-fond: rgba(20,27,77,.94); --fiche-bord: rgba(255,255,255,.14); --fiche-texte: #eef0ff; --fiche-titre: #ffffff;
    --eh-fond: rgba(11,16,53,.72); --eh-bord: rgba(255,255,255,.08); --eh-texte: #eef0ff; --eh-doux: #a9b1e0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--titre); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
img { max-width: 100%; }
.conteneur { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ================= En-tête ================= */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--ligne);
}
.entete.sur-nuit { background: var(--eh-fond); border-color: var(--eh-bord); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font-family: var(--titre); font-weight: 600; font-size: 17px; }
.entete.sur-nuit .marque { color: var(--eh-texte); }
.logo { width: 36px; height: 36px; flex: none; display: block; }
.mot { font-family: var(--titre); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.mot b { color: var(--or-vif); font-weight: 700; }
.mot-sous { display: block; font-family: "Manrope", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--doux); text-transform: uppercase; line-height: 1; }
.entete.sur-nuit .mot-sous { color: var(--eh-doux); }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--doux); text-decoration: none; font-size: 15px; }
.menu a:hover { color: var(--encre); }
.entete.sur-nuit .menu a { color: var(--eh-doux); }
.entete.sur-nuit .menu a:hover { color: var(--eh-texte); }
@media (max-width: 760px) { .menu .masquable { display: none; } }

/* ================= Boutons & champs ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border-radius: 12px; padding: 11px 20px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-plein { background: var(--btn-plein, var(--accent)); color: #fff; }
.btn-plein:hover { background: var(--btn-plein-survol, var(--accent-fort)); }
.btn-or { background: var(--or); color: #1b1300; }
.btn-ligne { background: transparent; color: var(--encre); border-color: var(--ligne); }
.btn-ligne:hover { border-color: var(--accent); }
.sur-nuit .btn-ligne { color: var(--eh-texte); border-color: var(--hero-btn-bord); }
.btn-ligne.clair { color: var(--sur-nuit); border-color: rgba(255,255,255,.22); }
.btn-petit { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
input, textarea, select {
  font: inherit; color: var(--encre); background: var(--surface);
  border: 1px solid var(--ligne); border-radius: 12px; padding: 11px 13px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label.champ { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.aide { font-size: 13px; color: var(--doux); font-weight: 400; }
.message { font-size: 14px; min-height: 20px; } .message.ko { color: var(--erreur); } .message.ok { color: var(--accent); }

/* ================= Accueil : scène 360° ================= */
.hero {
  position: relative; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  background: var(--hero-fond);
  color: var(--hero-texte); overflow: hidden; display: flex; align-items: center;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#scene:active { cursor: grabbing; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--hero-voile); }
.hero .btn-ligne { color: var(--hero-btn-texte); border-color: var(--hero-btn-bord); }
.hero .btn-ligne:hover { border-color: var(--or-vif); }
.hero-contenu { position: relative; z-index: 2; pointer-events: none; width: 100%; }
.hero-contenu .bloc-texte { max-width: 560px; pointer-events: auto; padding: 48px 0; }
.hero .surtitre {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hero-puce-texte); background: var(--hero-puce-fond); border: 1px solid var(--hero-puce-bord);
  padding: 5px 12px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 18px; color: var(--hero-titre); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffc94d, #f2a516); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.accroche { font-size: 18px; color: var(--hero-texte); margin: 0 0 28px; max-width: 500px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .rassurance { margin-top: 18px; font-size: 14px; color: var(--hero-texte); }
.indice-360 {
  position: absolute; z-index: 3; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--hero-texte); background: var(--hero-verre); border: 1px solid var(--hero-verre-bord);
  padding: 8px 14px; border-radius: 99px; pointer-events: none;
}
.indice-360 b { color: var(--hero-titre); font-family: var(--titre); }
.fiche-3d {
  position: absolute; z-index: 4; max-width: 300px; padding: 14px 16px; border-radius: 14px;
  background: var(--fiche-fond); border: 1px solid var(--fiche-bord); color: var(--fiche-texte);
  font-size: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.35); pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.fiche-3d.visible { opacity: 1; transform: none; }
.fiche-3d strong { display: block; font-family: var(--titre); font-size: 16px; color: var(--fiche-titre); margin-bottom: 4px; }
@media (max-width: 860px) {
  .hero { align-items: flex-end; }
  .hero-contenu .bloc-texte { padding: 46vh 0 40px; }
  .hero::before { background: var(--hero-voile-mobile); }
  .hero-contenu .bloc-texte { padding-top: 44vh; }
  .marque { font-size: 15px; min-width: 0; }
  .mot-sous { display: none; }
  .indice-360 { top: 16px; bottom: auto; right: 16px; }
}

/* ================= Sections ================= */
section.section { padding: 84px 0; }
section.section.alt { background: var(--surface); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.entete-section { max-width: 640px; margin-bottom: 40px; }
.entete-section .surtitre { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.entete-section h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 8px 0 12px; }
.entete-section p { color: var(--doux); margin: 0; font-size: 17px; }
.grille { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.alt .carte { background: var(--fond); box-shadow: none; }
.etapes { counter-reset: etape; }
.etape h3 { font-size: 19px; margin: 14px 0 6px; }
.etape p { margin: 0; color: var(--doux); }
.etape::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-clair); color: var(--accent); font-family: var(--titre); font-weight: 700; font-size: 18px;
}
.service .icone { font-size: 26px; }
.service h3 { font-size: 18px; margin: 10px 0 6px; }
.service p { margin: 0; color: var(--doux); font-size: 15px; }

.tarifs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 820px; }
.tarif { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tarif.vedette { border: 2px solid var(--accent); }
.tarif .badge { position: absolute; top: -12px; right: 18px; background: var(--btn-plein, var(--accent)); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.tarif .prix { font-family: var(--titre); font-size: 42px; font-weight: 700; line-height: 1; }
.tarif .prix small { font-size: 16px; font-weight: 500; color: var(--doux); }
.tarif ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.tarif li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--ligne); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--doux); margin: 10px 0 0; }

.appel-final { background: linear-gradient(135deg, var(--nuit) 0%, #2a3cb0 100%); color: var(--sur-nuit); border-radius: 22px; padding: 48px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.appel-final h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); }
.appel-final p { color: var(--sur-nuit-doux); margin: 8px 0 0; }

.pied { border-top: 1px solid var(--ligne); padding: 40px 0; color: var(--doux); font-size: 14px; }
.pied .conteneur { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pied strong { color: var(--encre); font-family: var(--titre); }

/* ================= Espace membre ================= */
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .cote { display: none; } }
.auth .cote { background: radial-gradient(800px 500px at 30% 30%, #22309a, var(--nuit)); color: var(--sur-nuit); padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.auth .cote h2 { color: #fff; font-size: 34px; margin-bottom: 16px; }
.auth .cote ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--sur-nuit-doux); }
.auth .cote li::before { content: "✓"; color: #f2a516; margin-right: 10px; font-weight: 700; }
.auth .formulaire-zone { display: grid; place-items: center; padding: 40px 20px; }
.auth form { width: 100%; max-width: 400px; display: grid; gap: 14px; }
.auth h1 { font-size: 30px; }
.bascule { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.bascule button { flex: 1; font: inherit; font-weight: 600; font-size: 14px; border: 0; background: none; color: var(--doux); padding: 9px; border-radius: 9px; cursor: pointer; }
.bascule button.actif { background: var(--surface); color: var(--encre); box-shadow: var(--ombre); }

.app { display: grid; grid-template-columns: 290px 1fr; height: calc(100vh - 64px); height: calc(100svh - 64px); }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .app .barre { display: none; } .app.barre-ouverte .barre { display: flex; position: fixed; inset: 64px 0 0 0; z-index: 40; } }
.barre { background: var(--surface); border-right: 1px solid var(--ligne); display: flex; flex-direction: column; min-height: 0; }
.barre .haut { padding: 16px; display: grid; gap: 10px; }
.historique { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
.historique .titre-liste { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); font-weight: 600; padding: 10px 8px 6px; }
.historique button.conv { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; font: inherit; font-size: 14px; background: none; border: 0; color: var(--encre); padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.historique button.conv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historique button.conv:hover, .historique button.conv.actif { background: var(--surface-2); }
.historique .suppr { opacity: 0; color: var(--doux); font-size: 16px; padding: 0 4px; }
.historique button.conv:hover .suppr { opacity: 1; }
.compteur { margin: 0 16px 16px; padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.compteur .jauge { height: 6px; background: var(--ligne); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.compteur .jauge i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.compteur.abonne { background: var(--accent-clair); color: var(--accent-fort); }
.zone-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.barre-chat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--ligne); background: var(--surface); }
.barre-chat .statut { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); }
.barre-chat .statut::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fb37e; }
.ouvrir-barre { display: none; }
@media (max-width: 860px) { .ouvrir-barre { display: inline-flex; } }
.fil { flex: 1; overflow-y: auto; padding: 28px 20px; display: flex; flex-direction: column; gap: 14px; }
.fil > * { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
.bulle { padding: 12px 16px; border-radius: 16px; font-size: 15px; overflow-wrap: anywhere; width: fit-content; max-width: min(780px, 88%); }
.bulle.moi { margin-right: max(0px, calc((100% - 780px) / 2)); align-self: flex-end; background: var(--btn-plein, var(--accent)); color: #fff; border-bottom-right-radius: 5px; }
.bulle.robot { align-self: flex-start; margin-left: max(0px, calc((100% - 780px) / 2)); background: var(--surface); border: 1px solid var(--ligne); border-bottom-left-radius: 5px; }
.bulle.robot p { margin: 0 0 8px; } .bulle.robot p:last-child { margin: 0; }
.bulle.robot ul { margin: 4px 0 8px; padding-left: 20px; }
.bulle.erreur { align-self: center; color: var(--erreur); background: none; font-size: 14px; text-align: center; }
.note { align-self: center; font-size: 13px; background: var(--accent-clair); color: var(--accent-fort); padding: 6px 12px; border-radius: 99px; width: fit-content; }
.points span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--doux); animation: saut 1s infinite; }
.points span:nth-child(2) { animation-delay: .15s; } .points span:nth-child(3) { animation-delay: .3s; }
@keyframes saut { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.bienvenue { text-align: center; margin: auto; padding: 20px 0; }
.bienvenue h2 { font-size: 28px; margin-bottom: 8px; }
.bienvenue p { color: var(--doux); margin: 0 0 22px; }
.suggestions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
.suggestions button { font: inherit; font-size: 14px; text-align: left; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.suggestions button:hover { border-color: var(--accent); }
.saisie-zone { padding: 14px 20px 20px; }
form.envoi { max-width: 780px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; padding: 8px; box-shadow: var(--ombre); }
form.envoi textarea { border: 0; resize: none; min-height: 44px; max-height: 180px; background: transparent; }
form.envoi textarea:focus { outline: none; }
.mur { max-width: 520px; margin: 0 auto; text-align: center; padding: 26px; border-radius: 18px; border: 1px solid var(--ligne); background: var(--surface); box-shadow: var(--ombre); }
.mur h3 { font-size: 22px; margin-bottom: 6px; }
.mur p { color: var(--doux); margin: 0 0 16px; }
.mur .prix { font-family: var(--titre); font-size: 36px; font-weight: 700; margin-bottom: 14px; }
.mur .prix small { font-size: 15px; color: var(--doux); font-weight: 500; }
.bandeau { max-width: 780px; margin: 0 auto 12px; font-size: 14px; padding: 10px 14px; border-radius: 12px; }
.bandeau.ok { background: var(--accent-clair); color: var(--accent-fort); }
.bandeau.info { background: var(--or-clair); color: var(--or); }
dialog { border: 1px solid var(--ligne); border-radius: 18px; padding: 26px; background: var(--surface); color: var(--encre); width: min(460px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(8, 10, 35, .55); }
dialog form { display: grid; gap: 12px; }

/* ================= Espace gestion ================= */
.gestion { padding: 32px 0 60px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.stat .val { font-family: var(--titre); font-size: 32px; font-weight: 700; }
.stat .lib { color: var(--doux); font-size: 14px; }
.onglets { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.onglets button { font: inherit; font-size: 14px; border: 1px solid var(--ligne); background: var(--surface); color: var(--encre); padding: 8px 15px; border-radius: 99px; cursor: pointer; }
.onglets button.actif { background: var(--btn-plein, var(--accent)); color: #fff; border-color: var(--accent); }
.defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th, .tableau td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); font-weight: 600; }
.etiquette { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--doux); white-space: nowrap; }
.etiquette.ok { background: var(--accent-clair); color: var(--accent-fort); }
.etiquette.or { background: var(--or-clair); color: var(--or); }
.actions-ligne { display: flex; gap: 6px; flex-wrap: wrap; }
.echange { font-size: 14px; display: grid; gap: 8px; margin-top: 12px; }
.echange .u { font-weight: 500; } .echange .r { color: var(--doux); white-space: pre-wrap; padding-left: 10px; border-left: 3px solid var(--ligne); }
.vide { color: var(--doux); text-align: center; padding: 40px 10px; }

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

/* ================= Accueil 360° seul, pages d'informations ================= */
body.accueil-360 { overflow: hidden; height: 100vh; height: 100svh; }
body.accueil-360 .hero { height: calc(100vh - 64px); height: calc(100svh - 64px); min-height: 0; }
.menu a.actif { color: var(--accent); font-weight: 600; }
.entete.sur-nuit .menu a.actif { color: var(--or-vif); }
.liens-mobile { display: none; }
@media (max-width: 760px) {
  .liens-mobile { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
  .liens-mobile a { color: var(--hero-titre); text-decoration: underline; text-underline-offset: 3px; }
  body.accueil-360 .hero-contenu .bloc-texte { padding: 0 0 24px; }
  body.accueil-360 .hero h1 { font-size: 32px; margin-bottom: 10px; }
  body.accueil-360 .hero p.accroche { font-size: 15px; margin-bottom: 16px; }
}
@media (max-height: 640px) and (max-width: 760px) { body.accueil-360 .hero p.accroche { display: none; } }
.page-infos { min-height: calc(100vh - 64px - 120px); }

/* ================= Bouton jour / nuit ================= */
.bouton-theme {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--ligne); background: transparent; color: var(--encre); padding: 0;
  transition: border-color .15s, transform .15s;
}
.bouton-theme:hover { border-color: var(--accent); }
.bouton-theme:active { transform: scale(.95); }
.bouton-theme svg { width: 19px; height: 19px; }
.entete.sur-nuit .bouton-theme { color: var(--eh-texte); border-color: var(--hero-btn-bord); }
.bouton-theme .lune { display: none; }
:root[data-theme="nuit"] .bouton-theme .soleil { display: none; }
:root[data-theme="nuit"] .bouton-theme .lune { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="jour"]) .bouton-theme .soleil { display: none; }
  :root:not([data-theme="jour"]) .bouton-theme .lune { display: block; }
}

/* Bouton WhatsApp (abonnement) */
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178c46; }

/* ================= Pages de conseils ================= */
.fil-ariane { font-size: 14px; color: var(--doux); margin-bottom: 18px; }
.fil-ariane a { color: var(--doux); }
.article-conseil h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 18px; line-height: 1.15; }
.article-conseil { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
.article-conseil > .fil-ariane, .article-conseil > .entete-section, .article-conseil > .grille { grid-column: 1 / -1; }
@media (max-width: 900px) { .article-conseil { grid-template-columns: 1fr; } }
.contenu-conseil { max-width: 740px; font-size: 17px; }
.contenu-conseil h2 { font-size: 24px; margin: 34px 0 10px; }
.contenu-conseil p, .contenu-conseil li { color: var(--encre); }
.contenu-conseil ul, .contenu-conseil ol { padding-left: 22px; display: grid; gap: 6px; }
.contenu-conseil .avertissement { margin-top: 32px; font-size: 14px; color: var(--doux); border-left: 3px solid var(--or-vif); padding: 8px 14px; background: var(--or-clair); border-radius: 0; }
.autres-conseils { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 20px; }
.autres-conseils h2 { font-size: 17px; margin-bottom: 10px; }
.autres-conseils ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
a.carte-conseil { text-decoration: none; color: var(--encre); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
a.carte-conseil:hover { border-color: var(--accent); transform: translateY(-2px); }
a.carte-conseil h3 { font-size: 19px; }
a.carte-conseil p { margin: 0; color: var(--doux); font-size: 15px; flex: 1; }
a.carte-conseil .lire { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Références officielles sous les réponses du robot */
.bulle .sources { margin-top: 10px; border-top: 1px solid var(--ligne); padding-top: 8px; font-size: 14px; }
.bulle .sources summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.bulle .sources ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.bulle .sources blockquote { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--or-vif); background: var(--surface-2); color: var(--doux); font-size: 13px; border-radius: 0; }
.bulle .sources .aide { margin: 8px 0 0; font-size: 12px; }

/* Mise en avant des références officielles */
.badge-references { display: inline-flex; align-items: center; gap: 6px; margin: -12px 0 24px; font-size: 14px; font-weight: 600; color: var(--hero-puce-texte); background: var(--hero-puce-fond); border: 1px solid var(--hero-puce-bord); padding: 6px 12px; border-radius: 99px; }
.exemple-chat { max-width: 760px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.exemple-chat .bulle { max-width: 100%; }
.exemple-chat .bulle.moi { margin-right: 0; }
.exemple-chat .bulle.robot { margin-left: 0; }
@media (max-width: 760px) { .badge-references { font-size: 13px; margin: -6px 0 16px; } }

/* ================= Tableau de bord (espace gestion) ================= */
.tdb { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tdb-large { grid-column: 1 / -1; }
.tdb-bloc h3 { font-size: 18px; margin-bottom: 2px; }
.tdb-bloc > .aide { margin: 0 0 14px; }
.barres { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 180px; }
.barre { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.barre i { display: block; width: 100%; max-width: 38px; min-height: 3px; background: var(--btn-plein, var(--accent)); border-radius: 6px 6px 2px 2px; }
.barre .val { font-size: 12px; font-weight: 600; color: var(--encre); }
.barre .lib { font-size: 11px; color: var(--doux); }
.etape-ent { margin-bottom: 10px; }
.ligne-ent { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.jauge-ent { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.jauge-ent i { display: block; height: 100%; background: var(--btn-plein, var(--accent)); border-radius: 99px; }
.jauge-ent.or i { background: var(--or-vif); }
.liste-tdb { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.chiffres-tdb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chiffres-tdb div { background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; }
.chiffres-tdb .val { display: block; font-family: var(--titre); font-size: 20px; font-weight: 700; }
.chiffres-tdb .lib { font-size: 12px; color: var(--doux); }
@media (max-width: 600px) { .barres { gap: 3px; } .barre .lib { font-size: 9px; } }
