/* =====================================================================
   LAYOUT — en-tête, pied de page, panneau panier, barre mobile.
   Ces blocs sont communs à toutes les pages (rendus par js/composants/entete.js).
   ===================================================================== */

/* ----- En-tête ----- */
.entete {
  position: sticky; top: 0; z-index: 50; height: var(--hauteur-entete);
  background: rgba(250, 246, 239, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ligne);
}
.entete--transparent { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--creme); backdrop-filter: none; }
.entete--transparent.defile { background: rgba(10, 10, 10, .82); backdrop-filter: blur(14px); }
.entete__interieur { height: 100%; display: flex; align-items: center; gap: 28px; }
.marque { display: flex; flex-direction: column; line-height: 1; }
.marque__nom { font-family: var(--police-titre); font-size: 22px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.marque__signature { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--or); margin-top: 5px; }
.navigation { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.navigation a { position: relative; padding: 6px 0; opacity: .85; white-space: nowrap; }
.navigation a:hover, .navigation a[aria-current="page"] { opacity: 1; }
.navigation a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--or); }
.entete__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Déclencheur de recherche : une fausse barre, toujours visible, qui ouvre le sommelier. */
.declencheur-recherche {
  display: flex; align-items: center; gap: 10px; min-width: 260px; padding: 10px 14px;
  border: 1px solid var(--ligne); border-radius: 999px; background: rgba(255, 255, 255, .6);
  font-size: 13px; color: var(--gris); text-align: left;
}
.entete--transparent .declencheur-recherche { background: rgba(255, 255, 255, .08); border-color: var(--ligne-claire); color: rgba(245, 240, 232, .75); }
.declencheur-recherche kbd { margin-left: auto; font-family: inherit; font-size: 11px; border: 1px solid currentColor; border-radius: 5px; padding: 0 6px; opacity: .6; }

/* Bascule Particulier / Professionnel */
.bascule-mode { display: flex; padding: 3px; border: 1px solid var(--ligne); border-radius: 999px; font-size: 12px; font-weight: 600; }
.entete--transparent .bascule-mode { border-color: var(--ligne-claire); }
.bascule-mode button { padding: 7px 12px; border-radius: 999px; opacity: .7; }
.bascule-mode button[aria-pressed="true"] { background: var(--noir); color: var(--creme); opacity: 1; }
.entete--transparent .bascule-mode button[aria-pressed="true"] { background: var(--creme); color: var(--noir); }

.bouton-panier { white-space: nowrap; position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--noir); color: var(--creme); font-size: 13px; font-weight: 600; }
.entete--transparent .bouton-panier { background: var(--creme); color: var(--noir); }
.bouton-panier__compteur { min-width: 20px; height: 20px; border-radius: 10px; background: var(--or); color: var(--noir); font-size: 11px; display: grid; place-items: center; }

@media (max-width: 1360px) { .declencheur-recherche { min-width: 0; } .declencheur-recherche span, .declencheur-recherche kbd { display: none; } .bouton-panier { white-space: nowrap; } }
@media (max-width: 1100px) { .navigation { display: none; } .declencheur-recherche { min-width: 0; } .declencheur-recherche span, .declencheur-recherche kbd { display: none; } }
@media (max-width: 720px) { .bascule-mode, .bouton-panier { display: none; } }

/* ----- Pied de page ----- */
.pied { background: var(--noir); color: var(--creme); padding: 80px 0 40px; margin-top: 120px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.pied h4 { font-family: var(--police-texte); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--or); margin-bottom: 18px; }
.pied li { margin-bottom: 10px; font-size: 14px; opacity: .8; }
.pied li a:hover { opacity: 1; color: var(--or-vif); }
.pied__coordonnees { font-size: 14px; opacity: .8; margin-top: 18px; line-height: 1.8; }
.pied__bas { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ligne-claire); font-size: 12px; opacity: .6; }
@media (max-width: 900px) { .pied__grille { grid-template-columns: 1fr 1fr; } .pied__bas { flex-direction: column; } }

/* ----- Panneau latéral (panier / sélection pro) ----- */
.voile { position: fixed; inset: 0; background: rgba(10, 10, 10, .45); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 90; }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.tiroir {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 91;
  background: var(--creme-doux); box-shadow: var(--ombre-l); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--courbe), visibility 0s .45s;
}
.tiroir.ouvert { transform: none; visibility: visible; transition: transform .45s var(--courbe); }
.tiroir__entete { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid var(--ligne); }
.tiroir__entete h2 { font-size: 24px; }
.tiroir__corps { flex: 1; overflow-y: auto; padding: 8px 28px; }
.tiroir__pied { padding: 24px 28px; border-top: 1px solid var(--ligne); }
.tiroir__total { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 16px; }
.tiroir__note { font-size: 12px; color: var(--gris); margin-top: 12px; text-align: center; }
.ligne-panier { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--ligne); }
.ligne-panier img { width: 56px; height: 72px; object-fit: contain; }
.ligne-panier__nom { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ligne-panier__meta { font-size: 12px; color: var(--gris); }
.quantite { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; margin-top: 6px; }
.quantite button { width: 28px; height: 28px; }
.quantite span { min-width: 22px; text-align: center; font-size: 13px; }
.tiroir__vide { padding: 60px 0; text-align: center; color: var(--gris); }

/* ----- Barre de navigation mobile ----- */
.barre-mobile { display: none; }
@media (max-width: 720px) {
  .barre-mobile {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--noir); color: var(--creme); border-radius: 20px; padding: 8px; box-shadow: var(--ombre-l);
  }
  .barre-mobile a, .barre-mobile button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 6px 0; }
  .barre-mobile svg { width: 20px; height: 20px; }
  .barre-mobile .accent { color: var(--or); }
  body { padding-bottom: 84px; }
}

/* ----- Notification brève ----- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 120; transform: translate(-50%, 30px); opacity: 0;
  background: var(--noir); color: var(--creme); padding: 14px 22px; border-radius: 999px; font-size: 14px;
  transition: opacity .3s, transform .4s var(--courbe); pointer-events: none;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 720px) { .toast { bottom: 100px; } }

/* ----- Champs de formulaire ----- */
.champ-formulaire { width: 100%; padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--blanc); margin-bottom: 10px; }
.champ-formulaire:focus { outline: none; border-color: var(--or); }

.lien-compte { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 8px 4px; white-space: nowrap; }
.lien-compte:hover { color: var(--bordeaux); }
@media (max-width: 1360px) { .lien-compte span { display: none; } }
