
@import url('https://fonts.googleapis.com/css2?family=Zen+Antique&display=swap&family=Montserrat&display=swap');
   
/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; scroll-padding-top: 10vh;}
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; background: white; color: #333; }
a { text-decoration: none; color: inherit; display: inline-block;}
h1{ font-size: 2.2rem;}
h2{ font-size: 2rem; font-family: 'ZCOOL+XiaoWei';}
p{ font-size: 1.2rem; font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 400;}

/* === Header === */
.foodtruck-header{
  position: fixed;
  width:100%;
  height: 10vh;
  z-index: 50;
  background: #000700;
}

.foodtruck-header .header-inner{
  position: relative;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 1.5em 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 99;
}

.logo img{
  display: block;
  height: clamp(30px, 4.2vw, 45px);
  width: auto;
}

/* Desktop nav */
.foodtruck-nav{
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(14px, 3vw, 55px);
  font-size: clamp(14px, 2vw, 22px); /* taille qui s'adapte */
}

.foodtruck-nav a{
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-family: 'Zen Antique';
  line-height: 1;
  position: relative;
  outline: none;
  transition: color .2s ease;
}
.foodtruck-nav a:hover,
.foodtruck-nav a:focus-visible{ color:#D79E1B; }
.foodtruck-nav a::after{
  content:"";
  position:absolute; left:0; bottom:-6px;
  width:0; height:2px; background:#D79E1B;
  transition: width .2s ease;
}
.foodtruck-nav a:hover::after,
.foodtruck-nav a:focus-visible::after{ width:100%; }

/* Burger (hidden on desktop) */
.burger{
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; padding: 10px;
  cursor: pointer;
}
.burger span{
  display:block;
  height:2px; width:100%;
  background: white;
  margin:6px 0;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

/* Overlay mobile */
.mobile-menu-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none; opacity: 0;
  transition: opacity .25s ease;
  z-index: 50;
}
.mobile-menu-overlay.is-visible{ display:block; opacity:1; }

.mobile-menu-overlay .mobile-nav{
  position:absolute; inset:0;
  background:#000700;
  padding: 3em;
  display:flex; flex-direction:column; gap:3em;
  justify-content: center;
  align-items: center;
  transform: translateY(-8px);
  transition: transform .25s ease;
}
.mobile-menu-overlay.is-visible .mobile-nav{ transform: translateY(0); }

.mobile-menu-overlay .mobile-nav a{
  text-decoration:none;
  color:white;
  text-align: center;
  font-weight:700;
  font-size: clamp(20px, 5vw, 36px); /* gros en mobile/tablette */
  line-height:1.25;
}
.mobile-menu-overlay .mobile-nav a:focus-visible,
.mobile-menu-overlay .mobile-nav a:hover{ color:#D79E1B; }

/* Body lock quand le menu est ouvert */
.body-lock{ overflow: hidden; }

/* Burger ↔ croix (piloté par aria-expanded) */
.burger[aria-expanded="true"] span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive switch */
@media (max-width: 900px){
  .foodtruck-header .header-inner{ padding: 1.5em 4em; }
  .foodtruck-nav{ display:none; }   /* cache la nav desktop */
  .burger{ display:inline-block; }  /* montre le burger */
}

@media (max-width: 480px){
  .foodtruck-header .header-inner{ padding: 1em 2em;}
}

/* Motion-safe */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}


/* == Section Hero == */

.hero-foodtruck{
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: url('/wp-content/themes/c2studio/mockups/foodtruck/img/hero-bg.png') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-foodtruck::before{
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.2;
  z-index: 1;
}

.hero-foodtruck-inner{
  width: 90%;
  max-width: 800px;
  height: auto;
  padding: 2em 4em;
  z-index: 3;
}

.hero-foodtruck-inner img{
  width: 100%;
  object-fit: cover;
  z-index: 3;
}

.separator{
  position: absolute;
  bottom: -2%;
  left: 0;
  width: 100%;
  min-height: 20px;
  z-index: 3;
}

.separator img{
  width: 100%;
  object-fit: cover;
}

@media (max-width: 480px){
  .hero-foodtruck{
    background-image: url('/wp-content/themes/c2studio/mockups/foodtruck/img/hero-bg-mobile.jpg');
  }
}

/* == Section About == */

.about-ft { padding: clamp(32px, 6vw, 80px) 20px; }
.about-ft__inner{
  max-width:1200px;margin:0 auto;
  display:grid;gap:clamp(24px,3vw,50px);
  grid-template-columns:1.05fr 1fr;
  grid-template-areas:
    "media top"
    "media bottom";
  align-items:center;
}

/* Zones */
.about-ft__content--top    { grid-area: top; }
.about-ft__media           { grid-area: media; }
.about-ft__content--bottom { grid-area: bottom; }

/* Media */
.about-ft__media{ max-width: 80%; margin:0 auto; position:relative; overflow:hidden; }
.about-ft__media img{ display:block; width:100%; height:auto; object-fit:cover; }

/* Texte */
.about-ft__title{ font-size:clamp(28px,3.2vw,44px); line-height:1.1; margin:0 0 12px; color:#161616; }
.about-ft__intro{ color:#555; font-size:clamp(16px,1.5vw,18px); margin:0; }
.about-ft__quote{ margin:0 0 12px; font-size:clamp(18px,1.8vw,22px); color:#222; }
.about-ft__content p{ color:#444; font-size:clamp(16px,1.5vw,18px); line-height:1.6; }

/* Mobile : colonne et ordre imposé (top → media → bottom) */
@media (max-width:900px){
  .about-ft__inner{
    grid-template-columns:1fr;
    grid-template-areas:
      "top"
      "media"
      "bottom";
    align-items:start;
  }
  .about-ft__media{ max-width: 50%;}
  .about-ft__content{ text-align: center; max-width: 80%; margin: 0 auto;}
}

@media (max-width: 480px){
  .about-ft__media{ max-width: 70%;}
}


/* Desktop only : un seul breakpoint + nudge fluide */
@media (min-width: 901px) {
  .about-ft__inner {
    /* nudge qui s’adapte : mini 8px, idéal ~2vw, maxi 24px */
    --nudge: clamp(25px, 5vw, 80px);
  }
  .about-ft__content--top {
    transform: translateY(var(--nudge));
  }
  .about-ft__content--bottom {
    transform: translateY(calc(var(--nudge) * -1));
  }
}

/* Option: légère marge autour de l'image sur mobile */
@media (max-width: 600px) {
  .about-ft__media { margin-bottom: 8px; }
}


/* == Section Menu == */

.menu-ft {
  position: relative;
  padding: clamp(35px, 5.5vw, 80px) 20px;
  background: #1C1A1A;   /* retire si tu es en fond blanc */
  overflow: hidden;
  color: #fff;
  --accent: #D79E1B;
}

.menu-ft .separator{
  position: absolute;
  top: -1%;
  left: 0;
  width: 100%;
}

.menu-ft .separator img{
  width: 100%;
  object-fit: cover;
}

.menu-ft__inner{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

/* Titres de rubrique */
.menu-ft__heading{
  color: var(--accent);
  font-size: clamp(24px, 3.2vw, 40px);
  font-family: 'Zen Antique';
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 10px;
  line-height: 1.1;
}

.menu-ft__heading span{
  font-size: 0.6em;
}

/* Liste d'items */
.menu-list{
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0 0 clamp(20px, 3vw, 36px);
}
.menu-item{ margin: 0 0 16px; }

.menu-line{
  display: grid;
  grid-template-columns: auto 1fr;   /* nom | rail (points + prix) */
  align-items: baseline;
  column-gap: 12px;
  --leader-gap: clamp(4px, 0.9vw, 12px);
  width: 100%;
}

/* Rail de points dans la colonne 2 (s’arrête avant le prix) */
.menu-line::after{
  content: "";
  grid-column: 2;
  display: block;
  height: 1px;
  align-self: center;
  /* style “pointillés” (ou garde ta version “points”) */
  background: repeating-linear-gradient(
    to right,
    currentColor 0,
    currentColor 1px,
    transparent 1px,
    transparent var(--leader-gap)
  );
  opacity: .6;
}

/* Placement/alignement explicite */
.menu-name  { grid-column: 1; white-space: nowrap; font-weight: 800; }
.menu-price { grid-column: 2; justify-self: end; white-space: nowrap; }

.menu-price { padding-left: 8px; }


.menu-line, .menu-desc{ font-family: 'Montserrat';}

.menu-desc{
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #bfbfbf;
}

/* Tweaks mobile */

/* Rail de points : laisse une marge à droite pour le prix */
.menu-line{
  /* densité des points (tu as déjà) */
  --leader-gap: clamp(4px, 0.9vw, 12px);

  /* marge à réserver au bout du rail (avant le prix) */
  --leader-end-gap: 40px; /* desktop par défaut */
}

/* Le rail ne prend pas 100% de la colonne, on garde une réserve pour le prix */
.menu-line::after{
  width: calc(100% - var(--leader-end-gap));
}

/* Le prix passe au-dessus du rail et a un léger fond pour “percer” les pointillés */
.menu-price{
  justify-self: end;
  padding-left: 8px;
  position: relative;
  z-index: 1;
  background: #1C1A1A; /* même couleur que la section */
}


/* ===== Layout ===== */
@media (min-width: 900px){
  .menu-ft__inner{
    --col: clamp(320px, 45vw, 550px); 
    grid-template-columns: repeat(2, var(--col));
    justify-content: center;        
    justify-items: start;               
  }
}


/* ===== Mobile : rubriques empilées avec marge claire ===== */
@media (max-width: 899px){
  .menu-ft__col + .menu-ft__col{
    border-top: 1px solid rgba(255,255,255,.12); /* séparateur léger */
    padding-top: 16px;
  }
  .menu-list{ margin-bottom: 28px; }
  .menu-line{ --leader-end-gap: 7ch; }
}

@media (max-width: 480px){
    .menu-ft__inner{
      padding: 0;
    }
    .menu-list{ padding-left: 0.8em;}
}

/* == Section Location == */

.location-section{
  width: 100%;
  height: auto;
  background-color: #1C1A1A;
  padding: 4em 0;
}

.location-section img{
  width: 100%;
  max-width: 100%;
  max-height: 700px;
  object-fit: cover;
  object-position: 20% 0;
}

.map-wrapper{
  width: 100%;
  display: flex;
  justify-content: center; align-items: center;
  padding: 4em;
}

.map-wrapper iframe{
  width: 80%;
  max-width: 100%;
  max-height: 500px;
}

.location-section .adress-wrapper{
  width: 100%;
  max-width: 80%;
  margin: 0 auto;
}

.location-section p:first-of-type{
  color: #D79E1B;
  font-size: clamp(15px, 2.5vw, 28px);
  font-family: 'Zen Antique';
  text-transform: uppercase;
  padding-bottom: 1em;
}

.location-section p{
  color: white;
  text-align: center;
  line-height: 1.2em;
  font-size: clamp(0.8em, 2vw, 1.2em);
  line-break: normal;
}

@media( max-width: 900px){
  .map-wrapper{
    padding: 3em 2em;
  }
  .map-wrapper iframe{
    max-height: 400px;
  }
}

@media (max-width: 480px){
  .map-wrapper{
    padding: 2em 1em;
  }
  .map-wrapper iframe{
    max-height: 250px;
  }
}

/* == Section Contact == */

.contact{
  width: 100%;
  margin: 0 auto;
  padding: 4em 2em;
}

.contact p{ text-align: center;}

/* == Footer == */

footer{
  background-color: white;
  padding: 2em 4em;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}

footer .socials{
  text-align: center;
  width: 30%;
}

.socials a{
  margin-right: 1em;
}

.socials img{
  width: 25px;
  height: 25px;
}

footer .footer-nav{
  width: 50%;
}

.footer-nav a{
  margin-right: 1em;
  font-size: clamp(0.8em, 2vw, 1.2em);
}

@media(max-width: 800px){
  footer{
    padding: 1.5em 2em;
  }
}

@media (max-width: 480px){
  footer{
    padding: 1em 1em;
    align-items: center;
  }
  .socials{
    gap: .4em;
  }
  .socials a{
    margin-right: 0;
  }
  .footer-nav{
    padding: .4em;
    width: 60%;
    line-height: 1em;
  }
  .footer-nav a{
    padding-bottom: 10px;
  }
}