/* LOTOmatic — feuille de style unique, ambiance « Kermesse au soleil » (maquette validée).
   Soleil #FFD23F, bleu marine du logo #08265B, rouge #C93A2C, bleu #2B5FC7, orange du logo #FF7900.
   Titres : Baloo 2 · textes : Nunito (polices libres, hébergées sur le site). */
@font-face { font-family: "Baloo 2"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --soleil: #FFD23F; --soleil-clair: #FFE58A; --creme: #FFFBEF; --sable: #F4F1E6; --trait: #EEE7CF;
  --marine: #08265B; --rouge: #C93A2C; --rouge-fonce: #8E2419; --bleu: #2B5FC7; --orange: #FF7900;
  --texte: #08265B; --doux: #4A4F6A; --titre: "Baloo 2", "Nunito", system-ui, sans-serif;
  --ombre: 0 3px 0 rgba(8, 38, 91, .10); --ombre-forte: 0 6px 0 rgba(8, 38, 91, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 400 16px/1.5 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--marine); }
a:hover { color: var(--rouge); }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.05; color: var(--marine); margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
.in { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vh.focusable:focus { position: fixed !important; width: auto; height: auto; clip: auto; top: 8px; left: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- en-tête jaune */
.haut { background: var(--soleil); padding-top: env(safe-area-inset-top); }
.haut .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.marque { display: flex; align-items: center; padding: 10px 0; }
.marque img { display: block; height: 26px; width: auto; }
.menu { display: flex; gap: 6px; }
.menu a { display: flex; align-items: center; gap: 6px; color: var(--marine); text-decoration: none; font-weight: 800; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.menu a .ic { width: 18px; height: 18px; }
.menu a:hover { background: rgba(255, 255, 255, .55); }
.menu a[aria-current="page"] { background: var(--marine); color: #fff; }
.bandeau-indep { display: none; }
@media (max-width: 760px) {
  .haut .in { min-height: 56px; }
  .menu { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--trait); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0; padding: 22px 4px calc(6px + env(safe-area-inset-bottom)); }
  .menu a { flex-direction: column; gap: 2px; font-size: .72rem; padding: 4px 2px; border-radius: 12px; }
  .menu a .ic { width: 22px; height: 22px; }
  .menu a[aria-current="page"] { background: none; color: var(--rouge); }
  .bandeau-indep { display: block; position: fixed; z-index: 41; left: 0; right: 0; bottom: calc(52px + env(safe-area-inset-bottom)); margin: 0; text-align: center;
    font-size: .7rem; font-weight: 700; color: var(--doux); pointer-events: none; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.page-fiche .menu, body.page-fiche .bandeau-indep { display: none; }
}

/* ---------------------------------------------------------------- bandeau du haut (soleil, carton de loto en filigrane) */
.hero { background: var(--soleil); padding: 8px 0 30px; border-radius: 0 0 32px 32px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -30px; top: 30px; width: 200px; height: 120px; border-radius: 12px; pointer-events: none;
  border: 2px solid rgba(8, 38, 91, .08);
  background: linear-gradient(90deg, transparent calc(20% - 1px), rgba(8, 38, 91, .08) 0 20%, transparent 0 calc(40% - 1px), rgba(8, 38, 91, .08) 0 40%, transparent 0 calc(60% - 1px), rgba(8, 38, 91, .08) 0 60%, transparent 0 calc(80% - 1px), rgba(8, 38, 91, .08) 0 80%, transparent 0),
              linear-gradient(0deg, transparent calc(33% - 1px), rgba(8, 38, 91, .08) 0 33%, transparent 0 calc(66% - 1px), rgba(8, 38, 91, .08) 0 66%, transparent 0); }
.hero .in { position: relative; }
.hero h1 { max-width: 14em; }
.hero .chapo { font-size: 1.05rem; font-weight: 700; margin: 0 0 16px; max-width: 34em; }
.hero .sur { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.hero.petit { padding-top: 12px; }
.hero.petit h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.hero.petit h1 span { display: block; color: var(--rouge); }
.hero.accueil { padding-top: 14px; }
.boules { display: flex; gap: 6px; margin-bottom: 10px; }
.boules span { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 15px/1 var(--titre); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.fil { font-size: .85rem; font-weight: 700; margin: 0 0 10px; color: var(--marine); }
.fil a { color: var(--marine); }

/* couleurs des boules */
.b-rouge { background: var(--rouge); color: #fff; }
.b-bleu { background: var(--bleu); color: #fff; }
.b-marine { background: var(--marine); color: var(--soleil); }
.b-orange { background: var(--orange); color: var(--marine); }
.b-jaune { background: var(--soleil); color: var(--marine); }
.b-blanc { background: #fff; color: var(--marine); }

/* ---------------------------------------------------------------- recherche */
.recherche { display: flex; flex-direction: column; gap: 10px; background: #fff; padding: 14px; border-radius: 22px; box-shadow: var(--ombre-forte); max-width: 640px; }
.recherche label { font-size: .85rem; font-weight: 800; }
.champ { position: relative; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--sable); border: 2px solid #E6E0C8; }
.champ:focus-within { border-color: var(--marine); }
.champ input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--marine); outline: none; padding: 12px 0; }
.champ input::placeholder { color: #6B6F86; }
.suggestions { position: absolute; z-index: 30; left: -2px; right: -2px; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(8, 38, 91, .2); }
.suggestions a { display: flex; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--marine); font-weight: 800; }
.suggestions a span { color: var(--doux); font-weight: 400; }
.suggestions a:hover, .suggestions a:focus { background: var(--soleil-clair); outline: none; }
.suggestions .rien { padding: 10px 12px; color: var(--doux); }
.res-pres { max-width: 640px; }
.res-pres:not(:empty) { margin-top: 16px; }
.titre-pres { font-size: 1.2rem; }

/* ---------------------------------------------------------------- boutons, pastilles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 800 1.1rem/1 var(--titre); border-radius: 14px; padding: 12px 18px; min-height: 50px;
  text-decoration: none; cursor: pointer; border: 2px solid var(--marine); background: #fff; color: var(--marine); }
.btn.rouge { background: var(--rouge); border-color: var(--rouge); color: #fff; box-shadow: 0 4px 0 var(--rouge-fonce); }
.btn.rouge:hover { background: #b8321f; color: #fff; }
.btn.jaune { background: var(--soleil); border-color: var(--soleil); color: var(--marine); box-shadow: 0 4px 0 #C9A11F; }
.btn.sec:hover { background: var(--soleil-clair); color: var(--marine); }
.btn:disabled { opacity: .6; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.pastilles { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pastilles::-webkit-scrollbar { display: none; }
.pastille { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 19px; border: 2px solid var(--marine); color: var(--marine); text-decoration: none; font-weight: 800; font-size: .92rem; }
.pastille.on { background: var(--marine); color: #fff; }
.pastille:hover { background: var(--marine); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--marine); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem; box-shadow: var(--ombre); }
.chip b { background: var(--soleil); border-radius: 999px; padding: 0 8px; font-size: .82rem; }
.chip:hover { background: var(--soleil-clair); color: var(--marine); }
.badge { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--sable); color: var(--marine); margin-right: 6px; vertical-align: 1px; }
.badge.jaune { background: var(--soleil-clair); color: #6A4A00; }
.badge.rouge { background: #FBE1DE; color: #9E2A1F; }

/* ---------------------------------------------------------------- blocs et cartes des lotos */
main > .in { padding-top: 6px; padding-bottom: 32px; }
.bloc { margin: 24px 0; }
.titre-bloc { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.titre-bloc a { font-weight: 800; white-space: nowrap; }
.mois { margin: 22px 0 10px; color: var(--doux); text-transform: uppercase; letter-spacing: .06em; font: 800 .85rem/1.2 Nunito, sans-serif; }
.liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.liste > * { min-width: 0; }
@media (min-width: 860px) { .liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.carte { display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; background: #fff; border-radius: 18px; box-shadow: var(--ombre); text-decoration: none; color: var(--marine); transition: transform .12s; }
.carte:hover { transform: translateY(-2px); color: var(--marine); }
.carte .txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.carte strong { font-size: 1.02rem; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte .quand { font-size: .85rem; font-weight: 700; }
.carte .ou { font-size: .85rem; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte .prix { flex: none; text-align: right; display: flex; flex-direction: column; }
.carte .prix b { font: 800 1.15rem/1 var(--titre); color: var(--rouge); }
.carte .prix i { font-style: normal; font-size: .7rem; color: var(--doux); }
.carte.annule { opacity: .6; }
.carte.annule strong { text-decoration: line-through; }
.boule { flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.boule i { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.boule b { font: 800 1.55rem/.9 var(--titre); }
.vide { color: var(--doux); background: #fff; border-radius: 18px; padding: 16px; margin: 0; box-shadow: var(--ombre); }
.note { color: var(--doux); font-size: .92rem; }
.info { background: var(--marine); color: #fff; border-radius: 22px; padding: 22px; }
.info h2 { color: var(--soleil); }

/* ---------------------------------------------------------------- départements */
.deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dep-l { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; text-decoration: none; color: var(--marine); box-shadow: var(--ombre); }
.dep-l b { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--marine); color: var(--soleil); display: flex; align-items: center; justify-content: center; font: 800 1rem/1 var(--titre); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.dep-l span { flex: 1; font-weight: 800; }
.dep-l i { font-style: normal; color: var(--rouge); font-size: .82rem; font-weight: 800; }
.dep-l.calme b { background: var(--sable); color: var(--doux); box-shadow: none; }
.dep-l:hover { background: var(--soleil-clair); color: var(--marine); }

/* ---------------------------------------------------------------- fiche d'un loto */
.fiche-haut { padding-bottom: 64px; }
.barre-fiche { display: flex; justify-content: space-between; margin: 4px 0 12px; }
.rond { width: 44px; height: 44px; border-radius: 14px; border: 0; background: #fff; color: var(--marine); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 rgba(8, 38, 91, .15); cursor: pointer; }
.rond.ok { background: var(--marine); color: #fff; }
.tete-fiche { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.tete-fiche h1 { font-size: clamp(1.7rem, 6vw, 2.5rem); margin: 0; }
.tete-fiche .sur { margin: 0 0 2px; }
.lieu-titre { margin: 6px 0 0; font-weight: 700; }
.grosse-boule { flex: none; width: 100px; height: 100px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .2), 0 5px 0 rgba(8, 38, 91, .15); }
.grosse-boule i { font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.grosse-boule b { font: 800 2.6rem/.85 var(--titre); }
.fiche { max-width: 720px; }
.carte-horaires { position: relative; margin: -44px 0 0; background: #fff; border-radius: 22px; box-shadow: var(--ombre-forte); padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.etiq { display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--doux); }
.gros { display: block; font: 800 1.7rem/1.1 var(--titre); }
.sous { font-size: .85rem; color: var(--doux); }
.carte-horaires .lieu { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding-top: 12px; border-top: 2px dashed var(--trait); }
.carte-horaires .lieu .ic { color: var(--rouge); margin-top: 2px; }
.carte-horaires .lieu b { display: block; font-weight: 800; }
.carte-horaires .lieu span { font-size: .92rem; color: var(--doux); }
.carte-prix { margin: 16px 0 0; padding: 16px; background: var(--marine); color: #fff; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.carte-prix .etiq { color: var(--soleil-clair); }
.carte-prix p { margin: 2px 0 0; font-size: .95rem; }
.carte-prix > b { font: 800 2.3rem/1 var(--titre); color: var(--soleil); flex: none; }
.lots-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lots-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border-radius: 16px; box-shadow: var(--ombre); font-weight: 700; }
.boule-mini { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 1rem/1 var(--titre); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.alerte { background: var(--soleil-clair); border-radius: 14px; padding: 12px 16px; margin: 16px 0 0; font-weight: 700; }
.alerte.rouge { background: #FBE1DE; color: #9E2A1F; }
.affiche { border-radius: 16px; box-shadow: var(--ombre); max-height: 640px; width: auto; }
.carte-infos { margin: 22px 0 0; padding: 14px 16px; background: #fff; border-radius: 18px; box-shadow: var(--ombre); font-size: .95rem; }
.carte-infos p { margin: 6px 0; }
.carte-infos strong { font-weight: 800; }
.carte-infos .source { padding-top: 10px; margin-top: 10px; border-top: 2px dashed var(--trait); color: var(--doux); }
.carte-infos .source strong { color: var(--marine); }
.carte-infos a { font-weight: 800; }
.barre-actions { display: flex; gap: 10px; max-width: 720px; margin: 0 auto 32px; padding: 0 16px; }
.barre-actions .btn { flex: 1; white-space: nowrap; font-size: 1rem; padding: 12px 10px; }
.barre-actions .btn.rouge { flex: 1.3; }
@media (max-width: 760px) {
  .barre-actions { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--trait); }
}

/* ---------------------------------------------------------------- textes (à propos, légal) */
.texte { max-width: 720px; background: #fff; border-radius: 22px; padding: 8px 20px 16px; box-shadow: var(--ombre); }
.texte h2 { margin-top: 1.2em; }
.texte li { margin: .35em 0; }

/* ---------------------------------------------------------------- pied de page */
.pied { background: var(--marine); color: #D6DEEE; padding: 32px 0 24px; font-size: .92rem; border-radius: 32px 32px 0 0; }
.pied .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.pied b { display: block; color: var(--soleil); margin-bottom: 8px; font-weight: 800; }
.pied a { display: block; color: #fff; text-decoration: none; padding: 4px 0; }
.pied a:hover { color: var(--soleil); }
.pied .indep { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 24px; padding-top: 16px; font-size: .85rem; }
.pied .indep strong { color: #fff; }
