/* ============================================================
   Chez Priscilla — Friterie Hastière
   Design repris de "Loick Frite" : friterie fun jaune / rouge,
   typo Fredoka, marquee, badges. Adapté avec photos réelles
   et une touche rose (logo Priscilla).
   ============================================================ */

:root {
  --yellow: #ffc328;
  --yellow-deep: #f5a623;
  --red: #e23b35;
  --red-deep: #c42d28;
  --pink: #e84d8f;          /* touche Priscilla */
  --ink: #241c12;
  --ink-soft: #5b5040;
  --cream: #fff8ec;
  --paper: #ffffff;
  --line: #efe4cf;
  --shadow: 0 18px 40px -18px rgba(54, 38, 12, 0.35);
  --radius: 18px;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text { font-family: "Fredoka", sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.section { max-width: var(--max); margin: 0 auto; padding: 90px 24px; }
#horaires { scroll-margin-top: 80px; }

.kicker {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 10px;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.lead { color: var(--ink-soft); font-size: 1.1rem; margin-top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -10px var(--red); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-nav { padding: 9px 18px; background: var(--ink); color: var(--cream); }
.btn-nav:hover { background: var(--red); }
.btn-block { width: 100%; }

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; }
.logo-img { height: 46px; width: auto; }
.logo-accent { color: var(--pink); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.hero-eyebrow { color: var(--red); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 12px 0 18px; }
.highlight {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  padding: 0 10px;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; }
.badge strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.5rem; color: var(--red); }
.badge span { font-size: 0.85rem; color: var(--ink-soft); }

/* Hero visuel : photo dans un cadre + petit emoji frite animé */
.hero-art { display: flex; justify-content: center; }
.fries-cone {
  font-size: clamp(8rem, 22vw, 15rem);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.2));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg);} 50% { transform: translateY(-18px) rotate(3deg);} }

/* ===== Marquee ===== */
.marquee {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  border-block: 4px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 24s linear infinite;
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ===== Cartes (accueil) ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.menu-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.menu-card:hover { transform: translateY(-6px); }
.menu-card-head h3 { font-size: 1.4rem; margin-bottom: 16px; }
.menu-card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* ===== Menu (carte détaillée) ===== */
.menu-cat { margin-bottom: 40px; }
.menu-cat:last-child { margin-bottom: 0; }
.menu-cat-title {
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.menu-cat-title::after { content: ""; flex: 1; height: 3px; background: var(--yellow); border-radius: 2px; }
.menu-cat-note { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; margin-bottom: 14px; }
.menu-list { list-style: none; }
.menu-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-line { display: flex; align-items: baseline; gap: 8px; }
.menu-line > span:first-child { font-weight: 500; }
.dots { flex: 1; border-bottom: 2px dotted #d8c9aa; transform: translateY(-4px); min-width: 12px; }
.price { font-weight: 600; color: var(--red); white-space: nowrap; font-family: "Fredoka", sans-serif; }
.menu-item-note { display: block; color: var(--ink-soft); font-size: 0.82rem; font-style: italic; margin-top: 2px; }
.menu-note { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Avis (accueil) ===== */
.reviews-section { background: #fff3d6; border-block: 4px solid var(--ink); padding-block: 70px; }
.reviews-section .section { padding-block: 0; }
.reviews-section .section-head { margin-bottom: 36px; }

.reviews-scroller {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4px 24px 8px;
}
.reviews-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--yellow-deep); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.review-card blockquote {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.review-card figcaption {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: var(--red);
}

/* Mobile : carrousel scrollable nativement (swipe) */
@media (max-width: 860px) {
  .reviews-scroller {
    padding-inline: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .reviews-scroller::-webkit-scrollbar { display: none; }
  .reviews-track {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    gap: 16px;
    padding-inline: 24px;
  }
  .review-card { scroll-snap-align: center; }
}

/* ===== About ===== */
.about { background: var(--paper); border-radius: 40px; margin-block: 30px; max-width: var(--max); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }
.about-points { list-style: none; margin-top: 18px; display: grid; gap: 10px; font-weight: 500; }
.about-points li { position: relative; padding-left: 30px; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241c12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== Hours ===== */
.hours-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 28px;
  box-shadow: var(--shadow);
}
.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list li > span:first-child { font-weight: 600; flex: 0 0 auto; }
.hours-list li > span:last-child { text-align: right; white-space: nowrap; }
.closed { color: var(--red); font-weight: 600; }

/* Mobile étroit : empile jour / créneau pour un affichage régulier */
@media (max-width: 560px) {
  .hours-card { padding: 8px 20px; }
  .hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 11px 0;
  }
  .hours-list li > span:last-child { text-align: left; color: var(--ink-soft); }
  .hours-list li .closed { color: var(--red); }
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { font-size: 1.5rem; }
.contact-list a:hover { color: var(--red); }
.contact-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.contact-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-cta h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-cta p { color: var(--ink-soft); margin-bottom: 22px; }
.contact-cta .btn { margin: 6px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--cream); margin-top: 40px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo-img { height: 42px; }
.footer-brand p { color: #c9bda6; margin-top: 10px; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 14px; font-size: 1.4rem; }
.footer-social a { transition: transform 0.2s; }
.footer-social a:hover { transform: translateY(-3px) scale(1.1); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  font-size: 0.85rem;
  color: #c9bda6;
}

/* ===== Lien de navigation actif ===== */
.nav-links a.active:not(.btn) { color: var(--red); }
.nav-links a.active:not(.btn)::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 2px;
}

/* ===== Bannière des pages internes ===== */
.page-banner {
  background: linear-gradient(180deg, #fff3d6 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 60px 24px 50px;
}
.page-banner h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 6px 0 10px; }
.page-banner p { color: var(--ink-soft); font-size: 1.1rem; max-width: 40ch; margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  /* Le header reste cliquable au-dessus de l'overlay (logo + croix).
     IMPORTANT : on retire backdrop-filter sur mobile car il crée un
     bloc conteneur qui empêcherait l'overlay `position:fixed` de couvrir
     tout le viewport (il se limiterait au header). */
  .header { z-index: 110; backdrop-filter: none; }

  /* Menu mobile : overlay plein écran déroulant */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 80px 24px 40px;
    margin: 0;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { padding: 0; width: 100%; text-align: center; }
  .nav-links a:not(.btn) {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    padding: 14px 0;
  }
  /* Pas de soulignement de lien actif en mode overlay */
  .nav-links a.active:not(.btn)::after { display: none; }
  .nav-links a.active:not(.btn) { color: var(--red); }
  .btn-nav {
    margin-top: 18px;
    font-size: 1.2rem;
    padding: 14px 40px;
  }
  /* Bloque le scroll de la page quand le menu est ouvert */
  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .fries-cone, .marquee-track { animation: none; }
}
