/* ============================================================
   STYLE DU SITE CLIENT CEO27
   ============================================================
   Couleurs principales : orange CEO (#D9622B), vert des jours
   disponibles, dégradé vert → crème → rose du bandeau.
   Le site s'adapte au téléphone (voir la fin du fichier).
   ============================================================ */

/* ---------- Couleurs et réglages généraux ---------- */
:root {
  --orange: #D9622B;
  --orange-fonce: #b94e1d;
  --orange-clair: #fbd9b4;
  --creme: #fffdf3;
  --vert: #43a047;
  --texte: #2b2b2b;
  --gris: #777;
  --ombre: 0 4px 16px rgba(0, 0, 0, .08);
  --rayon: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: var(--texte); background: var(--creme); font-size: 15px; }
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
[hidden] { display: none !important; }

/* ---------- Bandeau du haut ---------- */
.entete { background: linear-gradient(90deg, #c8f7b5, #fffbe9 55%, #f3a0a0); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.entete-ligne { max-width: 1400px; margin: auto; display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.logo img { height: 46px; display: block; }
/* Zone invisible posée sur la part de pizza du logo (voir app.js : 4 clics = admin) */
.logo { position: relative; }
.logo-part { position: absolute; left: 0; top: 0; width: 36%; height: 100%; cursor: default; }
.recherche { flex: 1; display: flex; gap: 8px; max-width: 560px; }
.recherche input { flex: 1; border: 1px solid #ccc; border-radius: 30px; padding: 11px 20px; background: #fff; }
.recherche button, .pilule { background: var(--orange); color: #fff; border: none; border-radius: 30px; padding: 11px 22px; font-weight: 600; font-size: 14px; }
.recherche button:hover, .pilule:hover { background: var(--orange-fonce); }
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.code-ok { background: #fff; border: 1.5px dashed #4a9a3a; color: #2e6b22; border-radius: 30px; padding: 8px 14px; font-size: 13px; }
.code-ok u { color: var(--orange); margin-left: 4px; }
.icone-panier { position: relative; color: var(--texte); display: flex; }
.compteur { position: absolute; top: -8px; right: -10px; background: var(--orange); color: #fff; border-radius: 20px; font-size: 11px; min-width: 19px; height: 19px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.pastilles { display: none; }

/* ---------- Mise en page : menu à gauche + contenu ---------- */
.page { max-width: 1400px; margin: auto; padding: 24px; }
.page.avec-menu { display: grid; grid-template-columns: 210px 1fr; gap: 26px; }
.menu-cote { background: #fff; border-radius: var(--rayon); padding: 14px; box-shadow: var(--ombre); align-self: start; position: sticky; top: 100px; }
.menu-cote h5 { font-size: 11px; color: #999; letter-spacing: 1px; margin: 8px 10px 6px; }
.menu-cote a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; }
.menu-cote a:hover { background: #fff1e6; }
.menu-cote a.on { background: var(--orange); color: #fff; font-weight: 700; }
.contenu { min-width: 0; }

/* ---------- En-tête de liste (titre, par page, tri) ---------- */
.barre-liste { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.barre-liste h1 { margin: 0; font-size: 26px; }
.compte { color: var(--gris); font-size: 14px; }
.reglages-liste { display: flex; gap: 14px; }
.reglages-liste label { font-size: 13px; color: var(--gris); display: flex; align-items: center; gap: 6px; }
.reglages-liste select { border: 1px solid #ccc; border-radius: 10px; padding: 7px 10px; background: #fff; }
.titre-page { font-size: 28px; margin: 0 0 18px; }
.vide { background: #fff; border-radius: var(--rayon); padding: 40px; text-align: center; color: var(--gris); }
.vide a { color: var(--orange); }

/* ---------- Grille des produits ---------- */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

/* ---------- Carte produit (design C1) ---------- */
.carte { background: #fff; border-radius: var(--rayon); padding: 12px; box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.carte-photo { position: relative; display: flex; align-items: center; justify-content: center; background: #f5f5f2; border-radius: 12px; height: 210px; overflow: hidden; }
.carte-photo img { max-width: 85%; max-height: 88%; object-fit: contain; }
.carte-texte { padding: 10px 2px 0; flex: 1; }
.carte-ref { font-size: 12px; color: #999; font-weight: 600; }
.carte h3 { font-size: 16px; margin: 4px 0 4px; line-height: 1.3; }
.carte h3 a { text-decoration: none; }
.carte h3 a:hover { color: var(--orange); }
.carte-court { font-size: 13px; color: #666; }
.carte-poids { font-size: 12.5px; color: #4a7c3a; margin-top: 4px; }
.carte-bas { margin-top: 10px; }
.prix b { display: block; font-size: 19px; color: var(--orange); white-space: nowrap; }
.prix span { font-size: 13px; color: var(--gris); }
.prix .sur-demande { font-size: 15px; color: var(--gris); }
.prix.grand b { font-size: 30px; }
.prix.grand span { font-size: 17px; }
.ajout { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* Quantité : − [nombre] + */
.qte { display: flex; align-items: center; border: 2px solid var(--orange); border-radius: 30px; height: 40px; background: #fff; flex: none; }
.qte button { width: 32px; height: 100%; border: none; background: none; color: var(--orange); font-size: 20px; font-weight: 800; }
.qte input { width: 40px; border: none; text-align: center; font-weight: 700; font-size: 15px; outline: none; -moz-appearance: textfield; background: transparent; }
.qte input::-webkit-inner-spin-button, .qte input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qte.grande { height: 50px; } .qte.grande input { width: 56px; font-size: 18px; } .qte.grande button { width: 42px; }
.qte.petite { height: 32px; margin-top: 6px; width: fit-content; } .qte.petite button { width: 26px; font-size: 16px; } .qte.petite input { width: 34px; font-size: 14px; }

/* Bouton orange « Ajouter » / « Commander » */
.bouton-panier { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--orange); color: #fff; border: none; border-radius: 30px; min-height: 40px; padding: 0 18px; font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; transition: background .2s, transform .1s; }
.bouton-panier:hover { background: var(--orange-fonce); }
.bouton-panier:active { transform: scale(.97); }
.bouton-panier.indispo { background: #bbb; cursor: not-allowed; }
.bouton-panier.contact { background: #fff; color: var(--orange); border: 2px solid var(--orange); }
.bouton-panier.large { width: 100%; min-height: 52px; font-size: 17px; margin-top: 14px; }
.bouton-blanc { flex: 1; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--texte); border-radius: 30px; min-height: 44px; text-decoration: none; font-weight: 600; }

/* Pastilles rondes PROMO / TOP VENTE : texte penché + clignotement doux */
.rond { position: absolute; top: 10px; left: 10px; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 3px 8px rgba(0,0,0,.2); animation: clignote 2.6s ease-in-out infinite; }
.rond i { font-style: normal; font-weight: 900; font-size: 11px; line-height: 1.05; text-align: center; transform: rotate(-14deg); letter-spacing: .5px; }
.rond.promo { background: #e53935; color: #fff; }
.rond.top { background: #f2b600; color: #3a2a00; }
.rond.top { left: auto; right: 10px; animation-delay: 1.3s; }   /* TOP VENTE en haut à droite */
.rond.grand { width: 84px; height: 84px; } .rond.grand i { font-size: 15px; }
@keyframes clignote { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.93); } }

/* Tampon RUPTURE en oblique : on voit toujours le produit */
.tampon { position: absolute; top: 72%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg);   /* plus bas : on voit le produit */ border: 4px solid #d32f2f; color: #d32f2f; font-weight: 900; letter-spacing: 4px; font-size: 26px; padding: 4px 18px; border-radius: 8px; background: rgba(255,255,255,.45); z-index: 2; }
.tampon.grand { font-size: 44px; border-width: 6px; }
.en-rupture .carte-photo img, .en-rupture .fiche-photo img { filter: grayscale(.35) opacity(.85); }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 10px; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; border-radius: 10px; background: #fff; text-decoration: none; box-shadow: var(--ombre); }
.pagination a.on { background: var(--orange); color: #fff; font-weight: 700; }

/* ---------- Fiche produit ---------- */
.fil { font-size: 14px; color: var(--gris); margin-bottom: 16px; } .fil a { color: var(--orange); }
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--ombre); }
.fiche-photo { height: 480px; }
.fiche-infos h1 { font-size: 32px; margin: 6px 0 14px; }
.fiche-poids { padding-left: 18px; color: #4a7c3a; }
.fiche-desc { line-height: 1.6; color: #444; margin: 16px 0; }
.fiche-ajout { max-width: 420px; }
.fiche-ajout .bouton-panier { min-height: 50px; font-size: 16px; }
.alerte { background: #fff3e0; border-left: 4px solid var(--orange); padding: 12px 14px; border-radius: 8px; margin: 10px 0; }
.alerte a { color: var(--orange); font-weight: 700; }

/* ---------- Calendriers ---------- */
.cal-trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cal-bloc { background: #fff; border-radius: var(--rayon); padding: 18px; box-shadow: var(--ombre); }
.cal-bloc h2 { margin: 0 0 4px; font-size: 20px; } .cal-bloc p { margin: 0 0 12px; color: var(--gris); font-size: 13px; }
.mois-titre { font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.mois-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.jsem { text-align: center; font-size: 12px; font-weight: 700; color: var(--gris); }
.jour { aspect-ratio: 1.25; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #f3f3f0; font-size: 14px; border: 1px solid #e5e5e0; color: #555; }
.jour.vert { background: var(--vert); color: #fff; font-weight: 700; border-color: var(--vert); }
.jour.passe { color: #8a8a8a; }   /* jours passés : lisibles mais discrets */
.jour.auj { outline: 2px solid var(--orange); }
.jour.bloque { color: #6f6f6f; background: #f3f3f0; }   /* jours non disponibles : fond gris, chiffre foncé */
.jour.bloque.vert { background: #a5d6a7; border-color: #a5d6a7; }
button.jour { cursor: pointer; font-family: inherit; }
button.jour:hover { filter: brightness(1.1); }
button.jour.choisi { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 3px #ffd0b5; }
.nav-mois { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.nav-mois a, .nav-mois button { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 6px 14px; text-decoration: none; font-size: 16px; }
.nav-mois.petite { float: right; gap: 6px; } .nav-mois button:disabled { opacity: .3; }
.pastille-verte { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--vert); vertical-align: middle; }

/* ---------- Blocs, panier, commande ---------- */
.bloc { background: #fff; border-radius: var(--rayon); padding: 20px; box-shadow: var(--ombre); margin-bottom: 18px; }
.bloc h2 { margin: 0 0 14px; font-size: 20px; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.resume.colle { position: sticky; top: 100px; }
.ligne-total { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f2f2f2; }
.ligne-total.gros { font-size: 20px; border-bottom: none; padding-top: 12px; }
.ligne-total.petit { font-size: 13px; color: var(--gris); }
.petit-texte { font-size: 13px; color: var(--gris); }
.ligne-panier { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.ligne-panier img { width: 64px; height: 64px; object-fit: contain; background: #f5f5f2; border-radius: 10px; }
.ligne-panier.grande { grid-template-columns: 90px 1fr auto; } .ligne-panier.grande img { width: 90px; height: 90px; }
.lp-texte a { font-weight: 700; text-decoration: none; display: block; }
.lp-texte small { color: var(--gris); }
.lp-droite { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.poubelle { border: none; background: none; font-size: 18px; opacity: .6; } .poubelle:hover { opacity: 1; }
.resume-ligne { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.resume-ligne img { width: 44px; height: 44px; object-fit: contain; background: #f5f5f2; border-radius: 8px; }
.port-info { font-size: 13px; margin: 2px 0 6px; color: var(--gris); }
.port-info.rouge { color: #c62828; font-weight: 600; }

/* Formulaire de commande */
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.champs label, .commande label { font-size: 13.5px; font-weight: 600; color: #444; display: block; }
.champs label.large { grid-column: 1 / -1; }
.commande input:not([type=radio]):not([type=checkbox]), .commande select, .commande textarea { width: 100%; border: 1.5px solid #ddd; border-radius: 10px; padding: 11px 12px; margin-top: 5px; font-weight: 500; background: #fff; }
.commande input:focus, .commande select:focus, .commande textarea:focus { border-color: var(--orange); outline: none; }
.commande label.case { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-weight: 500; font-size: 15px; }
.case input { width: 18px; height: 18px; accent-color: var(--orange); }
.err { color: #c62828; font-size: 12.5px; margin: 4px 0 0; font-weight: 600; }
.rouge { color: #c62828; font-size: 18px; margin: 0 0 6px; }
.bascule { display: inline-flex; background: #f2ede6; border-radius: 30px; padding: 4px; margin-bottom: 14px; }
.bascule input { display: none; }
.bascule span { display: block; padding: 9px 22px; border-radius: 30px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.bascule input:checked + span { background: var(--orange); color: #fff; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode input { display: none; }
.mode span { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 2px solid #e6e0d8; border-radius: 14px; padding: 14px 8px; cursor: pointer; text-align: center; }
.mode i { font-style: normal; font-size: 24px; } .mode b { font-size: 15px; } .mode small { color: var(--gris); font-weight: 500; }
.mode input:checked + span { border-color: var(--orange); background: #fff4ec; box-shadow: 0 0 0 3px #ffe0cc; }
.cal-choix .mois { max-width: 420px; }
/* Calendrier de la commande : ← Octobre 2026 → */
.cal-choix .mois-titre { display: none; }
.mois-nav { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.mois-nav b { font-size: 18px; min-width: 150px; text-align: center; }
.mois-nav button { background: #fff; border: 1.5px solid var(--orange); color: var(--orange); border-radius: 10px; width: 40px; height: 36px; font-size: 18px; font-weight: 800; }
.mois-nav button:disabled { opacity: .25; cursor: default; }
.alerte-camion { background: #fdecea; border-left: 4px solid #c62828; color: #8e1c1c; padding: 12px 14px; border-radius: 8px; margin: 10px 0; font-weight: 600; }
.alerte-camion a { color: #c62828; }
.question { font-size: 14.5px; font-weight: 600; color: #444; margin: 4px 0 8px; display: block; }
.commande .bascule label { display: inline; }
.date-affichee { font-weight: 700; color: var(--vert); min-height: 1em; }
.paiement { display: flex; gap: 8px; align-items: center; border: 2px solid var(--texte); border-radius: 12px; padding: 14px; }

/* Page merci */
.merci { text-align: center; padding: 30px 10px; }
.merci-rond { width: 80px; height: 80px; border-radius: 50%; background: var(--vert); color: #fff; font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.bon { max-width: 760px; margin: 20px auto; }

/* ---------- Fenêtres par-dessus la page ---------- */
.voile { position: fixed; inset: 0; background: rgba(40, 25, 15, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: apparait .25s; }
.fenetre { background: #fff; border-radius: 22px; padding: 30px; width: 100%; max-width: 440px; text-align: center; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.fenetre h3 { font-size: 22px; margin: 8px 0 6px; }
.fenetre p { color: #666; margin: 0; }
.fenetre .fermer, .tiroir .fermer { position: absolute; top: 14px; right: 16px; border: none; background: none; font-size: 22px; }
.fen-icone { font-size: 38px; }
.fen-logo { height: 52px; }
.form-code input { width: 100%; border: 2px solid var(--orange); border-radius: 12px; padding: 13px; font-size: 16px; margin: 18px 0 10px; text-transform: uppercase; }
.form-code .erreur { color: #c62828; font-weight: 600; margin-bottom: 8px; }
.gros-bouton { width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 16px; }
.lien { background: none; border: none; color: var(--orange); text-decoration: underline; margin-top: 14px; font-size: 14px; }
.choix { display: flex; gap: 12px; margin-top: 20px; }
.choix button { flex: 1; border-radius: 16px; padding: 18px 10px; font-weight: 700; font-size: 15px; }
.choix-oui { background: var(--orange); color: #fff; border: 2px solid var(--orange); }
.choix-non { background: #fff; color: var(--orange); border: 2px solid var(--orange); }
@keyframes apparait { from { opacity: 0; } }

/* ---------- Panier qui glisse à droite ---------- */
.tiroir-fond { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90; }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%; background: var(--creme); z-index: 95; transform: translateX(100%); transition: transform .3s; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
.tiroir.ouvert { transform: none; }
.tiroir-contenu { height: 100%; display: flex; flex-direction: column; }
.tiroir-tete { padding: 20px; position: relative; } .tiroir-tete h2 { margin: 0; font-size: 24px; } .tiroir-tete small { font-weight: 500; color: var(--gris); font-size: 16px; }
.tiroir-lignes { flex: 1; overflow-y: auto; padding: 0 20px; }
.tiroir-pied { padding: 16px 20px 22px; border-top: 1px solid #e6e0d8; background: #fff; }
.tiroir-boutons { display: flex; gap: 10px; margin-top: 12px; }

/* Message de confirmation */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #2e7d32; color: #fff; padding: 12px 22px; border-radius: 30px; font-weight: 700; z-index: 200; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.erreur { background: #c62828; }

/* ---------- Bas de page ---------- */
.pied { text-align: center; padding: 30px 16px; color: var(--gris); font-size: 13px; border-top: 1px solid #eee5d8; margin-top: 30px; }
.pied img { height: 34px; opacity: .8; } .pied a { color: var(--orange); }

/* ============================================================
   TÉLÉPHONE ET TABLETTE (design A1 : pastilles en haut)
   ============================================================ */
@media (max-width: 900px) {
  .page.avec-menu { display: block; }
  .menu-cote { display: none; }
  .entete-ligne { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .logo img { height: 36px; }
  .recherche { order: 3; flex-basis: 100%; max-width: none; }
  .recherche input { padding: 9px 16px; } .recherche button { padding: 9px 16px; }
  .pastilles { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 12px; scrollbar-width: none; }
  .pastilles::-webkit-scrollbar { display: none; }
  .pastilles a { flex: none; background: var(--orange-clair); border-radius: 12px; padding: 8px 14px; text-decoration: none; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,.12); }
  .pastilles a.on { background: var(--orange); color: #fff; }
  .pilule { padding: 8px 14px; font-size: 12px; }
  .page { padding: 14px; }
  .deux-colonnes, .fiche { grid-template-columns: 1fr; }
  .fiche { padding: 16px; gap: 16px; } .fiche-photo { height: 300px; } .fiche-infos h1 { font-size: 24px; }
  .resume.colle { position: static; }
}
@media (max-width: 560px) {
  .grille { grid-template-columns: 1fr 1fr; gap: 10px; }
  .carte { padding: 8px; } .carte-photo { height: 140px; } .carte h3 { font-size: 14px; }
  .prix b { font-size: 16px; }
  .ajout { flex-direction: column; align-items: stretch; }
  .qte { justify-content: space-between; }
  .rond { width: 46px; height: 46px; } .rond i { font-size: 9px; }
  .tampon { font-size: 17px; letter-spacing: 2px; border-width: 3px; padding: 2px 10px; }
  .champs, .modes { grid-template-columns: 1fr; }
  .barre-liste h1 { font-size: 21px; }
  .code-ok { font-size: 11px; padding: 6px 10px; }
}

/* ============================================================
   Bulle d'aide « Calendrier » (flèche animée vers l'onglet)
   ============================================================ */
.menu-cote { position: sticky; z-index: 40; }   /* passe devant les cartes produits : la bulle Calendrier reste lisible */
.entete { position: sticky; }
.aide-cal { position: absolute; z-index: 60; background: var(--orange); color: #fff; border-radius: 14px; padding: 12px 34px 12px 12px; width: 300px; font-size: 14px; line-height: 1.35; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 28px rgba(217,98,43,.35); cursor: pointer; animation: aide-apparait .4s ease-out; }
.aide-cal button { position: absolute; top: 6px; right: 8px; background: none; border: none; color: #fff; font-size: 15px; opacity: .85; }
.aide-fleche { font-size: 26px; flex: none; }
/* Ordinateur : à droite du lien, la flèche pointe vers la gauche et « tape » doucement */
.aide-cal.a-droite { left: calc(100% + 14px); transform: translateY(-50%); }
.aide-cal.a-droite .aide-fleche { animation: aide-gauche 1s ease-in-out infinite; }
/* Téléphone : sous la pastille, la flèche pointe vers le haut */
.aide-cal.en-dessous { top: calc(100% + 6px); width: min(300px, calc(100vw - 24px)); }
.aide-cal.en-dessous .aide-fleche { animation: aide-haut 1s ease-in-out infinite; }
/* Le lien Calendrier brille pendant que la bulle est affichée */
.cal-brille { box-shadow: 0 0 0 3px var(--orange) !important; animation: aide-brille 1.2s ease-in-out infinite; }
@keyframes aide-gauche { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }
@keyframes aide-haut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes aide-brille { 0%, 100% { box-shadow: 0 0 0 3px rgba(217,98,43,.9); } 50% { box-shadow: 0 0 0 7px rgba(217,98,43,.25); } }
@keyframes aide-apparait { from { opacity: 0; } }
/* Fenêtre « Nouveau tarif appliqué » (se ferme seule après 3 secondes) */
.tarif-ok .fenetre { max-width: 380px; animation: aide-apparait .3s ease-out; }
.ok-rond { width: 64px; height: 64px; border-radius: 50%; background: var(--vert); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }

.tarif-nom { font-size: 20px; color: #2b2b2b !important; text-align: center; margin-top: 6px !important; }   /* « Tarif : FLO », centré et lisible */
/* Bulle Calendrier plus grande et texte plus gros */
.aide-cal { width: 380px; font-size: 17px; padding: 16px 38px 16px 16px; line-height: 1.4; }
.aide-fleche { font-size: 34px; }
.aide-cal.en-dessous { width: min(360px, calc(100vw - 24px)); font-size: 16px; }

/* ===== Fond de page « Trattoria » (crème un peu plus foncé) ===== */
:root { --creme: #f6eee2; }
body { background: var(--creme); }

/* ===== Petites icônes devant les catégories ===== */
.ico-cat { width: 26px; height: 26px; object-fit: contain; vertical-align: -7px; margin-right: 9px; }
.ico-cal { width: 30px; height: 30px; vertical-align: -9px; margin-right: 8px; }   /* calendrier plus gros */
.menu-cote a.lien-cal { font-weight: 700; font-size: 16px; }
.pastilles .ico-cat { width: 18px; height: 18px; vertical-align: -4px; margin-right: 5px; }
.pastilles .ico-cal { width: 22px; height: 22px; vertical-align: -6px; margin-right: 5px; }

/* Numéro affiché après un clic sur « Nous contacter » */
.bouton-panier.contact.tel-visible { font-size: 1.05em; letter-spacing: .3px; cursor: default; }

/* ----- Pages légales (CGV, confidentialité, mentions) ----- */
.page-legale { max-width: 860px; margin: 0 auto; }
.onglets-legaux { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.onglets-legaux a { padding: 7px 14px; border-radius: 999px; border: 1px solid #e3b6a6; color: #7a4a35; text-decoration: none; font-size: 14px; background: #fff; }
.onglets-legaux a.on { background: var(--orange, #D9622B); border-color: var(--orange, #D9622B); color: #fff; }
.legal-haut { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.legal-haut h1 { margin: 0; }
.legal-haut .bouton-panier { width: auto; flex: 0 0 auto; display: inline-block; padding: 10px 18px; text-decoration: none; }
.texte-legal { line-height: 1.6; }
.texte-legal h3 { margin: 18px 0 6px; }
.texte-legal hr { border: 0; border-top: 1px solid #eadfd6; margin: 16px 0; }
.texte-legal .a-completer { background: #fff0e6; color: #D9622B; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.pied .liens-legaux { font-size: 13px; }
.pied .liens-legaux a { color: inherit; }

/* Bouton « + Ajouter d'autres produits » (page Commander) */
.retour-produits { margin: -6px 0 18px; }
.btn-contour { display: inline-block; color: var(--orange, #D9622B); font-weight: 700; font-size: 15px; border: 2px solid var(--orange, #D9622B); border-radius: 999px; padding: 8px 18px; background: #fff; text-decoration: none; }
.btn-contour:hover { background: var(--orange, #D9622B); color: #fff; }

/* ----- Téléphone : fenêtre « ✔ Ajouté au panier » (voir app.js) ----- */
#fen-ajout { position: fixed; inset: 0; background: rgba(0, 0, 0, .22); z-index: 200; display: flex; align-items: center; justify-content: center; }
#fen-ajout[hidden] { display: none; }
.fa-boite { position: relative; width: 240px; max-width: 72vw; background: #fff; border-radius: 18px; box-shadow: 0 18px 45px rgba(0, 0, 0, .28); padding: 18px 16px 14px; text-align: center; }
.fa-croix { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 22px; color: #999; cursor: pointer; }
.fa-ok { width: 46px; height: 46px; line-height: 46px; border-radius: 50%; background: #2e9e5b; color: #fff; font-size: 26px; margin: 0 auto 8px; }
.fa-titre { color: #2e9e5b; font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.fa-nom { font-weight: 700; font-size: 14px; color: #222; }
.fa-qte { font-size: 13px; color: #666; margin-bottom: 12px; }
.fa-panier { display: inline-block; color: var(--orange, #D9622B); border: 2px solid var(--orange, #D9622B); border-radius: 999px; padding: 8px 22px; font-weight: 800; font-size: 18px; text-decoration: none; }
/* Barre qui se vide : 80 % de la largeur, arrive à zéro quand la fenêtre se ferme */
.fa-barre { width: 80%; height: 5px; margin: 12px auto 0; background: #f0e6dc; border-radius: 3px; overflow: hidden; }
.fa-barre span { display: block; height: 100%; width: 100%; background: var(--orange, #D9622B); }
.tiroir-boutons .bouton-panier { flex: 1; text-align: center; }

/* Bouton « ← Retour » du panier : contour et texte orange, fond blanc (à gauche de « Valider la commande ») */
.bouton-retour { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 2px solid var(--orange, #D9622B); border-radius: 30px; background: #fff; color: var(--orange, #D9622B); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.bouton-retour:hover { background: #fff3ea; }

/* Bulle « Calendrier » : flèche en haut de la bulle (plus près de l'onglet) + barre blanche qui se vide */
.aide-cal { padding-bottom: 20px; }
.aide-cal.en-dessous { align-items: flex-start; }
.aide-cal.en-dessous .aide-fleche { margin-top: -4px; }
.aide-barre { position: absolute; left: 10%; right: 10%; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.aide-barre i { display: block; height: 100%; width: 100%; background: #fff; }

/* ----- Page Calendrier : titres en pastilles orange + bouton GPS ----- */
.cal-bloc h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-pastille { display: inline-flex; align-items: center; gap: 6px; background: var(--orange, #D9622B); color: #fff; border-radius: 999px; padding: 6px 16px; font-size: 18px; }
.cal-pastille .epingle { flex: none; }
.gps { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #2b6fd6; border: 2px solid #2b6fd6; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.gps:hover { background: #eef4ff; }
/* Croix plus grosse sur la bulle « Calendrier » */
.aide-cal { padding-right: 44px; }
.aide-cal button { font-size: 24px; font-weight: 700; width: 36px; height: 36px; top: 2px; right: 2px; opacity: 1; cursor: pointer; }
