/* ════════════════════════════════════════════════════════════════════
   PointBar : une seule page, des écrans qui glissent, de la bière au fond
   ════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Fredoka"; src: url("/assets/polices/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/polices/nunito-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --fond: #fff8ec;        /* mousse : fond des pages */
  --carte: #fffdf8;       /* surfaces, fiches */
  --creme: #fffdf8;
  --brun: #24140a;        /* stout : texte */
  --brun-clair: #6b3a15;  /* texte secondaire */
  --blonde: #f2ad1f;      /* couleur principale : boutons, sélection */
  --blonde-fonce: #e59e0f;
  --ambre: #fbb431;
  --orange: #f39522;
  --rouille: #b8600c;
  --sable: #f5ead3;
  --trait: #ebddc0;
  --trait-fonce: #e2cfa8;
  --ferme: #e9dcc4;
  --titre: "Fredoka", "Nunito", system-ui, sans-serif;
  --glisse: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fond); }
body {
  position: fixed; inset: 0; overflow: hidden;
  color: var(--brun); font: 400 16px/1.5 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--brun); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--rouille); }
/* Liens dans le texte : le trait part à droite puis revient depuis la gauche */
.contenu a, .souligne {
  text-decoration: none; padding-bottom: 1px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
}
.contenu a:hover, .souligne:hover { animation: balaye .5s cubic-bezier(.6, 0, .3, 1); }
@keyframes balaye {
  0% { background-size: 100% 1.5px; background-position: 100% 100%; }
  45% { background-size: 0 1.5px; background-position: 100% 100%; }
  55% { background-size: 0 1.5px; background-position: 0 100%; }
  100% { background-size: 100% 1.5px; background-position: 0 100%; }
}
/* Pied de page : le trait se dessine au survol */
.pied .souligne { background-size: 0 1.5px; transition: background-size .35s cubic-bezier(.6, 0, .3, 1), color .2s; }
.pied .souligne:hover { animation: none; background-size: 100% 1.5px; }
/* Lien avec flèche : la flèche avance */
.fleche { display: inline-flex; align-items: center; gap: 8px; font: 600 17px var(--titre); text-decoration: none; }
.fleche span { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.fleche:hover span { transform: translateX(5px); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--titre); margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }
[hidden] { display: none !important; }

/* ─── La bière (fond animé) ─── */
.biere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #ffd35c 0%, #fbb431 40%, #f6a128 78%, #ec8b1b 100%);
  transform: translateY(110%); will-change: transform;
}
.biere canvas { position: absolute; left: 0; width: 100%; display: block; }

/* ─── En-tête ─── */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 20px clamp(16px, 4vw, 56px); pointer-events: none;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.entete.defile {
  padding-top: 12px; padding-bottom: 12px; background: rgba(255, 248, 236, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(36, 20, 10, .08);
}
.marque {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 28px/1 var(--titre); letter-spacing: -0.015em; color: var(--brun);
}
.marque img { width: 36px; height: 36px; flex: none; border-radius: 24%; box-shadow: 0 3px 8px rgba(110, 40, 0, .28); }
.marque .mot { white-space: nowrap; }
.marque img { transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.marque:hover img { transform: rotate(-8deg) scale(1.06); }
/* le « i » : une bouteille posée sur la ligne, son point au-dessus */
.marque .mot svg { display: inline-block; height: .8em; width: auto; margin: 0 .04em; vertical-align: baseline; }
.nav {
  pointer-events: auto; position: relative; display: flex; gap: 2px; padding: 5px;
  border-radius: 999px; background: rgba(255, 249, 238, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nav a {
  position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; text-decoration: none;
  font: 500 15px/1.2 var(--titre); color: var(--brun); transition: color .3s, background .2s;
}
.nav a:not(.actif):hover { background: rgba(36, 20, 10, .08); color: var(--brun); }
.nav a.actif { color: var(--brun); }
.nav .pilule {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--blonde);
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), opacity .25s;
}

/* ─── Les écrans côte à côte ─── */
.bande {
  position: absolute; inset: 0; z-index: 1; display: flex; width: calc(var(--ecrans) * 100%);
  transition: transform 1s var(--glisse); will-change: transform;
}
.page { width: calc(100% / var(--ecrans)); height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 5vw, 64px) 48px; }
.page-int { max-width: 1180px; margin: 0 auto; }

/* ─── Boutons ─── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--blonde); background: var(--blonde); color: var(--brun);
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font: 500 17px/1.2 var(--titre); transition: background .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s;
}
.bouton:hover { background: var(--blonde-fonce); border-color: var(--blonde-fonce); color: var(--brun); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200, 130, 0, .3); }
.bouton:active { transform: scale(.97); }
.bouton.clair { background: var(--carte); border-color: var(--trait); color: var(--brun); }
.bouton.clair:hover { background: var(--carte); border-color: var(--blonde); box-shadow: 0 8px 18px rgba(36, 20, 10, .08); }
.bouton.contour { background: transparent; color: var(--brun); }
.bouton.contour:hover { background: var(--sable); }
.bouton.petit { padding: 9px 15px; font-size: 15px; }
.bouton:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Accueil ─── */
.page-accueil { padding-bottom: calc(10vh + 40px); }
.heros {
  min-height: 100vh; min-height: 100dvh; padding: 120px 0 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px);
}
.heros-texte { display: flex; flex-direction: column; gap: 24px; }
.lieu { margin: 0; font: 600 15px var(--titre); letter-spacing: .02em; color: #6b3a0c; }
.grand { font-weight: 600; font-size: clamp(46px, 7vw, 96px); line-height: .95; letter-spacing: -0.03em; max-width: 780px; text-wrap: balance; }
.chapo { margin: 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.5; max-width: 520px; text-wrap: pretty; }
.heros .boutons { margin-top: 4px; }
.page-accueil .heros .bouton { background: var(--carte); border-color: var(--carte); box-shadow: 0 8px 20px rgba(140, 70, 0, .2); }
.page-accueil .heros .bouton:hover { background: #fff; border-color: #fff; box-shadow: 0 12px 26px rgba(140, 70, 0, .28); }
.page-accueil .heros .bouton.clair { background: transparent; border-color: rgba(36, 20, 10, .75); box-shadow: none; }
.page-accueil .heros .bouton.clair:hover { background: rgba(255, 253, 248, .35); }
.page-accueil .chiffres li { box-shadow: 0 12px 30px rgba(140, 70, 0, .12); }
.page-accueil .formule { box-shadow: 0 12px 30px rgba(140, 70, 0, .12); }
.page-accueil .formule.app { background: var(--carte); }
.page-accueil .pied { box-shadow: 0 12px 30px rgba(140, 70, 0, .12); }
.heros .bouton { border-radius: 18px; padding: 16px 26px; font-size: 18px; }

/* Boutons des stores : même taille, logo officiel, noir comme les badges des stores */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; width: 172px; height: 54px; padding: 0 16px; border-radius: 14px;
  background: #111; color: #fff; text-decoration: none; font: 600 18px/1.05 var(--titre);
  transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s;
}
.store .ic { width: 26px; height: 26px; }
.store > span { white-space: nowrap; }
.store small { display: block; font: 700 11px/1.3 "Nunito", sans-serif; opacity: .8; }
a.store:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }
.store.bientot { cursor: default; }

/* Mots surlignés : un aplat aux bords arrondis qui se dessine de gauche à droite */
.feutre { position: relative; z-index: 0; white-space: nowrap; }
.feutre::before {
  content: ""; position: absolute; z-index: -1; left: -.2em; right: -.2em; top: .12em; bottom: .04em;
  background: var(--blonde); opacity: .5; border-radius: .4em;
  transform: scaleX(0); transform-origin: left; animation: feutre .7s .5s cubic-bezier(.6, 0, .3, 1) forwards;
}
.feutre.clair::before { background: #fffdf8; opacity: .9; }
@keyframes feutre { to { transform: scaleX(1); } }
.grand .feutre::before { top: .2em; bottom: .02em; border-radius: .22em; }

/* Capture de l'app dans un téléphone */
.telephone {
  margin: 0; width: clamp(240px, 23vw, 310px); aspect-ratio: 507 / 1104; padding: 9px; border-radius: 46px;
  background: #1c1c1e; box-shadow: 0 30px 60px rgba(90, 40, 0, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  transform: rotate(3deg);
}
.telephone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--fond); }
.telephone.petit { width: clamp(190px, 16vw, 220px); padding: 7px; border-radius: 38px; transform: none; box-shadow: 0 20px 40px rgba(90, 40, 0, .25); }
.telephone.petit img { border-radius: 31px; }

/* Les chiffres en direct */
.chiffres { list-style: none; margin: 0 0 clamp(64px, 9vw, 120px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.chiffres li { padding: 22px 24px; border-radius: 24px; background: var(--carte); box-shadow: 0 0 0 1px var(--trait); display: flex; flex-direction: column; gap: 4px; }
.chiffres b { font: 600 clamp(32px, 3.6vw, 46px)/1 var(--titre); letter-spacing: -0.02em; white-space: nowrap; }
.chiffres span { font-size: 15px; font-weight: 700; }

/* Sections de l'accueil */
.bloc { margin-bottom: clamp(64px, 9vw, 120px); display: flex; flex-direction: column; gap: 28px; }
.bloc > h2 { font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.02em; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.etape {
  position: relative; padding: 14px 14px 22px; border-radius: 28px; background: var(--carte);
  box-shadow: 0 1px 0 rgba(36, 20, 10, .04), 0 12px 30px rgba(140, 70, 0, .12);
  display: flex; flex-direction: column; gap: 10px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.etape:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 22px 44px rgba(140, 70, 0, .2); }
.etape > :not(.scene) { margin-left: 10px; margin-right: 10px; }
.etape-num { align-self: flex-start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--sable); font: 600 13px var(--titre); color: var(--brun-clair); }
.etape h3 { font-weight: 600; font-size: 22px; line-height: 1.15; }
.etape p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--brun-clair); text-wrap: pretty; }
.etape .fleche { margin-top: auto; padding-top: 6px; font-size: 16px; }

/* Les scènes */
.scene { position: relative; height: 150px; border-radius: 20px; overflow: hidden; background: #fdf0cf; }
.scene-prix { background: linear-gradient(135deg, #fbefd4, #f6e3b8); }
.scene-prix::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(255, 255, 255, .55) 34px 40px), repeating-linear-gradient(25deg, transparent 0 52px, rgba(255, 255, 255, .45) 52px 57px); }
.pin {
  position: absolute; left: var(--x); top: var(--y); padding: 6px 11px; border-radius: 12px; background: #fffdf8;
  font: 900 14px "Nunito", sans-serif; box-shadow: 0 2px 6px rgba(0, 0, 0, .15), inset 0 0 0 1.3px #ebddc0;
  animation: flotte 3.2s var(--d) ease-in-out infinite;
}
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; box-shadow: inset -1.3px -1.3px 0 #ebddc0; }
.pin.hh { background: var(--blonde); box-shadow: 0 2px 6px rgba(0, 0, 0, .15), inset 0 0 0 1.8px #815913; font-size: 16px; padding: 7px 13px; }
.pin.hh::after { box-shadow: inset -1.8px -1.8px 0 #815913; }
.pin.petit { padding: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #ebddc0; box-shadow: 0 0 0 2px #fffdf8; }
.pin.petit::after { display: none; }
@keyframes flotte { 50% { transform: translateY(-6px); } }
.etape:hover .pin { animation-duration: 1.2s; }

.scene-amis { background: linear-gradient(135deg, #eef3fb, #f6f0fb); }
.scene-amis::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(36, 20, 10, .08) 1px, transparent 1.2px) 0 0 / 14px 14px; }
.scene-amis svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-amis .trace { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.scene-amis .train { fill: #fff; stroke: #24140a; stroke-width: 2; }
.scene-amis .ami circle { fill: #fffdf8; stroke: #24140a; stroke-width: 2; }
.scene-amis text { font: 600 12px "Fredoka", sans-serif; fill: #24140a; text-anchor: middle; dominant-baseline: central; }
.scene-amis .temps rect { fill: #fffdf8; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15)); }
.scene-amis .temps text { font: 800 10.5px "Nunito", sans-serif; }
.scene-amis .arrivee > circle:first-child { fill: #fffdf8; stroke: #24140a; stroke-width: 4; }
.scene-amis .halo { fill: none; stroke: var(--blonde); stroke-width: 3; transform-origin: 160px 80px; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.scene-amis .etiquette rect { fill: var(--blonde); }
.scene-amis .etiquette text { font-size: 13px; }

.scene-maj { background: linear-gradient(135deg, #e7f4e0, #fbf3d6); display: grid; place-items: center; }
.mini-fiche { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: 18px; background: #fffdf8; box-shadow: 0 6px 16px rgba(0, 0, 0, .1); font: 600 16px var(--titre); transform: rotate(-3deg); }
.mini-fiche s { position: relative; color: #a0805f; font-weight: 500; text-decoration: none; }
.mini-fiche s::after { content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2.5px; border-radius: 2px; background: #c2402a; transform: scaleX(0); transform-origin: left; animation: raye 4s ease-in-out infinite; }
.mini-fiche b { padding: 2px 8px; border-radius: 8px; background: var(--blonde); animation: nouveau 4s ease-in-out infinite; }
@keyframes raye { 0%, 12% { transform: scaleX(0); } 30%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes nouveau { 0%, 30% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; transform: scale(1.15); } 46%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.medaille { position: absolute; right: 14px; top: 16px; padding: 6px 12px; border-radius: 999px; background: #3f6620; color: #fff; font: 600 13px var(--titre); transform: rotate(6deg); }
.medaille { animation: tampon 4s cubic-bezier(.3, 1.6, .5, 1) infinite; }
@keyframes tampon { 0%, 42% { transform: rotate(6deg) scale(1.6); opacity: 0; } 52%, 90% { transform: rotate(6deg) scale(1); opacity: 1; } 100% { opacity: 0; } }

.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.formule { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--carte); box-shadow: 0 0 0 1px var(--trait); display: flex; flex-direction: column; gap: 16px; }
.formule.app { background: #fdf0cf; box-shadow: 0 0 0 1px #f3d896; }
.formule h3 { font-weight: 600; font-size: 24px; }
.formule ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.formule li { position: relative; padding-left: 26px; }
.formule li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--blonde); }
.formule .magasins { margin-top: auto; padding-top: 8px; }

.patron {
  flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px;
  padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--carte); box-shadow: 0 12px 30px rgba(140, 70, 0, .12);
}
.patron > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.patron h2 { font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
.patron p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--brun-clair); }

.apropos { gap: 12px; }
.apropos > h2 { font-size: clamp(28px, 3vw, 38px); }
.apropos p { margin: 0; max-width: 720px; font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; line-height: 1.55; text-wrap: pretty; }

/* ─── Pied de page (tous les écrans) ─── */
.pied {
  margin-top: 72px; padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: var(--carte);
  box-shadow: 0 0 0 1px var(--trait); display: flex; flex-direction: column; gap: 32px; font-size: 15px;
}
.pied p { margin: 0; }
.pied-haut { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; gap: 32px; }
.pied-marque { display: flex; flex-direction: column; gap: 12px; }
.pied-nom { display: flex; align-items: center; gap: 10px; font: 600 22px var(--titre); }
.pied-nom img { border-radius: 24%; }
.pied-marque p { color: var(--brun-clair); max-width: 300px; }
.pied-marque .stores { margin-top: 6px; }
.pied-titre { font: 600 15px var(--titre); margin-bottom: 14px !important; }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pied ul a, .pied ul span { color: var(--brun-clair); }
.pied ul a:hover { color: var(--brun); }
.avec-icones li { display: flex; align-items: center; gap: 9px; }
.avec-icones .ic { width: 18px; height: 18px; color: var(--brun); }
.avec-icones em { font-style: normal; font: 700 11px "Nunito", sans-serif; padding: 2px 7px; border-radius: 999px; background: var(--sable); margin-left: 4px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--trait); font-size: 13.5px; color: var(--brun-clair); }
.pied-bas a { color: var(--brun-clair); }

/* ─── Fenêtre : formulaire des gérants ─── */
.fenetre {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 28px;
  background: var(--carte); color: var(--brun); box-shadow: 0 30px 80px rgba(36, 20, 10, .35);
}
.fenetre[open] { animation: fenetre .35s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes fenetre { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.fenetre::backdrop { background: rgba(36, 20, 10, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.formulaire, .merci { padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.fenetre-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fenetre h2 { font-weight: 600; font-size: 26px; line-height: 1.1; }
.fermer { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--sable); display: grid; place-items: center; transition: background .2s, transform .2s; }
.fermer:hover { background: var(--blonde); transform: rotate(90deg); }
.fenetre-intro { margin: 0; color: var(--brun-clair); }
.grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grille-form .champ-form:first-child { grid-column: 1 / -1; }
.champ-form { display: flex; flex-direction: column; gap: 6px; font: 600 14px var(--titre); }
.champ-form i { font-style: normal; color: #c2402a; }
.champ-form input, .champ-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--trait); background: var(--fond);
  font: 500 16px "Nunito", sans-serif; color: var(--brun); outline: none; resize: vertical; transition: border-color .2s, background .2s;
}
.champ-form input:focus, .champ-form textarea:focus { border-color: var(--blonde); background: #fff; }
.champ-form.invalide input, .champ-form.invalide textarea { border-color: #c2402a; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fenetre-bas { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mention { margin: 0; font-size: 13px; color: var(--brun-clair); max-width: 300px; }
.merci { align-items: center; text-align: center; padding-top: 40px; padding-bottom: 36px; }
.merci p { margin: 0; color: var(--brun-clair); }
.merci-verre { width: 44px; height: 58px; border: 4px solid var(--brun); border-top: 0; border-radius: 0 0 10px 10px; position: relative; overflow: hidden; }
.merci-verre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(#fffdf8 0 18%, var(--blonde) 18%); animation: remplit 1s ease-out; }
@media (max-width: 520px) { .grille-form { grid-template-columns: 1fr; } .fenetre-bas .bouton { width: 100%; } }

/* ─── FAQ : questions dépliantes ─── */
.question { border-radius: 18px; background: var(--carte); box-shadow: 0 0 0 1px var(--trait); transition: box-shadow .2s; }
.question + .question { margin-top: 2px; }
.question:hover { box-shadow: 0 0 0 1.5px var(--blonde); }
.question summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; font: 500 17px/1.35 var(--titre);
}
.question summary::-webkit-details-marker { display: none; }
.question summary .ic { flex: none; width: 20px; height: 20px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--sable); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .2s; }
.question[open] summary .ic { transform: rotate(180deg); background: var(--blonde); }
.question p { padding: 0 20px 18px; animation: deplie .3s ease-out; }
@keyframes deplie { from { opacity: 0; transform: translateY(-6px); } }

/* ─── Carte ─── */
.page-carte { padding: 88px clamp(10px, 2vw, 24px) 48px; }
.carte-zone { height: calc(100vh - 88px - clamp(10px, 2vw, 24px)); height: calc(100dvh - 88px - clamp(10px, 2vw, 24px)); display: grid; grid-template-columns: minmax(300px, 390px) 1fr; gap: 14px; }
.panneau { min-height: 0; overflow-y: auto; background: var(--carte); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.recherche { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--trait); background: var(--fond); transition: border-color .2s; }
.recherche:focus-within { border-color: var(--orange); }
.recherche input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 0; font-size: 17px; outline: none; }
.bloc-prix { display: flex; flex-direction: column; gap: 10px; }
.ligne-prix { display: flex; justify-content: space-between; font: 500 15px var(--titre); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; background: var(--sable); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blonde); border: 4px solid var(--carte); box-shadow: 0 2px 6px rgba(36, 20, 10, .3); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blonde); border: 4px solid var(--carte); box-shadow: 0 2px 6px rgba(36, 20, 10, .3); cursor: grab; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puce {
  border: 0; padding: 8px 14px; border-radius: 999px; background: var(--sable); color: var(--brun);
  font: 500 14px var(--titre); transition: background .2s, color .2s, transform .15s;
}
.puce:active { transform: scale(.95); }
.puce[aria-pressed="true"] { background: var(--blonde); color: var(--brun); }
.puces.petites .puce { background: transparent; border: 1.5px solid var(--trait-fonce); padding: 6px 12px; font: 700 13px "Nunito", sans-serif; }
.puces.petites .puce[aria-pressed="true"] { background: var(--blonde); border-color: var(--blonde); color: var(--brun); }
.puce.plus { text-decoration: underline; border-color: transparent !important; }
.titre-liste { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1.5px solid #ecdcbd; padding-top: 12px; }
.titre-liste span:first-child { font: 500 16px var(--titre); }
.titre-liste span:last-child { font-size: 13px; font-weight: 700; }
.liste-bars { display: flex; flex-direction: column; gap: 2px; }
.liste-bars button {
  text-align: left; border: 0; background: transparent; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px; border-radius: 16px; transition: background .15s;
}
.liste-bars button:hover { background: var(--sable); }
.liste-bars .nom { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.liste-bars .nom b { font: 500 17px var(--titre); }
.liste-bars .nom small { font-size: 13px; font-weight: 600; }
.prix-pastille { flex: none; padding: 5px 11px; border-radius: 999px; font: 600 15px var(--titre); background: var(--fond); }
.prix-pastille.hh { background: #f2ad1f; box-shadow: inset 0 0 0 1.5px #815913; }
.attente { margin: 0; padding: 12px; font-weight: 600; }

.plan { position: relative; min-height: 0; border-radius: 28px; overflow: hidden; background: #f0e0c2; }
#carte { position: absolute; inset: 0; }
#carte .maplibregl-canvas { filter: sepia(.28) saturate(.88) brightness(1.03); }
.compteur {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 7px 13px; border-radius: 999px;
  background: var(--creme); font: 500 14px var(--titre); box-shadow: 0 2px 8px rgba(36, 20, 10, .15);
}
.maplibregl-ctrl-group { border-radius: 14px !important; overflow: hidden; box-shadow: 0 2px 8px rgba(36, 20, 10, .2) !important; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.repere-station { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.repere-station i { width: 18px; height: 18px; border-radius: 50%; background: var(--brun); border: 4px solid var(--ambre); }
.repere-station b { font: 600 14px var(--titre); padding: 5px 11px; border-radius: 999px; background: var(--blonde); color: var(--brun); box-shadow: 0 2px 8px rgba(36, 20, 10, .2); }

/* Fiche d'un bar */
.fiche { display: flex; flex-direction: column; gap: 16px; animation: entre .35s ease-out; }
@keyframes entre { from { opacity: 0; transform: translateY(10px); } }
.retour { align-self: flex-start; border: 0; background: var(--fond); padding: 8px 14px; border-radius: 999px; font: 500 14px var(--titre); }
.photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 180px; }
.photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: var(--sable); }
.photos img:first-child { grid-row: span 2; border-radius: 18px; }
.photos.une { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.photos.une img:first-child { grid-row: auto; }
.fiche h2 { font-weight: 600; font-size: 28px; line-height: 1.05; }
.fiche .adresse { font-size: 15px; font-weight: 600; }
.etat { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font: 500 14px var(--titre); background: var(--ferme); }
.etat.ouvert { background: #e3eed6; color: #3f6620; }
.deux-prix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.deux-prix div { padding: 14px; border-radius: 18px; background: var(--fond); display: flex; flex-direction: column; gap: 2px; }
.deux-prix div.hh { background: var(--ambre); }
.deux-prix span { font-size: 13px; font-weight: 700; }
.deux-prix b { font: 600 26px var(--titre); }
.fiche h3 { font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.rubrique { padding: 14px 16px 8px; border-radius: 18px; background: var(--fond); }
.rubrique h3 { margin-bottom: 8px; }
.pastilles { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pastilles button { flex: none; border: 0; padding: 6px 12px; border-radius: 16px; background: var(--sable); color: #7a5a3c; font: 800 12.5px "Nunito", sans-serif; cursor: pointer; }
.pastilles button[aria-selected="true"] { background: #f2ad1f; color: #24140a; }
.lignes-carte .ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(36, 20, 10, .1); font-size: 14.5px; }
.lignes-carte .ligne:last-child { border-bottom: 0; }
.lignes-carte .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lignes-carte .hh { padding: 2px 7px; border-radius: 6px; background: rgba(242, 173, 31, .18); color: #8a5a00; font-size: 12px; font-weight: 800; white-space: nowrap; }
.lignes-carte b { min-width: 52px; text-align: right; font-weight: 800; white-space: nowrap; }
.horaires div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.horaires div.aujourdhui { font-weight: 800; }
.avis { padding: 12px 14px; border-radius: 16px; background: var(--fond); display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.avis small { font-size: 13px; font-weight: 700; }
.etoiles { color: var(--orange); letter-spacing: 1px; }
.appel-app { padding: 14px; border-radius: 18px; border: 2px dashed var(--trait-fonce); font-size: 14px; font-weight: 600; }

/* ─── À mi-pinte ─── */
.page-mp { padding-top: 120px; padding-bottom: calc(20vh + 40px); }
.mp { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mp-gauche { display: flex; flex-direction: column; gap: 22px; }
.surtitre { font: 500 15px var(--titre); color: var(--rouille); }
.mp h1, .legal h1 { font-weight: 600; font-size: clamp(44px, 5.5vw, 72px); line-height: .95; letter-spacing: -0.02em; margin-top: 10px; }
.mp-gauche > div > p { margin: 12px 0 0; font-size: 17px; max-width: 470px; text-wrap: pretty; }
.departs { display: flex; flex-direction: column; }
.depart { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.numero {
  position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sable); display: flex; align-items: center; justify-content: center;
  font: 600 15px var(--titre); transition: background .3s, transform .3s;
}
.depart.rempli .numero { background: var(--ambre); transform: scale(1.06); }
/* Un filet de bière relie les points de départ remplis */
.depart.relie::before {
  content: ""; position: absolute; left: 14px; width: 4px; top: calc(-50% + 12px); bottom: calc(50% + 12px); border-radius: 4px;
  background: linear-gradient(180deg, #fbb431, #f39522); animation: coule .6s ease-out;
}
@keyframes coule { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }
.champ { position: relative; flex: 1; min-width: 0; }
.champ input {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--trait);
  background: var(--creme); font-size: 16px; outline: none; transition: border-color .2s;
}
.champ input:focus { border-color: var(--orange); }
.btn-pos { flex: none; padding: 10px 12px; border-radius: 999px; border: 2px solid var(--trait); background: transparent; font: 500 13px var(--titre); }
.btn-pos:hover { background: var(--sable); }
.retirer { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sable); font-size: 18px; line-height: 1; }
.suggestions {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: var(--creme);
  border-radius: 18px; box-shadow: 0 12px 30px rgba(36, 20, 10, .18); padding: 6px; max-height: 300px; overflow-y: auto;
}
.suggestions button {
  width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
}
.suggestions button:hover, .suggestions button:focus { background: var(--sable); outline: none; }
.suggestions small { display: block; font-size: 12px; font-weight: 600; opacity: .7; }
.ligne {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; font: 600 12px var(--titre); margin-right: 3px;
}
.erreur { margin: 0; padding: 12px 16px; border-radius: 16px; background: #fde3c8; font-weight: 700; }
.mp-droite { display: flex; flex-direction: column; gap: 14px; }
.vide { padding: 28px; border-radius: 28px; border: 2px dashed var(--trait-fonce); font-size: 16px; }
.resultat { padding: 22px; border-radius: 28px; background: var(--carte); display: flex; flex-direction: column; gap: 14px; animation: entre .45s ease-out both; }
.resultat:nth-child(2) { animation-delay: .08s; }
.resultat:nth-child(3) { animation-delay: .16s; }
.resultat-haut { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.resultat-haut > div { display: flex; flex-direction: column; gap: 8px; }
.resultat-haut small { font-size: 13px; font-weight: 700; }
.resultat h3 { font-weight: 600; font-size: 26px; line-height: 1; }
.nb-bars { padding: 6px 12px; border-radius: 999px; background: var(--ambre); font: 500 14px var(--titre); }
.personne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--fond); margin-bottom: 6px; }
.personne span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.personne b { font-size: 15px; }
.personne small { font-size: 13px; font-weight: 600; }
.personne strong { flex: none; font: 600 18px var(--titre); }
.chargement { display: flex; align-items: center; gap: 12px; padding: 24px; font: 500 18px var(--titre); }
.verre { width: 22px; height: 30px; border: 3px solid var(--brun); border-top: 0; border-radius: 0 0 6px 6px; position: relative; overflow: hidden; }
.verre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; background: var(--ambre); animation: remplit 1.2s ease-in-out infinite; }
@keyframes remplit { from { height: 0; } to { height: 100%; } }

/* ─── Pages légales ─── */
.page-legal { padding-top: 120px; padding-bottom: calc(12vh + 40px); }
.legal { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.legal-haut { display: flex; flex-direction: column; gap: 12px; }
.maj { font-size: 14px; }
.sous-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.sous-nav a { padding: 7px 13px; border-radius: 999px; background: var(--carte); text-decoration: none; font: 500 14px var(--titre); transition: background .2s, transform .2s; }
.sous-nav a:not(.actif):hover { transform: translateY(-1px); }
.sous-nav a:hover { background: var(--sable); color: var(--brun); }
.sous-nav a.actif { background: var(--blonde); color: var(--brun); }
.contenu { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.65; }
.contenu > p:first-child { font-size: 18px; font-weight: 600; line-height: 1.55; }
.contenu h2 { font-weight: 500; font-size: 22px; margin-top: 18px; }
.contenu h3 { font-weight: 500; font-size: 18px; margin-top: 10px; }
.contenu p, .contenu ul, .contenu ol { margin: 0; text-wrap: pretty; }
.contenu ul, .contenu ol { padding-left: 22px; }
.contenu li { margin: 4px 0; }
.contenu table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--carte); border-radius: 18px; overflow: hidden; }
.contenu th, .contenu td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
.contenu th { font: 500 14px var(--titre); background: var(--sable); }
.encadre { padding: 16px 18px; border-radius: 18px; background: var(--ambre); font-weight: 700; }
.tableau { overflow-x: auto; }

/* ─── 404 ─── */
.page-404 { display: flex; flex-direction: column; padding-top: 120px; }
.erreur-404 { margin: auto; min-height: 60vh; justify-content: center; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; max-width: 640px; }
.erreur-404 h1 { font-weight: 600; font-size: clamp(56px, 9vw, 120px); line-height: .95; letter-spacing: -0.025em; }
.erreur-404 svg { width: 44px; transform: rotate(14deg); animation: tangue 3s ease-in-out infinite; }
@keyframes tangue { 50% { transform: rotate(24deg); } }

/* ─── Téléphone ─── */
@media (max-width: 760px) {
  .entete { padding: 14px 16px; }
  .marque { font-size: 23px; gap: 8px; }
  .marque img { width: 32px; height: 32px; }
  .nav a { padding: 8px 12px; font-size: 14px; }
  .page { padding-left: 16px; padding-right: 16px; }
  .heros { grid-template-columns: 1fr; padding: 112px 0 48px; min-height: 0; gap: 44px; }
  .heros .telephone { justify-self: center; width: min(72vw, 280px); }
  .heros .bouton { flex: 1 1 auto; }
  .chiffres { grid-template-columns: 1fr; gap: 8px; }
  .chiffres li { flex-direction: row; align-items: baseline; gap: 12px; padding: 16px 20px; }
  .chiffres b { font-size: 30px; min-width: 3.3em; }
  .heros .stores { display: grid; grid-template-columns: 1fr 1fr; }
  .heros .store { width: auto; }
  .patron .bouton { width: 100%; }
  .etapes { grid-template-columns: 1fr; gap: 8px; }
  .etape { padding: 20px; }
  .pied-haut { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .pied .stores { display: grid; grid-template-columns: 1fr 1fr; }
  .pied .store { width: auto; padding: 0 12px; font-size: 16px; }
  .pied-marque { grid-column: 1 / -1; }
  .page-carte { padding: 84px 10px 32px; }
  .carte-zone { height: calc(100dvh - 94px); grid-template-columns: 1fr; grid-template-rows: minmax(240px, 46%) 1fr; }
  .plan { order: -1; }
  .page-mp, .page-legal { padding-top: 104px; }
  .btn-pos { padding: 10px; font-size: 0; }
  .btn-pos .ic { font-size: 18px; }
}
/* petits téléphones : le logo et le menu tiennent sur une seule ligne */
@media (max-width: 430px) {
  .entete { gap: 8px; }
  .marque { font-size: 21px; gap: 7px; }
  .marque img { width: 28px; height: 28px; }
  .nav { padding: 4px; }
  .nav a { padding: 8px 9px; }
  .nav .pilule { top: 4px; bottom: 4px; }
}
@media (min-width: 761px) { .btn-pos .ic { display: none; } }
@media (min-width: 761px) and (max-width: 1080px) {
  .pied-haut { grid-template-columns: 1fr 1fr; } .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .pied-haut { grid-template-columns: 1fr; } .store { font-size: 15px; } }
@media (min-width: 761px) and (max-width: 1080px) { .etapes { grid-template-columns: 1fr 1fr; } }
/* Survol réservé aux souris : pas d'effet collé après un toucher sur téléphone */
@media (hover: none) {
  .bouton:hover, a.externe:hover { transform: none; box-shadow: none; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1[tabindex="-1"]:focus { outline: none; }
