/* ============================================================
   CAFÉ DES ARTS — page d'accueil (modèle Montorgueil v1)
   Identité : papier crème #F6EFE4 · encre orange brûlé #B8500A
   Typo : DM Mono (labels) + Cormorant Garamond (logo & accent)
   ============================================================ */

:root {
  --paper:      #f6efe4;   /* crème chaude — fond */
  --paper-deep: #ead9c2;   /* crème foncée — vignette */
  --brand:        #b8500a;   /* rouge de marque */
  --brand-deep:   #8a3a06;   /* rouge profond */
  --ink:        #2a211c;   /* encre — texte principal */
  --ink-dim:    rgba(42, 33, 28, 0.62);
  --ink-faint:  rgba(42, 33, 28, 0.35);

  --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(--paper);
  background-image: radial-gradient(125% 95% at 50% 32%, #f9f4eb 0%, var(--paper) 46%, var(--paper-deep) 100%);
  color: var(--ink);
  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.5;
  mix-blend-mode: multiply;
  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)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Cadre décoratif (carte de café) ---------- */
.frame {
  position: fixed;
  inset: clamp(0.75rem, 1.6vw, 1.5rem);
  z-index: 40;
  pointer-events: none;
  border: 1px solid rgba(184, 80, 10, 0.4);
  outline: 1px solid rgba(184, 80, 10, 0.18);
  outline-offset: 4px;
}
.tick {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--brand);
  opacity: 0.8;
}
.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(--ink);
}
.kicker--muted { color: var(--ink-dim); }
.dot { color: var(--brand); opacity: 0.7; font-size: 0.5rem; }

.topbar__ornament {
  color: var(--brand);
  opacity: 0.7;
  font-size: 0.85rem;
}

.ghost-link {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(184, 80, 10, 0.5);
  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(--brand); color: var(--paper); border-color: var(--brand); }

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

.stage__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  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.36em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: clamp(0.8rem, 2vh, 1.4rem);
}
.eyebrow .rule {
  display: block;
  width: clamp(28px, 7vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 80, 10, 0.65));
}
.eyebrow .rule:last-child { background: linear-gradient(90deg, rgba(184, 80, 10, 0.65), transparent); }

/* Emblème « garçon de café » */
.emblem {
  width: auto;
  height: clamp(168px, 28vh, 270px);
  display: block;
  filter: drop-shadow(0 10px 24px rgba(138, 58, 6, 0.18));
}

/* Wordmark cursif */
.wordmark {
  width: clamp(260px, 52vw, 470px);
  line-height: 0;
  margin-top: clamp(0.9rem, 2.2vh, 1.5rem);
}
.wordmark img { width: 100%; height: auto; display: block; }

/* Sous-titre « Café Parisien » */
.cafe-label {
  margin-top: clamp(0.8rem, 1.8vh, 1.15rem);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}

/* Baseline — serif italique raffiné */
.hand-note {
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 3vw, 2.05rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
}
.hand-note em { color: var(--brand); font-style: italic; font-weight: 600; }

/* ---------- Bloc « ouvert » ---------- */
.openblock { margin-top: clamp(1.5rem, 3.8vh, 2.4rem); }
.openblock__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.openblock__dot {
  width: 9px; height: 9px; border-radius: 999px;
  background: #2f8f4e;
  box-shadow: 0 0 0 0 rgba(47, 143, 78, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47, 143, 78, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(47, 143, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 143, 78, 0); }
}

/* ---------- Boutons CTA ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: clamp(1.2rem, 3vh, 1.8rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.btn--primary {
  background: var(--brand);
  color: var(--paper);
  box-shadow: 0 8px 22px rgba(138, 58, 6, 0.24);
}
.btn--primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(138, 58, 6, 0.32);
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--brand); color: var(--paper); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.openblock__langs {
  margin-top: clamp(0.9rem, 2.2vh, 1.3rem);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ===================== 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(184, 80, 10, 0.22);
}
.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(--brand);
  font-weight: 500;
}
.footer__v {
  font-size: 0.8rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
a.footer__v { transition: color 0.3s var(--ease); }
a.footer__v:hover { color: var(--brand); 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.reveal {
  transform: translateY(18px) scale(0.97);
  animation: emblem-in 1.3s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes emblem-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .emblem.reveal { animation: none; opacity: 1; transform: 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); }
}


@media (max-height: 740px) {
  .emblem { height: clamp(140px, 22vh, 210px); }
  .wordmark { width: clamp(240px, 46vw, 400px); }
}

/* ===================== WORDMARK (texte) ===================== */
.wordmark { width: auto; line-height: 1; margin-top: clamp(0.9rem, 2.2vh, 1.5rem); color: var(--brand); font-weight: 400; }
.wordmark__caps { display: block; font-family: var(--font-hand); font-weight: 500; font-size: clamp(2.6rem, 7.6vw, 5.2rem); letter-spacing: .1em; padding-left: .1em; text-transform: uppercase; }
.wordmark__caps b { font-weight: 600; font-size: 1.28em; line-height: 0; }
.emblem { height: clamp(140px, 22vh, 214px); color: var(--brand); }

/* ===================== LANGUES + CRÉDIT ===================== */
.langs { display: flex; gap: 0.1rem; justify-content: center; }
.langs a {
  font-size: 0.66rem; letter-spacing: 0.14em; font-weight: 500;
  color: var(--ink-dim); text-decoration: none;
  padding: 0.38rem 0.5rem; border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.langs a:hover { color: var(--brand); }
.langs a[aria-current="page"] { color: var(--paper); background: var(--brand); }
.footer__credit {
  grid-column: 1 / -1; text-align: center;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-dim);
}
.footer__credit a { color: var(--brand); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; }
.footer__credit a:hover { border-bottom-color: transparent; }
@media (max-width: 720px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar__side--left { display: none; }
  .langs { justify-content: flex-start; }
  .langs a { padding: 0.36rem 0.4rem; letter-spacing: 0.08em; }
}
.footer { row-gap: 0.6rem; }
@media (max-width: 720px) { .openblock__status { font-size: 0.86rem; letter-spacing: 0; } }
@media (max-width: 1000px) { .topbar__side--left .kicker--muted, .topbar__side--left .dot { display: none; } .kicker { white-space: nowrap; } }
