/* Éléments communs aux thèmes : fenêtre du code, votes, recherche, formulaires. Les couleurs viennent des variables du thème. */
button { font: inherit; }
.btn { border: 0; cursor: pointer; width: 100%; }
a.btn { text-decoration: none; box-sizing: border-box; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller-contenu { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.aller-contenu:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--bleu, #2E5671); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.bandeau-apercu { background: #7A2E9E; color: #fff; text-align: center; padding: 8px 16px; font-weight: 700; font-size: 14px; }
.bandeau-apercu a { color: #fff; text-decoration: underline; }
.annonce a { color: inherit; display: block; }
.annonce.defile { overflow: hidden; white-space: nowrap; }
.annonce.defile span { display: inline-block; padding-left: 100%; animation: defile 18s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .annonce.defile span { animation: none; padding-left: 0; } }

.recherche { position: relative; }
.recherche input { min-width: 0; }
.recherche .loupe { display: none; width: 20px; height: 20px; }
/* Petit écran : une loupe à la place du mot, pour laisser la place au texte tapé */
@media (max-width: 760px) {
  .recherche button { padding-left: 14px; padding-right: 14px; display: grid; place-items: center; }
  .recherche button span { display: none; }
  .recherche .loupe { display: block; }
}
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: #15232C; border-radius: 12px; box-shadow: 0 14px 40px -12px rgba(0,0,0,.35); z-index: 40; overflow: hidden; text-align: left; }
.suggestions a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-weight: 700; }
.suggestions a:hover, .suggestions a:focus { background: #EEF3F6; }
.suggestions img { width: 34px; height: 34px; object-fit: contain; }

.ticket .logo a { display: contents; }
.valeur.long { font-size: 15px !important; line-height: 1.2; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
/* Un mot très long (ÉCHANTILLONS) : un peu plus petit pour tenir entier, sinon coupé avec un tiret, jamais une lettre seule à la ligne */
.valeur.long.mot-long { font-size: 12.5px !important; letter-spacing: -.01em; }
/* « Gratuit » et « À imprimer » (échantillons, bons de réduction sans montant) : même taille l'un et l'autre */
.valeur.mot { font-size: 21px !important; line-height: 1.1; text-transform: none; }
@media (max-width: 760px) { .valeur.mot { font-size: 18px !important; } }
.details { margin: 6px 0; font-size: 14px; }
.details summary { cursor: pointer; font-weight: 700; color: var(--bleu, #2E5671); }
.details > *:not(summary) { color: var(--encre, #17242D); }
.details img, .texte img { max-width: 100%; height: auto; border-radius: 8px; }
.details img.agrandissable, .texte img.agrandissable { cursor: zoom-in; }
/* Image agrandie : sa vraie taille, sans dépasser une taille raisonnable (1100 px de large, 85 % de la hauteur de l'écran) */
dialog.loupe { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; cursor: zoom-out; }
dialog.loupe::backdrop { background: rgba(10, 20, 28, .75); }
dialog.loupe img { display: block; width: auto; height: auto; max-width: min(92vw, 1100px); max-height: 85vh; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); background: #fff; }
dialog.loupe .fermer { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #15232C; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
/* Vidéos envoyées sur le site et lecteurs YouTube, Facebook… : centrés dans le texte */
.details video, .texte video { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 12px auto; }
.details .video, .texte .video { max-width: 640px; margin-left: auto; margin-right: auto; }
.conditions { margin-top: 8px; }
.conditions ul { margin: 4px 0; padding-left: 20px; }
.pouces button { background: none; border: 1px solid var(--trait, #D9D2C3); border-radius: 999px; padding: 1px 9px; cursor: pointer; color: inherit; font-size: 13px; }
.pouces button:hover { border-color: var(--bleu, #2E5671); }
.pouces button.fait { opacity: .6; cursor: default; }
/* Icônes Lucide (picto) : la taille du texte, la couleur du texte autour */
.picto { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.ok .picto { stroke-width: 3; margin-right: 3px; }
.etq.top .picto { fill: currentColor; width: 1em; height: 1em; margin-right: 4px; }
.aller-site .picto, [data-installee] .picto { margin-left: 4px; }
.pag-fleche { gap: 4px; }
/* Pouces : sur leur propre ligne sous « Vérifié », vert pour oui, rouge pour non */
.meta .pouces { flex-basis: 100%; }
.pouces button { display: inline-flex; align-items: center; gap: 5px; }
.pouces-boutons { position: relative; }
.pouces [data-sens="1"] .picto { color: var(--vert, #23804A); }
.pouces [data-sens="-1"] .picto { color: var(--rouge, #C0392B); }
.pouces [data-sens="1"]:not(.fait):hover { border-color: var(--vert, #23804A); background: color-mix(in srgb, var(--vert, #23804A) 9%, #fff); }
.pouces [data-sens="-1"]:not(.fait):hover { border-color: var(--rouge, #C0392B); background: color-mix(in srgb, var(--rouge, #C0392B) 9%, #fff); }
/* Le « Merci ! » sort du pouce cliqué, monte un peu et s'efface doucement */
.merci { position: absolute; top: -18px; font-weight: 800; font-size: 13px; line-height: 1; white-space: nowrap; pointer-events: none; animation: merci 1.6s ease-out forwards; }
.merci.oui { color: var(--vert, #23804A); }
.merci.non { color: var(--rouge, #C0392B); }
@keyframes merci { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -4px) scale(1.05); } 30% { transform: translate(-50%, -8px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -30px); } }
@media (prefers-reduced-motion: reduce) { @keyframes merci { 0%, 60% { opacity: 1; transform: translate(-50%, -8px); } 100% { opacity: 0; transform: translate(-50%, -8px); } } }
.pouces { align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 4px; }
/* Les deux pouces restent toujours ensemble, sur la même ligne */
.pouces-boutons { display: inline-flex; gap: 6px; white-space: nowrap; }
.pouces button { background: var(--carte, #fff); }

/* Tablette : la colonne de droite passe sous les offres, rien ne déborde */
@media (max-width: 1100px) {
  .grille { grid-template-columns: minmax(0, 1fr) !important; }
  .cote { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
  .cote .bloc + .bloc { margin-top: 0 !important; }
  .cote { align-items: start; }
  .cote > .sec { grid-column: 1 / -1; margin-bottom: 0; }
  .evts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; }
}
main, .grille > * { min-width: 0; }
.pouces .question { border: 0 !important; padding: 0 !important; background: none !important; font-size: 13px; color: var(--gris, #5F6E78); }
/* Étiquettes des offres en simple texte, comme sur l'ancien site (pas de pastilles en forme de bouton). Pour les deux thèmes. */
.etiquettes { gap: 4px 14px; }
.etq, .etq.top, .etq.excl, .etq.fin, .etq.ech, .etq.evt { background: none; border: 0; border-radius: 0; padding: 0; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; line-height: 1.6; color: var(--bleu, #2E5671); }
.etq.top { color: var(--violet, #6A3FB5); }
.etq.excl { color: var(--rouge, #D83C3C); }
.etq.fin { color: #A86400; }
.etq.ech { color: var(--vert, #23804A); }
.etq.evt { color: var(--decor, var(--bleu, #2E5671)); }
a.etq.evt { text-decoration: none; }
.ticket .bout a { color: inherit; }
.ticket h3 a { color: inherit; text-decoration: none; }
.ticket .bout a:hover { text-decoration: underline; text-underline-offset: 2px; }
a.etq.evt:hover { text-decoration: underline; text-underline-offset: 2px; }
.ticket.decor { box-shadow: 0 0 0 2px var(--decor), 0 10px 26px -18px var(--decor); }
.ticket.decor::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: repeating-linear-gradient(90deg, var(--decor) 0 14px, transparent 14px 22px); border-radius: inherit; pointer-events: none; }

.vide { padding: 24px 0; }
.vide h1 { margin-bottom: 8px; }
p.vide { background: var(--carte); border: 1px solid var(--trait); border-left: 5px solid var(--jaune); border-radius: 12px; padding: 14px 18px; margin: 14px 0 20px; font-size: 16px; font-weight: 600; color: var(--bleu-fonce); } /* phrase « pas d'offre » bien visible au-dessus des offres proposées */
.entete-page { margin: 18px 0 8px; }
.entete-page h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 6px; text-wrap: balance; }
.entete-page .compte, .fiche .compte { display: flex; gap: 10px; flex-wrap: wrap; }
.plus { text-align: center; margin: 18px 0; }
.plus .btn { display: inline-block; width: auto; padding-inline: 26px; }
/* Pagination : boutons ronds pour les numéros, la page en cours bien visible */
.pagination { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 34px 0; font-weight: 700; }
.pag-nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pag-num, .pag-fleche { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--carte, #fff); border: 1px solid var(--trait, #D2DDE7); color: var(--encre, #13222E); text-decoration: none; transition: border-color .15s, background .15s; }
a.pag-num:hover, a.pag-fleche:hover { border-color: var(--bleu, #2E5671); color: var(--bleu, #2E5671); }
.pag-num[aria-current] { background: var(--bleu, #2E5671); border-color: var(--bleu, #2E5671); color: #fff; }
span.pag-fleche { opacity: .4; }
.pag-trou { align-self: center; padding: 0 2px; color: var(--gris, #667785); }
@media (max-width: 760px) { .pag-fleche { flex: 1; } .pagination { gap: 8px; } .pag-nums { order: -1; width: 100%; } }
.valeur { overflow-wrap: anywhere; }
.lettres { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.lettres a { font-weight: 800; padding: 4px 9px; border-radius: 6px; background: var(--carte, #fff); }
.lettre { margin: 22px 0 10px; font-size: 22px; }
/* Logo du site : jamais écrasé ni penché, quel que soit le thème */
.entete img { width: auto !important; max-width: 100%; transform: none !important; object-fit: contain; }
/* Logo animé : le haut du dessin est réservé aux décors de fête (araignée, feux d'artifice), d'où la marge négative */
.entete .logo-anime { display: block; height: 140px; width: auto; max-width: 100%; margin: -16px 0 -6px; position: relative; top: -14px; }
@media (max-width: 760px) { .entete .logo-anime { height: 136px; margin: -14px 0 -6px; top: -4px; } }
/* Logo et recherche l'un sous l'autre sur petit écran : centrés */
@media (max-width: 760px) { .entete { justify-content: center; } }

/* Cases des boutiques, pareilles dans tous les thèmes : logo bien visible sur fond blanc, nom sur deux lignes au plus, jamais hors de la case */
body .boutiques { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
body .boutiques a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px 12px; background: var(--carte, #fff); border: 1px solid var(--trait, #E1E8EF); border-radius: 14px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.25; color: var(--encre, #13222E); min-width: 0; transition: transform .15s, box-shadow .15s, border-color .15s; }
body .boutiques a:hover { transform: translateY(-2px); border-color: var(--bleu, #2E5671); box-shadow: 0 10px 22px -14px rgba(19, 34, 46, .45); }
body .boutiques img { width: 100%; height: 120px; object-fit: contain; display: block; margin: 0; padding: 4px; background: #fff; border-radius: 10px; }
body .boutiques a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; max-width: 100%; }
body .cote .boutiques { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* 2 colonnes : les noms longs tiennent sans être coupés au milieu */
body .cote .boutiques a { padding: 8px 6px; font-size: 12px; gap: 6px; }
body .cote .boutiques img { height: 60px; padding: 4px; }
@media (max-width: 760px) {
  body .boutiques { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .boutiques img { height: 100px; }
  body .lettres { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  body .lettres a { flex: none; }
}

/* Page « Toutes les boutiques » : lettres toujours à portée, recherche dans la liste */
.lettres-barre { position: sticky; top: 0; z-index: 20; background: var(--papier, var(--fond, #F2F5F9)); padding: 10px 0; margin: 6px 0 4px; }
.lettres-barre input { width: 100%; max-width: 420px; font: inherit; padding: 11px 14px; border: 1.5px solid var(--trait, #D2DDE7); border-radius: 12px; background: var(--carte, #fff); color: var(--encre, #13222E); margin-bottom: 10px; }
.lettres-barre input:focus { outline: 0; border-color: var(--bleu, #2E5671); }
body .lettres { margin: 0; gap: 4px; }
body .lettres a { min-width: 34px; text-align: center; padding: 6px 8px; border: 1px solid var(--trait, #D2DDE7); color: var(--encre, #13222E); }
body .lettres a:hover { background: var(--bleu, #2E5671); color: #fff; border-color: var(--bleu, #2E5671); }
body .lettre { display: flex; align-items: center; gap: 12px; margin: 30px 0 12px; font-size: 26px; scroll-margin-top: 130px; }
body .lettre::after { content: ""; flex: 1; height: 2px; background: var(--trait, #D2DDE7); }
body .lettre small { font-size: 14px; font-weight: 600; color: var(--gris, #667785); }
body .boutiques a[hidden], .groupe-lettre[hidden] { display: none !important; }
/* Page des catégories : icône, couleur propre (--t, teinte), nombre d'offres et logos des boutiques les plus cliquées */
.cats-vives { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin: 8px 0 40px; }
.cat-v { --t: 200; display: flex; flex-direction: column; gap: 16px; background: var(--carte, #fff); border: 1px solid var(--trait, #DCE3E8); border-radius: 16px; padding: 18px; color: inherit; text-decoration: none; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-v::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: hsl(var(--t) 45% 55%); }
.cat-v:hover, .cat-v:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px -16px hsl(var(--t) 40% 30% / .45); border-color: hsl(var(--t) 40% 75%); }
.cat-v .haut { display: flex; gap: 14px; align-items: center; }
.cat-v .ico { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: hsl(var(--t) 60% 94%); color: hsl(var(--t) 45% 36%); }
.cat-v .ico svg { width: 28px; height: 28px; }
.cat-v b { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; }
.cat-v small { display: block; margin-top: 3px; color: var(--gris, #5F6E78); font-size: 13.5px; font-weight: 600; }
.cat-v small.nb { color: hsl(var(--t) 45% 34%); font-weight: 800; }
.cat-v .bas { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--trait, #DCE3E8); padding-top: 12px; min-height: 55px; }
.cat-v .logos { display: flex; }
.cat-v .logos img { width: 42px; height: 42px; object-fit: contain; background: #fff; border: 1px solid var(--trait, #DCE3E8); border-radius: 10px; padding: 3px; margin-right: -6px; box-shadow: 0 2px 6px -3px rgba(0,0,0,.25); }
.cat-v .fleche { font-weight: 800; color: hsl(var(--t) 45% 36%); font-size: 14px; white-space: nowrap; }
.entete-page p.sous { color: var(--gris, #5F6E78); margin: 6px 0 0; }
.bloc-boutiques { margin: 12px 0 18px; }
.cats a[aria-current] { outline: 2px solid var(--bleu, #2E5671); }
.texte { line-height: 1.65; }
.texte, .page-texte { max-width: 820px; }
.texte > h1 { margin: 18px 0 14px; } /* même espace sous le fil d'Ariane que les pages catégories (.entete-page) */
.texte.description > :first-child, .texte.description > div:first-child > :first-child { margin-top: 0; } .texte.description > :last-child, .texte.description > div:last-child > :last-child { margin-bottom: 0; }
.encart-appareil { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 1px solid var(--trait, #D2DDE7); border-radius: 14px; padding: 16px 18px; margin: 22px 0 28px; background: var(--carte, #fff); }
.encart-appareil .ico { font-size: 28px; color: var(--bleu, #2E5671); display: flex; }
.encart-appareil .picto + .picto, .encart-appareil.mobile .picto:first-child { display: none; }
.encart-appareil.mobile .picto + .picto { display: block; }
.encart-appareil p { flex: 1; min-width: 220px; margin: 0; font-size: 15px; }
.encart-appareil .bouton-etapes { border: 1.5px solid var(--trait, #C9D3DC); border-radius: 10px; padding: 9px 16px; font-weight: 700; text-decoration: none; color: inherit; }
.encart-appareil .btn { display: inline-block; width: auto; padding-inline: 22px; }
.encart-appareil b { color: var(--vert, #1E8A57); }
.page-texte img { max-width: 100%; height: auto; border-radius: 12px; }
.fiche-legale { list-style: none; padding: 0; margin: 12px 0; }
.fiche-legale li { margin: 4px 0; }
.page-texte h2[id] { scroll-margin-top: 90px; }
.tableau { overflow-x: auto; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 14px 0; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.video-clic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: #13222E; color: #E8EEF2; border-radius: 10px; }
.video-clic button { font: inherit; font-weight: 800; font-size: 17px; border: 0; border-radius: 999px; padding: 12px 24px; background: #fff; color: #13222E; cursor: pointer; }
.video-clic small { font-size: 13px; max-width: 460px; opacity: .85; }
.majeurs { display: flex; gap: 10px; align-items: center; grid-column: 1 / -1; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: #8A1C12; font-weight: 700; font-size: 14px; }
.majeurs span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #C8261A; color: #C8261A; font-weight: 900; background: #fff; }
.noter { display: flex; gap: 4px; }
.noter button { background: none; border: 0; font-size: 32px; color: #E1A400; cursor: pointer; padding: 0 2px; line-height: 1; display: inline-flex; }
.noter button.pleine .picto, .picto.pleine { fill: currentColor; }
.noter.fait button { cursor: default; }
/* Les étoiles grossissent sous la souris : on voit qu'on peut voter */
.noter:not(.fait) button { transition: transform .12s; }
.noter:not(.fait) button:hover, .noter:not(.fait) button:focus-visible { transform: scale(1.18); }
.noter-aide { font-size: 13px; color: var(--gris, #66727B); margin: 4px 0 0; }
.valider-note { margin-top: 10px; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--bleu, #2E5671); color: #fff; cursor: pointer; }
.alerte, .succes { padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.alerte { background: #FDECEA; color: #8A1C12; }
.succes { background: #E3F4EA; color: #145C38; }
.formulaire { display: grid; gap: 6px; max-width: 560px; }
.formulaire[hidden] { display: none; }
.formulaire label { font-weight: 700; margin-top: 8px; }
.formulaire input, .formulaire textarea { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--trait, #C9CED2); background: #fff; }
.formulaire .btn { margin-top: 12px; }
.piege { position: absolute; left: -9999px; }
/* Barre à faire glisser du formulaire de contact : le trait est dans l'image de la zone, le rond se déplace sur la même zone */
.curseur-titre { font-weight: 700; margin: 14px 0 2px; }
.curseur { position: relative; height: 44px; border-radius: 22px; background: var(--fond, #EEF1F4); border: 1px solid var(--trait, #C9CED2); touch-action: none; user-select: none; }
.curseur-zone { position: absolute; inset: 0 21px; background: center / 100% 100% no-repeat; }
.curseur-rond { position: absolute; top: 1px; left: 0; width: 40px; height: 40px; margin-left: -20px; padding: 0; border-radius: 50%; border: 3px solid var(--bleu, #2E5671); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); cursor: grab; }
.curseur-rond:active { cursor: grabbing; }
.curseur-malvoyant { justify-self: start; margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; color: var(--bleu, #2E5671); text-decoration: underline; cursor: pointer; }
.curseur-aide { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--fond, #EEF1F4); }
.curseur-etat { min-height: 1.4em; margin: 4px 0 0; font-size: .95em; }
.curseur-etat.ok { color: #1E7A3C; font-weight: 700; }
.curseur-etat.ko { color: var(--encre, #17242D); font-weight: 700; }
.formulaire .btn:disabled { opacity: .45; cursor: not-allowed; }
.en-ligne { font-size: 12px; opacity: .8; }

/* Fenêtre du code */
.fenetre { position: fixed; inset: 0; background: rgba(10, 20, 28, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.fenetre[hidden], .zone-code[hidden] { display: none; }
.fenetre .boite { background: #fff; color: #15232C; border-radius: 18px; max-width: 460px; width: 100%; padding: 22px; text-align: center; display: grid; gap: 12px; position: relative; max-height: 90vh; overflow: auto; }
.fenetre h2 { font: 800 19px/1.25 "Manrope", system-ui, sans-serif; margin: 0 26px; text-wrap: balance; }
.fenetre .fermer { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 26px; cursor: pointer; color: #5F6E78; }
.zone-code { position: relative; min-height: 70px; border-radius: 12px; overflow: hidden; border: 2px dashed #2E5671; background: #FBFAF1; display: grid; place-items: center; }
/* Le code s'écrit avec la police du site, en gras et un peu espacé : chaque caractère se lit sans hésiter */
.zone-code .le-code { font: 800 26px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: .08em; color: #1F3D52; padding: 8px; overflow-wrap: anywhere; }
/* Le code à la place du bouton : la case, son code et « Copier » */
.case-code { min-height: 46px; border: 2px solid var(--trait, #D2DDE7); border-radius: 12px; background: var(--carte, #fff); display: flex; align-items: center; overflow: hidden; }
.case-code .le-code { flex: 1 1 auto; min-width: 0; text-align: center; font: 800 19px/1.2 "Manrope", system-ui, sans-serif; color: #C62F2F; letter-spacing: .08em; padding: 6px 12px; overflow-wrap: anywhere; }
.case-code .copier-case { align-self: stretch; border: 0; background: var(--bleu, #2E5671); color: #fff; font: 800 13px "Manrope", system-ui, sans-serif; padding: 0 16px; cursor: pointer; transition: background .15s; }
.case-code .copier-case:hover, .case-code .copier-case:focus-visible { background: var(--bleu-fonce, #1F3D52); }
.case-code .copier-case.fait { background: #1E8A57; color: #fff; }
/* Plusieurs codes : la liste écrite dans l'éditeur, sous le bouton, sur toute la largeur de la carte */
.codes-carte { grid-column: 1 / -1; margin: 0 20px 16px; padding: 12px 16px; border: 2px dashed var(--trait, #D2DDE7); border-radius: 12px; background: var(--carte, #fff); }
.codes-carte > :first-child { margin-top: 0; } .codes-carte > :last-child { margin-bottom: 0; }
@media (max-width: 760px) { .codes-carte { margin: 0 12px 14px; } }
.codes-multiples { text-align: left; font-size: 14px; line-height: 1.6; width: 100%; padding: 10px; user-select: text; }
.codes-multiples:empty { display: none; }
/* Une carte par palier, le code en pastille (les couleurs saisies dans l'admin ne s'appliquent pas aux codes) */
.codes-multiples ul, .codes-multiples ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.codes-multiples li, .codes-multiples p { margin: 0; background: #fff; border: 1px solid #DCE3E8; border-radius: 10px; padding: 9px 12px; box-shadow: 0 2px 6px -4px rgba(19, 34, 46, .3); }
.codes-multiples p + p, .codes-multiples p + ul, .codes-multiples ul + p { margin-top: 8px; }
.codes-multiples strong, .codes-multiples b, .codes-multiples strong *, .codes-multiples b * { color: #1F3D52 !important; }
.codes-multiples [data-code-palier] { font: 800 14px "Manrope", system-ui, sans-serif; letter-spacing: .06em; background: #EEF3F6; border: 1.5px dashed #2E5671; border-radius: 7px; padding: 1px 8px; white-space: nowrap; }
.fenetre .aide { font-size: 13px; color: #5F6E78; }
.fenetre .aide button { border: 0; background: none; color: #2E5671; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.fiche .logo-site { display: block; flex: none; }
.aller-site { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 14px; color: var(--bleu, #2E5671); text-decoration: underline; text-underline-offset: 3px; }
.aller-site:hover { text-decoration-thickness: 2px; }
.copier-code { justify-self: center; border: 2px solid #2E5671; background: #fff; color: #2E5671; font: 800 15px "Manrope", system-ui, sans-serif; padding: 9px 20px; border-radius: 10px; cursor: pointer; }
.copier-code.petit { font-size: 12.5px; padding: 3px 10px; border-width: 1.5px; border-radius: 7px; vertical-align: 2px; }
.copier-code:hover { background: #EEF3F6; }
.copier-code.fait { background: #1E8A57; border-color: #1E8A57; color: #fff; }
.fenetre .aller { display: block; background: #2E5671; color: #fff; font-weight: 800; padding: 13px; border-radius: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #15232C; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 120; }
footer .cols { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
/* Nom de la boutique en lien dans la petite phrase sous l'offre */
.meta a[href*="openspe-"] { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Pied de page toujours en bas de l'écran, même sur une page presque vide */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
body > main { flex: 1 0 auto; width: 100%; }
/* Grand titre de l'accueil (réglage de l'admin) */
.titre-accueil { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; margin: 22px 0 4px; text-wrap: balance; }
/* Bandeau cookies : petit, en bas, ne cache pas la page. Les deux boutons ont la même taille et le même poids (règle de la CNIL). */
.bandeau-cookies { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 110; max-width: 760px; margin: 0 auto; background: var(--bleu-fonce, #1F3D52); color: #fff; border-radius: 14px; box-shadow: 0 10px 34px -8px rgba(0, 0, 0, .55); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "texte choix" "refus choix"; gap: 6px 18px; align-items: center; font-size: 14px; line-height: 1.45; }
/* Voile : une ombre immense autour du bandeau assombrit la page, et une couche transparente sur tout l'écran bloque les clics tant que le visiteur n'a pas choisi (choix de Rodolphe) */
.bandeau-cookies[data-voile] { box-shadow: 0 10px 34px -8px rgba(0, 0, 0, .55), 0 0 0 100vmax var(--voile); }
.bandeau-cookies[data-voile]::before { content: ""; position: fixed; inset: 0; z-index: -1; }
.bandeau-cookies[hidden] { display: none; }
/* Onglet « Cookies » collé au-dessus du bandeau, à gauche, comme un intercalaire de classeur */
.bandeau-cookies { border-top-left-radius: 0; }
.bandeau-cookies .onglet { position: absolute; left: 0; bottom: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 16px 6px 12px; border-radius: 12px 12px 0 0; background: inherit; font-weight: 800; font-size: 15px; letter-spacing: .02em; box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, .45); }
.bandeau-cookies p { margin: 0; grid-area: texte; }
.bandeau-cookies a { color: inherit; text-decoration: underline; }
.bandeau-cookies .choix { grid-area: choix; display: flex; }
.bandeau-cookies button { font: inherit; font-weight: 700; font-size: 16px; min-width: 128px; padding: 11px 22px; border-radius: 10px; border: 2px solid #fff; background: #fff; color: var(--bleu-fonce, #1F3D52); cursor: pointer; }
.bandeau-cookies button:hover, .bandeau-cookies button:focus-visible { background: #E8EEF3; border-color: #E8EEF3; }
.bandeau-cookies .refus, .bandeau-cookies .refus:hover, .bandeau-cookies .refus:focus-visible { grid-area: refus; justify-self: start; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #fff; font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
.bandeau-cookies:focus { outline: none; } /* le bandeau reçoit le focus en se rouvrant, sans cadre : ses boutons gardent le leur au clavier */
/* Sur téléphone : « Continuer sans accepter » en haut à droite, avant le texte (comme l'exemple de la CNIL) */
@media (max-width: 640px) { .bandeau-cookies { grid-template-columns: 1fr; grid-template-areas: "refus" "texte" "choix"; gap: 8px; } .bandeau-cookies .choix button { width: 100%; } .bandeau-cookies .refus, .bandeau-cookies .refus:hover, .bandeau-cookies .refus:focus-visible { justify-self: end; } }
/* Logos du bas de page (certification, label) : une rangée centrée, taille modeste */
.logos-pied { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; padding-top: 6px; padding-bottom: 22px; }
.logos-pied img { height: 90px; width: auto; display: block; }
