/* Bruno — le site public, charte « Flyer pop » (V2) : encre sur papier, une touche d'acide, polices hébergées chez nous (charte.css).
   Mise en page : une colonne étroite, alignée à gauche ; le chat est le héros. */
:root {
  --fond: var(--b-fond); --surface: var(--b-fond); --encre: var(--b-texte); --doux: var(--b-texte-doux);
  --violette: var(--b-texte); --violette-2: var(--b-bloc); --brique: #D4136F; --trait: var(--b-trait);
  --titre: var(--b-display); --texte: var(--b-corps);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root { --brique: #FF4FA3; color-scheme: dark; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 17px/1.5 var(--texte); -webkit-font-smoothing: antialiased; }
a { color: var(--violette); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violette); outline-offset: 2px; border-radius: 6px; }
.page { max-width: 760px; margin: 0 auto; padding: 20px max(18px, env(safe-area-inset-right)) 48px max(18px, env(safe-area-inset-left)); }
.haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 28px; }
.marque { font-size: 30px; color: var(--encre); text-decoration: none; display: inline-flex; align-items: center; }
.marque .logo-ecrit { width: 4.65em; height: 1em; }
.lien-pro { font-weight: 700; font-size: 15px; }
h1, h2, h3 { font-family: var(--titre); letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 9vw, 80px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.05em; line-height: .95; }
h2 { font-size: clamp(24px, 4.5vw, 34px); font-weight: 600; letter-spacing: -0.03em; margin-top: 56px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.chapo { font-size: 21px; color: var(--doux); margin: 14px 0 26px; max-width: 34ch; }
p { max-width: 62ch; }

/* le chat */
.chat { background: var(--surface); border: 1.5px solid var(--trait); border-radius: 28px; display: flex; flex-direction: column; overflow: hidden; }
.fil { display: flex; flex-direction: column; gap: 12px; padding: 20px; max-height: min(60vh, 520px); min-height: 180px; overflow-y: auto; scroll-behavior: smooth; }
.bulle { max-width: 86%; padding: 11px 15px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.bruno { align-self: flex-start; background: var(--violette-2); border-bottom-left-radius: 6px; }
.bulle.moi { align-self: flex-end; background: var(--violette); color: var(--surface); border-bottom-right-radius: 6px; }
.bulle.attente { color: var(--doux); }
.bulle.attente span { display: inline-block; animation: hop 1.2s infinite; }
.bulle.attente span:nth-child(2) { animation-delay: .15s; } .bulle.attente span:nth-child(3) { animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.pistes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.piste { font: inherit; font-size: 15px; padding: 9px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--trait); background: transparent; color: var(--encre); cursor: pointer; }
.piste:hover { border-color: var(--encre); }
.saisie { display: flex; gap: 8px; padding: 12px; border-top: 1.5px solid var(--trait); }
.saisie input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; min-height: 48px; border-radius: 999px; border: 1.5px solid var(--trait); background: var(--fond); color: var(--encre); }
.bouton { font: inherit; font-weight: 700; padding: 12px 22px; min-height: 50px; border-radius: 999px; border: 0; background: var(--encre); color: var(--fond); cursor: pointer; }
.bouton.acide { background: var(--b-acide); color: var(--b-encre); }
.bouton:disabled { opacity: .55; cursor: default; }
.note { font-size: 14px; color: var(--doux); margin: 12px 4px 0; max-width: none; }

/* les lieux */
.lieux { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.lieux li { padding: 12px 0; border-top: 1.5px solid var(--trait); min-width: 0; }
.lieux b { display: block; font-family: var(--titre); font-size: 18px; letter-spacing: -0.01em; }
.lieux span { display: block; font-size: 14px; color: var(--doux); }
.lieux span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--b-rose); margin-right: 7px; vertical-align: 1px; }
.compte { font-family: var(--titre); font-weight: 800; }

/* page des lieux */
.etapes { list-style: none; counter-reset: e; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.etapes li::before { content: counter(e); font-family: var(--titre); font-weight: 800; font-size: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--b-acide); color: var(--b-encre); }
.etapes p { margin: 4px 0 0; color: var(--doux); }
.engagements { padding-left: 1.1em; margin: 16px 0 0; }
.engagements li { margin: 8px 0; max-width: 60ch; }
.formulaire { display: grid; gap: 12px; margin-top: 18px; background: var(--surface); border: 1.5px solid var(--trait); border-radius: 28px; padding: 22px; }
.formulaire label { font-weight: 700; font-size: 15px; display: grid; gap: 6px; }
.formulaire input, .formulaire textarea { font: inherit; font-weight: 400; padding: 12px 14px; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--trait); background: var(--fond); color: var(--encre); width: 100%; }
.formulaire textarea { min-height: 96px; resize: vertical; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.retour { font-weight: 700; margin: 0; }
.retour.ok { color: var(--encre); } .retour.ko { color: var(--brique); }
.bas { margin-top: 64px; padding-top: 18px; border-top: 1.5px solid var(--trait); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--doux); }
.mentions h2 { font-size: 24px; margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .bulle.attente span { animation: none; } .fil { scroll-behavior: auto; } }
@media (max-width: 480px) { .saisie { flex-direction: column; } .bouton { width: 100%; } .chapo { font-size: 19px; } }

.pistes[hidden] { display: none; }
.titre-long { font-size: clamp(38px, 7vw, 64px); }

::selection { background: var(--b-acide); color: var(--b-encre); }
.titre-long { text-transform: uppercase; }
