/*
 * Page de commande du site — ce qui s'ajoute à la feuille de la borne.
 *
 * Mêmes couleurs, mêmes composants : marine pour le texte, orange réservé aux
 * actions, vert aux confirmations. Seuls le choix du mode et de l'heure, et
 * le formulaire des coordonnées, sont propres au site.
 */

.logo-lien { display: inline-flex }

/* ---------- Mode, heure, ville ---------- */
.choix-site {
  margin: 16px 12px 0; padding: 14px; border-radius: 14px; background: #fff;
  border: 1px solid var(--voile); display: flex; flex-direction: column; gap: 12px;
}
/* Rien de choisi : le bloc appelle le geste, comme un champ à remplir. */
.choix-site.a-choisir { border-color: var(--braise); box-shadow: 0 0 0 3px rgba(217, 69, 31, .1) }
.choix-question { margin: 0; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--encre) }
.choix-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.choix-mode {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 11px 12px; border-radius: 11px; border: 1.5px solid var(--voile); background: var(--voile-2);
}
.choix-mode .nom { font-family: var(--display); font-weight: 600; font-size: 15.5px }
.choix-mode .detail { font-size: 12.5px; color: var(--encre-2) }
.choix-mode .etat { font-size: 12px; font-weight: 600; color: var(--basilic) }
.choix-mode .etat.ferme { color: var(--braise-fonce) }
/* Le mode choisi se voit de loin : plein, coché. */
.choix-mode[aria-pressed="true"] { border-color: var(--encre); background: var(--encre); color: #fff }
.choix-mode[aria-pressed="true"] .detail { color: rgba(255, 255, 255, .82) }
.choix-mode[aria-pressed="true"] .etat { color: #9fe3c0 }
.choix-mode[aria-pressed="true"] .etat.ferme { color: #ffb8a3 }
.choix-mode[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 9px; right: 11px; font-weight: 700; font-size: 15px;
}
.choix-champ { display: flex; flex-direction: column; gap: 6px }
.choix-lab, .site-lab { font-size: 13px; font-weight: 600; color: var(--encre-2) }
.choix-conditions { margin: -4px 0 0; font-size: 12.8px; color: var(--encre-2) }
.choix-aucun { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--braise-fonce) }

/* ---------- À emporter, rappelé en tête des coordonnées ---------- */
.retrait-rappel {
  margin: 14px 12px 10px; padding: 13px 15px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--encre); display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.retrait-rappel p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--encre) }

/* ---------- Alerte : un refus ou un changement à ne pas manquer ---------- */
.alerte-site {
  margin: 14px 12px 0; padding: 13px 15px; border-radius: 12px;
  background: rgba(217, 69, 31, .09); border: 1px solid rgba(217, 69, 31, .25);
}
.alerte-site p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--braise-fonce) }

/* ---------- Réponse du restaurant, en direct sur la confirmation (suivi.js) ---------- */
.suivi-site { margin: 20px 0 0; padding: 14px 16px; border-radius: 14px; text-align: left; background: var(--voile-2) }
.suivi-site p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--encre-2) }
.suivi-site .titre { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--encre) }
/* La pastille vit dans la première ligne ; sans ce retrait négatif, un titre
   qui passe à la ligne repart sous elle au lieu de s'aligner sur son texte.
   Dix-huit pixels : les neuf de la pastille et les neuf de sa marge. */
.suivi-site.ton-attente .titre { padding-left: 18px; text-indent: -18px }
.suivi-site.ton-attente .titre::before {
  content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--braise); margin-right: 9px; vertical-align: 1px; animation: pouls 1.4s ease-in-out infinite;
}
.suivi-site.ton-ok { background: rgba(27, 107, 76, .1) }
.suivi-site.ton-ok .titre { color: var(--basilic) }
.suivi-site.ton-arret { background: rgba(217, 69, 31, .09); border: 1px solid rgba(217, 69, 31, .25) }
.suivi-site.ton-arret .titre { color: var(--braise-fonce) }
@keyframes pouls { 50% { opacity: .25 } }

/* ---------- Panier ---------- */
.avis.attention { background: rgba(217, 69, 31, .09) }
.avis.attention p { color: var(--braise-fonce); font-weight: 600 }

/* ---------- Coordonnées ---------- */
.site-form { display: flex; flex-direction: column; gap: 14px; padding: 6px 18px 0 }
.site-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.site-champ { display: flex; flex-direction: column; gap: 6px }
.site-champ.a-remplir .champ { border-color: var(--braise); background: #fff }
.site-erreur { font-size: 12.5px; font-weight: 600; color: var(--braise-fonce) }
.site-ville { margin: 0; display: flex; flex-direction: column; gap: 6px }
.site-ville span:last-child { padding: 13px 0; font-size: 16px; font-weight: 600 }
.site-paiement { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px }
.site-paiement legend { margin-bottom: 8px; padding: 0 }
.site-radio {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px;
  border: 1.5px solid var(--voile); background: var(--voile-2); font-size: 15px; font-weight: 500;
}
.site-radio input { width: 18px; height: 18px; accent-color: var(--encre); margin: 0 }
.site-radio:has(input:checked) { border-color: var(--encre); background: #fff }
/* Les cases « recevoir les offres » : un texte plus long que les choix de paiement. */
.site-case { align-items: flex-start; line-height: 1.35 }
.site-case input { flex: none; margin-top: 1px }
.site-anniversaire[hidden] { display: none }
textarea.champ { resize: vertical; min-height: 64px }
.site-memoire { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--encre-3) }
.lien { text-decoration: underline; color: var(--encre-2); font-size: inherit; font-weight: 600 }
/* Les pages légales, au bas de l'accueil. */
.pied-legal { margin: 22px 18px 0; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--encre-3) }
.pied-legal .lien { color: inherit; font-weight: 500 }

/* ---------- Promotions ---------- */
.promos-du-moment { margin: 12px 12px 0; display: flex; flex-direction: column; gap: 6px }
.promo-du-moment {
  margin: 0; padding: 11px 14px; border-radius: 12px; background: rgba(27, 107, 76, .08);
  font-size: 14.5px; font-weight: 600; color: var(--basilic); display: flex; align-items: center; gap: 10px;
}
.promo-du-moment .etiquette {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: var(--basilic); color: #fff;
}
.tl.remise { color: var(--basilic); font-weight: 600 }
.avis.promo-a-portee { background: rgba(27, 107, 76, .08) }
.avis.promo-a-portee p, .avis.promo-a-portee b { color: var(--basilic) }
/* Le code promo, sous le total : un lien, un champ, ou le code et ce qu'il donne. */
.code-promo { margin: 12px 18px 0; display: flex; flex-direction: column; gap: 8px }
.code-promo .lien { align-self: flex-start }
.code-ligne { display: flex; gap: 8px }
.code-ligne .champ { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em }
.code-ligne .cta { width: auto; min-height: 48px; padding: 0 18px; font-size: 15px }
.code-titre { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 14.5px; font-weight: 600 }
.code-nom {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px;
  background: var(--encre); color: #fff;
}
.code-etat { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--encre-2) }
.code-etat.ok { color: var(--basilic); font-weight: 600 }

/* ---------- Adresses de la base nationale ---------- */
/* La liste se pose par-dessus les champs suivants : rien ne bouge sous le doigt quand elle apparaît. */
.champ-adresse { position: relative }
.suggestions-adresse {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 4;
  border: 1px solid var(--voile); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 28px -12px rgba(16, 22, 58, .45);
}
/* Dit aux lecteurs d'écran, invisible à l'œil. */
.annonce { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0 }
.suggestions-adresse[hidden] { display: none }
.suggestion-adresse {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 11px 14px; background: none; border-bottom: 1px solid var(--voile);
}
.suggestion-adresse:last-child { border-bottom: 0 }
.suggestion-adresse:hover, .suggestion-adresse:focus-visible { background: var(--voile-2) }
.suggestion-adresse .rue { font-size: 15px; font-weight: 600; color: var(--encre) }
.suggestion-adresse .ville { font-size: 12.8px; color: var(--encre-3) }
.adresse-choix { display: flex; flex-direction: column; gap: 8px; margin-top: 10px }
.adresse-choix .cta { min-height: 46px; font-size: 15px }

/* ---------- Compte ---------- */
.accroche .compte-ligne, .entete .compte-ligne { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--encre-2) }
.compte-ligne b { color: var(--encre); font-weight: 600; overflow-wrap: anywhere }
.champ.code {
  font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .32em;
  text-align: center; font-variant-numeric: tabular-nums;
}
.champ[readonly] { color: var(--encre-2); background: var(--voile) }
.proposition-compte {
  margin: 0 18px 24px; padding: 18px; border-radius: 16px; background: var(--voile-2);
  display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.proposition-compte .titre { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--encre) }
.proposition-compte p { margin: 0; font-size: 13.8px; line-height: 1.5; color: var(--encre-2) }
.proposition-compte .cta { margin-top: 6px }
.proposition-compte.faite { background: rgba(27, 107, 76, .08) }
.proposition-compte.faite .titre { color: var(--basilic) }

/* ---------- Mon compte ---------- */
.compte-bloc { padding: 18px 18px 4px; display: flex; flex-direction: column; gap: 10px }
.compte-bloc + .compte-bloc { border-top: 1px solid var(--voile); margin-top: 14px }
.compte-bloc h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.01em }
.compte-vide { margin: 0; font-size: 13.8px; line-height: 1.5; color: var(--encre-3) }
.compte-form { padding: 0 }
.compte-form .cta { align-self: flex-start; width: auto; padding: 0 18px; border: 1.5px solid var(--voile) }
.commande-passee { padding: 13px 14px; border-radius: 13px; background: #fff; border: 1px solid var(--voile); display: flex; flex-direction: column; gap: 6px }
.commande-haut { display: flex; justify-content: space-between; gap: 10px; align-items: baseline }
.commande-ref { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em }
.commande-date { font-size: 12.5px; color: var(--encre-3); text-align: right }
.commande-statut { margin: 0; font-size: 13px; font-weight: 600 }
.commande-statut.ton-attente { color: var(--encre-2) }
.commande-statut.ton-ok { color: var(--basilic) }
.commande-statut.ton-arret { color: var(--braise-fonce) }
.commande-articles { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--encre-2) }
.commande-bas {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: center;
  font-size: 13px; color: var(--encre-2);
}
.commande-bas .lien, .adresse-gardee .lien { white-space: nowrap }
.adresse-gardee { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--voile) }
.adresse-gardee p { margin: 0; font-size: 14px; line-height: 1.45 }
.compte-danger { margin-top: 10px; display: flex; flex-direction: column; gap: 8px }
.compte-danger p { margin: 0; font-size: 12.8px; line-height: 1.5; color: var(--encre-3) }
.cta.danger { color: var(--braise-fonce); border: 1.5px solid rgba(217, 69, 31, .3) }
.compte-suivi { margin: -8px 22px 24px; font-size: 13.8px; color: var(--encre-2); text-align: center }

/* ---------- Confirmation ---------- */
.numero .n.ref { font-size: 34px; letter-spacing: .06em }
/* Un numéro de téléphone ne se coupe pas en fin de ligne. */
.insecable { white-space: nowrap }

@media (max-width: 360px) {
  .site-grille { grid-template-columns: 1fr }
}

/*
 * « Ma carte » et « Mes points » — la carte fidélité, dans la charte du site
 * vitrine (DESIGN.md de special-thai-landing, « L'affiche collée au mur ») :
 * aplats de la palette, titres Rammetto One en capitales avec extrusion,
 * Rubik pour le texte, objets posés de travers, boutons épais qui
 * s'écrasent. Ni blanc, ni gris, ni dégradé : le clair est le crème, toutes
 * les ombres sont aubergine.
 *
 * Tout est préfixé « fid- » et posé sous .fid : le reste de la page de
 * commande garde le style de la borne. Aucun style en ligne : la CSP n'accepte
 * que les feuilles du site (les largeurs des barres passent par <progress>).
 */

/* Les deux écrans de la carte tiennent toute la hauteur : pas de bande claire sous le pied. */
#e-carte.ecran.on, #e-points.ecran.on { display: flex; flex-direction: column; min-height: 100% }

.fid {
  --fid-jaune: #FABF0D;
  --fid-jaune-fonce: #EFA700;
  --fid-petrole: #00504F;
  --fid-petrole-fonce: #003E3D;
  --fid-sauge: #A7D489;
  --fid-sauge-fonce: #8FC26F;
  --fid-lagon: #42B8B2;
  --fid-lagon-fonce: #2A9C96;
  --fid-prune: #713A5B;
  --fid-prune-fonce: #5C2D49;
  --fid-aubergine: #441B35;
  --fid-nuit: #1F0818;
  --fid-creme: #FFF4D6;
  --fid-titre: "Rammetto One", Rubik, sans-serif;
  --fid-texte: Rubik, system-ui, sans-serif;
  /* L'encre de la surface ; une carte crème réimpose la sienne. */
  --fid-encre: var(--fid-aubergine);
  --fid-encre-douce: var(--fid-prune-fonce);
  --fid-ext: var(--fid-lagon);
  --fid-focus: var(--fid-prune);
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--fid-petrole);
  color: var(--fid-encre);
  font-family: var(--fid-texte);
  font-size: 16px;
  line-height: 1.55;
}
.fid *, .fid *::before, .fid *::after { box-sizing: border-box }
.fid p { margin: 0 }

/* ---------- Le zigzag double, sous la barre ---------- */
.fid-zigzag { display: block; width: 100%; height: 22px; background: var(--fid-petrole); flex: 0 0 auto }
.fid-zigzag polyline { fill: none; stroke-width: 3.5; stroke-linejoin: miter }
.fid-zig-jaune { stroke: var(--fid-jaune) }
.fid-zig-lagon { stroke: var(--fid-lagon) }

/* ---------- Surfaces : chacune fixe son fond et ses encres ---------- */
.fid-surface {
  position: relative; overflow: hidden;
  padding: 22px 16px 40px;
  display: flex; flex-direction: column; gap: 18px;
}
.fid-surface > * { position: relative }
.fid-plein { flex: 1 1 auto }
.fid-jaune { background: var(--fid-jaune); --fid-etoile: var(--fid-jaune-fonce); --fid-etoile-fine: var(--fid-jaune) }
.fid-lagon { background: var(--fid-lagon); --fid-ext: var(--fid-jaune); --fid-etoile: var(--fid-lagon-fonce); --fid-etoile-fine: var(--fid-lagon); --fid-encre-douce: var(--fid-aubergine) }
.fid-sauge { background: var(--fid-sauge); --fid-ext: var(--fid-creme); --fid-etoile: var(--fid-sauge-fonce); --fid-etoile-fine: var(--fid-sauge); --fid-encre-douce: var(--fid-aubergine); flex: 1 1 auto }
.fid-petrole {
  background: var(--fid-petrole); color: var(--fid-creme);
  --fid-encre: var(--fid-creme); --fid-encre-douce: var(--fid-creme); --fid-focus: var(--fid-jaune);
  --fid-etoile: var(--fid-petrole-fonce); --fid-etoile-fine: var(--fid-petrole);
  padding-top: 40px; padding-bottom: 44px; gap: 22px; flex: 1 1 auto;
}

/* ---------- La grande étoile, ton sur ton, rognée par le bord ---------- */
.fid-surface > .fid-etoile { position: absolute; width: 280px; height: 280px; pointer-events: none }
.fid-etoile polygon { fill: none; stroke-linejoin: round }
.fid-etoile-large { stroke: var(--fid-etoile); stroke-width: 14 }
.fid-etoile-fine { stroke: var(--fid-etoile-fine); stroke-width: 5 }
.fid-etoile-haut-droite { right: -96px; top: -40px }
.fid-etoile-milieu-gauche { left: -120px; top: 360px; width: 300px; height: 300px }
.fid-etoile-bas-gauche { left: -110px; bottom: -90px }
.fid-etoile-bas-droite { right: -150px; bottom: -60px; width: 320px; height: 320px }

/* ---------- Titres d'affiche ---------- */
.fid-tete { display: flex; flex-direction: column; gap: 6px }
.fid-titre {
  margin: 0; font-family: var(--fid-titre); font-weight: 400; font-size: 38px;
  line-height: 1.12; letter-spacing: .005em; text-transform: uppercase; color: var(--fid-encre);
  text-shadow:
    .015em .015em 0 var(--fid-ext), .03em .03em 0 var(--fid-ext), .045em .045em 0 var(--fid-ext),
    .06em .06em 0 var(--fid-ext), .075em .075em 0 var(--fid-ext);
  overflow-wrap: anywhere;
}
.fid-titre.fid-grand { font-size: 44px; line-height: 1.1 }
.fid-titre.fid-moyen { font-size: 32px; line-height: 1.1 }
.fid-ext-jaune { --fid-ext: var(--fid-jaune) }
.fid-ext-creme { --fid-ext: var(--fid-creme) }
.fid-chapeau { font-size: 16px; line-height: 1.55; color: var(--fid-encre-douce) }
.fid-texte { font-size: 15px; line-height: 1.5; color: var(--fid-encre-douce) }

/* ---------- Objets posés de travers ---------- */
.fid-penche-gauche { transform: rotate(-1deg) }
.fid-penche-droite { transform: rotate(1deg) }
.fid-penche-leger { transform: rotate(-.6deg) }

/* ---------- La carte crème ---------- */
.fid-carte {
  --fid-encre: var(--fid-aubergine); --fid-encre-douce: var(--fid-prune-fonce); --fid-focus: var(--fid-prune);
  background: var(--fid-creme); color: var(--fid-aubergine);
  border: 3px solid var(--fid-aubergine); border-radius: 26px; padding: 20px;
  box-shadow: 0 16px 26px -18px rgba(31, 8, 24, .8);
  display: flex; flex-direction: column; gap: 16px;
}
.fid-carte-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.fid-pastille {
  padding: 6px 12px 5px; border-radius: 999px; background: var(--fid-prune); color: var(--fid-creme);
  font-family: var(--fid-titre); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.fid-nom { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; text-align: right }

.fid-solde { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px }
.fid-points {
  font-family: var(--fid-titre); font-size: 72px; line-height: 1.1; color: var(--fid-aubergine);
  text-shadow: .02em .02em 0 var(--fid-lagon), .04em .04em 0 var(--fid-lagon), .06em .06em 0 var(--fid-lagon);
  font-variant-numeric: tabular-nums;
}
.fid-points.fid-moyen { font-size: 44px }
.fid-unite { font-family: var(--fid-titre); font-size: 20px; line-height: 1.1; text-transform: uppercase }
.fid-indisponible {
  padding: 14px 16px; border-radius: 18px; background: var(--fid-jaune); border: 2.5px solid var(--fid-aubergine);
  font-weight: 600; font-size: 15px; line-height: 1.45;
}

/* ---------- La barre vers le prochain lot ---------- */
.fid-progression, .fid-encart { display: flex; flex-direction: column; gap: 8px }
.fid-progression-haut {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.fid-progression-haut span:last-child { white-space: nowrap }
.fid-barre {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px;
  border: 2.5px solid var(--fid-aubergine); border-radius: 999px; background: var(--fid-creme);
  color: var(--fid-prune); overflow: hidden;
}
.fid-barre::-webkit-progress-bar { background: var(--fid-creme); border-radius: 999px }
.fid-barre::-webkit-progress-value { background: var(--fid-prune); border-radius: 999px }
.fid-barre::-moz-progress-bar { background: var(--fid-prune); border-radius: 999px }
.fid-barre-lagon { height: 18px; color: var(--fid-lagon) }
.fid-barre-lagon::-webkit-progress-value { background: var(--fid-lagon) }
.fid-barre-lagon::-moz-progress-bar { background: var(--fid-lagon) }
.fid-phrase { font-size: 15px; line-height: 1.45 }
.fid-phrase strong { font-weight: 700 }

.fid-pointilles { margin: 2px -20px; border-top: 2.5px dashed var(--fid-aubergine) }

/* ---------- Le QR et le code ---------- */
.fid-code { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center }
.fid-cadre-qr { padding: 14px; border: 2.5px solid var(--fid-aubergine); border-radius: 18px; background: var(--fid-creme) }
.fid-cadre-qr.fid-petit { padding: 10px; border-radius: 16px; flex: 0 0 auto }
.fid-qr { display: block; width: 168px; height: 168px }
.fid-petit .fid-qr { width: 96px; height: 96px }
.fid-qr rect { fill: var(--fid-creme) }
.fid-qr path { fill: none; stroke: var(--fid-aubergine); stroke-width: 1 }
.fid-etiquette { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase }
.fid-code-chiffres {
  font-family: var(--fid-titre); font-size: 40px; line-height: 1.1; letter-spacing: .1em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fid-code-chiffres.fid-moyen { font-size: 30px; letter-spacing: .08em }
.fid-consigne { font-size: 14px; line-height: 1.5; color: var(--fid-prune-fonce) }
.fid-code-court { display: flex; align-items: center; gap: 16px }
.fid-code-texte { display: flex; flex-direction: column; gap: 6px; min-width: 0 }

/* ---------- Un lot vous attend ---------- */
.fid-lot-pret {
  background: var(--fid-prune); color: var(--fid-creme); border-radius: 18px; padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.fid-lot-haut {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.fid-disponible { display: inline-flex; align-items: center; gap: 6px }
.fid-puce { width: 14px; height: 14px; flex: 0 0 auto }
.fid-puce polygon, .fid-puce-grande polygon { fill: var(--fid-jaune) }
.fid-lot-nom { font-family: var(--fid-titre); font-size: 26px; line-height: 1.15; text-transform: uppercase; color: var(--fid-jaune); overflow-wrap: anywhere }
.fid-lot-consigne { font-size: 14.5px; line-height: 1.5 }
.fid-solde-ligne { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px }
.fid-solde-ligne .fid-unite { font-size: 16px }
.fid-apres { font-size: 13.5px; color: var(--fid-prune-fonce) }
.fid-encart {
  background: var(--fid-creme); border: 3px solid var(--fid-aubergine); border-radius: 18px; padding: 16px;
  --fid-encre: var(--fid-aubergine);
}

/* ---------- Boutons épais, qui s'écrasent ---------- */
.fid-actions { display: flex; gap: 12px; margin-top: 6px }
.fid-actions .fid-bouton { flex: 1 1 0 }
.fid-bouton {
  display: inline-block; text-align: center; cursor: pointer;
  padding: 13px 10px 12px; min-height: 48px; border-radius: 14px;
  border: 2.5px solid var(--fid-nuit); background: var(--fid-aubergine); color: var(--fid-jaune);
  box-shadow: 0 5px 0 var(--fid-nuit);
  font-family: var(--fid-titre); font-size: 14px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
  transition: transform 160ms cubic-bezier(.16, 1, .3, 1), box-shadow 160ms cubic-bezier(.16, 1, .3, 1);
}
.fid-bouton.fid-secondaire { border-color: var(--fid-aubergine); background: var(--fid-creme); color: var(--fid-aubergine); box-shadow: 0 5px 0 var(--fid-aubergine) }
.fid-bouton:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--fid-nuit) }
.fid-bouton.fid-secondaire:hover { box-shadow: 0 7px 0 var(--fid-aubergine) }
.fid-bouton:active { transform: translateY(5px); box-shadow: none; background: var(--fid-jaune); color: var(--fid-aubergine); transition-duration: 40ms }
.fid-bouton.fid-secondaire:active { background: var(--fid-aubergine); color: var(--fid-creme) }
.fid-bouton:disabled { opacity: .55; transform: none; cursor: default }
.fid :focus-visible { outline: 3px solid var(--fid-focus); outline-offset: 3px }

/* ---------- Les lots, en tickets ---------- */
.fid-tickets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px }
.fid-ticket {
  background: var(--fid-jaune); color: var(--fid-aubergine);
  border-radius: 18px 18px 0 0; padding: 18px 18px 26px;
  display: flex; align-items: center; gap: 16px;
  /* Le bas dentelé des tickets de l'affiche : des dents de 18px. */
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  transform: rotate(-1.2deg);
}
.fid-tickets .fid-ticket:nth-child(3n + 2) { background: var(--fid-lagon); transform: rotate(1deg) }
.fid-tickets .fid-ticket:nth-child(3n) { background: var(--fid-prune); color: var(--fid-creme); transform: rotate(-.6deg) }
.fid-ticket-prix { flex: 0 0 auto; min-width: 74px; font-family: var(--fid-titre); font-size: 22px; line-height: 1.1 }
.fid-ticket-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.fid-ticket-nom { font-weight: 600; font-size: 17px; overflow-wrap: anywhere }
.fid-ticket-etat { font-size: 14px }
.fid-ticket-seul { flex-direction: column; align-items: stretch; gap: 6px; background: var(--fid-lagon); padding: 16px 18px 26px; transform: rotate(.8deg) }
.fid-ticket-titre { font-family: var(--fid-titre); font-size: 15px; text-transform: uppercase }
.fid-ticket-ligne { font-size: 14.5px; line-height: 1.5 }

/* ---------- Historique ---------- */
.fid-retour {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 2.5px solid var(--fid-aubergine);
  background: var(--fid-creme); color: var(--fid-aubergine); font-family: var(--fid-texte); font-weight: 600; font-size: 14px;
}
.fid-retour svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round }
.fid-solde-sombre {
  background: var(--fid-aubergine); color: var(--fid-creme); border-radius: 22px; padding: 16px 20px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.fid-solde-sombre span:first-child { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase }
.fid-solde-valeur { font-family: var(--fid-titre); font-size: 30px; line-height: 1.1; color: var(--fid-jaune); white-space: nowrap }
.fid-liste { padding: 4px 18px; gap: 0 }
.fid-passages { list-style: none; margin: 0; padding: 0 }
.fid-passage {
  padding: 14px 0; border-bottom: 2px dashed rgba(68, 27, 53, .35);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.fid-passage:last-child { border-bottom: 0 }
.fid-passage-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.fid-passage-date { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fid-prune-fonce) }
.fid-passage-libelle { font-size: 16px; font-weight: 600 }
.fid-passage-detail { font-size: 13.5px; color: var(--fid-prune-fonce) }
.fid-passage-points { flex: 0 0 auto; font-family: var(--fid-titre); font-size: 20px; white-space: nowrap }
.fid-passage-points.fid-depense { color: var(--fid-prune) }
.fid-vide { padding: 14px 0; font-size: 15px; line-height: 1.5 }

/* ---------- Adhésion ---------- */
.fid-stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px }
.fid-sticker {
  padding: 8px 14px 7px; border-radius: 999px; border: 2.5px solid var(--fid-aubergine); background: var(--fid-creme);
  font-family: var(--fid-titre); font-size: 12px; text-transform: uppercase; transform: rotate(-2deg);
  box-shadow: 0 10px 18px -8px rgba(31, 8, 24, .55);
}
.fid-sticker-jaune { background: var(--fid-jaune); transform: rotate(1.5deg) }
.fid-sticker:last-child { transform: rotate(-1deg) }
.fid-formulaire { margin: 4px 0 0; padding: 22px 20px }
.fid-champ { display: flex; flex-direction: column; gap: 6px }
.fid-champ label { font-size: 14px; font-weight: 600 }
.fid-saisie {
  font: inherit; font-size: 16px; padding: 13px 14px; min-height: 48px; width: 100%;
  border: 2.5px solid var(--fid-aubergine); border-radius: 14px; background: var(--fid-creme); color: var(--fid-aubergine);
}
.fid-saisie[aria-invalid="true"] { border-color: var(--fid-prune); box-shadow: 0 0 0 2px var(--fid-prune) }
.fid-aide { font-size: 13.5px; line-height: 1.45; color: var(--fid-prune-fonce) }
.fid-case { display: flex; align-items: flex-start; gap: 10px }
.fid-case input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--fid-aubergine); flex: 0 0 auto }
.fid-case label { font-size: 15px; line-height: 1.45 }
.fid-formulaire .fid-bouton { margin-top: 4px; font-size: 15px; padding: 14px 10px 13px }
.fid-alerte { padding: 13px 15px; border-radius: 18px; background: var(--fid-aubergine); color: var(--fid-creme); font-weight: 600; font-size: 14.5px; line-height: 1.5 }
.fid-encart-sombre {
  background: var(--fid-aubergine); color: var(--fid-creme); border-radius: 18px; padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5;
}
.fid-puce-grande { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px }
.fid-bas { font-size: 14px }

/* ---------- Liens et pied ---------- */
.fid-lien {
  font: inherit; font-weight: 600; color: var(--fid-encre); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--fid-prune); text-underline-offset: .22em;
}
.fid-pied {
  margin-top: auto; background: var(--fid-aubergine); padding: 22px 16px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px;
  --fid-encre: var(--fid-creme); --fid-focus: var(--fid-jaune);
}
.fid-pied .fid-lien { color: var(--fid-creme); text-decoration-color: var(--fid-creme) }

@media (prefers-reduced-motion: reduce) {
  .fid-bouton { transition: none }
  .fid-bouton:hover { transform: none }
}

@media (max-width: 360px) {
  .fid-titre.fid-grand { font-size: 36px }
  .fid-titre { font-size: 32px }
  .fid-points { font-size: 60px }
  .fid-code-chiffres { font-size: 34px }
  .fid-actions { flex-direction: column }
}

/* ---------- La carte sur le téléphone (« Ma carte », connecté) ---------- */
.fid [hidden] { display: none !important }
.fid-telephone { flex-direction: column; gap: 10px; margin-top: 6px }
.fid-telephone-titre { font-family: var(--fid-titre); font-size: 15px; line-height: 1.2; text-transform: uppercase; color: var(--fid-jaune) }
.fid-telephone .fid-bouton { width: 100%; margin-top: 4px }
.fid-bouton.fid-sur-fonce { border-color: var(--fid-jaune); background: var(--fid-jaune); color: var(--fid-aubergine); box-shadow: 0 5px 0 var(--fid-jaune-fonce) }
.fid-bouton.fid-sur-fonce:hover { box-shadow: 0 7px 0 var(--fid-jaune-fonce) }
.fid-bouton.fid-sur-fonce:active { background: var(--fid-aubergine); color: var(--fid-jaune) }
.fid-aide-claire { font-size: 13.5px; line-height: 1.45; color: var(--fid-creme) }
.fid-telephone-choix { display: flex; flex-wrap: wrap; gap: 8px 20px }
.fid-telephone .fid-lien { color: var(--fid-creme); text-decoration-color: var(--fid-jaune) }
.fid-telephone { --fid-focus: var(--fid-jaune) }

/* ---------- La carte ouverte par son lien, seule dans sa page ---------- */
html.fid-page, .fid-page-corps { margin: 0; min-height: 100%; background: var(--fid-page-fond, #00504F) }
.fid-page-corps { display: flex; flex-direction: column; min-height: 100dvh; -webkit-font-smoothing: antialiased }
.fid-autonome { flex: 1 0 auto; max-width: 560px; width: 100%; margin: 0 auto }
.fid-barre-haut {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--fid-petrole);
}
.fid-marque { display: inline-flex; align-items: center; gap: 10px; color: var(--fid-creme); text-decoration: none; font-family: var(--fid-titre); font-size: 15px; text-transform: uppercase }
.fid-marque-icone { display: block; width: 36px; height: 36px; border-radius: 10px }
.fid-commander {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--fid-jaune); color: var(--fid-aubergine); font-weight: 600; font-size: 14px; text-decoration: none;
}
.fid-commander .fid-puce polygon { fill: var(--fid-prune) }
.fid-mise-a-jour { font-size: 13px; line-height: 1.4; text-align: center; color: var(--fid-prune-fonce) }
.fid-hors-connexion {
  padding: 12px 14px; border-radius: 18px; background: var(--fid-aubergine); color: var(--fid-creme);
  font-weight: 600; font-size: 14.5px; line-height: 1.45;
}
.fid-installation { display: flex; flex-direction: column; gap: 10px; align-items: stretch }
.fid-installation .fid-bouton { width: 100% }
.fid-note {
  padding: 12px 14px; border-radius: 18px; border: 2.5px solid var(--fid-aubergine); background: var(--fid-creme);
  font-size: 14.5px; line-height: 1.45;
}
a.fid-bouton { text-decoration: none }
