/* ================================================
   FABRICE'S PIES — The Incredible Pies
   Design Premium Artisanal · fabrice-pies.com | .ch
   ================================================ */

/* ---------- Variables ---------- */
:root {
  --gold:        #C9A84C;
  --gold-hi:     #E8CB7A;
  --gold-lo:     #9A7C2E;
  --black:       #000000;
  --dark:        #130E07;
  --dark2:       #1E1610;
  --cream:       #FAF4EC;
  --cream2:      #F0E6D6;
  --white:       #FFFFFF;
  --text:        #2C1E0E;
  --muted:       #7A6A50;
  --border:      #E4D8C8;

  --font-h:  'Playfair Display', Georgia, serif;
  --font-el: 'Cormorant Garant', 'Playfair Display', serif;
  --font-b:  'Lato', system-ui, sans-serif;

  --nav-h: 70px;
  --ease:  0.32s cubic-bezier(0.4, 0, 0.2, 1);
  --r-sm:  6px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  --sh:    0 2px 14px rgba(10,8,6,.09);
  --sh-md: 0 6px 28px rgba(10,8,6,.16);
  --sh-lg: 0 14px 52px rgba(10,8,6,.26);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); color: var(--text); background: var(--cream); line-height: 1.72; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
address { font-style: normal; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.hidden { display: none !important; }

/* ---------- Section helpers ---------- */
.sec-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.sec-label.light { color: var(--gold-hi); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2,
.section-header h2.light {
  font-family: var(--font-h);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 14px;
}
.section-header h2.light { color: var(--white); }
.sec-subtitle {
  font-size: .98rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.78;
}
.sec-subtitle.light { color: rgba(255,255,255,.58); }
.title-num {
  font-size: 1.35em;
  font-weight: 900;
  color: var(--gold, #C8922A);
  letter-spacing: -.02em;
  line-height: 1;
}
.title-sep {
  font-size: .7em;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .1em;
  vertical-align: middle;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .13s; }
.reveal-delay-2 { transition-delay: .26s; }
.reveal-delay-3 { transition-delay: .4s; }

/* ================================================
   NAVBAR
   ================================================ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 10px 0;
  transition: background var(--ease), box-shadow var(--ease);
}
#navbar.scrolled {
  background: var(--black);
  box-shadow: 0 1px 0 rgba(201,168,76,.18);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.nav-brand { display: flex; align-items: center; flex-shrink: 0; transition: opacity var(--ease); }
.nav-brand:hover { opacity: .82; }
.nav-logo-img    { height: 90px; width: auto; display: block; }
.nav-logo-fallback {
  display: none;
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
}

/* Menu */
.nav-menu { display: flex; gap: 36px; margin-left: auto; }
.nav-menu a {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.82);
  transition: color var(--ease);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-menu a:hover,
.nav-menu a.active-link { color: var(--gold); }
.nav-menu a:hover::after,
.nav-menu a.active-link::after { width: 100%; }
/* Bouton Contact nav (même apparence que les <a>) */
.nav-contact-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: rgba(255,255,255,.82);
  cursor: pointer;
  position: relative;
  transition: color var(--ease);
}
.nav-contact-btn::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav-contact-btn:hover { color: var(--gold); }
.nav-contact-btn:hover::after { width: 100%; }
.nav-link-muted { opacity: 1; font-size: inherit !important; letter-spacing: inherit; }
.maison-texte-valide { font-family: var(--font-el); font-size: 1.08rem; line-height: 1.8; color: var(--text); margin-bottom: 18px; }
.maison-signature { font-family: var(--font-el); font-style: italic; font-size: 1rem; color: var(--muted); margin-top: 6px; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: 24px; }

/* Franchise nav button */
.btn-franchise-nav {
  padding: 12px 30px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-franchise-nav:hover { background: var(--gold); color: var(--black); }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C9A84C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: .84rem; font-weight: 600;
  font-family: inherit;
  padding: 7px 28px 7px 10px;
  transition: border-color var(--ease), color var(--ease);
}
.lang-select:hover { border-color: var(--gold); color: var(--gold); }
.lang-select:focus { outline: none; border-color: var(--gold); }
.lang-select option { background: var(--dark2); color: #fff; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 5px; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,.82);
  transition: all var(--ease); border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: var(--black);
  padding-top: 90px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content--top  { padding-top: 20px; padding-bottom: 0; }
.hero-content--bottom { padding-top: 0; padding-bottom: 80px; margin-top: -60px; }
/* ---- Photo pleine largeur, centrée correctement ---- */
.hero-pie-wrap {
  position: relative;
  width: min(1200px, 92vw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -60px;
  z-index: 1;
  overflow: hidden;
}
/* Fondu noir en haut pour masquer la coupure */
.hero-pie-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, #000000 0%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}
/* Fondus latéraux et bas */
.hero-pie-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  #000000 0%, transparent 32%),
    linear-gradient(to left,   #000000 0%, transparent 18%),
    linear-gradient(to bottom, transparent 65%, #000000 100%),
    linear-gradient(to top,    #000000 0%, transparent 12%);
  z-index: 3;
  pointer-events: none;
}
.hero-pie-photo {
  display: block;
  width: 100%;
  height: auto;
  transform: translateX(-16%) translateY(6%);
}
/* hero-top et hero-bottom (résidus ancienne structure) */
.hero-top, .hero-bottom { display: contents; }
.hero-bg-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 55%;
  opacity: .95;
  filter: saturate(.9);
}
/* Fallback si pas de photo */
.hero-bg-photo[style*="url('')"],
.hero-bg-photo:not([style]) {
  background: radial-gradient(ellipse at 30% 65%, #3D200A 0%, transparent 58%),
              radial-gradient(ellipse at 75% 20%, #2A1600 0%, transparent 55%),
              linear-gradient(155deg, #0A0806, #1A1008 45%, #281808 100%);
  opacity: 1;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,8,6,.65) 0%,
    rgba(10,8,6,.18) 42%,
    rgba(10,8,6,.55) 100%);
}

/* ---- Fumée CSS : positionnée relative à .hero (pas au wrap) ---- */
.hero-steam {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  width: 140px;
  height: 280px;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.hero-steam span {
  position: absolute;
  bottom: 0;
  border-radius: 40% 60% 55% 45% / 50% 50% 60% 40%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 55%, transparent 80%);
  filter: blur(14px);
  mix-blend-mode: screen;
  animation: steamWisp var(--sd, 4s) cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite var(--delay, 0s);
}
.hero-steam span:nth-child(1) { width:55px; height:120px; left:38px;  --sd:5.5s; --delay:0s;   --dx:12px; }
.hero-steam span:nth-child(2) { width:42px; height:100px; left:82px;  --sd:6.2s; --delay:1.1s; --dx:-15px; }
.hero-steam span:nth-child(3) { width:62px; height:140px; left:18px;  --sd:4.8s; --delay:2.2s; --dx:8px; }
.hero-steam span:nth-child(4) { width:35px; height:85px;  left:105px; --sd:5.8s; --delay:0.5s; --dx:-10px; }
.hero-steam span:nth-child(5) { width:48px; height:115px; left:55px;  --sd:4.5s; --delay:3.0s; --dx:18px; }
.hero-steam span:nth-child(6) { width:38px; height:95px;  left:75px;  --sd:6.5s; --delay:1.6s; --dx:-8px; }
@keyframes steamWisp {
  0%   { transform: translateY(0)      translateX(0)         scaleX(1)    scaleY(1);   opacity: 0;    filter: blur(14px); }
  8%   { opacity: 0; }
  18%  { opacity: 0.55;  transform: translateY(-40px)  translateX(calc(var(--dx)*0.2)) scaleX(0.95) scaleY(1.05); filter: blur(12px); }
  40%  { opacity: 0.40;  transform: translateY(-130px) translateX(calc(var(--dx)*0.6)) scaleX(0.80) scaleY(1.1);  filter: blur(16px); }
  65%  { opacity: 0.22;  transform: translateY(-230px) translateX(var(--dx))            scaleX(0.60) scaleY(1.15); filter: blur(20px); }
  85%  { opacity: 0.08;  transform: translateY(-320px) translateX(calc(var(--dx)*1.3))  scaleX(0.40) scaleY(1.2);  filter: blur(26px); }
  100% { opacity: 0;     transform: translateY(-380px) translateX(calc(var(--dx)*1.5))  scaleX(0.20) scaleY(1.25); filter: blur(32px); }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 56px 28px 60px;
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
/* Hero logo */
.hero-logo-wrap { margin-bottom: 0; }
.hero-pies-img {
  width: min(1800px, 100vw);
  height: auto;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.5));
  opacity: 0;
  animation: aFadeUp .9s ease forwards .35s;
}
.hero-logo-img {
  height: 260px; width: auto; margin: 0 auto;
  filter: drop-shadow(0 12px 40px rgba(201,168,76,.55));
  animation: aLogoIn 1s ease forwards;
}
.hero-logo-svg {
  display: none;
  flex-direction: column; align-items: center;
  animation: aLogoIn 1s ease forwards;
}
.hls-top {
  font-family: var(--font-h); font-style: italic;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  color: var(--gold); line-height: .9;
}
.hls-bottom {
  font-family: var(--font-h); font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 9rem);
  color: var(--gold); line-height: .9; letter-spacing: -.02em;
}
/* Tagline + origin */
.hero-tagline {
  font-family: var(--font-el); font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--gold);
  letter-spacing: .06em; margin-bottom: 14px;
  opacity: 0; animation: aFadeUp .8s ease forwards .5s;
}
.hero-origin {
  font-size: 1rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-bottom: 42px;
  opacity: 0; animation: aFadeUp .8s ease forwards .7s;
}
.btn-hero {
  display: inline-block;
  padding: 18px 56px;
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: transparent;
  color: var(--gold);
  transition: all var(--ease);
  opacity: 0; animation: aFadeUp .8s ease forwards .9s;
}
.btn-hero:hover { background: var(--gold); color: var(--black); }
.btn-hero:hover { background: var(--gold); color: var(--black); }
/* Scroll dot */
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-dot {
  width: 24px; height: 40px;
  border: 1.5px solid rgba(201,168,76,.35); border-radius: 12px; position: relative;
}
.scroll-dot::before {
  content: ''; position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px;
  background: rgba(201,168,76,.55); border-radius: 2px;
  animation: aScroll 1.6s ease infinite;
}

/* ================================================
/* ================================================
   PIE SHOWCASE
   ================================================ */
.pie-showcase {
  background: var(--black);
  display: flex;
  justify-content: center;
  padding: 60px 24px;
}
.pie-showcase-img {
  width: min(1000px, 95vw);
  height: auto;
  filter: drop-shadow(0 24px 60px rgba(201,168,76,.35));
  animation: aFadeUp .9s ease forwards .2s;
  opacity: 0;
}

/* ================================================
   QUOTE STRIP
   ================================================ */
.quote-strip {
  background: var(--dark2);
  padding: 38px 28px;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,.13);
  border-bottom: 1px solid rgba(201,168,76,.13);
}
.quote-strip blockquote p {
  font-family: var(--font-el); font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: rgba(255,255,255,.84);
  max-width: 740px; margin: 0 auto 8px;
  line-height: 1.68;
}
.quote-strip blockquote cite {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}

/* ================================================
   PRODUCTS
   ================================================ */
.products-section { padding: 100px 0; background: var(--cream); }

/* Légende */
.color-legend {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 13px 26px;
  justify-content: center;
  justify-items: start;
  margin-bottom: 52px;
}
.legend-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700;
  color: var(--muted); letter-spacing: .02em;
}
.ldot { display: block; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 480px) {
  .color-legend {
    grid-template-columns: repeat(2, auto);
  }
  .color-legend .legend-item:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Grille pies */
.pies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Carte pie */
.pie-card {
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
  border: none;
  box-shadow: none;
}
.pie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg), 0 0 0 2px color-mix(in srgb, var(--pie-color, transparent) 40%, transparent);
}

/* Bande colorée */
.pie-band {
  height: 8px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--pie-color, var(--border)) 70%, white) 0%,
    var(--pie-color, var(--border)) 40%,
    color-mix(in srgb, var(--pie-color, var(--border)) 70%, white) 100%
  );
  filter: brightness(1.15);
}
.pie-band--gold {
  background: linear-gradient(
    90deg,
    #2D4A1E 0%,
    #2D4A1E 50%,
    #C8922A 50%,
    #C8922A 100%
  );
  height: 10px;
}

/* Farm featured */
.farm-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 26px;
}
.farm-featured .pie-card--featured {
  grid-column: 2;
  box-shadow: 0 8px 40px rgba(45,74,30,.18), 0 2px 12px rgba(200,146,42,.15);
  border: 2px solid rgba(200,146,42,.55) !important;
}

/* Carte Farm horizontale — pleine largeur, photo au-dessus centré */
.pie-card--horizontal {
  flex-direction: column !important;
  margin-top: 26px;
  border: 2px solid rgba(200,146,42,.55) !important;
  box-shadow: 0 8px 40px rgba(45,74,30,.18), 0 2px 12px rgba(200,146,42,.15);
}
.pie-card--horizontal .pie-photo--horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 0;
}
.pie-card--horizontal .pie-photo--horizontal .pie-photo-real {
  width: auto;
  max-height: none;
  max-width: 65%;
}
.pie-card--horizontal .pie-body {
  padding: 20px 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pie-card--horizontal .pie-sizes {
  grid-column: 1 / -1;
  margin-top: 16px;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
}
.pie-card--horizontal .pie-sizes .size-btn {
  flex: 0 0 auto;
  min-width: 140px;
}
@media (max-width: 640px) {
  .pie-card--horizontal .pie-body {
    grid-template-columns: 1fr;
    padding: 20px 20px 24px;
  }
}

/* Photo */
.pie-photo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
  background: transparent;
  padding: 24px 16px 0;
}
/* images non-réelles (cover) */
.pie-photo img:not(.pie-photo-real) {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--ease);
}
.pie-card:hover .pie-photo img:not(.pie-photo-real) { transform: scale(1.06); }
/* Photo détourée — mix-blend-mode:multiply rend le fond blanc JPEG invisible */
img.pie-photo-real {
  display: block;
  width: auto;
  height: 150px;
  object-fit: contain;
  margin: 0 auto;
  transition: transform var(--ease), height var(--ease);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.22));
  mix-blend-mode: multiply;
}
.pie-card:hover img.pie-photo-real { transform: scale(1.07) translateY(-4px); }
.pie-emoji {
  font-size: 4.2rem; z-index: 1;
  filter: drop-shadow(0 5px 14px rgba(0,0,0,.32));
  transition: transform var(--ease);
}
.pie-card:hover .pie-emoji { transform: scale(1.1) rotate(-4deg); }

/* Corps carte */
.pie-body { padding: 18px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.pie-escale {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-bottom: 5px;
}
.pie-escale span:first-child { font-size: .95rem; line-height: 1; }
.pie-escale span:last-child {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-lo);
}
.pie-body h3 {
  font-family: var(--font-h);
  font-size: 1.12rem; font-weight: 700;
  color: var(--text); margin-bottom: 7px; line-height: 1.3;
  text-align: center;
}
.pie-origin {
  font-size: .72rem !important;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-bottom: 6px !important;
  flex: none !important;
}
.pie-body p {
  font-size: .83rem; color: var(--muted); line-height: 1.6; margin-bottom: 0;
}

/* Sélecteur de taille par fiche */
.pie-sizes {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.size-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 6px;
  border: none;
  border-radius: var(--r-sm);
  background: var(--pie-color, #c8a06a);
  font-family: var(--font-b);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity .2s;
  line-height: 1.3;
}
.size-btn span {
  font-family: var(--font-b);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  display: block;
}
.size-btn:hover {
  opacity: 0.65;
}
.size-btn.active {
  opacity: 1;
}
.size-btn.active span { color: #fff; }

/* Gamme header séparateur */
.gamme-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 52px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.gamme-header:first-of-type { margin-top: 0; }
.gamme-label {
  font-family: var(--font-h);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.gamme-desc {
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.gamme-header--sweet .gamme-label { color: var(--gold-lo); }

.pie-footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
.pie-price { font-family: var(--font-h); font-size: 1.12rem; font-weight: 700; color: var(--text); }
.pie-weight { font-size: .73rem; color: var(--muted); }

/* Tailles */
.sizes-row {
  margin-top: 60px;
  display: flex; align-items: center;
  background: var(--dark); border-radius: var(--r-xl);
  padding: 34px 48px;
}
.size-item { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.size-item strong {
  font-family: var(--font-h); font-size: 1rem;
  color: var(--gold); display: block; margin-bottom: 3px;
}
.size-item span { font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.size-sep { width: 1px; height: 55px; background: rgba(255,255,255,.11); flex-shrink: 0; }

/* ================================================
   NOTRE MAISON
   ================================================ */
.maison-section { padding: 100px 0; background: var(--dark); }
.maison-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 72px; align-items: center;
}

/* Photo col */
.maison-photo-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.maison-photo-frame {
  position: relative; width: 100%; aspect-ratio: 4/5;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(201,168,76,.18);
}
.maison-photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.maison-photo-fallback {
  display: none; /* shown via JS/onerror */
  align-items: center; justify-content: center;
  font-size: 7rem; background: var(--dark2);
  width: 100%; height: 100%;
}
.maison-signature { text-align: center; }
.maison-signature em {
  display: block;
  font-family: var(--font-el); font-style: italic;
  font-size: 1.75rem; color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.maison-signature span {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
}

/* Texte col */
.maison-text .sec-label { display: block; }
.maison-text h2 {
  font-family: var(--font-h); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 28px;
}
.maison-text p { font-size: .93rem; color: rgba(255,255,255,.58); line-height: 1.88; margin-bottom: 16px; }

.maison-vals {
  display: flex; gap: 28px;
  margin-top: 36px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.mval { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mval strong { font-family: var(--font-h); font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; }
.mval span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.4); text-align: center; line-height: 1.4; }

/* ================================================
   HISTOIRE DES PIES
   ================================================ */
.history-section { padding: 100px 0; background: var(--cream2); }
.history-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hblock {
  padding: 38px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--ease);
}
.hblock:hover { box-shadow: var(--sh-md); }
.hblock-flag { font-size: 2.6rem; display: block; margin-bottom: 14px; line-height: 1; }
.hblock h3 {
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: 12px;
}
.hblock p { font-size: .87rem; color: var(--muted); line-height: 1.78; }

/* ================================================
   MODAL CONTACT — pop-up client
   ================================================ */
.contact-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.contact-modal[hidden] { display: none; }
.contact-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.82); cursor: pointer;
}
.contact-modal-box {
  position: relative;
  background: #0e0804;
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 20px;
  max-width: 620px; width: 100%;
  max-height: 96vh; overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,.85);
  z-index: 1;
}
.contact-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 1.9rem; line-height: 1;
  cursor: pointer; color: rgba(255,255,255,.28);
  padding: 4px 8px; transition: color .2s; z-index: 2;
}
.contact-modal-close:hover { color: var(--gold); }

/* Header logo */
.cmodal-header {
  padding: 38px 44px 26px;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,.12);
  background: linear-gradient(180deg, rgba(201,168,76,.07) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
}
.cmodal-logo { height: 110px; width: auto; display: block; margin: 0 auto 20px; }
.cmodal-title {
  font-family: var(--font-h); font-size: 1.5rem; font-weight: 700;
  color: var(--white); margin: 0 0 8px;
}
.cmodal-subtitle { font-size: .87rem; color: rgba(255,255,255,.42); line-height: 1.65; margin: 0; }

/* Formulaire */
.cmodal-form { padding: 26px 44px 38px; }
.cmodal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmodal-field { margin-bottom: 18px; }
.cmodal-field label {
  display: block; font-size: .7rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin-bottom: 7px;
}
.cmodal-req { color: var(--gold); }
.cmodal-field input,
.cmodal-field select,
.cmodal-field textarea {
  width: 100%; padding: 12px 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-size: .9rem; color: var(--white);
  outline: none; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
  font-family: inherit;
}
.cmodal-field input::placeholder,
.cmodal-field textarea::placeholder { color: rgba(255,255,255,.16); }
.cmodal-field select option { background: #1a0f07; color: var(--white); }
.cmodal-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.cmodal-field input:focus,
.cmodal-field select:focus,
.cmodal-field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.07); }
.cmodal-field input.c-error,
.cmodal-field select.c-error,
.cmodal-field textarea.c-error { border-color: #e04; box-shadow: 0 0 0 2px rgba(238,0,68,.15); }
.cmodal-field textarea { resize: vertical; min-height: 100px; }
.cmodal-req-note { font-size: .73rem; color: rgba(255,255,255,.26); margin: -4px 0 20px; }
.cmodal-submit {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #c9a84c 0%, #e8c86a 50%, #c9a84c 100%);
  border: none; border-radius: 10px;
  font-family: var(--font-h); font-size: 1rem; font-weight: 700;
  letter-spacing: .05em; color: #1a0f07;
  cursor: pointer; transition: opacity .2s, transform .1s;
}
.cmodal-submit:hover { opacity: .88; }
.cmodal-submit:active { transform: scale(.98); }
.cmodal-submit:disabled { opacity: .42; cursor: not-allowed; }
.cmodal-privacy { text-align: center; font-size: .71rem; color: rgba(255,255,255,.18); margin: 11px 0 0; }

/* Écran de confirmation */
.cmodal-success { padding: 44px 44px 42px; text-align: center; }
.cmodal-success.hidden { display: none; }
.cmodal-success-check {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #1a0f07; font-weight: 900;
  margin: 0 auto 20px;
}
.cmodal-success-title {
  font-family: var(--font-h); font-size: 1.5rem; font-weight: 700;
  color: var(--white); margin: 0 0 12px;
}
.cmodal-success-intro { font-size: .9rem; color: rgba(255,255,255,.52); line-height: 1.72; margin: 0 0 26px; }
.cmodal-ref-box {
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.28);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 24px;
}
.cmodal-ref-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.3); margin: 0 0 9px;
}
.cmodal-ref-num {
  font-family: 'Courier New', monospace; font-size: 1.28rem;
  font-weight: 700; color: var(--gold); letter-spacing: .08em; margin: 0 0 6px;
}
.cmodal-ref-date { font-size: .82rem; color: rgba(255,255,255,.4); margin: 0; }
.cmodal-success-footer { font-size: .87rem; color: rgba(255,255,255,.45); line-height: 1.72; margin: 0 0 28px; }
.cmodal-success-footer strong { color: rgba(255,255,255,.7); }
.cmodal-btn-close-success {
  padding: 12px 38px;
  background: none; border: 1px solid rgba(201,168,76,.35);
  border-radius: 8px; font-family: inherit; font-size: .9rem;
  font-weight: 700; color: var(--gold); cursor: pointer;
  letter-spacing: .05em; transition: background .2s, border-color .2s;
}
.cmodal-btn-close-success:hover { background: rgba(201,168,76,.1); border-color: var(--gold); }

@media (max-width: 540px) {
  .cmodal-header { padding: 28px 22px 20px; }
  .cmodal-form { padding: 20px 22px 28px; }
  .cmodal-row { grid-template-columns: 1fr; }
  .cmodal-success { padding: 32px 22px 30px; }
}

/* ================================================
   FRANCHISE
   ================================================ */
.franchise-section {
  position: relative; padding: 100px 0;
  background: var(--black); overflow: hidden;
}
.franchise-deco {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 50%, rgba(201,168,76,.07) 0%, transparent 58%),
              radial-gradient(ellipse at 22% 50%, rgba(139,69,19,.13) 0%, transparent 54%);
}
.franchise-grid {
  position: relative;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 70px; align-items: center;
}
.franchise-content .sec-label { display: block; }
.franchise-content h2 {
  font-family: var(--font-h); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--white); line-height: 1.22; margin-bottom: 18px;
}
.franchise-content p { font-size: .93rem; color: rgba(255,255,255,.58); line-height: 1.85; margin-bottom: 22px; }
.franchise-list { margin-bottom: 34px; display: flex; flex-direction: column; gap: 10px; }
.franchise-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .88rem; color: rgba(255,255,255,.68); line-height: 1.62;
}
.franchise-list li::before { content: '◆'; color: var(--gold); font-size: .62rem; flex-shrink: 0; margin-top: 4px; }
.btn-franchise-cta {
  display: inline-block;
  padding: 13px 34px;
  background: var(--gold); color: var(--black);
  border-radius: 3px;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  transition: all var(--ease);
}
.btn-franchise-cta:hover { background: var(--gold-hi); transform: translateY(-2px); }

/* Franchise badge */
.franchise-badge-wrap { display: flex; justify-content: center; align-items: center; }
.franchise-logo-img {
  width: 280px; height: auto;
  filter: drop-shadow(0 12px 40px rgba(201,168,76,.45));
  transition: transform .4s ease;
}
.franchise-logo-img:hover { transform: scale(1.04); }

/* ================================================
   NOUVELLES SECTIONS FRANCHISE
   ================================================ */

/* Couleurs */
:root {
  --cream: #F5EFE4;
  --cream-dark: #EDE4D4;
  --brun: #1A0F07;
}

/* Variables locales */
.fran-section-title { font-family: var(--font-h); font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; margin-bottom: 12px; }
.fran-section-sub { font-size: .95rem; color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* --- Hero franchise --- */
.fran-hero-section {
  background: var(--cream);
  padding: 90px 0 80px;
}
.fran-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.fran-hero-inner .sec-label { color: var(--gold); }
.fran-hero-title {
  font-family: var(--font-h); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--brun); line-height: 1.2; margin: 14px 0 18px;
}
.fran-hero-sub { font-size: 1.1rem; color: var(--brun); font-style: italic; margin-bottom: 18px; opacity: .75; }
.fran-hero-text { font-size: .93rem; color: rgba(26,15,7,.7); line-height: 1.8; margin-bottom: 32px; }

/* ========== Page franchise — hero plein écran ========== */
.fran-page-hero {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  background: var(--black);
  padding: 140px 0 100px;
  overflow: hidden;
}
.fran-page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(201,168,76,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(139,69,19,.15) 0%, transparent 50%);
}
.fran-page-hero-inner {
  position: relative; max-width: 780px;
  margin: 0 auto; text-align: center;
}
.fran-page-hero-inner .sec-label { color: var(--gold); }
.fran-page-hero-title {
  font-family: var(--font-h); font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin: 16px 0 20px;
}
.fran-page-hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.6);
  font-style: italic; margin-bottom: 20px;
}
.fran-page-hero-text {
  font-size: .96rem; color: rgba(255,255,255,.5);
  line-height: 1.85; max-width: 640px; margin: 0 auto 38px;
}
.btn-gold--large { padding: 16px 38px; font-size: 1rem; }

/* --- 3 formats --- */
.fran-formats-section { background: var(--cream-dark); padding: 90px 0; }
.fran-formats-section .fran-section-title { color: var(--brun); text-align: center; }
.fran-formats-section .fran-section-sub { color: rgba(26,15,7,.6); text-align: center; margin: 0 auto 50px; }
.fran-formats-section .section-header { margin-bottom: 50px; }
.fran-formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fran-format-card {
  background: #fff9f2; border: 1px solid rgba(201,168,76,.3);
  border-radius: 12px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.fran-format-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(201,168,76,.18); }
.fran-format-icon { color: var(--gold); }
.fran-format-card h3 { font-family: var(--font-h); font-size: 1.25rem; color: var(--brun); font-weight: 700; }
.fran-format-card p { font-size: .86rem; color: rgba(26,15,7,.65); line-height: 1.7; }
.fran-format-points { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.fran-format-points li { font-size: .8rem; color: rgba(26,15,7,.6); display: flex; align-items: center; gap: 7px; }
.fran-format-points li::before { content: '◆'; color: var(--gold); font-size: .55rem; }
.fran-format-badge {
  display: inline-block; background: var(--gold); color: var(--brun);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  padding: 5px 14px; border-radius: 20px; margin-top: 6px; align-self: flex-start;
}

/* --- Grille ce que vous recevez --- */
.franchise-section .section-header { margin-bottom: 56px; }
.fran-receive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fran-receive-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(201,168,76,.12);
  border-radius: 10px; padding: 28px 22px; display: flex; flex-direction: column; gap: 10px;
  transition: background var(--ease), border-color var(--ease);
}
.fran-receive-item:hover { background: rgba(201,168,76,.06); border-color: rgba(201,168,76,.3); }
.fran-receive-icon { display: none; }
.fran-receive-item h4 { font-family: var(--font-h); font-size: 1.25rem; color: var(--gold); font-weight: 700; }
.fran-receive-item p { font-size: .83rem; color: rgba(255,255,255,.52); line-height: 1.65; }

/* --- Pourquoi --- */
.fran-why-section { background: var(--cream); padding: 90px 0; }
.fran-why-section .fran-section-title { color: var(--brun); text-align: center; }
.fran-why-section .fran-section-sub { color: rgba(26,15,7,.6); text-align: center; margin: 0 auto 50px; }
.fran-why-section .section-header { margin-bottom: 50px; }
.fran-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.fran-why-card {
  background: #fff9f2; border-radius: 12px; padding: 36px 30px;
  border-left: 4px solid var(--gold);
  transition: transform var(--ease);
}
.fran-why-card:hover { transform: translateY(-4px); }
.fran-why-num { font-size: 2.5rem; font-weight: 900; color: var(--gold); opacity: .25; line-height: 1; margin-bottom: 8px; }
.fran-why-card h4 { font-family: var(--font-h); font-size: 1.1rem; color: var(--brun); font-weight: 700; margin-bottom: 10px; }
.fran-why-card p { font-size: .87rem; color: rgba(26,15,7,.65); line-height: 1.7; }

/* --- Témoignages --- */
.fran-temoignages-section { background: var(--black); padding: 90px 0; }
.fran-temoignages-section .sec-label { display: block; text-align: center; }
.fran-temoignages-section .section-header { margin-bottom: 50px; text-align: center; }
.fran-temoignages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fran-temo-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(201,168,76,.15);
  border-radius: 10px; padding: 30px 24px; display: flex; flex-direction: column; gap: 20px;
}
.fran-temo-quote { font-style: italic; font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.fran-temo-author { display: flex; align-items: center; gap: 14px; }
.fran-temo-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(201,168,76,.2); display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.fran-temo-author strong { display: block; color: var(--white); font-size: .88rem; }
.fran-temo-author span { font-size: .78rem; color: var(--muted); }

/* --- Section fondateur ---- */
.fran-fondateur-section { background: var(--cream); padding: 100px 0; }
.fran-fondateur-title {
  font-family: var(--font-h); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--brun); text-align: center; margin-bottom: 28px; line-height: 1.2;
}
.fran-fondateur-intro {
  max-width: 720px; margin: 0 auto 60px;
  font-size: .97rem; color: rgba(26,15,7,.68); line-height: 1.85;
  text-align: center;
}
.fran-fondateur-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 52px;
}
.fran-fond-bloc {
  border-radius: 14px; padding: 40px 36px;
}
.fran-fond-bloc--warm { background: #EDE3D4; }
.fran-fond-bloc--cream { background: var(--cream-dark, #EDE4D4); border: 1px solid rgba(201,168,76,.2); }
.fran-fond-bloc-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-variant: small-caps;
  color: var(--gold); margin-bottom: 10px; display: block;
}
.fran-fond-bloc-intro {
  font-size: .88rem; color: rgba(26,15,7,.6); line-height: 1.7;
  margin-bottom: 22px; font-style: italic;
}
.fran-fond-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.fran-fond-list li {
  display: flex; gap: 12px; align-items: flex-start;
}
.fran-fond-dot {
  color: var(--gold); font-size: .65rem; margin-top: 5px; flex-shrink: 0; line-height: 1;
}
.fran-fond-list strong { font-weight: 700; color: #1A0F07; }
.fran-fond-list div { font-size: .87rem; color: #3D2B1F; line-height: 1.72; }
.fran-fondateur-conclusion {
  font-style: italic; text-align: center;
  font-size: 1.05rem; color: var(--gold);
  max-width: 700px; margin: 0 auto;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .fran-fondateur-grid { grid-template-columns: 1fr; }
  .fran-fond-bloc { padding: 28px 22px; }
}

/* --- Formulaire candidature --- */
.fran-form-section { background: var(--cream); padding: 90px 0; }
.fran-form-section .sec-label { display: block; text-align: center; }
.fran-form-section .fran-section-title { color: var(--brun); text-align: center; }
.fran-form-section .fran-section-sub { color: rgba(26,15,7,.6); text-align: center; }
.fran-form-section .section-header { margin-bottom: 48px; }

/* Stepper */
.fran-stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 12px; }
.fran-step { display: flex; align-items: center; gap: 8px; cursor: default; opacity: .4; transition: opacity var(--ease); }
.fran-step.active { opacity: 1; }
.fran-step.done { opacity: .7; }
.fran-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--brun);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.fran-step-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brun); }
.fran-step-line { flex: 1; height: 2px; background: rgba(201,168,76,.25); min-width: 40px; max-width: 100px; }

/* Progress bar */
.fran-progress-bar { height: 3px; background: rgba(201,168,76,.2); border-radius: 2px; margin: 0 0 40px; }
.fran-progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width .4s ease; width: 25%; }

/* Form */
.fran-form { max-width: 760px; margin: 0 auto; }
.fran-form-step { display: none; }
.fran-form-step.active { display: block; }
.fran-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.fran-field { display: flex; flex-direction: column; gap: 6px; }
.fran-field--full { grid-column: 1 / -1; }
.fran-field label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brun); }
.fran-field input, .fran-field select, .fran-field textarea {
  padding: 11px 14px; border: 1.5px solid rgba(201,168,76,.35); border-radius: 6px;
  background: #fff9f2; color: var(--brun); font-size: .9rem; font-family: inherit;
  transition: border-color var(--ease);
}
.fran-field input:focus, .fran-field select:focus, .fran-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.fran-field input.error, .fran-field select.error, .fran-field textarea.error { border-color: #e04444; }
.fran-radio-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.fran-radio-card {
  flex: 1 0 140px; border: 1.5px solid rgba(201,168,76,.3); border-radius: 8px;
  padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-size: .88rem; color: var(--brun); transition: all var(--ease); background: #fff9f2;
}
.fran-radio-card input { display: none; }
.fran-radio-card:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,.12); }
.fran-radio-inline { display: flex; gap: 24px; }
.fran-radio-inline label { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--brun); cursor: pointer; }
.fran-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--brun); cursor: pointer; }
.fran-checkbox input { margin-top: 3px; accent-color: var(--gold); }
.fran-form-nav { display: flex; justify-content: flex-end; gap: 14px; margin-top: 32px; }

/* Bouton gold générique */
.btn-gold {
  display: inline-block; padding: 13px 32px;
  background: var(--gold); color: var(--brun);
  border: none; border-radius: 4px; cursor: pointer;
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--ease); font-family: inherit;
}
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn-gold--large { padding: 16px 40px; font-size: .9rem; }
.btn-outline {
  display: inline-block; padding: 13px 28px;
  background: transparent; color: var(--brun);
  border: 1.5px solid rgba(26,15,7,.3); border-radius: 4px; cursor: pointer;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: all var(--ease); font-family: inherit;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Récap */
.fran-recap {
  background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.25);
  border-radius: 8px; padding: 24px 28px;
  font-size: .88rem; color: var(--brun); line-height: 1.8;
}
.fran-recap strong { color: var(--gold); }

/* Succès */
.fran-success {
  text-align: center; padding: 60px 20px;
  animation: aFadeUp .6s ease forwards;
}
.fran-success.hidden { display: none; }
.fran-success-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--gold); color: var(--brun);
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.fran-success h3 { font-family: var(--font-h); font-size: 1.8rem; color: var(--brun); margin-bottom: 12px; }
.fran-success p { color: rgba(26,15,7,.7); font-size: .95rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
  .fran-formats-grid { grid-template-columns: 1fr; }
  .fran-receive-grid { grid-template-columns: 1fr 1fr; }
  .fran-why-grid { grid-template-columns: 1fr; }
  .fran-temoignages-grid { grid-template-columns: 1fr; }
  .fran-form-grid { grid-template-columns: 1fr; }
  .fran-field--full { grid-column: 1; }
  .fran-stepper { gap: 0; }
  .fran-step-label { display: none; }
}
@media (max-width: 480px) {
  .fran-receive-grid { grid-template-columns: 1fr; }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark); padding: 62px 0 0;
  border-top: 1px solid rgba(201,168,76,.11);
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-logo-img { height: 46px; width: auto; margin-bottom: 10px; }
.footer-logo-text {
  display: none;
  font-family: var(--font-h); font-size: 1.15rem;
  font-weight: 700; color: var(--gold); margin-bottom: 10px;
}
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.38); line-height: 1.75; margin-bottom: 22px; }
.footer-social { display: flex; gap: 9px; }
.soc-link {
  width: 35px; height: 35px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.48);
  transition: all var(--ease);
}
.soc-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { font-size: .85rem; color: rgba(255,255,255,.45); transition: color var(--ease); }
.footer-nav a:hover { color: var(--gold); }
.footer-legal-links { display: flex; flex-direction: column; gap: 11px; }
.footer-legal-links a { font-size: .85rem; color: rgba(255,255,255,.38); transition: color var(--ease); }
.footer-legal-links a:hover { color: var(--gold); }
.footer-bottom {
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: .79rem; color: rgba(255,255,255,.28);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes aLogoIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes aFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aScroll {
  0%,100% { opacity: .9; transform: translateX(-50%) translateY(0); }
  50%      { opacity: .25; transform: translateX(-50%) translateY(12px); }
}

/* ================================================
   RESPONSIVE 1024px — Tablette paysage
   ================================================ */
@media (max-width: 1024px) {
  .pies-grid { grid-template-columns: repeat(2, 1fr); }
  .maison-grid { gap: 48px; }
  .franchise-grid { gap: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  /* Hero : réduire le wrap */
  .hero-pie-wrap { width: 100%; overflow: hidden; }
  .hero-pie-photo { transform: translateX(0%); }
}

/* ================================================
   RESPONSIVE 768px — Tablette portrait & grands mobiles
   ================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  /* ---- Navbar mobile ---- */
  .nav-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--black);
    flex-direction: column; gap: 0;
    padding: 6px 0;
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: all var(--ease);
    border-bottom: 1px solid rgba(201,168,76,.14);
    margin-left: 0;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a { display: block; padding: 14px 28px; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-toggle { display: flex; }
  .btn-franchise-nav { display: none; }
  /* Logo à gauche, nav-right (langue + hamburger) à droite */
  .nav-inner { justify-content: space-between; }
  .nav-right { margin-left: auto; }

  /* ---- Hero ---- */
  .hero { padding-top: var(--nav-h); min-height: 100svh; }
  .hero-content--top { padding-top: 16px; }
  .hero-content--bottom { padding-bottom: 36px; }
  .hero-logo-img { height: 150px; }
  .hero-pie-wrap {
    width: 100%;
    height: auto;
    margin-top: -20px;
    overflow: visible;
  }
  .hero-pie-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none;
  }
  .hero-steam { left: 50%; top: 18%; }
  .hero-tagline { font-size: clamp(1.6rem, 5vw, 2.4rem); }
  .hero-signature { font-size: clamp(1.1rem, 3.5vw, 1.5rem); margin-bottom: 24px; }
  .btn-hero { padding: 14px 32px; font-size: .9rem; }

  /* ---- Grilles ---- */
  .pies-grid { grid-template-columns: 1fr; }
  .history-blocks { grid-template-columns: 1fr; }
  .maison-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .franchise-grid { grid-template-columns: 1fr; }
  .franchise-badge-wrap { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sizes-row { flex-direction: column; padding: 30px 24px; gap: 22px; }
  .size-sep { width: 55px; height: 1px; }

  /* ---- Cards ---- */
  .pie-card { max-width: 480px; margin-left: auto; margin-right: auto; }
  .pie-sizes { gap: 6px; }
  .size-btn { padding: 9px 10px; font-size: .78rem; }
}

/* ================================================
   RESPONSIVE 480px — Mobiles standard
   ================================================ */
@media (max-width: 480px) {
  .hero-logo-img { height: 120px; }
  .hero-pie-wrap {
    height: 80vw;
    overflow: hidden;
    position: relative;
  }
  /* Fondu bas : reculé pour lire le cerclage Fabrice's Pies */
  .hero-pie-wrap::after {
    background:
      linear-gradient(to right,  #000000 0%, transparent 15%),
      linear-gradient(to left,   #000000 0%, transparent 8%),
      linear-gradient(to bottom, transparent 62%, #000000 100%),
      linear-gradient(to top,    #000000 0%, transparent 8%);
  }
  .hero-pie-photo {
    position: absolute;
    height: 115%;
    width: auto;
    max-width: none;
    top: -5%;
    left: 50%;
    transform: translateX(-66%);
  }
  /* Fumée : bas du conteneur = haut du logo sur le cerclage (~52% hero).
     Fumée monte jusqu'à ~30% = juste au-dessus de la fumée fixe de la photo. */
  .hero-steam {
    left: 50%;
    top: 30%;
    transform: translateX(-50%);
    height: 19%;
    width: 120px;
    z-index: 1;
  }
  .hero-tagline { font-size: clamp(1.4rem, 7vw, 2rem); }

  .nav-logo-img { height: 68px; }
  .section-header { margin-bottom: 40px; }
  .container { padding: 0 18px; }

  .maison-vals { gap: 16px; }
  .contact-form { padding: 22px; }
  .franchise-badge { width: 200px; height: 200px; }

  /* Sélecteur taille empilé */
  .pie-sizes { flex-direction: column; gap: 8px; align-items: stretch; }
  .size-btn { width: 100%; text-align: center; justify-content: center; display: flex; }
  .size-btn span { margin-left: 0; }

  /* Footer simplifié */
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ================================================
   RESPONSIVE 360px — Très petits mobiles
   ================================================ */
@media (max-width: 360px) {
  .hero-logo-img { height: 100px; }
  .hero-pie-photo { width: 160%; transform: translateX(-20%); }
  .nav-inner { padding: 0 14px; gap: 10px; }
  .lang-select { font-size: .75rem; padding: 6px 22px 6px 8px; }
}

/* ================================================
   PHRASE SIGNATURE HERO
   ================================================ */
.hero-signature {
  font-family: var(--font-el);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: rgba(255, 255, 255, .62);
  letter-spacing: .04em;
  margin-bottom: 38px;
  opacity: 0;
  animation: aFadeUp .8s ease forwards 1.05s;
}

/* ================================================
   BADGES ESTAMPILLES SUR LES CARTES PIE
   ================================================ */
.pie-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.pie-badge-stamp {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cream);
  line-height: 1.6;
  white-space: nowrap;
}


/* ---------- Variables ---------- */
:root {
  --color-primary:      #8B4513;
  --color-primary-dark: #6B3410;
  --color-secondary:    #D4A017;
  --color-accent:       #E8621A;
  --color-dark:         #2C1810;
  --color-light:        #FFF8F0;
  --color-cream:        #F5E6D3;
  --color-text:         #3D2B1F;
  --color-muted:        #8B7355;
  --color-border:       #E8D5C4;
  --color-white:        #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px  rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.18);

  --transition: 0.3s ease;
  --nav-height: 140px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
address { font-style: normal; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section header ---------- */
.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 580px;
  margin: 0 auto;
}

.hidden { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn-full { width: 100%; }

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 8, 6, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 20px rgba(0,0,0,.4);
  transition: background 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition);
  white-space: nowrap;
}
.navbar.scrolled .nav-brand { color: var(--color-dark); }
.nav-logo { font-size: 1.7rem; line-height: 1; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active-link::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--color-text); }
.nav-links a:hover { color: var(--color-white); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active-link { color: var(--color-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Bouton Commander nav */
.btn-order {
  padding: 9px 22px;
  background: var(--color-secondary);
  color: var(--color-dark);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition);
  border: 2px solid var(--color-secondary);
}
.btn-order:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Sélecteur de langue */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,0.15); }
.navbar.scrolled .lang-btn { color: var(--color-text); }
.navbar.scrolled .lang-btn:hover { background: var(--color-cream); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.nav-toggle span {
  display: block;
  width: 23px; height: 2px;
  background: var(--color-white);
  transition: all var(--transition);
  border-radius: 2px;
}
.navbar.scrolled .nav-toggle span { background: var(--color-dark); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(139, 69, 19, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(212, 160, 23, 0.6) 0%, transparent 55%),
    linear-gradient(145deg, #1a0a04 0%, #3d1c08 30%, #6B3410 60%, #c87a2a 100%);
}
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.12);
  pointer-events: none;
}
.hero-bg::before { width: 640px; height: 640px; top: -220px; right: -80px; }
.hero-bg::after  { width: 420px; height: 420px; bottom: -100px; left: 8%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 2, 0.38);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 120px 24px 80px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-white);
}

.hero-tagline {
  display: inline-block;
  font-family: var(--font-el); font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  letter-spacing: .06em;
  margin-bottom: 14px;
  opacity: 0;
  animation: aFadeUp .8s ease forwards .5s;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 8.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  width: 28px; height: 46px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  position: relative;
}
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.65);
  border-radius: 2px;
  animation: scrollAnim 1.6s ease infinite;
}

/* ---------- Atouts ---------- */
.features-section {
  padding: 88px 0;
  background: var(--color-cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.875rem; color: var(--color-muted); line-height: 1.65; }

/* ---------- Menu ---------- */
.menu-section {
  padding: 100px 0;
  background: var(--color-white);
}

.menu-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  border: 2px solid var(--color-border);
  transition: all var(--transition);
  background: transparent;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 26px;
}

/* Carte pie */
.pie-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.pie-card.hidden-card { display: none; }

.pie-image {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pie-emoji {
  font-size: 4rem;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
  transition: transform var(--transition);
}
.pie-card:hover .pie-emoji { transform: scale(1.1) rotate(-3deg); }

/* Dégradés par saveur */
.pie-apple    { background: linear-gradient(135deg, #FF6B6B, #FF8C42); }
.pie-lemon    { background: linear-gradient(135deg, #F7D060, #FFB347); }
.pie-choco    { background: linear-gradient(135deg, #3D1C02, #7A3A20); }
.pie-pumpkin  { background: linear-gradient(135deg, #E8621A, #C94B0C); }
.pie-chicken  { background: linear-gradient(135deg, #C8A97A, #8B6914); }
.pie-beef     { background: linear-gradient(135deg, #5C1A1A, #8B2635); }
.pie-shepherd { background: linear-gradient(135deg, #5A8A3C, #3A6B27); }
.pie-quiche   { background: linear-gradient(135deg, #D4A017, #A07010); }

.pie-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-signature { background: var(--color-secondary); color: var(--color-dark); }
.badge-new       { background: var(--color-accent);    color: var(--color-white); }

.pie-info { padding: 20px; }
.pie-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.pie-header h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
}
.pie-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.pie-info p {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.btn-soon {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-muted);
  font-size: 0.825rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px dashed var(--color-border);
}
.btn-soon:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  border-style: solid;
}

.menu-note {
  text-align: center;
  margin-top: 48px;
  padding: 18px 32px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* ---------- Notre Histoire ---------- */
.about-section {
  padding: 100px 0;
  background: var(--color-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrapper { position: relative; }

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #8B4513 0%, #c87a2a 55%, #D4A017 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5rem;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -22px; right: -22px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}
.about-badge span:last-child {
  font-size: 0.75rem;
  color: var(--color-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content { padding-left: 12px; }
.about-content .section-title,
.about-content .section-label { text-align: left; }
.about-content p {
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.975rem;
}

.about-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.stat span:last-child {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ---------- Processus ---------- */
.process-section {
  padding: 100px 0;
  background: var(--color-dark);
  color: var(--color-white);
}
.process-section .section-label { color: var(--color-secondary); }
.process-section .section-title { color: var(--color-white); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.step-icon { font-size: 2.8rem; display: block; margin-bottom: 4px; }
.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(212, 160, 23, 0.2);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
}
.step p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.step-connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(to right, var(--color-secondary), rgba(212,160,23,0.2));
  margin-top: 82px;
  align-self: flex-start;
}

/* ---------- Contact ---------- */
.contact-section {
  padding: 100px 0;
  background: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-sm); }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.contact-card p,
.contact-card a {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.65;
}
.contact-card a:hover { color: var(--color-primary); }

/* Formulaire */
.contact-form {
  background: var(--color-light);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #C62828;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  text-align: center;
  padding: 14px;
  background: #E8F5E9;
  color: #1B5E20;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 14px;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.65);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--color-white);
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-secondary); }

.footer-contact p { font-size: 0.875rem; line-height: 1.75; margin-bottom: 6px; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--color-secondary); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollAnim {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.3; transform: translateX(-50%) translateY(14px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Responsive 1024px ---------- */
@media (max-width: 1024px) {
  .about-grid { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive 768px ---------- */
@media (max-width: 768px) {
  :root { --nav-height: 120px; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn-order { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-content { padding-left: 0; }
  .about-img-wrapper { max-width: 380px; margin: 0 auto; }

  .process-steps { flex-direction: column; align-items: center; }
  .step-connector {
    width: 2px; height: 36px;
    flex: 0;
    background: linear-gradient(to bottom, var(--color-secondary), rgba(212,160,23,0.2));
    margin: 0;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Responsive 480px ---------- */
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { padding: 13px 26px; }
  .menu-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ================================================
   MODAL INGRÉDIENTS
   ================================================ */
.ing-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ing-modal[hidden] { display: none; }
.ing-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  cursor: pointer;
}
.ing-modal-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 44px 12px 12px;
  max-width: min(1100px, 96vw);
  width: 96vw;
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  z-index: 1;
}
.ing-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
}
.ing-modal-close:hover { color: #000; }
.ing-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #1a1008;
  padding-right: 32px;
}
.ing-modal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Bouton œil ingrédients */
.btn-ingredients {
  display: flex;
  align-items: center;
  align-self: center;
  flex: none;
  background: none;
  border: none;
  padding: 3px;
  margin: 4px 0 8px;
  cursor: pointer;
  color: var(--pie-color, #c8a06a);
  opacity: 0.65;
  transition: opacity .15s;
  line-height: 1;
  animation: eye-pulse 3s ease-in-out 2s infinite;
}
.btn-ingredients:hover {
  opacity: 1;
  animation: none;
}
@keyframes eye-pulse {
  0%   { transform: scale(1);    opacity: 0.65; }
  50%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1);    opacity: 0.65; }
}
