/* ============================================================
   LA BOULANGERIE EFFEL — page d'accueil
   Identité de marque : fond rouge sang #800202 · écritures crème
   Typo : DM Mono (labels) + Cormorant Garamond (accent serif)
   (palette & design empruntés à « Le lézard »)
   ============================================================ */

:root {
  --ink:       #800202;   /* rouge sang de marque — fond */
  --ink-deep:  #5e0101;   /* rouge profond — vignette */
  --ink-soft:  #9a1414;
  --cream:     #f1e6d8;   /* crème de marque — texte principal */
  --cream-dim: rgba(241, 230, 216, 0.72);
  --cream-faint: rgba(241, 230, 216, 0.4);
  --white:     #fbf5ec;

  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-hand: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --maxw: 1280px;
  --pad:  clamp(1.25rem, 4vw, 3.25rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-mono);
  background: var(--ink);
  background-image: radial-gradient(120% 90% at 50% 30%, var(--ink-soft) 0%, var(--ink) 42%, var(--ink-deep) 100%);
  color: var(--cream);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cadre décoratif ---------- */
.frame {
  position: fixed;
  inset: clamp(0.75rem, 1.6vw, 1.5rem);
  z-index: 40;
  pointer-events: none;
  border: 1px solid rgba(241, 230, 216, 0.26);
  outline: 1px solid rgba(241, 230, 216, 0.12);
  outline-offset: 4px;
}
.tick {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--cream);
  opacity: 0.7;
}
.tick--tl { top: -1px;  left: -1px;  border-right: 0; border-bottom: 0; }
.tick--tr { top: -1px;  right: -1px; border-left: 0;  border-bottom: 0; }
.tick--bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0; }
.tick--br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0; }

/* ---------- Structure ---------- */
.page {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.4rem, 3vw, 2.6rem) var(--pad) clamp(1.2rem, 2.4vw, 2rem);
}

/* ===================== TOPBAR ===================== */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.topbar__side { display: flex; align-items: center; gap: 0.7rem; }
.topbar__side--right { justify-content: flex-end; }

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream);
}
.kicker--muted { color: var(--cream-dim); }
.dot { color: var(--cream); opacity: 0.55; font-size: 0.5rem; }

.topbar__mark { display: block; line-height: 0; }
.emblem-mark {
  width: 18px; height: auto;
  fill: var(--cream);
  transition: fill 0.4s var(--ease), transform 0.5s var(--ease);
}
.topbar__mark:hover .emblem-mark { fill: var(--white); transform: translateY(-2px); }

.ghost-link {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(241, 230, 216, 0.4);
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.ghost-link:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ===================== SCÈNE ===================== */
.stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.emblem-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  width: auto;
  height: min(74vh, 620px);
  fill: var(--cream);
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

.stage__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--cream-dim);
  margin-bottom: clamp(1.2rem, 3vh, 2.2rem);
}
.eyebrow .rule {
  display: block;
  width: clamp(28px, 7vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cream-faint));
}
.eyebrow .rule:last-child { background: linear-gradient(90deg, var(--cream-faint), transparent); }

/* Wordmark */
.wordmark {
  width: clamp(280px, 60vw, 560px);
  line-height: 0;
}
.wordmark img { width: 100%; height: auto; display: block; }

/* Baseline — serif italique raffiné */
.hand-note {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
}
.hand-note em { color: var(--white); font-style: italic; font-weight: 600; }

/* ---------- Statut d'ouverture ---------- */
.status { margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.status__line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.status__dot {
  color: #7fdca0;
  font-size: 0.6rem;
  animation: pulse 2.4s ease-in-out infinite;
}
.status__dot.is-closed { color: #e3a09a; }
.status__since {
  font-family: var(--font-hand);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--cream-dim);
  margin-top: 0.55rem;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Appel à l'action ---------- */
.cta {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--cream);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--cream); color: var(--ink); }
.btn--solid:hover { background: var(--white); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(241, 230, 216, 0.45);
}
.btn--ghost:hover { background: rgba(241, 230, 216, 0.1); border-color: var(--cream); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ===================== FOOTER ===================== */
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 1rem;
  padding-top: clamp(1.2rem, 2.4vh, 1.8rem);
  border-top: 1px solid rgba(241, 230, 216, 0.16);
}
.footer__cell { display: flex; flex-direction: column; gap: 0.4rem; font-style: normal; }
.footer__cell--center { text-align: center; align-items: center; }
.footer__cell--right { text-align: right; align-items: flex-end; }
.footer__k {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.footer__v {
  font-size: 0.8rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}
a.footer__v { transition: color 0.3s var(--ease); }
a.footer__v:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.emblem-watermark.reveal {
  transform: translate(-50%, -52%) scale(0.94);
  animation: emblem-in 1.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes emblem-in {
  to { opacity: 0.06; transform: translate(-50%, -52%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .emblem-watermark.reveal { animation: none; opacity: 1; transform: none; }
  .emblem-watermark.reveal { opacity: 0.06; transform: translate(-50%, -52%); }
  .status__dot { animation: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
  .topbar__side--left .kicker--muted, .topbar__side--left .dot { display: none; }
  .ghost-link { padding: 0.5rem 0.85rem; font-size: 0.62rem; letter-spacing: 0.1em; }

  .footer {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    text-align: center;
  }
  .footer__cell,
  .footer__cell--right { align-items: center; text-align: center; }

  .hand-note { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .cta { width: 100%; }
  .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-height: 720px) {
  .status { margin-top: clamp(1rem, 3vh, 1.6rem); }
  .cta { margin-top: clamp(1rem, 3vh, 1.6rem); }
  .emblem-watermark { height: min(56vh, 460px); }
}
