@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+3:wght@400;700&display=swap');

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 1rem;
}

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

a { color: var(--color-primary); }
a:hover { color: var(--color-accent); }
a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Header / Nav ───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img { height: 40px; width: auto; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--color-accent); color: #fff; }
.header-cta:focus-visible { outline: 3px solid var(--color-accent); }
.header-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

nav { display: flex; align-items: center; gap: 0.25rem; }
nav a {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.15s;
}
nav a:hover, nav a[aria-current="page"] {
  background: var(--color-secondary);
  color: var(--color-accent);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: 2px solid var(--color-primary);
  border-radius: 5px;
  padding: 6px 8px;
  cursor: pointer;
  color: var(--color-primary);
  flex-shrink: 0;
}
.burger svg { display: block; }
.burger:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }

/* Mobile nav */
@media (max-width: 700px) {
  .burger { display: flex; }
  nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }
  nav.open { transform: translateX(0); }
  nav a { font-size: 1.3rem; padding: 0.75rem 2rem; }
  .nav-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
    line-height: 1;
  }
  .nav-close:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 60%, #7c2d12 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.25rem 3.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://lh3.googleusercontent.com/gps-cs-s/AB5caB-CMlbq7M80zlKnWMu8PQqYneCC5SOYU-RcJW7zsx7IzTmsYFZLOSGVGgrxmiaWOx2XSvY8DJxiQwBqIfFrwyrZ_UJXhXfIUul7dQLPG96w-gUxxCPL1CZFlxAeLl9c3LKQWn5-sA=w800-h500-k-no');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1.75rem;
  opacity: 0.95;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(0,0,0,.25); color: var(--color-accent); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.73rem 1.5rem;
  border-radius: 8px;
  border: 2px solid #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Main content ───────────────────────────────────────── */
main { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

section {
  padding: 3rem 0;
  border-bottom: 1px solid #f0f0f0;
}
section:last-child { border-bottom: none; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }

/* ── Cards grid ─────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fafafa;
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  padding: 1.5rem;
}
.card h3 { color: var(--color-primary); }

/* ── Ratings ────────────────────────────────────────────── */
.ratings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-secondary);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
}
.rating-badge strong {
  font-size: 1.3rem;
  color: var(--color-accent);
  font-family: var(--font-display);
}
.rating-badge span { font-size: 0.9rem; color: var(--color-text); }

/* ── Menu list ──────────────────────────────────────────── */
.menu-category { margin-bottom: 2.5rem; }
.menu-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.menu-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: #fafafa;
}
.menu-list li::before {
  content: '🍕';
  flex-shrink: 0;
  font-size: 1.1rem;
}
.menu-list li strong { color: var(--color-primary); display: block; }

/* ── Contact form ───────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info address { font-style: normal; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-info a { font-weight: 700; }

form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
label { font-weight: 700; font-size: 0.9rem; color: var(--color-accent); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(194,65,12,.15);
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: #6b7280; margin-top: -0.25rem; }

.btn-submit {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--color-accent); }
.btn-submit:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* RGPD notice inside form */
.rgpd-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #4b5563;
}
.rgpd-block label { color: #4b5563; font-weight: 400; flex-direction: row; display: flex; gap: 0.5rem; align-items: flex-start; cursor: pointer; }
.rgpd-block input[type="checkbox"] { width: auto; margin-top: 3px; flex-shrink: 0; }

/* ── Map ────────────────────────────────────────────────── */
.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--color-secondary);
  margin-top: 1rem;
}
.map-wrapper iframe { width: 100%; height: 280px; border: none; display: block; }

/* ── Mentions légales ───────────────────────────────────── */
.legal-box {
  background: #fef3c7;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--color-text);
  color: #e5e7eb;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }

.footer-brand h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.9rem; color: #9ca3af; }

footer h3 { font-size: 1rem; color: var(--color-secondary); margin-bottom: 0.75rem; font-weight: 700; }
footer a { color: #d1d5db; text-decoration: none; }
footer a:hover { color: var(--color-secondary); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #374151;
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-attribution { font-size: 0.78rem; color: #6b7280; }

/* ── Analytics placeholder ──────────────────────────────── */
/* Cloudflare Web Analytics snippet — token à configurer par le Deployer :
   <script defer src='https://static.cloudflareinsights.com/beacon.min.js'
   data-cf-beacon='{"token": "TODO_CF_WEB_ANALYTICS_TOKEN"}'></script>
*/

/* ── Animation hooks (AnimationDesigner) ────────────────── */
/* Fallback statique — contenu visible sans JS et avec prefers-reduced-motion */
.fade-in { opacity: 1; }
.section-reveal { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: no-preference) {
  /* 1 — Entrée hero : titre, accroche, boutons glissent en séquence */
  @keyframes marlone-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-content h1 {
    animation: marlone-fade-up 0.65s ease-out both;
  }
  .hero-content > p {
    animation: marlone-fade-up 0.65s 0.15s ease-out both;
  }
  .hero-buttons {
    animation: marlone-fade-up 0.55s 0.30s ease-out both;
  }

  /* 2 — Cards : élévation chaude braise au survol */
  .card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(194, 65, 12, .15);
    border-color: var(--color-accent);
  }

  /* 3 — Boutons : halo ambré au survol (distinct de scale) */
  .btn-primary {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }
  .btn-primary:hover {
    box-shadow: 0 0 0 3px rgba(253, 230, 138, .6), 0 4px 14px rgba(0, 0, 0, .18);
    transform: translateY(-2px);
  }
  .btn-secondary {
    transition: background 0.18s ease, transform 0.18s ease;
  }
  .btn-secondary:hover {
    transform: translateY(-2px);
  }
  .btn-submit {
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  }
  .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(253, 230, 138, .5);
  }

  /* 4 — Badges avis : légère prise chaleur au survol */
  .rating-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .rating-badge:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 14px rgba(146, 64, 14, .13);
  }

  /* 5 — Liens nav : soulignement glissant depuis la gauche */
  nav a {
    position: relative;
  }
  nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }
  nav a:hover::after,
  nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  /* 6 — Items menu : glissement chaud au survol */
  .menu-list li {
    transition: background 0.18s ease, transform 0.15s ease;
  }
  .menu-list li:hover {
    background: #fef3c7;
    transform: translateX(4px);
  }

  /* 7 — CTA header : micro-vibration téléphone au survol */
  @keyframes marlone-phone-ring {
    0%, 100% { transform: rotate(0deg); }
    20%       { transform: rotate(-10deg) scale(1.12); }
    60%       { transform: rotate(7deg)  scale(1.06); }
    80%       { transform: rotate(-4deg); }
  }
  .header-cta:hover svg {
    animation: marlone-phone-ring 0.42s ease-in-out;
  }
}

/* ── Utility ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ── Tablet / Desktop overrides ─────────────────────────── */
@media (min-width: 768px) {
  .hero { padding: 6rem 1.25rem 5rem; }
  section { padding: 4rem 0; }
}
@media (min-width: 960px) {
  .hero { padding: 7rem 1.25rem 6rem; }
}
