/* ════════════════════════════════════════════════════════════════════
   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: #fbf3e4;
  --carte: #fff6e4;
  --creme: #fff9ee;
  --brun: #3b2210;
  --brun-clair: #5a3418;
  --ambre: #fbb431;
  --orange: #f39522;
  --rouille: #b8600c;
  --sable: #f5e2bb;
  --trait: #ead8b6;
  --trait-fonce: #e2cba3;
  --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; }
a:hover { color: var(--rouille); }
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;
}
.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; }
/* le « i » : une bouteille posée sur la ligne, son point au-dessus */
.marque .mot svg { display: inline-block; height: .84em; width: auto; margin: 0 .05em; 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;
}
.nav a.actif { color: var(--creme); }
.nav .pilule {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--brun);
  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: 1000%;
  transition: transform 1s var(--glisse); will-change: transform;
}
.page { width: 10%; 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(--brun); background: var(--brun); color: var(--creme);
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font: 500 17px/1.2 var(--titre); transition: background .2s, transform .15s;
}
.bouton:hover { background: var(--brun-clair); border-color: var(--brun-clair); color: var(--creme); }
.bouton:active { transform: scale(.97); }
.bouton.clair { background: var(--creme); border-color: var(--creme); color: var(--brun); }
.bouton.clair:hover { background: #fff1d6; border-color: #fff1d6; }
.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; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Accueil ─── */
.heros { min-height: 100vh; min-height: 100dvh; padding: 130px 0 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.heros-texte { flex: 1 1 520px; display: flex; flex-direction: column; gap: 28px; }
.grand { font-weight: 600; font-size: clamp(50px, 8vw, 112px); line-height: .94; letter-spacing: -0.03em; max-width: 860px; text-wrap: balance; }
.chapo { margin: 0; font-size: clamp(18px, 1.7vw, 21px); font-weight: 600; max-width: 540px; text-wrap: pretty; }
.heros .bouton { border-radius: 18px; padding: 16px 28px; font-size: 18px; }
.app { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0 auto; }
.tuile {
  display: block; width: clamp(170px, 20vw, 250px); height: auto; aspect-ratio: 1; border-radius: 24%;
  transform: rotate(-7deg);
  box-shadow: 0 28px 50px rgba(110, 40, 0, .35), 0 0 0 1px rgba(110, 40, 0, .08);
  animation: flotte 7s ease-in-out infinite;
}
@keyframes flotte { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
.app > span { font: 500 16px var(--titre); }
.magasins { display: flex; gap: 8px; }
.magasin { padding: 9px 16px; border-radius: 14px; background: var(--brun); color: var(--creme); font: 500 15px/1.15 var(--titre); text-align: center; }
.magasin small { display: block; font: 600 11px "Nunito", sans-serif; opacity: .75; }

.phrase { margin: 0 0 80px; font: 500 clamp(28px, 3.6vw, 46px)/1.3 var(--titre); letter-spacing: -0.01em; max-width: 1000px; text-wrap: pretty; }
.phrase mark { background: var(--creme); color: inherit; padding: 0 .22em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.menu { padding: clamp(26px, 4.5vw, 56px); border-radius: 32px; background: var(--carte); display: flex; flex-direction: column; gap: 30px; }
.menu h2 { font-weight: 600; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.02em; line-height: 1; }
.plat { display: flex; flex-direction: column; gap: 6px; }
.plat-haut { display: flex; align-items: baseline; gap: 12px; }
.plat h3 { font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); }
.plat-haut i { flex: 1; min-width: 24px; border-bottom: 3px dotted #d9b98a; transform: translateY(-7px); }
.plat-haut b { font: 600 clamp(17px, 1.9vw, 22px) var(--titre); color: #a8520a; white-space: nowrap; }
.plat p { margin: 0; max-width: 580px; text-wrap: pretty; }

.pied { margin-top: 56px; padding: 28px; border-radius: 28px; background: var(--carte); display: flex; flex-direction: column; gap: 12px; }
.pied p { margin: 0; }
.pied .sante { font: 600 21px var(--titre); }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 700; }
.pied .petit { font-size: 14px; }

/* ─── Carte ─── */
.page-carte { padding: 88px clamp(10px, 2vw, 24px) clamp(10px, 2vw, 24px); overflow: hidden; }
.carte-zone { height: 100%; 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(--brun); border: 4px solid var(--creme); box-shadow: 0 2px 6px rgba(59, 34, 16, .3); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brun); border: 4px solid var(--creme); box-shadow: 0 2px 6px rgba(59, 34, 16, .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(--brun); color: var(--creme); }
.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(--brun); border-color: var(--brun); color: var(--creme); }
.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: var(--orange); }
.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(59, 34, 16, .15);
}
.maplibregl-ctrl-group { border-radius: 14px !important; overflow: hidden; box-shadow: 0 2px 8px rgba(59, 34, 16, .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(--brun); color: var(--creme); }

/* 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: var(--brun); color: var(--creme); }
.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; }
.lignes-carte div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--trait); font-size: 15px; }
.lignes-carte div:last-child { border-bottom: 0; }
.lignes-carte .hh { color: #a8520a; font-weight: 700; }
.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: -6px; height: 20px; 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(59, 34, 16, .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; }
.chemin { font: 13px ui-monospace, Menlo, monospace; color: var(--rouille); }
.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; }
.sous-nav a:hover { background: var(--sable); color: var(--brun); }
.sous-nav a.actif { background: var(--brun); color: var(--creme); }
.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; }
.a-completer { background: #fde3c8; padding: 0 4px; border-radius: 4px; }
.tableau { overflow-x: auto; }

/* ─── 404 ─── */
.page-404 { display: flex; padding-top: 120px; }
.erreur-404 { margin: auto; 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 { padding-top: 140px; }
  .page-carte { padding: 84px 10px 10px; }
  .carte-zone { 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; } }

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