/*
  En-tête unique du site (partials/header.blade.php ; D-09 point 1, maquettes du 29/10).
  Couleurs neutres de la boutique v1 pour l'en-tête ; le Vert Brocoli reste l'accent.
*/
.ent {
  --ent-txt: #141414;
  --ent-txt-2: #5B605A;
  --ent-fond: #F2F4F1;   /* champ de recherche, survol des rayons */
  --ent-actif: #EEF3EF;  /* rayon actif */
  --ent-trait: #E3E6E1;
  background: #fff;
  border-bottom: 1px solid var(--ent-trait);
  color: var(--ent-txt);
}

/* Bandeau vert */
.ent-bandeau { background: var(--vert); color: #fff; font-size: 14px; line-height: 20px; }
.ent-bandeau__in { max-width: 1320px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; }
.ent-bandeau p { margin: 0; }
.ent-liens { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ent-liens a { color: #fff; padding: 4px 0; text-decoration: none; }
.ent-liens a:hover, .ent-liens a[aria-current] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Ligne logo · livrer à · recherche · espace */
.ent-ligne { max-width: 1320px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ent-logo { display: block; flex: 0 0 auto; height: 56px; overflow: hidden; }
.ent-logo img { display: block; width: 180px; height: auto; margin-top: -3px; } /* dessin du PNG centré dans la boîte (11/11) */
.ent-livrer {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; min-height: 48px; box-sizing: border-box;
  padding: 6px 16px 6px 12px; border: 1.5px solid var(--ent-txt); border-radius: 999px; background: #fff;
  color: var(--ent-txt); text-decoration: none;
}
.ent-livrer:hover { color: var(--ent-txt); background: var(--ent-fond); }
.ent-livrer__txt { display: flex; flex-direction: column; line-height: 1.15; }
.ent-livrer__petit { font-size: 12px; color: var(--ent-txt-2); }
.ent-livrer__fort { font-size: 15px; font-weight: 700; }
.ent-recherche {
  flex: 1 1 320px; display: flex; align-items: center; min-height: 48px; box-sizing: border-box;
  border-radius: 999px; background: var(--ent-fond); padding: 0 6px 0 18px;
}
.ent-recherche input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ent-txt); padding: 12px 0; }
.ent-recherche input::placeholder { color: var(--ent-txt-2); }
.ent-recherche input:focus { outline: none; }
.ent-recherche:focus-within { box-shadow: 0 0 0 3px var(--jaune); }
.ent-recherche button { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--vert); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ent-recherche button:hover { background: var(--vert-fonce); }
.ent-espace { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.ent-espace form { margin: 0; }
.ent-icone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 64px; min-height: 48px; padding: 0 4px; color: var(--ent-txt); text-decoration: none; font: inherit; font-size: 13px;
  background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.ent-icone__nom { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.ent-icone:hover, button.ent-icone:hover { background: var(--ent-fond); color: var(--ent-txt); }

/* Rail des rayons */
.ent-rayons { border-top: 1px solid var(--ent-trait); }
.ent-rail { max-width: 1320px; margin: 0 auto; padding: 6px 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ent-rail::-webkit-scrollbar { display: none; }
.ent-rail a {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 48px; box-sizing: border-box;
  padding: 6px 14px 6px 8px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px;
  color: var(--ent-txt); white-space: nowrap;
}
.ent-rail a:hover { background: var(--ent-fond); color: var(--ent-txt); }
.ent-rail a.actif { background: var(--ent-actif); color: var(--ent-txt); }
.ent-rail img { width: 30px; height: 30px; object-fit: contain; }
/* « Précommandes » en vert Brocoli, picto calendrier (maquette Main, D-14). */
.ent-rail a.ent-rail__preco, .ent-rail a.ent-rail__preco:hover { color: #3F6C4C; }
.ent-rail__preco svg { margin-left: 4px; }

@media (max-width: 720px) {
  .ent-bandeau { font-size: 13px; line-height: 18px; }
  .ent-bandeau__in { padding: 6px 16px; }
  .ent-livrer { display: none; }
  .ent-ligne { gap: 10px; padding: 10px 16px; }
  .ent-logo { height: 44px; }
  .ent-logo img { width: 140px; margin-top: -2px; }
  .ent-recherche { order: 3; flex: 1 1 100%; }
  .ent-espace { margin-left: auto; }
  .ent-icone { min-width: 48px; }
  .ent-rail { padding: 4px 12px 8px; }
}

@media print {
  .ent { display: none !important; }
}

/* Cibles tactiles d'au moins 44 px (D-05) sans épaissir le bandeau : marges négatives. */
.ent-liens a { min-height: 44px; display: inline-flex; align-items: center; margin: -12px 0; }
.ent-recherche button { width: 44px; height: 44px; }
.ent-recherche { padding-right: 2px; }

/* Panier (lot 1, maquette : bouton encre arrondi « Panier · N articles ») */
.ent-panier { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--ent-txt); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.ent-panier:hover { background: var(--vert-fonce); color: #fff; }
.ent-panier__nb { display: none; }
@media (max-width: 720px) {
  .ent-panier { padding: 0 12px; min-height: 44px; gap: 6px; }
  .ent-panier__txt { display: none; }
  .ent-panier__nb { display: inline; }
}

/* Rail : plus serré pour que les rayons tiennent à 1440 px ; sinon flèches pleines (pas de
   dégradé, charte D14) aux bords, affichées par shop.js quand le rail déborde (D-11 point 3). */
.ent-rayons { position: relative; }
.ent-rail { gap: 2px; padding: 6px 12px; }
.ent-rail a { padding: 6px 8px 6px 4px; gap: 6px; font-size: 14px; }
.ent-rail img { width: 28px; height: 28px; }
.ent-rail__fleche {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--ent-trait);
  background: #fff; color: var(--ent-txt); box-shadow: 0 2px 8px rgba(20, 20, 20, .14);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ent-rail__fleche[hidden] { display: none; }
.ent-rail__fleche--g { left: 4px; }
.ent-rail__fleche--d { right: 4px; }
.ent-rail__fleche--d svg { transform: scaleX(-1); }
.ent-rail__fleche:hover { background: var(--ent-fond); }
