/* =====================================================================
   L'AFTER x MID'NIGHT - Feuille de style principale
   Fast-food & epicerie de nuit a Montauban
   ===================================================================== */

/* -------------------------------------------------- 1. Variables */
:root {
  --vert:        #459246;
  --vert-fonce:  #357036;
  --rouge:       #B90020;
  --rouge-vif:   #E00025;
  --noir:        #0B0A07;
  --noir-doux:   #16140f;
  --creme:       #F9F5F2;
  --beige:       #ECE0D5;
  --gris-texte:  #595959;
  --orange:      #FFA609;
  --blanc:       #FFFFFF;

  --font-titre:  "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --font-texte:  "Inter", Arial, sans-serif;
  --max:         1200px;
  --radius:      8px;
  --ombre:       0 10px 30px rgba(0, 0, 0, .25);
  --transi:      .25s ease;
}

/* -------------------------------------------------- 2. Reset / base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  color: var(--noir);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--transi); }

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.script {
  font-family: var(--font-titre);
  text-transform: uppercase;
  color: var(--vert);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: 0;
}

/* -------------------------------------------------- 3. Utilitaires layout */
.container { width: 90%; max-width: var(--max); margin-inline: auto; }

.section { padding: 80px 0; }
.section--dark  { background: var(--noir); color: var(--creme); }
.section--beige { background: var(--beige); }
.section--green { background: var(--vert); color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .script { font-size: clamp(1.8rem, 4vw, 2.6rem); display: block; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 4px; }
.section-head p  { margin-top: 14px; color: var(--gris-texte); }
.section--dark .section-head p { color: #cfc8c0; }

.text-center { text-align: center; }

/* -------------------------------------------------- 4. Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titre);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 1.05rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transi), background var(--transi), color var(--transi);
}
.btn:hover { transform: translateY(-3px); }
.btn--green { background: var(--vert); color: #fff; }
.btn--green:hover { background: var(--vert-fonce); }
.btn--red   { background: var(--rouge); color: #fff; }
.btn--red:hover { background: var(--rouge-vif); }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--noir); }

/* -------------------------------------------------- 5. En-tête / Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 7, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}
.nav__logo {
  display: flex;
  align-items: center;
  width: 128px;
  height: 54px;
  overflow: hidden;
  flex: 0 0 128px;
}
.nav__logo img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  flex: 0 0 auto;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-family: var(--font-titre);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0;
}
.nav__links a { color: var(--creme); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--vert);
  transition: width var(--transi);
}
.nav__links a:hover,
.nav__links a.active { color: #fff; }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__phones { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.nav__phones a {
  color: var(--creme);
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.nav__phones a:hover { color: var(--vert); }

/* Burger menu (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: var(--transi); }

/* -------------------------------------------------- 6. Hero */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 72px 0 64px;
  background:
    linear-gradient(rgba(11,10,7,.84), rgba(11,10,7,.92)),
    url("../images/nuit-ville.png") center/cover no-repeat;
  overflow: hidden;
}
.hero--home {
  min-height: clamp(620px, 78svh, 760px);
  display: flex;
  align-items: center;
  padding: 46px 0 34px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(11,10,7,.95) 0%, rgba(11,10,7,.85) 45%, rgba(11,10,7,.72) 100%),
    url("../images/nuit-ville.png") center/cover no-repeat;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: 42px;
}
.hero__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-family: var(--font-titre);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--vert);
  font-weight: 700;
  font-size: 1.05rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin: 10px 0 8px;
}
.hero__sub {
  max-width: 610px;
  font-family: var(--font-texte);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: #e8e0d8;
  text-transform: none;
}
.hero__quote {
  color: var(--creme);
  font-size: 1.05rem;
  margin-top: 14px;
}
.hero__visual {
  align-self: center;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.hero__img {
  width: min(790px, 100%);
  max-width: 100%;
  margin: 0;
  filter: drop-shadow(0 24px 45px rgba(0,0,0,.7));
  transform: translateY(-8px);
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero--home .hero__cta { justify-content: flex-start; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
  color: #d7cec4;
  font-weight: 600;
}
.hero__proof span {
  padding-left: 12px;
  border-left: 2px solid var(--vert);
}

/* Bandeau catégories rapides */
.tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 30px;
}
.tags span {
  font-family: var(--font-titre);
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: .95rem;
}

/* -------------------------------------------------- 7. Bandeau infos (3 atouts) */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}
.feature .ico,
.contact-card .ico {
  font-family: var(--font-titre);
  color: var(--vert);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
}
.feature h3 { margin: 12px 0 6px; font-size: 1.4rem; color: var(--vert); }
.feature p { color: var(--gris-texte); font-size: .95rem; }

/* -------------------------------------------------- 8. Bloc présentation (texte + image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__body h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.split__body p { margin-bottom: 14px; }
.split__media img { border-radius: var(--radius); }
.split__media--plain img { filter: drop-shadow(0 16px 30px rgba(0,0,0,.35)); }
.split__media--cutout img {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-radius: 0;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.16));
}
.venue-photo {
  margin: 40px auto 0;
  max-width: 720px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  background: var(--noir);
}
.venue-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------- 9. Cartes produits / menu */
.menu-cat { margin-bottom: 56px; }
.menu-cat__title {
  font-size: 2rem;
  color: var(--rouge);
  border-bottom: 3px solid var(--vert);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 26px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.dish {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  transition: transform var(--transi);
}
.dish:hover { transform: translateY(-5px); }
.dish__img { height: 180px; background: var(--beige); display: flex; align-items: center; justify-content: center; }
.dish__img img { height: 100%; width: 100%; object-fit: contain; padding: 8px; }
.dish__body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.dish__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dish__name { font-family: var(--font-titre); text-transform: uppercase; font-size: 1.25rem; }
.dish__price { font-family: var(--font-titre); color: var(--vert); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.dish__desc { color: var(--gris-texte); font-size: .92rem; margin-top: 6px; }

/* Liste de prix simple (sans photo) */
.price-list { list-style: none; display: grid; gap: 12px; }
.price-list li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px dashed rgba(0,0,0,.15);
}
.price-list .name { font-family: var(--font-titre); text-transform: uppercase; font-size: 1.1rem; }
.price-list .desc { color: var(--gris-texte); font-size: .88rem; }
.price-list .price { font-family: var(--font-titre); color: var(--vert); font-weight: 700; white-space: nowrap; }

/* -------------------------------------------------- 10. Catégories épicerie */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--ombre);
  border-top: 4px solid var(--vert);
}
.cat-card h3 { color: var(--rouge); font-size: 1.5rem; margin-bottom: 12px; }
.cat-card ul { list-style: none; display: grid; gap: 6px; }
.cat-card li { color: var(--gris-texte); padding-left: 18px; position: relative; }
.cat-card li::before { content: "-"; position: absolute; left: 0; color: var(--vert); font-weight: 700; }

/* -------------------------------------------------- 11. Statistiques */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-titre); font-size: 3rem; color: var(--vert); line-height: 1; }
.stat .lbl { text-transform: uppercase; letter-spacing: 0; font-size: .9rem; color: #cfc8c0; }

/* -------------------------------------------------- 12. Avis clients */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.review {
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--ombre);
}
.review__stars { color: var(--orange); font-size: 1.1rem; }
.review__text { color: var(--gris-texte); margin: 10px 0 14px; font-style: italic; }
.review__author { font-family: var(--font-titre); text-transform: uppercase; font-weight: 600; }
.review__src { font-size: .8rem; color: #999; }

/* -------------------------------------------------- 13. Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery figure { background: var(--beige); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform var(--transi); }
.gallery figure:hover img { transform: scale(1.07); }

/* -------------------------------------------------- 14. Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; box-shadow: var(--ombre);
}
.contact-card h3 { color: var(--vert); margin: 12px 0 10px; font-size: 1.4rem; }
.contact-card p, .contact-card a { color: var(--gris-texte); }
.contact-card a:hover { color: var(--vert); }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Bandeau horaires */
.hours { max-width: 480px; margin: 0 auto; list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.1rem; }
.hours .day { font-family: var(--font-titre); text-transform: uppercase; }
.hours .time { color: var(--orange); font-weight: 600; }

/* -------------------------------------------------- 15. CTA bandeau */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta-band p { margin: 12px 0 24px; font-size: 1.1rem; }

/* -------------------------------------------------- 16. Pied de page */
.footer { background: var(--noir); color: #cfc8c0; padding: 60px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__logo {
  display: flex;
  align-items: center;
  width: 122px;
  height: 54px;
  overflow: hidden;
  margin-bottom: 14px;
}
.footer__logo img {
  width: 122px;
  height: 122px;
  object-fit: cover;
  flex: 0 0 auto;
}
.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--vert); }
.footer__bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem;
}
.footer__bottom a { color: var(--vert); }

/* -------------------------------------------------- 17. Pages légales (texte) */
.legal { padding: 60px 0; }
.legal h1 { font-size: 2.6rem; color: var(--vert); margin-bottom: 24px; }
.legal h2 { font-size: 1.6rem; color: var(--rouge); margin: 30px 0 12px; }
.legal p, .legal li { color: var(--gris-texte); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* -------------------------------------------------- 18. Responsive */
@media (max-width: 900px) {
  .features, .stats, .contact-grid { grid-template-columns: 1fr 1fr; }
  .split, .footer__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .nav__phones { display: none; }
  .hero--home { text-align: center; min-height: auto; padding: 62px 0 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 18px; }
  .hero__content { margin-inline: auto; }
  .hero--home .hero__cta { justify-content: center; }
  .hero__proof { justify-content: center; }
  .hero__img { width: min(560px, 92vw); max-width: 100%; transform: translateY(0); }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .nav { padding: 6px 0; }
  .nav__logo { width: 104px; height: 46px; flex-basis: 104px; }
  .nav__logo img { width: 104px; height: 104px; }
  .nav__links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    background: var(--noir);
    padding: 24px;
    gap: 18px;
    transform: translateY(-150%);
    transition: transform .3s ease;
    border-bottom: 2px solid var(--vert);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .features, .stats, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .hero__proof span { width: 100%; padding-left: 0; border-left: 0; }
}

/* -------------------------------------------------- 19. Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 1100px;
  margin-inline: auto;
  background: var(--noir-doux, #16140f);
  color: var(--creme);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow: var(--ombre);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: .92rem; flex: 1; min-width: 240px; line-height: 1.5; }
.cookie-banner__text a { color: var(--vert); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 9px 22px; font-size: .95rem; }
.cookie-banner__actions .btn--ghost { color: var(--creme); border-color: rgba(255, 255, 255, .45); }
.cookie-banner__actions .btn--ghost:hover { background: #fff; color: var(--noir); }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* -------------------------------------------------- 20. Carrousel avis Google */
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.reviews-head__info { text-align: left; }
.reviews-head__top { display: flex; align-items: center; gap: 10px; }
.reviews-head__score { font-family: var(--font-titre); font-size: 2.6rem; line-height: 1; color: var(--noir); }
.reviews-head .stars { color: #fbbc05; font-size: 1.3rem; letter-spacing: 2px; }
.reviews-head__meta { color: var(--gris-texte); font-size: .9rem; margin-top: 2px; }

.reviews-carousel { position: relative; }
.reviews-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.g-review {
  scroll-snap-align: start;
  flex: 0 0 340px;
  max-width: 340px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .07);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.g-review__top { display: flex; align-items: center; gap: 12px; }
.g-review__avatar {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-titre); font-weight: 700; font-size: 1.3rem;
}
.g-review__name { font-weight: 700; color: #202124; }
.g-review__src { display: flex; align-items: center; gap: 5px; font-size: .76rem; color: #70757a; }
.g-review__stars { color: #fbbc05; font-size: 1.05rem; letter-spacing: 1px; }
.g-review__text { color: #3c4043; font-size: .94rem; line-height: 1.6; }

.reviews-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: var(--noir);
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background var(--transi), color var(--transi);
}
.reviews-nav--prev { left: -14px; }
.reviews-nav--next { right: -14px; }
.reviews-nav:hover { background: var(--vert); color: #fff; border-color: var(--vert); }

.reviews-dots { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.reviews-dots button {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%;
  background: #cfc5bc; cursor: pointer;
  transition: all var(--transi);
}
.reviews-dots button.active { background: var(--vert); width: 24px; border-radius: 5px; }

@media (max-width: 600px) {
  .reviews-head { gap: 12px; }
  .g-review { flex-basis: 84%; max-width: 84%; }
  .reviews-nav { display: none; }
}
