/* ============================================
   GNINOU_FOOD — Page d'accueil
   ============================================ */

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 100px);
  background-color: var(--fond);
  background-image: var(--motif-wax);
}
.hero::before{
  /* halo chaud derrière les assiettes */
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,127,0,.28), transparent 65%);
  pointer-events: none;
}
.hero-grille{
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.hero-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--encre);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}
.hero-badge i{ color: var(--orange); }
.hero h1{
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.surligne{
  position: relative;
  color: var(--rouge);
  white-space: nowrap;
}
.surligne::after{
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: .08em;
  height: .28em;
  z-index: -1;
  border-radius: 6px;
  background: var(--jaune);
  transform: rotate(-1.5deg);
}
.hero-sous-titre{ max-width: 540px; margin: 0 0 28px; font-size: 1.15rem; color: var(--texte-doux); }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; }
.bouton-grand{ min-height: 56px; padding: 14px 28px; font-size: 1.08rem; }
.hero-chiffres{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.hero-chiffres li{ display: flex; flex-direction: column; }
.hero-chiffres strong{ font-family: var(--police-titre); font-size: 2.2rem; line-height: 1; color: var(--rouge); }
.hero-chiffres span{ color: var(--texte-doux); font-weight: 700; font-size: .9rem; }

/* ---------- Assiettes flottantes ---------- */
.hero-visuel{ position: relative; height: clamp(360px, 42vw, 520px); }
.hero-assiette{
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 30px 60px -20px rgba(90,40,20,.55);
  animation: flotte 6s ease-in-out infinite;
}
.hero-assiette img{ width: 100%; height: 100%; object-fit: cover; }
.hero-assiette-1{ width: 62%; aspect-ratio: 1; top: 4%; left: 18%; z-index: 2; }
.hero-assiette-2{ width: 40%; aspect-ratio: 1; bottom: 0; left: 0; z-index: 3; animation-delay: -2s; }
.hero-assiette-3{ width: 36%; aspect-ratio: 1; bottom: 6%; right: 0; z-index: 1; animation-delay: -4s; }
@keyframes flotte{ 50%{ transform: translateY(-14px) rotate(2deg); } }
.hero-etiquette{
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--police-titre);
  font-weight: 700;
  box-shadow: var(--ombre-forte);
}
.hero-etiquette i{ color: var(--orange); }
.hero-etiquette-1{ top: 6%; left: 0; }
.hero-etiquette-2{ bottom: 40%; right: -2%; }
.hero-etiquette-2 i{ color: var(--jaune); }
.hero-sticker{
  position: absolute;
  z-index: 5;
  top: 0; right: 6%;
  width: 104px; height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.05;
  color: #fff;
  background: var(--rouge);
  clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 90% 41%, 100% 54%, 87% 63%, 91% 79%, 75% 81%, 70% 97%, 55% 90%, 41% 100%, 33% 85%, 17% 90%, 16% 73%, 0% 67%, 9% 53%, 2% 38%, 17% 31%, 18% 14%, 35% 15%);
  animation: tourne 12s linear infinite;
}
@keyframes tourne{ to{ transform: rotate(360deg); } }
.hero-forme{ position: absolute; border-radius: 50%; }
.hero-forme-1{ width: 70px; height: 70px; background: var(--vert); opacity: .85; top: 50%; left: 6%; z-index: 0; }
.hero-forme-2{ width: 34px; height: 34px; background: var(--jaune); bottom: 2%; right: 40%; }

@media (max-width: 900px){
  .hero-grille{ grid-template-columns: 1fr; }
  .hero-visuel{ order: -1; height: 340px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-texte{ text-align: center; }
  .hero-sous-titre{ margin-inline: auto; }
  .hero-actions, .hero-chiffres{ justify-content: center; }
}
@media (max-width: 520px){
  .hero-visuel{ height: 280px; }
  .hero-sticker{ width: 84px; height: 84px; font-size: .95rem; }
  .hero-etiquette{ padding: 8px 12px; font-size: .85rem; }
  .bouton-grand{ width: 100%; }
}

/* ---------- Bandeau défilant ---------- */
.bandeau{
  overflow: hidden;
  padding: 14px 0;
  background: var(--rouge);
  color: #fff;
  transform: rotate(-1.2deg);
  margin: 0 -10px;
  border-top: 4px solid var(--encre);
  border-bottom: 4px solid var(--encre);
}
.bandeau-piste{
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: defile 32s linear infinite;
}
.bandeau span{ font-family: var(--police-titre); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.bandeau i{ color: var(--jaune); }
@keyframes defile{ to{ transform: translateX(-50%); } }

/* ---------- Catégories ---------- */
.grille-categories{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carte-categorie{
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: 24px;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--ombre);
  isolation: isolate;
}
.carte-categorie img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--courbe); }
.carte-categorie-voile{ position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(15,8,6,.88) 100%); }
.carte-categorie:hover img{ transform: scale(1.08); }
.carte-categorie-contenu{ display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.carte-categorie-icone{
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--couleur-categorie);
  font-size: 1.2rem;
  box-shadow: 0 8px 20px -6px var(--couleur-categorie);
}
.carte-categorie strong{ font-family: var(--police-titre); font-size: 1.5rem; line-height: 1.1; }
.carte-categorie small{ color: rgba(255,255,255,.85); font-size: .95rem; }
.carte-categorie-lien{ display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 800; color: var(--jaune); }
.carte-categorie-lien i{ transition: transform .25s; }
.carte-categorie:hover .carte-categorie-lien i{ transform: translateX(5px); }
@media (max-width: 1000px){ .grille-categories{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .grille-categories{ grid-template-columns: 1fr; } .carte-categorie{ min-height: 260px; } }

/* ---------- Carrousel ---------- */
.titre-gauche{ text-align: left; margin-bottom: 0; }
.titre-gauche p{ margin-left: 0; }
.entete-carrousel{ display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.fleches-carrousel{ display: flex; gap: 10px; }
.fleches-carrousel .bouton-icone{ background: var(--surface); box-shadow: var(--ombre); }
.carrousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 290px);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--rouge) transparent;
}
.carrousel .carte-plat{ scroll-snap-align: start; }

/* ---------- Étapes ---------- */
.etapes{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.etape{
  position: relative;
  padding: 30px 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--bordure);
  counter-increment: etape;
}
.etape::before{
  content: counter(etape);
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--police-titre);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--rouge-pale);
}
.etape-icone{
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-size: 1.5rem;
  transform: rotate(-6deg);
}
.etape:nth-child(2) .etape-icone{ background: var(--vert); transform: rotate(5deg); }
.etape:nth-child(3) .etape-icone{ background: var(--rouge); }
.etape h3{ font-size: 1.35rem; margin-bottom: 6px; }
.etape p{ margin: 0; color: var(--texte-doux); }
@media (max-width: 860px){ .etapes{ grid-template-columns: 1fr; } }

/* ---------- Livraison et promo ---------- */
.livraison-grille{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.livraison-grille .titre-section{ margin-bottom: 24px; }
.livraison-grille .champ{ max-width: 420px; }
.zone-infos{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; }
.zone-infos div{
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--bordure);
  animation: toastEntree .35s var(--courbe);
}
.zone-infos i{ color: var(--orange); font-size: 1.3rem; margin-bottom: 6px; }
.zone-infos span{ color: var(--texte-doux); font-weight: 700; font-size: .85rem; }
.zone-infos strong{ font-family: var(--police-titre); font-size: 1.4rem; }
.zone-astuce{ display: flex; gap: 8px; align-items: center; margin: 14px 0 0; color: var(--texte-doux); font-weight: 700; }
.zone-astuce i{ color: var(--vert); }

.carte-promo{
  position: relative;
  overflow: hidden;
  padding: 36px 30px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background-color: var(--vert-fonce);
  background-image: var(--motif-wax);
  box-shadow: var(--ombre-forte);
}
.carte-promo p{ margin: 0; }
.carte-promo-icone{ font-size: 2.6rem; color: var(--jaune); margin-bottom: 10px; animation: flotte 3s ease-in-out infinite; }
.carte-promo-sur{ font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.carte-promo-titre{ font-family: var(--police-titre); font-size: 2rem; line-height: 1.1; margin: 6px 0 !important; }
.carte-promo-titre strong{ font-size: 3.2rem; color: var(--jaune); display: block; }
.code-promo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 24px;
  border: 3px dashed var(--jaune);
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-family: var(--police-titre);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.code-promo:hover{ transform: scale(1.05); background: rgba(0,0,0,.4); }
.carte-promo-note{ font-size: .9rem; opacity: .9; }
@media (max-width: 860px){ .livraison-grille{ grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grille{ display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grille .titre-section{ margin-bottom: 24px; }
.contact-infos{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-infos li{ display: flex; align-items: center; gap: 14px; }
.contact-infos small{ display: block; color: var(--texte-doux); font-weight: 700; }
.contact-infos a{ font-weight: 700; text-decoration: none; }
.contact-infos a:hover{ color: var(--rouge); }
.contact-icone{
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--rouge-pale);
  color: var(--rouge);
  font-size: 1.1rem;
}
.carte-formulaire{
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--bordure);
  box-shadow: var(--ombre);
}
@media (max-width: 860px){ .contact-grille{ grid-template-columns: 1fr; } }

/* ============================================
   Entrée de l'accueil : chaque bloc arrive à son tour,
   puis le surlignage se dessine sous « livrées en un clic »
   ============================================ */
.hero-texte > *{ animation: heroEntree .8s var(--courbe) both; }
.hero-texte > :nth-child(1){ animation-delay: .05s; }
.hero-texte > :nth-child(2){ animation-delay: .15s; }
.hero-texte > :nth-child(3){ animation-delay: .3s; }
.hero-texte > :nth-child(4){ animation-delay: .42s; }
.hero-texte > :nth-child(5){ animation-delay: .55s; }
.hero-visuel{ animation: heroVisuel 1s .2s var(--courbe) both; }
.surligne::after{ transform-origin: left; animation: heroSurligne .7s .75s var(--courbe) both; }
@keyframes heroEntree{ from{ opacity: 0; transform: translateY(28px); } }
@keyframes heroVisuel{ from{ opacity: 0; transform: scale(.9) rotate(-3deg); } }
@keyframes heroSurligne{ from{ transform: rotate(-1.5deg) scaleX(0); } }

