/* ===================================================================
   Justice4U V2 — interface conversationnelle (novembre 2026)
   Sobre et professionnelle : barre flottante minimale (Maître Guacamole ·
   Recherche · Pro du droit), panneau latéral (marque, historique, compte),
   zone de saisie unique, fenêtres de connexion et d'abonnement.
   S'appuie sur les jetons de /styles.css (couleurs, verre, polices).
   Partagé par la page d'accueil (/) et par Mon espace (/dashboard).
=================================================================== */

:root {
  --v2-bar-h: 52px;
  --v2-side-w: 268px;
  --v2-col: 760px;
  --v2-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --v2-surface: #ffffff;
  --v2-surface-2: #f4f7f5;
  --v2-trait: rgba(10, 40, 25, 0.10);
  --v2-trait-fort: rgba(10, 40, 25, 0.18);
  --v2-texte: #0d1a13;
  --v2-texte-2: #5b6b63;
  --v2-accent: #0a7c4a;
  --v2-accent-fonce: #08643c;
  --v2-ombre: 0 1px 2px rgba(10, 40, 25, 0.04), 0 8px 28px -12px rgba(10, 40, 25, 0.16);
}
html:not([data-theme="light"]) {
  --v2-surface: #0e1d15;
  --v2-surface-2: #13261b;
  --v2-trait: rgba(200, 255, 225, 0.09);
  --v2-trait-fort: rgba(200, 255, 225, 0.16);
  --v2-texte: #eef7f1;
  --v2-texte-2: #93a99d;
  --v2-accent: #2bd38a;
  --v2-accent-fonce: #1fb877;
  --v2-ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
.v2-composer { view-transition-name: v2-saisie; }

body.v2 { overflow-x: hidden; color: var(--v2-texte); }
/* Typographie (03/11/2026) : les titres en Source Serif 4 (Adobe, licence OFL) à la place de Fraunces ;
   le texte courant et les lettres gothiques (UnifrakturCook) ne changent pas */
body.v2 { --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif; }
body.v2-verrou { overflow: hidden; }
.v2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.v2 :focus-visible { outline: 2px solid var(--v2-accent); outline-offset: 2px; }

/* Bande givrée sous la barre : le contenu qui défile passe dessous au lieu d'apparaître autour de la barre */
body.v2::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: calc(var(--v2-bar-h) + 24px); z-index: 119; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink-0) 82%, transparent) 55%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

/* ---------- Barre du haut : trois choix, rien d'autre ---------- */
.v2-bar {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 120;
  height: var(--v2-bar-h); display: flex; align-items: center; gap: 4px; padding: 0 6px;
  border-radius: 999px; max-width: calc(100% - 20px);
  background: color-mix(in srgb, var(--v2-surface) 78%, transparent);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--v2-trait); box-shadow: var(--v2-ombre);
  transition: left 0.35s var(--v2-ease);
}
.v2-icone {
  width: 38px; height: 38px; border-radius: 999px; display: inline-grid; place-items: center; flex-shrink: 0;
  background: transparent; border: 0; color: var(--v2-texte); cursor: pointer; position: relative;
  transition: background 0.15s;
}
.v2-icone:hover { background: color-mix(in srgb, var(--v2-texte) 7%, transparent); }
.v2-icone svg { width: 19px; height: 19px; }
.v2-modes { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: color-mix(in srgb, var(--v2-texte) 5%, transparent); }
.v2-modes::before {
  content: ''; position: absolute; top: 3px; bottom: 3px; left: 0;
  width: var(--v2-pill-w, 0px); transform: translateX(var(--v2-pill-x, 3px));
  border-radius: 999px; background: var(--v2-surface); box-shadow: 0 1px 3px rgba(10, 40, 25, 0.14);
  transition: transform 0.3s var(--v2-ease), width 0.3s var(--v2-ease);
}
.v2-mode {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  font: 500 14px var(--font-body); color: var(--v2-texte-2); padding: 7px 14px; border-radius: 999px; transition: color 0.2s;
}
.v2-mode:hover { color: var(--v2-texte); }
.v2-mode[aria-pressed="true"] { color: var(--v2-texte); }
.v2-dossier[aria-pressed="true"] { background: color-mix(in srgb, var(--v2-accent) 14%, transparent); color: var(--v2-accent); }
.v2-infobulle {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -2px); z-index: 5;
  background: var(--v2-texte); color: var(--v2-surface); font: 500 12px var(--font-body); padding: 5px 9px; border-radius: 7px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
}
.v2-icone:hover .v2-infobulle, .v2-icone:focus-visible .v2-infobulle { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Panneau latéral ---------- */
.v2-side {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 130; width: var(--v2-side-w); max-width: 86vw;
  display: flex; flex-direction: column; gap: 4px; padding: 14px 10px 12px;
  background: var(--v2-surface-2); border-right: 1px solid var(--v2-trait);
  transform: translateX(-102%); transition: transform 0.35s var(--v2-ease);
}
.v2-side.ouvert { transform: none; }
.v2-voile { position: fixed; inset: 0; z-index: 125; background: rgba(4, 16, 10, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.v2-voile.visible { opacity: 1; pointer-events: auto; }
.v2-side-tete { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px 8px; }
.v2-logo { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--v2-texte); text-decoration: none; display: flex; align-items: baseline; }
.v2-logo .g { font-family: var(--font-gothic); font-style: normal; color: var(--v2-accent); font-size: 1.4em; line-height: 1; }
.v2-nouvelle, .v2-side-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  background: transparent; border: 0; color: var(--v2-texte); font: 500 14px var(--font-body); text-decoration: none; transition: background 0.12s;
}
.v2-nouvelle:hover, .v2-side-item:hover { background: color-mix(in srgb, var(--v2-texte) 6%, transparent); }
.v2-nouvelle svg, .v2-side-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--v2-texte-2); }
.v2-histo-titre { font: 500 12px var(--font-body); color: var(--v2-texte-2); margin: 14px 10px 4px; }
.v2-histo { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; scrollbar-width: thin; }
.v2-histo-vide { color: var(--v2-texte-2); font-size: 13px; line-height: 1.5; padding: 6px 10px; }
.v2-histo-item {
  display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px;
  background: transparent; border: 0; color: var(--v2-texte); cursor: pointer; font: 400 14px var(--font-body); transition: background 0.12s;
}
.v2-histo-item:hover, .v2-histo-item.actif { background: color-mix(in srgb, var(--v2-texte) 7%, transparent); }
.v2-histo-item .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-histo-item .m { display: none; }
.v2-histo-item .x { opacity: 0; color: var(--v2-texte-2); padding: 0 4px; font-size: 16px; line-height: 1; }
.v2-histo-item:hover .x { opacity: 1; }
.v2-histo-jour { font: 500 12px var(--font-body); color: var(--v2-texte-2); padding: 12px 10px 4px; }
.v2-side-pied { border-top: 1px solid var(--v2-trait); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.v2-compte { display: flex; align-items: center; gap: 10px; padding: 8px 6px 4px 10px; min-width: 0; }
.v2-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--v2-accent); color: #fff; font: 600 13px var(--font-body); }
.v2-compte .e { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.v2-compte .e > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-compte .e small { color: var(--v2-texte-2); font-size: 12px; }
.v2-compte { flex-wrap: wrap; }
.v2-abo { flex-basis: 100%; font-size: 12.5px; line-height: 1.45; color: var(--v2-texte-2); padding: 2px 0 2px 40px; }
.v2-abo .v2-lien { font-size: 12.5px; }
/* Compte connecté : une ligne qui ouvre le menu du compte (03/11/2026) */
.v2-side-pied { position: relative; }
.v2-compte:has(.v2-compte-btn) { padding: 0; }
.v2-compte-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 12px; border: 0;
  background: transparent; color: var(--v2-texte); cursor: pointer; text-align: left; font: inherit; transition: background 0.12s;
}
.v2-compte-btn:hover, .v2-compte-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--v2-texte) 6%, transparent); }
.v2-compte-btn .e { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.v2-compte-btn .m { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-compte-btn .f { font-size: 12px; color: var(--v2-texte-2); }
.v2-compte-btn .chev { color: var(--v2-texte-2); display: inline-grid; }
.v2-compte-btn .chev svg { width: 16px; height: 16px; }
.v2-menu-compte {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 2px); z-index: 6; padding: 6px;
  background: var(--v2-surface); border: 1px solid var(--v2-trait-fort); border-radius: 14px;
  box-shadow: 0 16px 40px -14px rgba(10, 40, 25, 0.3); animation: v2-pop 0.14s var(--v2-ease); transform-origin: 50% 100%;
}
.v2-menu-compte[hidden] { display: none; }
.v2-menu-tete { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--v2-trait); }
.v2-menu-tete .m { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-menu-tete .f { font-size: 12.5px; color: var(--v2-texte-2); margin-top: 2px; line-height: 1.4; }
.v2-menu-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: 0; background: transparent;
  color: var(--v2-texte); font: 400 14px var(--font-body); text-decoration: none; text-align: left; cursor: pointer;
}
.v2-menu-item:hover, .v2-menu-item:focus-visible { background: color-mix(in srgb, var(--v2-texte) 6%, transparent); }
.v2-menu-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--v2-texte-2); }
.v2-menu-item.accent, .v2-menu-item.accent svg { color: var(--v2-accent); font-weight: 500; }
.v2-menu-sep { height: 1px; background: var(--v2-trait); margin: 4px 6px; }
.v2-menu-legal { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px; }
.v2-menu-legal a { font-size: 12px; color: var(--v2-texte-2); text-decoration: none; }
.v2-menu-legal a:hover { color: var(--v2-texte); text-decoration: underline; }
.v2-side-bas[hidden], .v2-infos[hidden] { display: none; }
.v2-note:empty { display: none; }
.v2-lien { background: none; border: 0; color: var(--v2-accent); font: 500 13px var(--font-body); cursor: pointer; padding: 0; text-decoration: none; }
.v2-lien:hover { text-decoration: underline; }
.v2-side-bas { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 0 10px; }
.v2-side-bas a { color: var(--v2-texte-2); font-size: 12.5px; text-decoration: none; }
.v2-side-bas a:hover { color: var(--v2-texte); }
.v2-theme { font: 500 12.5px var(--font-body); color: var(--v2-texte-2); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px; }
.v2-theme:hover { color: var(--v2-texte); }
.v2-theme svg { width: 16px; height: 16px; }

@media (min-width: 1180px) {
  body.v2-side-fixe .v2-side { transform: none; }
  body.v2-side-fixe .v2-voile { display: none; }
  body.v2-side-fixe .v2-main, body.v2-side-fixe .v2-pied-saisie { padding-left: var(--v2-side-w); }
  body.v2-side-fixe.v2-accueil-vide .v2-pied-saisie { padding-left: 0; }
  body.v2-side-fixe .v2-bar { left: calc(50% + var(--v2-side-w) / 2); }
}

/* ---------- Zone centrale ---------- */
.v2-main {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--v2-bar-h) + 40px) 16px 190px;
  display: flex; flex-direction: column; align-items: center;
}
body.v2-accueil-vide .v2-main { justify-content: flex-start; padding-bottom: 90px; }
/* Centrage vertical sans jamais couper le haut (mascotte, titre) sur un écran bas */
body.v2-accueil-vide .v2-main > .v2-colonne { margin-top: auto; margin-bottom: auto; }
.v2-colonne { width: 100%; max-width: var(--v2-col); }
.v2-vide { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 26px; }
.v2-vide[hidden] { display: none; }
.v2-mascotte { width: clamp(118px, 21vh, 170px); aspect-ratio: 472 / 480; height: auto; position: relative; display: grid; place-items: center; }
.v2-mascotte img, .v2-mascotte canvas { width: 100%; height: 100%; object-fit: contain; }
.v2-mascotte canvas[hidden], .v2-mascotte img[hidden] { display: none; }
.v2-titre { font-family: var(--font-display); font-weight: 400; font-size: clamp(27px, 4vw, 36px); line-height: 1.15; color: var(--v2-texte); letter-spacing: -0.012em; }
.v2-titre em { font-style: normal; color: inherit; }
.v2-bulle { display: none; }

/* Grands arrêts (mode Recherche) : une ligne discrète qui défile */
.v2-defile { width: 100%; max-width: var(--v2-col); margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.v2-defile[hidden] { display: none; }
.v2-defile-titre { display: none; }
.v2-rangee { display: flex; gap: 6px; width: max-content; animation: v2-defile var(--v2-duree, 90s) linear infinite; }
.v2-rangee.inverse { display: none; }
.v2-defile:hover .v2-rangee, .v2-defile:focus-within .v2-rangee { animation-play-state: paused; }
@keyframes v2-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.v2-arret { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--v2-texte-2); text-decoration: none; font-size: 13.5px; transition: color 0.15s, background 0.15s; }
.v2-arret:hover, .v2-arret:focus-visible { color: var(--v2-texte); background: color-mix(in srgb, var(--v2-texte) 5%, transparent); }
.v2-arret b { font-weight: 500; }
.v2-arret span { font-size: 12px; opacity: 0.75; }
@media (prefers-reduced-motion: reduce) { .v2-rangee { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Exemples sous la zone de saisie (Maître Guacamole) : discrets, un clic remplit la demande */
.v2-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; max-width: var(--v2-col); margin: 18px auto 0; }
.v2-chips[hidden], body[data-v2-mode="recherche"] .v2-chips { display: none; }
.v2-chip {
  max-width: 100%; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-align: left;
  border: 1px solid var(--v2-trait-fort); background: color-mix(in srgb, var(--v2-surface) 70%, transparent);
  color: var(--v2-texte-2); font: 400 14px/1.35 var(--font-body); transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.v2-chip:hover, .v2-chip:focus-visible { color: var(--v2-texte); background: var(--v2-surface); border-color: color-mix(in srgb, var(--v2-accent) 40%, var(--v2-trait-fort)); }

/* ---------- Zone de saisie ---------- */
.v2-pied-saisie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; padding: 0 14px 10px; pointer-events: none; display: flex; justify-content: center; }
.v2-pied-saisie::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: -1;
  background: linear-gradient(to top, var(--ink-0) 45%, transparent); }
body.v2-accueil-vide .v2-pied-saisie { position: static; padding: 0; pointer-events: auto; }
body.v2-accueil-vide .v2-pied-saisie::before { display: none; }
.v2-saisie-bloc { width: 100%; max-width: var(--v2-col); pointer-events: auto; position: relative; }
.v2-composer {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 10px 16px; border-radius: 26px;
  background: var(--v2-surface); border: 1px solid var(--v2-trait-fort); box-shadow: var(--v2-ombre); transition: border-color 0.2s;
}
.v2-composer:focus-within { border-color: color-mix(in srgb, var(--v2-accent) 45%, var(--v2-trait-fort)); }
.v2-composer.secoue { animation: v2-secoue 0.35s; }
@keyframes v2-secoue { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.v2-composer textarea {
  width: 100%; min-height: 26px; max-height: 38vh; resize: none; border: 0; outline: none; background: transparent;
  color: var(--v2-texte); font: 400 16px/1.5 var(--font-body); padding: 2px 0 6px;
}
.v2-composer textarea::placeholder { color: var(--v2-texte-2); opacity: 0.85; }
.v2-composer-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v2-composer-outils { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; margin-left: -6px; }
.v2-reglages-btn {
  width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; position: relative;
  border: 1px solid var(--v2-trait-fort); background: transparent; color: var(--v2-texte); padding: 0; font-size: 0;
}
.v2-reglages-btn:hover, .v2-reglages-btn[aria-expanded="true"] { background: color-mix(in srgb, var(--v2-texte) 6%, transparent); }
.v2-reglages-btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--v2-ease); }
.v2-reglages-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.v2-etiquette { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 10px; border-radius: 999px; font: 500 12.5px var(--font-body);
  background: color-mix(in srgb, var(--v2-accent) 10%, transparent); color: var(--v2-accent); }
.v2-etiquette button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; opacity: 0.7; }
.v2-etiquette button:hover { opacity: 1; }
.v2-envoyer {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0; display: grid; place-items: center;
  background: var(--v2-accent); color: #fff; transition: background 0.15s, opacity 0.15s;
}
html:not([data-theme="light"]) .v2-envoyer { color: #04130b; }
.v2-envoyer svg { width: 18px; height: 18px; }
.v2-envoyer:hover { background: var(--v2-accent-fonce); }
.v2-envoyer:disabled { opacity: 0.28; cursor: default; }
.v2-envoyer.occupe { opacity: 1; }
.v2-envoyer.occupe svg { display: none; }
.v2-envoyer.occupe::after { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: v2-tourne 0.8s linear infinite; }
@keyframes v2-tourne { to { transform: rotate(360deg); } }
.v2-note { text-align: center; color: var(--v2-texte-2); font-size: 12px; margin-top: 8px; line-height: 1.4; }
.v2-note a { color: inherit; }
.v2-quota { text-align: center; font-size: 12px; color: var(--v2-texte-2); margin-top: 4px; }
.v2-quota:empty { display: none; }

/* Réglages : menu au-dessus de la zone de saisie */
.v2-pop {
  position: absolute; left: 0; bottom: calc(100% + 8px); width: min(380px, 100%); max-height: min(60vh, 540px); overflow-y: auto;
  padding: 8px; border-radius: 16px; z-index: 5; background: var(--v2-surface); border: 1px solid var(--v2-trait-fort);
  box-shadow: 0 16px 48px -16px rgba(10, 40, 25, 0.28); transform-origin: 20px 100%; animation: v2-pop 0.16s var(--v2-ease);
}
body.v2-accueil-vide .v2-pop { bottom: auto; top: calc(100% + 8px); transform-origin: 20px 0; }
.v2-pop[hidden] { display: none; }
@keyframes v2-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.v2-pop h4 { font: 500 12px var(--font-body); color: var(--v2-texte-2); margin: 6px 8px 4px; }
.v2-pop h4:not(:first-child) { margin-top: 12px; }
.v2-option { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.v2-option:hover { background: color-mix(in srgb, var(--v2-texte) 5%, transparent); }
.v2-option input { margin-top: 3px; accent-color: var(--v2-accent); width: 16px; height: 16px; flex-shrink: 0; }
.v2-option b { display: block; font-size: 14px; color: var(--v2-texte); font-weight: 500; }
.v2-option small { display: block; color: var(--v2-texte-2); font-size: 12.5px; line-height: 1.4; margin-top: 1px; }
.v2-pop select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--v2-trait-fort); background: var(--v2-surface); color: var(--v2-texte); font: 400 14px var(--font-body); }
.v2-pop label.v2-champ { display: block; padding: 2px 8px 8px; }

/* ---------- Messages ---------- */
.v2-fil { width: 100%; max-width: var(--v2-col); display: flex; flex-direction: column; gap: 22px; }
.v2-msg-user {
  align-self: flex-end; max-width: 80%; padding: 10px 16px; border-radius: 20px; white-space: pre-wrap; word-wrap: break-word;
  background: color-mix(in srgb, var(--v2-texte) 6%, var(--v2-surface)); color: var(--v2-texte); font-size: 15px; line-height: 1.55;
}
.v2-msg-guac { display: flex; gap: 12px; align-items: flex-start; }
.v2-msg-guac img.av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; }
.v2-msg-guac .corps { flex: 1; min-width: 0; color: var(--v2-texte); font-size: 15px; line-height: 1.6; }
.v2-carte { padding: 14px 16px; border-radius: 14px; background: var(--v2-surface); border: 1px solid var(--v2-trait); }
.v2-carte h3 { font-family: var(--font-display); font-weight: 400; font-size: 19px; margin-bottom: 2px; }
.v2-carte p { color: var(--v2-texte-2); line-height: 1.5; font-size: 14px; }
.v2-carte .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.v2-points { display: inline-flex; gap: 4px; padding: 8px 0; }
.v2-points i { width: 6px; height: 6px; border-radius: 50%; background: var(--v2-texte-2); animation: v2-saute 1.2s infinite ease-in-out; }
.v2-points i:nth-child(2) { animation-delay: 0.15s; } .v2-points i:nth-child(3) { animation-delay: 0.3s; }
@keyframes v2-saute { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ---------- Boutons ---------- */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px var(--font-body); border: 1px solid transparent; text-decoration: none; transition: background 0.15s, border-color 0.15s, opacity 0.15s; }
.v2-btn.plein { background: var(--v2-accent); color: #fff; }
html:not([data-theme="light"]) .v2-btn.plein { color: #04130b; }
.v2-btn.plein:hover { background: var(--v2-accent-fonce); }
.v2-btn.verre { background: transparent; border-color: var(--v2-trait-fort); color: var(--v2-texte); }
.v2-btn.verre:hover { background: color-mix(in srgb, var(--v2-texte) 5%, transparent); }
.v2-btn:disabled { opacity: 0.5; cursor: default; }
.v2-btn.large { width: 100%; height: 44px; }

/* ---------- Fenêtres ---------- */
.v2-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(6, 18, 12, 0.36); animation: v2-fondu 0.18s ease; }
.v2-modal[hidden] { display: none; }
@keyframes v2-fondu { from { opacity: 0; } to { opacity: 1; } }
.v2-fenetre { position: relative; width: min(400px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 24px 20px; border-radius: 20px;
  background: var(--v2-surface); border: 1px solid var(--v2-trait); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.35); animation: v2-fenetre 0.22s var(--v2-ease); }
.v2-fenetre.large { width: min(720px, 100%); }
@keyframes v2-fenetre { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.v2-fermer { position: absolute; top: 10px; right: 10px; }
.v2-fenetre .marque { display: block; text-align: center; font-family: var(--font-gothic); color: var(--v2-accent); font-size: 40px; line-height: 1; }
.v2-fenetre .sticker { display: none; }
.v2-fenetre h2 { font-family: var(--font-display); font-weight: 600; font-size: 24px; text-align: center; margin: 10px 0 4px; line-height: 1.2; color: var(--v2-texte); }
.v2-fenetre h2 em { font-style: normal; color: inherit; }
.v2-fenetre .sous { text-align: center; color: var(--v2-texte-2); font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.v2-onglets { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--v2-texte) 6%, transparent); margin-bottom: 16px; }
.v2-onglets[hidden] { display: none; }
.v2-onglets button { border: 0; background: transparent; padding: 7px; border-radius: 8px; cursor: pointer; font: 500 13.5px var(--font-body); color: var(--v2-texte-2); }
.v2-onglets button[aria-selected="true"] { background: var(--v2-surface); color: var(--v2-texte); box-shadow: 0 1px 3px rgba(10, 40, 25, 0.12); }
.v2-form { display: flex; flex-direction: column; gap: 12px; }
.v2-form[hidden] { display: none; }
.v2-form label.v2-champ { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--v2-texte-2); }
.v2-form input[type="email"], .v2-form input[type="password"], .v2-form input[type="text"] {
  height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--v2-trait-fort); background: var(--v2-surface);
  color: var(--v2-texte); font: 400 15px var(--font-body); outline: none;
}
.v2-form input:focus { border-color: var(--v2-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v2-accent) 15%, transparent); }
.v2-criteres { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--v2-texte-2); margin-top: -4px; }
.v2-criteres span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--v2-trait-fort); margin-right: 5px; vertical-align: 1px; }
.v2-criteres span.ok { color: var(--v2-accent); }
.v2-criteres span.ok::before { background: var(--v2-accent); }
.v2-case { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--v2-texte-2); line-height: 1.45; cursor: pointer; }
.v2-case input { margin-top: 2px; accent-color: var(--v2-accent); width: 15px; height: 15px; flex-shrink: 0; }
.v2-case a { color: var(--v2-accent); }
.v2-erreur { color: var(--rose); font-size: 13px; line-height: 1.45; }
.v2-erreur:empty { display: none; }
.v2-succes { color: var(--v2-accent); font-size: 13px; line-height: 1.45; }
.v2-succes:empty { display: none; }
.v2-petit { text-align: center; color: var(--v2-texte-2); font-size: 12px; line-height: 1.5; }
.v2-petit a { color: var(--v2-accent); }

/* Formules */
.v2-formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 4px 0 16px; }
@media (max-width: 680px) { .v2-formules { grid-template-columns: 1fr; } }
.v2-formule { position: relative; padding: 16px; border-radius: 14px; border: 1px solid var(--v2-trait-fort); display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.v2-formule.choisie { border-color: var(--v2-accent); box-shadow: 0 0 0 1px var(--v2-accent); }
.v2-formule.actuelle { cursor: default; background: color-mix(in srgb, var(--v2-texte) 3%, transparent); }
.v2-formule .nom { font: 500 13px var(--font-body); color: var(--v2-texte-2); }
.v2-formule .prix { font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--v2-texte); }
.v2-formule .prix small { font-family: var(--font-body); font-size: 12.5px; color: var(--v2-texte-2); }
.v2-formule ul { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--v2-texte-2); line-height: 1.4; }
.v2-formule .ruban { position: absolute; top: 14px; right: 14px; font: 500 11px var(--font-body); color: var(--v2-accent); }

/* Message éphémère */
.v2-toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 10px); z-index: 400; opacity: 0; pointer-events: none;
  background: var(--v2-texte); color: var(--v2-surface); padding: 10px 14px; border-radius: 10px; font-size: 14px; transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px); }
.v2-toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Pied de la page d'accueil */
.v2-pied-page { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3; padding: 10px 16px 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.v2-pied-page a { color: var(--v2-texte-2); font-size: 12px; text-decoration: none; }
.v2-pied-page a:hover { color: var(--v2-texte); }
body:not(.v2-accueil-vide) .v2-pied-page { display: none; }

/* Petits écrans */
@media (max-width: 640px) {
  :root { --v2-bar-h: 48px; }
  .v2-bar { top: 8px; padding: 0 4px; gap: 2px; }
  .v2-icone { width: 36px; height: 36px; }
  .v2-mode { padding: 7px 11px; font-size: 13.5px; }
  .v2-mode .long { display: none; }
  .v2-main { padding: calc(var(--v2-bar-h) + 28px) 12px 170px; }
  body.v2-accueil-vide .v2-main { padding-bottom: 110px; }
  .v2-mascotte { width: clamp(108px, 17vh, 140px); }
  .v2-chips { flex-direction: column; align-items: stretch; }
  .v2-chip { text-align: center; }
  .v2-pied-saisie { padding: 0 10px 8px; }
  .v2-msg-user { max-width: 90%; }
  .v2-pied-page { gap: 2px 12px; }
}
@media (max-width: 360px) { .v2-mode { padding: 7px 9px; } }

/* Compléments du panneau latéral */
.v2-infos { padding: 2px 6px 0 10px; }
.v2-infos summary { list-style: none; cursor: pointer; color: var(--v2-texte-2); font-size: 12px; padding: 4px 0; }
.v2-infos summary::-webkit-details-marker { display: none; }
.v2-infos summary:hover { color: var(--v2-texte); }
.v2-infos div { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 4px 0 2px; }
.v2-infos a { color: var(--v2-texte-2); font-size: 12px; text-decoration: none; }
.v2-infos a:hover { color: var(--v2-texte); text-decoration: underline; }
.v2-badge { display: inline-block; font: 500 11px var(--font-body); padding: 1px 7px; border-radius: 999px; margin-top: 2px;
  background: color-mix(in srgb, var(--v2-texte) 8%, transparent); color: var(--v2-texte-2); }
.v2-badge.pro { background: color-mix(in srgb, var(--v2-accent) 14%, transparent); color: var(--v2-accent); }
@media (min-width: 1180px) { body.v2-side-fixe .v2-pied-page { padding-left: calc(var(--v2-side-w) + 16px); } }
@keyframes v2-apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .v2-bar, .v2-side, .v2-modes::before, .v2-fenetre, .v2-pop, .v2-modal { transition: none !important; animation: none !important; }
}
body.v2 .v2-composer textarea:focus, body.v2 .v2-composer textarea:focus-visible { outline: none; box-shadow: none; }
.v2-titre, body.v2-espace #tab-guacamole .guac-intro h2 { text-wrap: balance; }

/* =====================================================================
   Boutons de la zone de saisie (03/11/2026) : un « + » sans cercle autour,
   l'envoi en verre vert, d'une nuance plus foncée que le vert de l'interface
   ===================================================================== */
.v2-reglages-btn {
  border: 0 !important; background: transparent; color: var(--v2-texte-2); width: 34px; height: 34px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.v2-reglages-btn svg { width: 22px; height: 22px; }
.v2-reglages-btn:hover, .v2-reglages-btn[aria-expanded="true"] {
  color: var(--v2-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.35)), color-mix(in srgb, var(--v2-accent) 9%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 4px rgba(10, 40, 25, 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(1.5); backdrop-filter: blur(10px) saturate(1.5);
}
.v2-envoyer {
  color: #fff; border: 1px solid color-mix(in srgb, var(--v2-accent-fonce) 50%, rgba(255, 255, 255, 0.5));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 58%), color-mix(in srgb, var(--v2-accent-fonce) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 30, 15, 0.14), 0 6px 16px -8px color-mix(in srgb, var(--v2-accent-fonce) 75%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
}
.v2-envoyer:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 58%), color-mix(in srgb, var(--v2-accent-fonce) 94%, transparent);
}
.v2-envoyer:disabled {
  opacity: 1; color: color-mix(in srgb, var(--v2-accent) 60%, transparent); border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15)), color-mix(in srgb, var(--v2-accent) 12%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
html:not([data-theme="light"]) .v2-reglages-btn:hover, html:not([data-theme="light"]) .v2-reglages-btn[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)), color-mix(in srgb, var(--v2-accent) 12%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
html:not([data-theme="light"]) .v2-envoyer {
  color: #04130b; border-color: color-mix(in srgb, var(--v2-accent) 45%, rgba(255, 255, 255, 0.2));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 58%), color-mix(in srgb, var(--v2-accent-fonce) 78%, transparent);
}
html:not([data-theme="light"]) .v2-envoyer:disabled {
  color: color-mix(in srgb, var(--v2-accent) 65%, transparent); border-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), color-mix(in srgb, var(--v2-accent) 12%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
