/* =========================================================================
   La Fournaise d'Olives — feuille de style
   Palette inspirée du logo : braise (orange), charbon volcanique (noir),
   olive (vert accent), crème chaude. Thème sombre par défaut + clair.
   ========================================================================= */

:root {
  --orange: #ef8a22;
  --orange-2: #ff9d3c;
  --lave: #d6451c;
  --olive: #8a9a4b;
  --olive-deep: #5f6b34;
  --cream: #f4ecdd;

  /* Thème sombre (défaut) */
  --bg: #14100d;
  --bg-2: #1c1611;
  --surface: #221a14;
  --surface-2: #2a2019;
  --line: #3a2c20;
  --text: #f6ecdf;
  --muted: #c3ab93;
  --accent: var(--orange);
  --on-accent: #1a1109;
  --hero-photo-opacity: 1;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);

  --maxw: 1160px;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f6efe4;
  --bg-2: #efe6d6;
  --surface: #ffffff;
  --surface-2: #fbf4e9;
  --line: #e6d8c2;
  --text: #241a12;
  --muted: #6e5c48;
  --on-accent: #1a1109;
  --hero-photo-opacity: .92;
  --shadow: 0 16px 40px rgba(60, 40, 20, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }

.muted { color: var(--muted); }
em { font-style: italic; }

/* ---------- Boutons ---------- */
.btn {
  --pad: 14px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { --pad: 10px 18px; font-size: .9rem; }
.btn-lg { --pad: 17px 34px; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--lave));
  color: #fff;
  box-shadow: 0 10px 26px rgba(214, 69, 28, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(214, 69, 28, .45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
  display: flex; flex-direction: column;
}
.brand-name-sub { color: var(--orange); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-size: .95rem; color: var(--muted); font-weight: 500; position: relative; transition: color .2s; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--orange); transition: width .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--text); cursor: pointer; transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.ico-sun { display: none; }
:root[data-theme="light"] .ico-moon { display: none; }
:root[data-theme="light"] .ico-sun { display: block; }

.nav-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 12px; cursor: pointer; padding: 11px 10px; }
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-burger span + span { margin-top: 5px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 6px; padding: 12px 22px 22px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.mobile-nav a { padding: 12px 6px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 10px; color: #fff; border: 0; justify-content: center; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 9vw, 110px); }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 22% 30%, rgba(239, 138, 34, .30), transparent 60%),
    radial-gradient(520px 360px at 82% 12%, rgba(214, 69, 28, .26), transparent 60%);
  filter: blur(6px);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .84rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 20px;
}
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 rgba(138,154,75,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(138,154,75,0); } 100% { box-shadow: 0 0 0 0 rgba(138,154,75,0); } }

.hero-title { font-size: clamp(2.3rem, 6vw, 4.1rem); margin: 0 0 20px; font-weight: 600; }
.hero-title em { color: var(--orange); font-weight: 600; }
.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 30ch; margin: 0 0 26px; }
.hero-sub strong { color: var(--text); }

.badge-247 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px; margin-bottom: 30px;
  background: color-mix(in srgb, var(--orange) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent);
  color: var(--orange); font-size: .95rem;
}
.badge-247 strong { color: var(--text); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visuel */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hero-disc {
  width: min(430px, 80vw); aspect-ratio: 1; border-radius: 50%;
  overflow: hidden; position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 10px rgba(239,138,34,.10);
  border: 2px solid color-mix(in srgb, var(--orange) 40%, transparent);
  animation: floaty 7s ease-in-out infinite;
}
.hero-disc::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(214,69,28,.35), transparent 55%); }
.hero-pizza { width: 100%; height: 100%; object-fit: cover; opacity: var(--hero-photo-opacity); }
.hero-badge {
  position: absolute; width: 118px; height: 118px; right: 2%; bottom: 2%;
  border-radius: 50%; box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite reverse;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-chip {
  position: absolute; padding: 9px 15px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: .82rem; font-weight: 600; box-shadow: var(--shadow);
}
.hero-chip-1 { top: 6%; left: -2%; }
.hero-chip-2 { bottom: 14%; left: 0; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 20px; display: grid; justify-items: center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--orange); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Sections génériques ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-dark { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-olive { background:
    radial-gradient(700px 300px at 80% -10%, rgba(138,154,75,.16), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--orange); margin: 0 0 12px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.7rem); margin: 0 0 16px; }
.lede { font-size: 1.14rem; color: var(--muted); max-width: 60ch; margin: 0 0 8px; }
.lede.center { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 46px; }
.section-head.center { text-align: center; }

/* ---------- Concept ---------- */
.concept-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.concept-points { display: grid; gap: 14px; margin-top: 28px; }
.concept-points > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding-left: 18px; border-left: 3px solid var(--orange); }
.concept-points strong { grid-column: 1 / -1; font-family: var(--font-display); font-size: 1.05rem; }
.concept-points span { grid-column: 1 / -1; color: var(--muted); font-size: .96rem; }
.concept-media { position: relative; }
.concept-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-float {
  position: absolute; right: -14px; bottom: -20px;
  background: linear-gradient(135deg, var(--orange), var(--lave)); color: #fff;
  border-radius: 16px; padding: 16px 22px; text-align: center; box-shadow: var(--shadow);
}
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.stat-lbl { font-size: .78rem; opacity: .9; letter-spacing: .04em; }

/* ---------- Steps (distributeur) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px 28px; overflow: hidden; }
.step-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--lave)); }
.step-num { position: absolute; top: 16px; right: 20px; font-family: var(--font-display); font-size: 2.4rem; color: color-mix(in srgb, var(--orange) 26%, transparent); font-weight: 700; }
.step-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); margin-bottom: 18px; }
.step-card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.step-card p { color: var(--muted); margin: 0; }

.reassure { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 20px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--olive) 14%, transparent); border: 1px solid color-mix(in srgb, var(--olive) 40%, transparent); }
.reassure svg { color: var(--olive); flex: none; }
.reassure p { margin: 0; color: var(--text); }

/* ---------- Pizzas ---------- */
.pizza-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pizza-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.pizza-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pizza-img { aspect-ratio: 4/3; overflow: hidden; }
.pizza-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pizza-card:hover .pizza-img img { transform: scale(1.07); }
.pizza-body { padding: 18px 18px 22px; }
.pizza-body h3 { font-size: 1.2rem; margin: 0 0 6px; }
.pizza-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.pizzas-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 26px; font-style: italic; }

/* ---------- Atouts ---------- */
.atouts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.atout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.atout-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--olive) 18%, transparent); color: var(--olive); margin-bottom: 16px; }
.atout h3 { font-size: 1.15rem; margin: 0 0 8px; }
.atout p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Adresse ---------- */
.adresse-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.adresse-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 18px; }
.adresse-list li { display: flex; gap: 14px; align-items: flex-start; }
.adresse-list svg { color: var(--orange); flex: none; margin-top: 3px; }
.adresse-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 340px; }
.adresse-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(1.05); }

/* ---------- Réassurance ---------- */
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reason { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 24px; }
.reason-mark { font-family: var(--font-display); font-size: 3.4rem; line-height: .5; color: var(--orange); display: block; height: 26px; }
.reason p { margin: 0 0 16px; }
.reason-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--olive); }

/* ---------- CTA final ---------- */
.cta-final { position: relative; padding: clamp(56px, 8vw, 90px) 0; text-align: center; background:
    radial-gradient(600px 300px at 50% 0%, rgba(214,69,28,.25), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
}
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 12px; }
.cta-inner p { color: var(--muted); margin: 0 0 26px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 14px; }
.footer-tag { color: var(--muted); font-size: .95rem; }
.footer-col h4 { font-size: 1rem; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: var(--orange); border-color: var(--orange); }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 22px 22px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

/* ---------- Animations reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-burger { display: block; }
  .hero-grid, .concept-grid, .adresse-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; }
  .steps, .reasons-grid { grid-template-columns: 1fr; }
  .pizza-grid, .atouts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn-sm.btn-primary { display: none; }
  .hero-sub { max-width: none; }
  .pizza-grid, .atouts-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-float { right: 10px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Section live (stock en direct) ---------- */
.dot-live-2 { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--olive); margin-right:2px; box-shadow:0 0 0 0 rgba(138,154,75,.6); animation:pulse 2.4s infinite; }
.live-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:18px; }
.live-card {
  position:relative; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:20px; overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease;
}
.live-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.live-card::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:linear-gradient(90deg, var(--orange), var(--lave)); }
.live-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.live-name { font-family:var(--font-display); font-weight:600; font-size:1.25rem; margin:0; line-height:1.15; }
.live-stock { flex:none; display:inline-flex; align-items:center; gap:6px; font-size:.72rem; font-weight:700; letter-spacing:.4px; color:#12240f; background:var(--olive); padding:5px 10px; border-radius:999px; white-space:nowrap; }
.live-prices { display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.live-price { flex:1 1 90px; background:color-mix(in srgb, var(--bg) 55%, transparent); border:1px solid var(--line); border-radius:12px; padding:9px 12px; }
.live-price .lbl { font-size:.68rem; text-transform:uppercase; letter-spacing:1px; color:var(--muted); }
.live-price .val { font-size:1.25rem; font-weight:800; margin-top:2px; }
.live-price .val .cur { font-size:.85rem; font-weight:600; color:var(--muted); }
.live-price.hot .val { color:var(--orange-2); }
.live-price.cold .val { color:#79c2f2; }
.live-was { display:block; font-size:.72rem; color:var(--muted); text-decoration:line-through; }
.live-promo { position:absolute; top:14px; right:-30px; transform:rotate(45deg); background:var(--lave); color:#fff; font-size:.68rem; font-weight:800; padding:4px 36px; box-shadow:0 2px 8px rgba(0,0,0,.4); z-index:2; }
.live-empty { text-align:center; color:var(--muted); padding:40px 20px; font-size:1.05rem; border:1px dashed var(--line); border-radius:var(--radius); }
.live-updated { text-align:center; color:var(--muted); font-size:.82rem; margin-top:22px; }
.live-updated.stale { color:var(--lave); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
