/* =========================================================
   Boulangerie Arizona — feuille de style
   Palette : crème / mie, encre, croûte, or, braise
   ========================================================= */

:root {
  --cream:      #FBF6EE;
  --cream-2:    #F3E9DB;
  --ink:        #1E1913;
  --ink-soft:   #4A4038;
  --stone:      #8C7F71;
  --crust:      #8A4E22;
  --gold:       #D6A44C;
  --ember:      #B4471F;
  --line:       rgba(30, 25, 19, .12);

  --radius:     18px;
  --radius-lg:  28px;
  --shadow:     0 1px 2px rgba(30,25,19,.05), 0 12px 32px -12px rgba(30,25,19,.18);
  --shadow-lg:  0 2px 4px rgba(30,25,19,.06), 0 40px 80px -30px rgba(30,25,19,.35);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap:    1180px;
  --gutter:  clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 200; background: var(--ink); color: var(--cream);
  padding: 12px 20px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Petits éléments ---------- */
.eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--crust);
  margin: 0 0 .9rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5;
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(30,25,19,.6); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(30,25,19,.05); }

.btn-sm { padding: 10px 20px; font-size: .88rem; }

.tbd {
  color: var(--ember);
  font-style: italic;
  text-decoration: underline dotted currentColor;
  text-underline-offset: 4px;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-stuck,
.site-header.is-solid {
  background: rgba(251, 246, 238, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck { height: 64px; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand {
  display: flex; align-items: center; gap: .7rem; text-decoration: none;
  position: relative; z-index: 2;
}
.brand-mark { width: 38px; height: 38px; color: var(--crust); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--display); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-text em {
  font-style: normal; font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
}

.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); }
.nav > a {
  text-decoration: none; font-size: .95rem; color: var(--ink-soft);
  position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.nav > a:not(.btn):hover { color: var(--ink); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav > a.btn { color: var(--btn-fg); padding: 10px 20px; }

.burger {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(251,246,238,.7); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(50px, 9vw, 110px)) 0 clamp(60px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 65% at 78% 8%, rgba(214,164,76,.30), transparent 62%),
    radial-gradient(70% 55% at 6% 92%, rgba(180,71,31,.14), transparent 60%),
    linear-gradient(180deg, var(--cream-2), var(--cream) 62%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(30,25,19,.16) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
}

.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero-title {
  font-size: clamp(2.9rem, 8.4vw, 6rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-title em {
  font-style: italic; font-weight: 400; color: var(--crust);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(36px, 6vw, 64px); }

.hero-stats {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 600; line-height: 1;
}
.hero-stats span {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone); margin-top: .45rem;
}

.hero-photo {
  position: relative; z-index: 1;
  width: min(100%, var(--wrap));
  margin: clamp(40px, 6vw, 70px) auto 0;
  padding-inline: var(--gutter);
}

/* ---------- Emplacements photo ---------- */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(214,164,76,.35), rgba(138,78,34,.22) 45%, rgba(30,25,19,.12)),
    var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(30,25,19,.12) 1px, transparent 1px);
  background-size: 5px 5px; opacity: .55;
}
.ph::after {
  content: attr(data-ph);
  font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft);
  background: rgba(251,246,238,.82);
  padding: 9px 16px; border-radius: 999px; border: 1px dashed rgba(30,25,19,.25);
  max-width: 82%; text-align: center; line-height: 1.4;
}
/* Photos réelles : mêmes formats que les emplacements ci-dessus */
.ph-photo {
  width: 100%; height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cream-2);
}

.ph-hero { aspect-ratio: 16 / 7; box-shadow: var(--shadow-lg); }
.ph-card { aspect-ratio: 4 / 3; border-radius: 0; border: 0; box-shadow: none; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph-map  { aspect-ratio: 1 / 1; }

/* ---------- Bandeau défilant ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 2.2rem; align-items: center;
  animation: slide 44s linear infinite;
  font-family: var(--display); font-size: 1.05rem; font-style: italic;
}
.marquee-track span:nth-child(even) { color: var(--gold); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 11vw, 140px) 0; }
.section-soft { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }

.section-dark {
  background: var(--ink);
  color: var(--cream-2);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .ph {
  background: linear-gradient(135deg, rgba(214,164,76,.28), rgba(30,25,19,.55));
  border-color: rgba(251,246,238,.18);
}
.section-dark .ph::after {
  background: rgba(30,25,19,.75); color: var(--cream-2);
  border-color: rgba(251,246,238,.3);
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-lede { color: var(--ink-soft); font-size: 1.08rem; margin-top: 1.1rem; }
.section-dark .section-lede { color: rgba(243,233,219,.75); }

/* ---------- Cartes produits ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.3,1), box-shadow .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .6rem; }
.card-body p { color: var(--ink-soft); font-size: .96rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; }
.tags li {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: var(--cream-2); color: var(--crust);
}

/* ---------- Sections en deux colonnes ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-rev .split-media { order: 2; }
.split-media { position: relative; }

/* ---------- Étapes ---------- */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 2rem; }
.steps li { position: relative; padding-left: 62px; }
.step-n {
  position: absolute; left: 0; top: 2px;
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  color: var(--gold);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(214,164,76,.45);
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.steps p { color: rgba(243,233,219,.72); font-size: .98rem; margin: 0; }

/* ---------- Horaires ---------- */
.hours-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.hours-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 14px 4px; text-align: left; font-weight: 400; }
.hours th { font-family: var(--display); font-size: 1.05rem; width: 40%; }
.hours td {
  text-align: right; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hours tr + tr { border-top: 1px solid var(--line); }
.hours tr.is-today { background: linear-gradient(90deg, rgba(214,164,76,.16), transparent); }
.hours tr.is-today th::after {
  content: "aujourd'hui";
  font-family: var(--sans); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--crust); margin-left: 10px; vertical-align: middle;
}

.hours td.closed { color: var(--stone); font-style: italic; }
.hours-note {
  margin: 18px 4px 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--stone);
}

.note-card {
  background: var(--ink); color: var(--cream-2);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.note-card h3 { color: var(--cream); margin-bottom: .9rem; }
.note-card p { font-size: .96rem; color: rgba(243,233,219,.78); }
.note-card .btn { --btn-bg: var(--gold); --btn-fg: var(--ink); margin-top: .6rem; }
.note-card .tbd { color: var(--gold); }

/* ---------- Contact ---------- */
.contact-list { margin: 2.2rem 0 0; display: grid; gap: 1.5rem; }
.contact-list dt {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); margin-bottom: .35rem;
}
.contact-list dd {
  margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.4;
}
.contact-list dd a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: color .2s ease;
}
.contact-list dd a:hover { color: var(--crust); }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--ink); color: rgba(243,233,219,.72);
  padding: clamp(50px, 7vw, 80px) 0 40px;
}
.footer-inner { display: grid; gap: 34px; }
.footer-brand strong {
  font-family: var(--display); font-size: 1.5rem; color: var(--cream);
  display: block; margin-bottom: .5rem;
}
.footer-brand p { max-width: 44ch; font-size: .95rem; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; font-size: .95rem; transition: color .2s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal {
  margin: 0; padding-top: 26px; border-top: 1px solid rgba(251,246,238,.14);
  font-size: .82rem; color: rgba(243,233,219,.55);
}
.footer-legal a { color: inherit; }
.footer-disclaimer {
  margin: 14px 0 0; max-width: 60ch;
  font-size: .78rem; line-height: 1.6; color: rgba(243,233,219,.42);
}

/* ---------- Page mentions légales ---------- */
.legal {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(60px, 8vw, 100px);
  background: linear-gradient(180deg, var(--cream-2), var(--cream) 320px);
}
.legal-wrap { max-width: 780px; }
.legal-head { margin-bottom: 2.4rem; }
.legal-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 700; }
.legal-updated { margin: .9rem 0 0; font-size: .85rem; color: var(--stone); }

.legal-callout {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ember);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 3rem;
  font-size: .95rem; color: var(--ink-soft); box-shadow: var(--shadow);
}
.legal-callout strong { color: var(--ember); }

.legal-block { margin-bottom: 2.8rem; }
.legal-block h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  padding-bottom: .7rem; margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.legal-block p { color: var(--ink-soft); font-size: .98rem; }
.legal-block a { color: var(--crust); text-underline-offset: 3px; }

.legal-dl { margin: 0; display: grid; gap: .85rem; }
.legal-dl > div {
  display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 4px 20px;
  padding-bottom: .85rem; border-bottom: 1px dashed var(--line);
}
.legal-dl dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.legal-dl dd { margin: 0; color: var(--ink); font-size: .98rem; }

.legal-hint { display: block; font-size: .85rem; color: var(--stone); font-style: italic; margin-top: .3rem; }
p.legal-hint { margin-top: 1rem; }

.legal-back { margin-top: 3rem; }

@media (max-width: 620px) {
  .legal-dl > div { grid-template-columns: 1fr; }
}

/* ---------- Apparitions au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.8,.3,1), transform .8s cubic-bezier(.2,.8,.3,1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .hours-grid { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .ph-tall { aspect-ratio: 16 / 11; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .burger { display: flex; }

  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1;
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 18px) var(--gutter) 30px;
    background: rgba(251,246,238,.96);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-102%);
    transition: transform .45s cubic-bezier(.2,.8,.3,1);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateY(0); }
  .nav > a { padding: 16px 0; font-size: 1.15rem; font-family: var(--display); }
  .nav > a + a { border-top: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; align-self: flex-start; border: 0; }
  .nav > a.nav-cta { padding: 13px 26px; font-family: var(--sans); font-size: .95rem; }

  .hero-stats { gap: 22px 34px; }
  .steps li { padding-left: 54px; }
  .step-n { width: 38px; height: 38px; font-size: .95rem; }

  .hours th { width: auto; font-size: 1rem; }
  .hours td { font-size: .94rem; }
  .hours tr.is-today th::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
