/* ═══════════════════════════════════════════════════════════
   Nomade & Events — cartes saisonnières, galerie & panier (carte.html)
   ═══════════════════════════════════════════════════════════ */

:root {
  --hiver: #a8c4d4; --printemps: #a8d4a0; --ete: #d4b86a; --automne: #c4784a;
}

/* ── PAGE HERO ── */
.page-hero { padding: 10rem 3.5rem 5rem; background: linear-gradient(135deg, var(--ink) 0%, var(--deep) 100%); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(14,76,150,.1) 0%, transparent 70%); }
.page-hero-label { font-family: var(--sans); font-size: .75rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.page-hero-title { font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 300; line-height: 1.1; color: var(--white); }
.page-hero-title em { font-style: italic; color: var(--blue-pale); }
.page-hero-sub { margin-top: 1.2rem; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--fog); max-width: 540px; }
.gold-bar { width: 60px; height: 1px; background: var(--blue); opacity: .5; margin: 2rem 0; }

/* Titres de section plus compacts que sur l'accueil */
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: .5rem; }

/* ── GALERIE ── */
.gallery-section { padding: 6rem 3.5rem; background: var(--deep); }

/* ── DIAPORAMA (js/diaporama.js) ── */
/* Largeur max 720 px, et hauteur limitée à ~62 % de l'écran (cadre 3/2 → largeur = hauteur × 1,5) */
.diapo { max-width: min(720px, 93vh); margin: 3rem auto 0; }
.diapo-cadre { position: relative; }
.diapo-piste { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--ink); }
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-vue { position: relative; flex: 0 0 100%; aspect-ratio: 3/2; margin: 0; overflow: hidden; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
/* Fond : la même photo, floutée, pour remplir les bords sans rogner l'image */
.diapo-vue::before { content: ''; position: absolute; inset: -20px; background: var(--fond, none) center / cover; filter: blur(22px) brightness(.35); }
.diapo-vue img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }   /* photo entière, agrandie au maximum */
.diapo-vue figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.4rem 1rem; background: linear-gradient(to top, rgba(9,17,26,.85), transparent); font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--gold-light); }

/* Flèches, pause, compteur et miniatures : affichés seulement si le script est actif */
.diapo-fleche, .diapo-barre, .diapo-vignettes { display: none; }
.diapo.js-actif .diapo-fleche { display: flex; }
.diapo.js-actif .diapo-barre { display: flex; }
.diapo.js-actif .diapo-vignettes { display: flex; }

.diapo-fleche { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(201,169,110,.6); background: rgba(9,17,26,.7); color: var(--gold-light); font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.diapo-fleche:hover { background: rgba(9,17,26,.95); }
.diapo-prec { left: 1rem; }
.diapo-suiv { right: 1rem; }
.diapo-fleche span { margin-top: -4px; }

.diapo-barre { align-items: center; justify-content: space-between; margin-top: .8rem; }
.diapo-pause { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.diapo-pause:hover { border-color: var(--gold); }
/* Icône pause (deux barres) / lecture (triangle) dessinée en CSS */
.diapo-pause-icone { width: 12px; height: 14px; border-left: 4px solid var(--gold-light); border-right: 4px solid var(--gold-light); }
.diapo-pause.is-pause .diapo-pause-icone { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--gold-light); }
.diapo-compteur { font-family: var(--sans); font-size: .8rem; letter-spacing: .15em; color: var(--fog); }

.diapo-vignettes { gap: 8px; margin-top: .8rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.diapo-vignette { flex: 0 0 auto; width: 96px; aspect-ratio: 3/2; padding: 0; border: 2px solid transparent; background: var(--ink); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.diapo-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diapo-vignette:hover { opacity: .85; }
.diapo-vignette[aria-current="true"] { opacity: 1; border-color: var(--gold); }

/* ══════════════════════════════════════
   🛒 PANIER FLOTTANT
══════════════════════════════════════ */
.cart-bubble {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 8px 32px rgba(14,76,150,.5);
  transition: transform .2s, background .2s;
}
.cart-bubble:hover { transform: scale(1.08); background: var(--blue-light); }
.cart-bubble-icon { font-size: 1.5rem; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; border-radius: 11px;
  background: var(--gold); color: var(--ink);
  font-family: var(--sans); font-size: .7rem; font-weight: 400;
  align-items: center; justify-content: center;
  padding: 0 5px;
  display: none;
}
.cart-badge.visible { display: flex; }

/* Panneau panier */
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 400;
  width: 420px; max-width: 100vw;
  background: var(--deep);
  border-left: 1px solid rgba(14,76,150,.3);
  display: flex; flex-direction: column;
  overflow-y: auto; /* tout le panneau défile : sélection puis formulaire */
  transform: translateX(100%);
  visibility: hidden; /* panier fermé : ni visible, ni lu, ni atteignable au clavier */
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.cart-panel.open { transform: translateX(0); visibility: visible; }
.cart-overlay { position: fixed; inset: 0; z-index: 350; background: rgba(9,17,26,.6); opacity: 0; pointer-events: none; transition: opacity .35s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header { position: sticky; top: 0; z-index: 1; background: var(--deep); padding: 2rem; border-bottom: 1px solid rgba(14,76,150,.2); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.cart-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 300; color: var(--white); }
.cart-title em { font-style: italic; color: var(--blue-pale); }
.cart-close { background: none; border: none; color: var(--fog); font-size: 1.4rem; cursor: pointer; padding: .3rem; transition: color .2s; line-height: 1; }
.cart-close:hover { color: var(--white); }

.cart-body { flex: 1 0 auto; padding: 1.5rem; }
.cart-body .form-statut { margin-bottom: 1rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }
.cart-empty-icon { font-size: 3rem; opacity: .3; margin-bottom: 1rem; display: block; }
.cart-empty-text { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--fog); }

.cart-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--serif); font-size: 1.1rem; color: var(--white); margin-bottom: .2rem; }
.cart-item-desc { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--fog); }
.cart-item-season { font-family: var(--sans); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--blue-text); margin-top: .2rem; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; flex-shrink: 0; }
.cart-item-price { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); white-space: nowrap; }
.cart-qty { display: flex; align-items: center; gap: .4rem; }
.cart-qty-btn { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line); background: var(--mid); color: var(--white); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; line-height: 1; }
.cart-qty-btn:hover { background: var(--blue); border-color: var(--blue); }
/* Quantité modifiable au clavier / pavé numérique */
.cart-qty-val { width: 3.6rem; height: 28px; padding: 0 .3rem; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); font-family: var(--sans); font-size: .85rem; color: var(--white); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.cart-qty-val::-webkit-inner-spin-button, .cart-qty-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-val:focus { border-color: var(--gold); }
.cart-item-remove { background: none; border: none; color: var(--fog); font-size: .8rem; cursor: pointer; font-family: var(--sans); letter-spacing: .1em; text-transform: uppercase; transition: color .2s; padding: 0; }
.cart-item-remove:hover { color: var(--danger); }

.cart-footer { padding: 1.5rem 2rem; border-top: 1px solid rgba(14,76,150,.2); flex-shrink: 0; }
.cart-total-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.cart-total-label { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }
.cart-total-amount { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--gold); }
.cart-total-note { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--fog); margin-bottom: 1.5rem; }
.cart-form { display: flex; flex-direction: column; }
.cart-form .form-note { margin-bottom: 1rem; }
.cart-form .form-rgpd { margin-top: .8rem; font-size: .95rem; }
.cart-btn-whatsapp { width: 100%; margin-bottom: .4rem; }
.cart-minimum { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: -.8rem 0 .4rem; }
.cart-minimum-manque { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--mist); margin-bottom: 1.5rem; }
.cart-minimum-manque.is-atteint { color: #9fe3b5; font-style: normal; }
.cart-convives, .cart-champ { margin-bottom: 1.2rem; }
.cart-champ label, .cart-convives label { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .4rem; }
.cart-champ input, .cart-convives input { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--white); font-family: var(--serif); font-size: 1.1rem; padding: .7rem 1rem; transition: border-color .3s; }
.cart-champ input:focus, .cart-convives input:focus { border-color: var(--gold); }
.cart-champ input::placeholder, .cart-convives input::placeholder { color: var(--fog); opacity: 1; font-style: italic; }
.cart-convives-warn { font-family: var(--sans); font-size: .75rem; color: var(--danger); margin-top: .3rem; display: none; }
.cart-btn-send { width: 100%; padding: 1rem; background: var(--blue); border: 1px solid var(--blue); color: var(--white); font-family: var(--sans); font-size: .75rem; font-weight: 400; letter-spacing: .25em; text-transform: uppercase; cursor: pointer; transition: background .3s; margin-bottom: .8rem; }
.cart-btn-send:hover { background: var(--blue-light); border-color: var(--blue-light); }
.cart-btn-clear { width: 100%; padding: .7rem; background: transparent; border: 1px solid rgba(255,255,255,.1); color: var(--fog); font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, color .3s; }
.cart-btn-clear:hover { border-color: var(--danger); color: var(--danger); }

/* ── CARTES SAISONNIÈRES ── */
.menus-section { padding: 6rem 3.5rem; background: var(--ink); }
.menus-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap; }
.menus-note { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--fog); max-width: 380px; line-height: 1.7; }

/* Onglets saisons */
.season-tabs { display: flex; gap: 2px; margin-bottom: 3rem; border-bottom: 1px solid rgba(14,76,150,.15); }
.season-tab { padding: .9rem 2rem; font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; background: transparent; border: none; cursor: pointer; color: var(--fog); transition: color .3s; position: relative; }
.season-tab::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .3s; }
.season-tab:hover { color: var(--mist); }
.season-tab.active { color: var(--gold); }
.season-tab.active::after { transform: scaleX(1); }
.season-tab[data-season="hiver"].active     { color: var(--hiver); }
.season-tab[data-season="printemps"].active { color: var(--printemps); }
.season-tab[data-season="ete"].active       { color: var(--ete); }
.season-tab[data-season="automne"].active   { color: var(--automne); }

.season-panel { display: none; }
.season-panel.active { display: block; animation: fade-up .4s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.season-header { display: flex; align-items: center; gap: 2rem; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.season-icon { font-size: 2.8rem; }
.season-name { font-family: var(--serif); font-size: clamp(2rem,4vw,3.2rem); font-weight: 300; line-height: 1.1; }
.season-tagline { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--fog); margin-top: .3rem; }
[data-season="hiver"] .season-name     { color: var(--hiver); }
[data-season="printemps"] .season-name { color: var(--printemps); }
[data-season="ete"] .season-name       { color: var(--ete); }
[data-season="automne"] .season-name   { color: var(--automne); }

.menu-categories { display: flex; flex-direction: column; gap: 3rem; }
.menu-category-title { font-family: var(--sans); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(14,76,150,.15); }
.menu-items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1px; }

/* Fiche plat avec bouton panier */
.menu-dish { background: var(--panel); padding: 1.5rem 1.8rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; transition: background .3s; position: relative; }
.menu-dish:hover { background: var(--mid); }
.menu-dish-info { flex: 1; }
.menu-dish-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--white); margin-bottom: .25rem; }
.menu-dish-desc { font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--fog); line-height: 1.5; }
.menu-dish-allergens { margin-top: .4rem; font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; color: var(--gold-dim); text-transform: uppercase; }
.menu-dish-right { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex-shrink: 0; }
.menu-dish-price { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; color: var(--gold); white-space: nowrap; }
.menu-dish-unit { font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); text-align: right; }

/* Bouton ajouter au panier */
.btn-add-cart {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent; color: var(--blue-pale);
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
}
.btn-add-cart:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.12); }
.btn-add-cart.added { background: var(--blue); border-color: var(--blue); animation: pop .25s ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Quantité directement sur la fiche plat */
.dish-qty-inline { display: none; align-items: center; gap: .3rem; }
.dish-qty-inline.visible { display: flex; }
.dq-btn { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line); background: var(--mid); color: var(--white); font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; line-height: 1; }
.dq-btn:hover { background: var(--blue); }
.dq-val { font-family: var(--sans); font-size: .8rem; color: var(--white); min-width: 18px; text-align: center; }

.menu-footnote { margin-top: 2.5rem; padding: 1.5rem 2rem; background: var(--panel); border-left: 2px solid rgba(14,76,150,.4); font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--fog); line-height: 1.7; }
.menu-footnote strong { color: var(--white); font-style: normal; font-weight: 400; }

/* ── CTA ── */
.cta-section { padding: 6rem 3.5rem; background: var(--deep); text-align: center; }
.cta-title { font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; }
.cta-title em { font-style: italic; color: var(--blue-pale); }
.cta-sub { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--fog); max-width: 500px; margin: 0 auto 3rem; line-height: 1.7; }
.cta-section .btn-gold { padding: 1rem 3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .page-hero, .gallery-section, .menus-section, .cta-section { padding: 5rem 1.5rem; }
  .page-hero { padding-top: 8rem; }
  .season-tabs { overflow-x: auto; }
  .season-tab { padding: .8rem 1.2rem; white-space: nowrap; }
  .menus-intro { flex-direction: column; align-items: flex-start; }
  .cart-panel { width: 100vw; }
  .site-footer { padding-bottom: 6.5rem; }   /* la bulle du panier ne masque pas le copyright */
  .diapo { margin-top: 2rem; }
  .diapo-fleche { width: 38px; height: 38px; font-size: 1.6rem; }
  .diapo-prec { left: .5rem; }
  .diapo-suiv { right: .5rem; }
  .diapo-vue figcaption { font-size: 1rem; padding: 2rem 1rem .8rem; }
  .diapo-vignette { width: 72px; }
}
