/* Flo, l'assistante de BOOST : le chat de dépôt d'annonce en plein écran (public/flo.js) et la bulle des fiches (public/flo-fiche.js).
   Aucun style en ligne dans les pages (la politique de sécurité les refuse) : les valeurs qui changent (jauge) sont posées par le script. */
@font-face { font-family: 'Jost'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/jost-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/jost-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/jost-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/eb-garamond-latin-700-normal.woff2') format('woff2'); }

:root {
  --flo-nuit: #1b1a30; --flo-marine: #25243f; --flo-lime: #7fdad3; --flo-lime-fort: #5cc9c1; --flo-fond: #f5f7ef; --flo-carte: #fff;
  --flo-texte: #25243f; --flo-doux: #5d5c73; --flo-trait: #dcdde6; --flo-erreur: #b3261e; --flo-ok: #1f7a4f;
  --flo-police: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --flo-titre: Jost, var(--flo-police);
}

body.flo { margin: 0; background: var(--flo-fond); color: var(--flo-texte); font-family: var(--flo-police); font-size: 17px; line-height: 1.5; }
.flo-app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.flo *, .flo *::before, .flo *::after { box-sizing: border-box; }

/* Le haut : la marque, la jauge d'avancement, la sortie. */
.flo-haut { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--flo-nuit); color: #fff; position: sticky; top: 0; z-index: 2; }
.flo-marque { display: block; line-height: 0; }
.flo-marque img { display: block; width: 176px; height: auto; max-width: 42vw; }
.flo-quitter { color: #fff; opacity: .8; font-size: 15px; }
.flo-jauge { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.flo-jauge[hidden] { display: block; visibility: hidden; }
.flo-jauge i { display: block; height: 100%; width: 0; background: var(--flo-lime); transition: width .4s ease; }

.flo-scene { flex: 1; padding: 24px 16px 16px; }

/* L'accueil : la tête de Flo, en grand. */
.flo-accueil { max-width: 520px; margin: 0 auto; text-align: center; padding-top: 3vh; animation: flo-arrivee .7s ease both; }
.flo-accueil[hidden], .flo-fil[hidden], .flo-saisie[hidden] { display: none; }
.flo-visage { display: block; margin: 0 auto 20px; width: 200px; height: 200px; max-width: 55vw; max-height: 55vw; border-radius: 50%; object-fit: cover; background: var(--flo-lime); border: 6px solid var(--flo-lime); box-shadow: 0 10px 30px rgba(27, 26, 48, .18); }
.flo-accueil h1 { margin: 0 0 12px; font-family: var(--flo-titre); font-weight: 600; font-size: 32px; line-height: 1.15; }
.flo-accueil p { margin: 0 0 12px; color: var(--flo-doux); }
.flo-actions { margin: 24px 0 8px; }
.flo-erreur { color: var(--flo-erreur); }

.flo-bouton, .flo-choix button, .flo-suite { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; border: 2px solid var(--flo-marine); padding: 12px 22px; min-height: 48px; background: var(--flo-marine); color: #fff; transition: background .15s, transform .05s; }
.flo-bouton:hover, .flo-suite:hover { background: var(--flo-nuit); }
.flo-bouton:active, .flo-choix button:active, .flo-suite:active { transform: translateY(1px); }
.flo-bouton[disabled], .flo-suite[disabled] { opacity: .45; cursor: not-allowed; }
.flo-bouton:focus-visible, .flo-choix button:focus-visible, .flo-suite:focus-visible, .flo-champ:focus-visible { outline: 3px solid #005bd3; outline-offset: 2px; }

/* Le fil de la conversation. */
.flo-fil { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.flo-ligne { display: flex; align-items: flex-end; gap: 10px; animation: flo-apparait .3s ease both; }
.flo-ligne.moi { justify-content: flex-end; }
.flo-ligne > img { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--flo-lime); object-fit: cover; }
.flo-ligne.suite > img { visibility: hidden; }
.flo-bulle { max-width: min(520px, 82%); padding: 12px 16px; border-radius: 20px; background: var(--flo-carte); border: 1px solid var(--flo-trait); box-shadow: 0 1px 2px rgba(27, 26, 48, .05); overflow-wrap: anywhere; }
.flo-ligne.flo .flo-bulle { border-bottom-left-radius: 6px; }
.flo-ligne.moi .flo-bulle { background: var(--flo-marine); border-color: var(--flo-marine); color: #fff; border-bottom-right-radius: 6px; white-space: pre-line; }
.flo-bulle p { margin: 0 0 8px; }
/* Pendant l'écriture en direct, un paragraphe pas encore commencé est vide : il ne prend ni place ni marge. */
.flo-bulle p:empty { display: none; }
.flo-bulle p:last-child { margin-bottom: 0; }
.flo-bulle .flo-aide { color: var(--flo-doux); font-size: 15px; }
.flo-bulle strong { font-weight: 600; }
.flo-ecrit { display: inline-flex; gap: 5px; padding: 6px 2px; }
.flo-ecrit i { width: 8px; height: 8px; border-radius: 50%; background: var(--flo-doux); opacity: .4; animation: flo-point 1s infinite; }
.flo-ecrit i:nth-child(2) { animation-delay: .15s; }
.flo-ecrit i:nth-child(3) { animation-delay: .3s; }

/* La zone de réponse, collée en bas. */
.flo-saisie { position: sticky; bottom: 0; background: var(--flo-carte); border-top: 1px solid var(--flo-trait); padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.flo-saisie > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.flo-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.flo-choix button { background: #fff; color: var(--flo-marine); padding: 10px 18px; min-height: 44px; }
.flo-choix button:hover { background: var(--flo-lime); }
.flo-choix button.doux { border-color: var(--flo-trait); color: var(--flo-doux); font-weight: 500; }
.flo-rangee { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.flo-rangee:last-child { margin-bottom: 0; }
.flo-champ { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; min-height: 48px; border: 2px solid var(--flo-trait); border-radius: 14px; background: #fff; color: var(--flo-texte); }
textarea.flo-champ { min-height: 120px; resize: vertical; }
.flo-champ:focus { border-color: var(--flo-marine); }
.flo-champ[aria-invalid="true"] { border-color: var(--flo-erreur); }
.flo-champ-erreur { color: var(--flo-erreur); font-size: 15px; margin-top: 0; margin-bottom: 8px; }
.flo-suite { flex: none; }
.flo-sous { margin: 8px 0 0; font-size: 14px; color: var(--flo-doux); }

/* Les photos. */
.flo-photos { display: grid; gap: 10px; }
.flo-photos input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.flo-ajout { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 600; cursor: pointer; border-radius: 14px; border: 2px dashed var(--flo-marine); padding: 18px; min-height: 64px; background: #fff; color: var(--flo-marine); }
.flo-ajout:hover, .flo-photos input:focus-visible + .flo-ajout { background: var(--flo-lime); }
.flo-ajout[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.flo-compteur { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.flo-compteur progress { flex: 1; height: 10px; accent-color: var(--flo-marine); }
.flo-etat { margin: 0; font-size: 15px; color: var(--flo-doux); }
.flo-etat.erreur { color: var(--flo-erreur); }

/* Le récapitulatif, le règlement, les offres de fin : des cartes dans le fil. */
.flo-carte { background: var(--flo-carte); border: 1px solid var(--flo-trait); border-radius: 18px; padding: 16px; width: 100%; max-width: 640px; }
.flo-carte h2 { margin: 0 0 8px; font-family: var(--flo-titre); font-weight: 600; font-size: 21px; }
.flo-recap { margin: 0; padding: 0; list-style: none; }
.flo-recap li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--flo-trait); }
.flo-recap li:first-child { border-top: 0; }
.flo-recap .k { color: var(--flo-doux); font-size: 15px; flex: none; }
.flo-recap .v { text-align: right; overflow-wrap: anywhere; }
.flo-recap button { font: inherit; font-size: 14px; background: none; border: 0; color: #005bd3; text-decoration: underline; cursor: pointer; padding: 6px 0 6px 8px; min-height: 36px; }
.flo-decl { display: grid; gap: 10px; margin: 0 0 12px; }
.flo-decl label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.flo-decl input { margin-top: 4px; width: 20px; height: 20px; flex: none; accent-color: var(--flo-marine); }
.flo-prix { font-family: var(--flo-titre); font-weight: 600; font-size: 34px; margin: 4px 0 8px; }
.flo-prix s { color: var(--flo-doux); font-size: 22px; margin-right: 8px; }
.flo-demo { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: var(--flo-lime); color: var(--flo-nuit); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.flo-offres { display: grid; gap: 10px; }
.flo-offre { border: 1px solid var(--flo-trait); border-radius: 14px; padding: 12px 14px; background: #fff; }
.flo-offre h3 { margin: 0 0 4px; font-size: 17px; }
.flo-offre p { margin: 0 0 8px; font-size: 15px; color: var(--flo-doux); }
.flo-offre button, .flo-offre a, .flo-fin a { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; border: 2px solid var(--flo-marine); background: #fff; color: var(--flo-marine); padding: 8px 18px; min-height: 40px; text-decoration: none; display: inline-block; }
.flo-offre button[disabled] { background: var(--flo-lime); border-color: var(--flo-lime); cursor: default; }
.flo-fin { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.flo-fin a.primaire { background: var(--flo-marine); color: #fff; }

/* La bulle de Flo sur les fiches des bateaux (public/flo-fiche.js) : elle répond, par boutons, sur l'annonce affichée. */
/* La charte du site (Jost pour le texte, EB Garamond pour les titres, lime et encre) vaut aussi dans la bulle. */
.flo-fiche, .flo-fiche-ouvrir { --flo-police: 'Jost', 'Helvetica Neue', Helvetica, Arial, sans-serif; --flo-titre: 'EB Garamond', Georgia, serif; --flo-fond: #f6f5ef; --flo-trait: #e2e6e2; }
/* La bulle : un rond de 56 px (52 sur téléphone) avec le visage de Flo, deux étoiles qui scintillent par-dessus et la pastille verte de qui est en ligne. Le texte d'avant n'est plus qu'une infobulle, à gauche, au survol et au clavier. */
.flo-fiche-ouvrir { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: block; width: 56px; height: 56px; min-height: 0; max-width: none; padding: 0; border: 2px solid #fff; border-radius: 50%; cursor: pointer; background: var(--flo-lime); color: var(--flo-marine); font: 600 14px/1.2 var(--flo-police); box-shadow: 0 6px 18px rgba(27, 26, 48, .28); transition: transform .2s ease; }
/* Dans la peau du site (pages d'aide, `<main class="esp">`), `.esp button` de plateforme.css est plus précis que la bulle : elle reprend ses propriétés. */
.esp .flo-fiche-ouvrir { min-height: 0; max-width: none; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--flo-lime); color: var(--flo-marine); font: 600 14px/1.2 var(--flo-police); letter-spacing: normal; text-transform: none; text-align: left; transition: transform .2s ease; }
.flo-fiche-ouvrir:hover, .esp .flo-fiche-ouvrir:hover { background: var(--flo-lime); transform: scale(1.06); }
.flo-fiche-ouvrir img { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--flo-lime); object-fit: cover; }
.flo-fiche-ouvrir:focus-visible { outline: 3px solid var(--flo-marine); outline-offset: 3px; }
/* La pastille verte « en ligne » (sur la bulle, et sur le visage de l'en-tête une fois que Flo s'est connectée). */
.flo-presence { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: #25d366; border: 3px solid #fff; pointer-events: none; }
.flo-fiche-ouvrir .flo-presence::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: flo-onde 2.6s infinite; }
/* Les deux étoiles par-dessus le rond : blanches, cernées d'encre, elles scintillent chacune à leur tour. */
.flo-etoile { position: absolute; pointer-events: none; fill: #fff; stroke: var(--flo-marine); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(27, 26, 48, .35)); transform-origin: 50% 50%; animation: flo-scintille 2.8s ease-in-out infinite; }
.flo-etoile.a { left: -8px; top: -7px; width: 20px; height: 20px; }
.flo-etoile.b { right: 1px; top: -11px; width: 12px; height: 12px; animation-delay: 1.2s; }
.flo-infobulle { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 8px 14px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(27, 26, 48, .22); color: var(--flo-marine); font: 600 14px/1.3 var(--flo-police); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.flo-fiche-ouvrir:hover .flo-infobulle, .flo-fiche-ouvrir:focus-visible .flo-infobulle { opacity: 1; }
@media (hover: none) { .flo-infobulle { display: none; } }
@media (max-width: 480px) {
  .flo-fiche-ouvrir, .esp .flo-fiche-ouvrir { width: 52px; height: 52px; }
  .flo-fiche-ouvrir .flo-presence { width: 14px; height: 14px; }
}
@keyframes flo-onde { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes flo-scintille { 0%, 100% { opacity: .3; transform: scale(.6) rotate(0deg); } 45% { opacity: 1; transform: scale(1.05) rotate(25deg); } 70% { opacity: .9; transform: scale(.85) rotate(40deg); } }
/* L'ouverture jouée (public/flo-fiche.js) : la notice « Flo se connecte… », le point vert de l'en-tête, le curseur de la réponse écrite en direct. */
.flo-fiche:focus { outline: 0; }
.flo-fiche-photo { position: relative; flex: none; display: inline-flex; width: 40px; height: 40px; }
.flo-fiche-photo .flo-presence { width: 14px; height: 14px; right: -2px; bottom: -2px; border: 2px solid var(--flo-nuit); background: #8a8aa0; transition: background .3s ease; }
.flo-fiche-photo.en-ligne .flo-presence { background: #25d366; }
.flo-notice { display: flex; align-items: center; gap: 8px; align-self: center; width: max-content; max-width: 100%; margin: 0; padding: 4px 12px; background: #fff; border: 1px solid var(--flo-trait); border-radius: 999px; color: var(--flo-doux); font-size: 12.5px; line-height: 1.4; text-align: center; animation: flo-apparait .3s ease both; }
.flo-notice i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #b9bcc8; animation: flo-point 1s infinite; }
.flo-notice.en-ligne i { background: #25d366; animation: none; }
.flo-curseur { display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: text-bottom; background: var(--flo-marine); animation: flo-clignote .8s steps(1) infinite; }
@keyframes flo-clignote { 50% { opacity: 0; } }
.flo-tuiles[hidden], .flo-actions-rep[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .flo-fiche-ouvrir, .esp .flo-fiche-ouvrir { transition: none; }
  .flo-fiche-ouvrir:hover, .esp .flo-fiche-ouvrir:hover { transform: none; }
  .flo-etoile { animation: none; opacity: .9; }
  .flo-fiche-ouvrir .flo-presence::before, .flo-notice i, .flo-curseur { animation: none; }
}
.flo-fiche { position: fixed; right: 16px; bottom: 16px; z-index: 100; width: min(420px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: #fff; color: var(--flo-texte); border-radius: 20px; box-shadow: 0 16px 48px rgba(27, 26, 48, .35); overflow: hidden; font: 16px/1.45 var(--flo-police); }
.flo-fiche[hidden], .flo-fiche-ouvrir[hidden] { display: none; }
.flo-fiche-haut { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--flo-nuit); color: #fff; }
.flo-fiche-haut img { width: 40px; height: 40px; border-radius: 50%; background: var(--flo-lime); object-fit: cover; }
.flo-fiche-haut strong { flex: 1; font-family: var(--flo-titre); font-weight: 600; }
.flo-fiche-haut small { display: block; font: 400 12px var(--flo-police); opacity: .75; }
.flo-fiche-haut button { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; min-width: 44px; min-height: 44px; }
.flo-fiche-fil { flex: 1; min-height: 140px; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--flo-fond); }
.flo-fiche-fil .flo-bulle { max-width: 88%; font-size: 15px; padding: 10px 14px; }
.flo-fiche-fil .flo-ligne > img { width: 32px; height: 32px; }
.flo-fiche-choix { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--flo-trait); background: #fff; max-height: 28dvh; overflow-y: auto; flex-shrink: 0; }
.flo-fiche-choix button { font: 600 14.5px var(--flo-police); cursor: pointer; border-radius: 3px; border: 1px solid var(--flo-marine); background: #fff; color: var(--flo-marine); padding: 8px 14px; min-height: 42px; }
.flo-fiche-choix button:hover { background: var(--flo-lime); }
.flo-fiche-legende { flex: 0 0 100%; margin: 0 0 2px; font-size: 13px; color: var(--flo-doux); }
.flo-fiche-choix .flo-plus { border-style: dashed; font-weight: 500; }
.flo-fiche-choix .flo-retour { border-color: transparent; font-weight: 500; text-decoration: underline; padding-left: 6px; }
.esp .flo-fiche-choix button { display: inline-block; max-width: none; min-height: 42px; padding: 8px 14px; border: 1px solid var(--flo-marine); border-radius: 3px; background: #fff; color: var(--flo-marine); font: 600 14.5px/1.25 var(--flo-police); letter-spacing: normal; text-transform: none; text-align: left; transition: none; }
.esp .flo-fiche-choix button:hover { background: var(--flo-lime); transform: none; }
.esp .flo-fiche-choix .flo-plus { border-style: dashed; font-weight: 500; }
.esp .flo-fiche-choix .flo-retour { border-color: transparent; font-weight: 500; text-decoration: underline; padding-left: 6px; }
/* « Envoyer un mail à l'équipe » : la sortie quand la question n'est pas dans la liste. En vert, sur toute la largeur, toujours en bas des choix (collée en bas quand la liste défile). */
.flo-fiche-choix button.flo-mail, .esp .flo-fiche-choix button.flo-mail { order: 99; flex: 0 0 100%; position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--flo-lime); border-radius: 3px; background: var(--flo-lime); color: var(--flo-marine); text-align: center; box-shadow: 0 -6px 8px -4px #fff; }
.flo-fiche-choix button.flo-mail:hover, .esp .flo-fiche-choix button.flo-mail:hover { background: var(--flo-lime); filter: brightness(.96); }
.flo-fiche-choix .flo-mail svg { flex: none; }
.flo-fiche-choix .flo-mail strong { font: 700 14.5px/1.25 var(--flo-police); }
.flo-fiche-choix .flo-mail small { flex: 0 0 100%; font: 500 12px/1.2 var(--flo-police); opacity: .8; }
.esp .flo-fiche-haut button { padding: 4px 8px; border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; letter-spacing: normal; text-transform: none; }
.esp .flo-fiche-haut button:hover { background: none; transform: none; }
.flo-fiche-note { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--flo-doux); background: #fff; }
.flo-fiche *, .flo-fiche-ouvrir * { box-sizing: border-box; }
.flo-fiche-choix[hidden] { display: none; }
.flo-fiche-fil a { color: var(--flo-marine); font-weight: 600; }
/* Sur un téléphone, la barre « Enchérir » du bas de la fiche reste visible : le bouton de Flo se pose au-dessus, la conversation la recouvre. */
@media (max-width: 900px) {
  body:has(.bar-m) .flo-fiche-ouvrir { bottom: 88px; }
  .flo-fiche { inset: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
  .flo-fiche-haut { padding-top: calc(10px + env(safe-area-inset-top)); }
  .flo-fiche-note { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}
/* La bande de la fiche, fixe sous l'en-tête : vignette, nom, meilleure offre, et le bouton Enchérir. */
.flo-fiche-bateau { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--flo-trait); color: var(--flo-texte); flex-shrink: 0; }
.flo-fiche-bateau img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--flo-fond); }
.flo-fiche-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.flo-fiche-texte strong { font: 600 15px/1.25 var(--flo-police); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.flo-fiche-offre { font-size: 13px; color: var(--flo-doux); }
.flo-fiche-offre b { color: var(--flo-texte); font-size: 15px; margin-left: 6px; white-space: nowrap; }
.flo-fiche-bateau .flo-act { flex: none; padding: 8px 12px; font-size: 12px; letter-spacing: .08em; min-height: 40px; }
/* Les boutons, tuiles et colonnes qui accompagnent une réponse de Flo. */
/* Les boutons de la bulle sont ceux du site : le plein (« vert » côté serveur) est le .btn lime du site, le contour son .btn.ghost. */
.flo-act { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font: 700 13px/1.25 var(--flo-police); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 3px; border: 1px solid var(--flo-marine); background: transparent; color: var(--flo-marine); padding: 10px 18px; min-height: 46px; transition: transform .15s; }
.flo-act:hover { transform: translateY(-1px); }
.flo-act.vert { background: var(--flo-lime); border-color: var(--flo-lime); color: var(--flo-marine); }
.flo-fiche-fil a.flo-act { color: var(--flo-marine); font-weight: 700; }
.flo-act:focus-visible { outline: 3px solid #005bd3; outline-offset: 2px; }
.flo-fiche-fil .flo-colonne { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 88%; }
.flo-fiche-fil .flo-colonne .flo-bulle { max-width: 100%; }
.flo-actions-rep { display: flex; flex-wrap: wrap; gap: 8px; }
.flo-tuiles { display: flex; flex-direction: column; gap: 8px; }
.flo-tuile { display: flex; gap: 10px; align-items: stretch; background: #fff; border: 1px solid var(--flo-trait); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--flo-texte); box-shadow: 0 1px 2px rgba(27, 26, 48, .06); }
.flo-tuile:hover { border-color: var(--flo-marine); }
.flo-tuile:focus-visible { outline: 3px solid #005bd3; outline-offset: 2px; }
.flo-fiche-fil .flo-tuile img { width: 96px; height: auto; min-height: 76px; border-radius: 0; align-self: stretch; object-fit: cover; flex: none; background: var(--flo-fond); }
.flo-tuile-corps { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 0; min-width: 0; }
.flo-tuile-corps:first-child { padding-left: 12px; }
.flo-tuile-corps strong { font: 600 15px/1.25 var(--flo-police); }
.flo-tuile-corps small { font-size: 13px; color: var(--flo-doux); }
.flo-tuile-prix { font-size: 13px; color: var(--flo-doux); margin-top: auto; }
.flo-tuile-prix b { color: var(--flo-texte); font-size: 15px; }

/* Les parcours du chat (connexion, inscription, offre) : un écran par question, à la manière d'un questionnaire guidé. L'avatar de Flo chevauche l'en-tête, le titre est en EB Garamond, les réponses sont de grandes cartes, et un seul grand bouton (lime, celui du site) avance. */
.flo-fiche.en-parcours > .flo-fiche-haut, .flo-fiche.en-parcours > .flo-fiche-bateau, .flo-fiche.en-parcours > .flo-fiche-fil, .flo-fiche.en-parcours > .flo-fiche-choix, .flo-fiche.en-parcours > .flo-fiche-note { display: none; }
.flo-p { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--flo-fond); }
.flo-p[hidden] { display: none; }
.flo-p-tete { position: relative; flex: none; height: 104px; background: var(--flo-nuit); display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 6px 0; padding-top: calc(6px + env(safe-area-inset-top)); }
.flo-p-tete button { background: none; border: 0; color: #fff; font: 400 30px/1 var(--flo-police); cursor: pointer; min-width: 44px; min-height: 44px; opacity: .9; }
.flo-p-tete button[hidden] { display: block; visibility: hidden; }
.flo-p-tete button:focus-visible, .flo-p-continuer:focus-visible, .flo-p-lien:focus-visible, .flo-p-carte:focus-visible, .flo-p-puce:focus-visible { outline: 3px solid var(--flo-lime); outline-offset: 2px; }
.flo-p-barre { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .16); }
.flo-p-barre i { display: block; height: 100%; width: 0; background: var(--flo-lime); transition: width .5s ease; }
.flo-p-avatar { position: relative; z-index: 1; flex: none; width: 92px; height: 92px; margin: -46px auto 0; border-radius: 50%; background: var(--flo-lime); border: 5px solid var(--flo-fond); object-fit: cover; box-shadow: 0 6px 18px rgba(27, 26, 48, .22); animation: flo-p-pop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.flo-p-corps { scrollbar-gutter: stable both-edges; flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 480px; margin: 0 auto; padding: 18px 22px 12px; text-align: center; }
.flo-p-corps > * { animation: flo-p-monte .45s ease both; }
.flo-p-corps > :nth-child(2) { animation-delay: .08s; }
.flo-p-corps > :nth-child(3) { animation-delay: .16s; }
.flo-p-corps > :nth-child(4) { animation-delay: .24s; }
.flo-p-etape { margin: 0 0 8px; font: 700 12px var(--flo-police); letter-spacing: .16em; text-transform: uppercase; color: var(--flo-doux); }
.flo-p-titre { text-wrap: balance; max-width: none; margin: 0 0 10px; font: 700 29px/1.12 var(--flo-titre); color: var(--flo-marine); }
.flo-p-sous { max-width: none; margin: 0 0 18px; font: 500 16px/1.45 var(--flo-police); color: var(--flo-doux); }
.flo-p-champ { display: block; text-align: left; margin: 16px 0 0; }
.flo-p-lib { display: block; margin: 0 0 6px; font: 700 12px var(--flo-police); letter-spacing: .12em; text-transform: uppercase; color: var(--flo-doux); }
.flo-p-saisie { display: flex; align-items: center; background: #fff; border: 1px solid #c9ccd6; border-radius: 3px; transition: border-color .15s, box-shadow .15s; }
.flo-p-saisie:focus-within { border-color: var(--flo-marine); box-shadow: 0 0 0 1px var(--flo-marine); }
.flo-p-saisie.faux { border-color: var(--flo-erreur); box-shadow: 0 0 0 1px var(--flo-erreur); }
.flo-p-saisie input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 20px var(--flo-police); color: var(--flo-marine); padding: 15px 14px; min-height: 58px; outline: 0; }
.flo-p-saisie b { padding-right: 14px; font: 700 20px var(--flo-police); color: var(--flo-doux); }
.flo-p-saisie button { border: 0; background: none; color: var(--flo-marine); font: 700 12px var(--flo-police); letter-spacing: .1em; text-transform: uppercase; padding: 0 14px; min-height: 44px; cursor: pointer; }
.flo-p-aide { margin: 8px 0 0; font: 500 14px/1.4 var(--flo-police); color: var(--flo-doux); text-align: left; }
.flo-p-faux { margin: 8px 0 0; font: 600 14.5px/1.4 var(--flo-police); color: var(--flo-erreur); text-align: left; }
.flo-p-ok { margin: 8px 0 0; font: 600 14.5px/1.4 var(--flo-police); color: var(--flo-ok); }
.flo-p-cartes { display: grid; gap: 12px; margin-top: 8px; text-align: left; }
.flo-p-carte { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 66px; padding: 14px 18px; background: #fff; border: 1px solid #c9ccd6; border-radius: 3px; font: 600 18px/1.25 var(--flo-police); color: var(--flo-marine); cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .1s; }
.flo-p-carte::after { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c9ccd6; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.flo-p-carte:hover { border-color: var(--flo-marine); }
.flo-p-carte:active { transform: scale(.99); }
.flo-p-carte[aria-checked="true"] { border-color: var(--flo-marine); box-shadow: 0 0 0 1px var(--flo-marine); background: #f1fbfa; }
.flo-p-carte[aria-checked="true"]::after { border-color: var(--flo-marine); background: var(--flo-marine); box-shadow: inset 0 0 0 4px #f1fbfa; }
.flo-p-case { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; padding: 14px 16px; background: #fff; border: 1px solid #c9ccd6; border-radius: 3px; text-align: left; font: 500 15px/1.45 var(--flo-police); color: var(--flo-marine); cursor: pointer; }
.flo-p-case input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--flo-marine); }
.flo-p-case:has(input:checked) { border-color: var(--flo-marine); box-shadow: 0 0 0 1px var(--flo-marine); background: #f1fbfa; }
.flo-p-plus { margin: 12px 0 0; text-align: left; font: 500 14px/1.45 var(--flo-police); color: var(--flo-doux); }
.flo-p-plus summary { cursor: pointer; font-weight: 600; color: var(--flo-marine); }
.flo-p-montant { margin: 4px 0 14px; font: 700 46px/1.1 var(--flo-titre); color: var(--flo-marine); }
.flo-p-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.flo-p-puce { font: 600 14px var(--flo-police); padding: 8px 14px; min-height: 40px; background: #fff; color: var(--flo-marine); border: 1px solid var(--flo-marine); border-radius: 3px; cursor: pointer; }
.flo-p-puce:hover { background: var(--flo-lime); }
.flo-p-classement { display: grid; gap: 8px; margin: 4px 0 6px; text-align: left; }
.flo-p-rang { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--flo-trait); border-radius: 3px; }
.flo-p-rang.moi { border-color: var(--flo-marine); box-shadow: 0 0 0 1px var(--flo-marine); background: #f1fbfa; }
.flo-p-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--flo-nuit); color: #fff; font: 700 14px/28px var(--flo-police); text-align: center; }
.flo-p-rang:first-child .flo-p-num { background: var(--flo-lime); color: var(--flo-marine); }
.flo-p-qui { flex: 1; min-width: 0; font: 600 15px/1.25 var(--flo-police); color: var(--flo-marine); }
.flo-p-qui small { display: block; font: 500 12.5px var(--flo-police); color: var(--flo-doux); }
.flo-p-rang b { font: 700 17px var(--flo-police); color: var(--flo-marine); white-space: nowrap; }
.flo-p-pied { flex: none; padding: 12px 22px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); background: var(--flo-fond); }
.flo-p-pied > * { display: block; width: 100%; max-width: 436px; margin-left: auto; margin-right: auto; }
.flo-p-continuer { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 28px; border: 1px solid var(--flo-lime); border-radius: 3px; background: var(--flo-lime); color: var(--flo-marine); font: 700 14.5px/1.25 var(--flo-police); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, border-color .2s, color .2s; }
.flo-p-continuer:hover:not([disabled]) { transform: translateY(-1px); }
.flo-p-continuer[disabled] { background: #e6e8ea; border-color: #e6e8ea; color: #9a9bab; cursor: not-allowed; }
.flo-p-continuer.contour { background: transparent; border-color: var(--flo-marine); margin-top: 10px; }
.flo-p-lien { margin-top: 10px; padding: 10px; background: none; border: 0; font: 600 14.5px var(--flo-police); color: var(--flo-marine); text-decoration: underline; cursor: pointer; text-align: center; }
.flo-p-attente { display: inline-flex; gap: 6px; }
.flo-p-attente i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .4; animation: flo-point 1s infinite; }
.flo-p-attente i:nth-child(2) { animation-delay: .15s; }
.flo-p-attente i:nth-child(3) { animation-delay: .3s; }
.flo-p-avatar.fait::after { content: '✓'; position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; background: var(--flo-ok); color: #fff; font: 700 18px/32px var(--flo-police); text-align: center; border: 3px solid var(--flo-fond); }
@keyframes flo-p-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes flo-p-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .flo-p-avatar, .flo-p-corps > * { animation: none; }
  .flo-p-barre i, .flo-p-continuer { transition: none; }
  .flo-p-attente i { animation: none; opacity: .7; }
}
@media (min-width: 901px) { .flo-p-tete { height: 84px; } .flo-p-avatar { width: 80px; height: 80px; margin-top: -40px; } .flo-p-titre { font-size: 26px; } }
@keyframes flo-arrivee { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes flo-apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flo-point { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .flo-accueil, .flo-ligne { animation: none; }
  .flo-ecrit i { animation: none; opacity: .7; }
  .flo-jauge i { transition: none; }
}
@media (min-width: 720px) {
  .flo-visage { width: 240px; height: 240px; }
  .flo-accueil h1 { font-size: 38px; }
  .flo-scene { padding-top: 40px; }
}
/* Pages « Créer un compte » et « Se connecter » : le parcours de Flo est la page, plein écran à toute largeur. */
.flo-fiche.compte { inset: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
@media (min-width: 901px) {
  .flo-fiche.compte .flo-p-corps, .flo-fiche.compte .flo-p-pied { width: min(560px, 100%); margin-inline: auto; }
}
/* Sur les pages de compte, les règles de formulaire du site (app.css : cadre, marge, anneau de focus) ne touchent pas le champ de Flo, qui porte son propre cadre. Le défilement de la page est figé derrière le plein écran. */
.flo-fiche .flo-p-saisie input, .flo-fiche .flo-p-saisie input:focus { width: auto; margin: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none; }
html:has(.flo-fiche.compte:not([hidden])), html:has(.flo-fiche.compte:not([hidden])) body { overflow: hidden; scrollbar-gutter: auto; }

/* Les pages de compte : avant que le script ne soit là, un fond plein écran aux couleurs de Flo recouvre le formulaire classique (plus d'éclair de formulaire sous le chat). Sans script, ou si le script ne vient pas, il s'efface et le formulaire reste. */
#flo-fiche.flo-pre { position: fixed; inset: 0; z-index: 100; background: linear-gradient(var(--flo-nuit) 0 104px, var(--flo-fond) 104px); animation: flo-pre-fin 0s 6s forwards; }
@media (min-width: 901px) { #flo-fiche.flo-pre { background: linear-gradient(var(--flo-nuit) 0 84px, var(--flo-fond) 84px); } }
@media (scripting: none) { #flo-fiche.flo-pre { display: none; } }
@keyframes flo-pre-fin { to { visibility: hidden; } }
/* Sur ces pages : le logo en haut à gauche, le retour juste sous la bande, « Besoin d'aide ? » en bas. */
.flo-p-logo { position: absolute; left: 22px; top: calc(20px + env(safe-area-inset-top)); line-height: 0; z-index: 2; }
.flo-p-logo img { display: block; width: auto; height: 26px; }
.flo-fiche.compte .flo-p-tete { justify-content: flex-end; }
.flo-fiche.compte .flo-p-tete button:first-of-type { position: absolute; left: 10px; top: calc(100% + 8px); z-index: 2; color: var(--flo-marine); }
.flo-p-pied .flo-p-aidelien { margin-top: 6px; padding: 10px; text-align: center; font: 600 14px var(--flo-police); color: var(--flo-doux); text-decoration: underline; }
.flo-p-pied .flo-p-aidelien:hover { color: var(--flo-marine); }
.flo-p-aidelien:focus-visible { outline: 3px solid var(--flo-lime); outline-offset: 2px; }
