/* ============================================================
   CAFÉ AUX FOURREURS — page de garde « ticket de vestiaire »
   Identité (fichiers cliente + page Softable) :
   papier crème #F1E2C6 · rouge brique #B73A2E · encre brune #2B211A
   Typo : DM Mono (étiquettes) + Crimson Pro (baseline serif)
   Ossature héritée de la première page du Montorgueil.
   ============================================================ */

:root {
  --paper:      #f1e2c6;   /* crème papier — fond */
  --paper-lite: #fbf3e3;   /* crème claire — centre */
  --paper-deep: #e6d2ad;   /* crème foncée — vignette */
  --red:        #b73a2e;   /* rouge brique de marque */
  --red-deep:   #8f2a21;   /* rouge profond */
  --ink:        #2b211a;   /* encre brune */
  --ink-dim:    rgba(43, 33, 26, 0.62);
  --ink-faint:  rgba(43, 33, 26, 0.35);

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

  --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 {
  position: relative; /* le cadre « ticket » se cale sur tout le document */
  font-family: var(--font-mono);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 60% 45% at 22% 30%, rgba(196,150,96,.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 75%, rgba(183,58,46,.07), transparent 70%),
    radial-gradient(125% 95% at 50% 32%, var(--paper-lite) 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 papier ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.45;
  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 « ticket » : filet + couture pointillée + losanges ---------- */
.frame {
  position: absolute;
  inset: clamp(0.75rem, 1.6vw, 1.5rem);
  z-index: 40;
  pointer-events: none;
  border: 1px solid rgba(183, 58, 46, 0.55);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(183, 58, 46, 0.4);
}
.dm {
  position: absolute;
  width: 11px; height: 11px;
  background: var(--paper);
  border: 1.5px solid var(--red);
  transform: rotate(45deg);
}
.dm--tl { top: -6px;    left: -6px; }
.dm--tr { top: -6px;    right: -6px; }
.dm--bl { bottom: -6px; left: -6px; }
.dm--br { bottom: -6px; right: -6px; }

/* ---------- 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);
  padding-bottom: max(clamp(1.2rem, 2.4vw, 2rem), env(safe-area-inset-bottom));
}

/* ===================== 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);
  white-space: nowrap;
}
.kicker--muted { color: var(--ink-dim); }
.dot { color: var(--red); opacity: 0.7; font-size: 0.5rem; }

/* « N° 54 » — le numéro du ticket, comme la rue */
.topbar__ornament {
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(183, 58, 46, 0.5);
}

.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(183, 58, 46, 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(--red); color: var(--paper); border-color: var(--red); }

/* ===================== 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.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--red);
  margin-bottom: clamp(0.8rem, 2vh, 1.4rem);
  white-space: nowrap;
}
.eyebrow .rule {
  display: block;
  width: clamp(22px, 6vw, 64px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 58, 46, 0.65));
}
.eyebrow .rule:last-child { background: linear-gradient(90deg, rgba(183, 58, 46, 0.65), transparent); }

/* Emblème « manteau de fourrure » */
.coat {
  width: auto;
  height: clamp(150px, 26vh, 250px);
  display: block;
  filter: drop-shadow(0 10px 24px rgba(143, 42, 33, 0.18));
}

/* Logo */
.wordmark {
  width: min(92%, clamp(280px, 56vw, 540px));
  line-height: 0;
  margin-top: clamp(0.9rem, 2.2vh, 1.6rem);
}
.wordmark img { width: 100%; height: auto; display: block; }

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

/* Baseline — serif italique */
.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(--red); font-style: italic; font-weight: 600; }

/* ---------- Bloc « ouvert » ---------- */
.openblock { margin-top: clamp(1.4rem, 3.6vh, 2.4rem); }
.openblock__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.openblock__dot {
  width: 9px; height: 9px; border-radius: 999px; flex: none;
  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.1rem, 3vh, 1.8rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: 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(--red);
  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(--red);
  color: var(--paper-lite);
  box-shadow: 0 8px 22px rgba(143, 42, 33, 0.24);
}
.btn--primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(143, 42, 33, 0.32);
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--red); color: var(--paper-lite); }
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

/* Instagram · téléphone */
.openblock__links {
  margin-top: clamp(0.9rem, 2.2vh, 1.3rem);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap;
}
.openblock__links a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
.openblock__links a:hover { color: var(--red); }
.openblock__links .sep { color: var(--red); opacity: 0.7; }

/* ===================== 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 dashed rgba(183, 58, 46, 0.45);
}
.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(--red);
  font-weight: 500;
}
.footer__v {
  font-size: 0.78rem;
  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(--red); text-decoration: underline; text-underline-offset: 3px; }

/* Crédit Softbird */
.credit {
  margin-top: clamp(2.2rem, 5vh, 3rem);
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.credit a { color: var(--ink-dim); text-decoration: none; }
.credit a:hover { color: var(--red); }

/* ---------- Sélecteur de langue ---------- */
.lang { display: inline-flex; align-items: center; gap: 0.35rem; }
.lang a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 0.35rem 0.1rem;
  transition: color 0.3s var(--ease);
}
.lang a:hover { color: var(--red); }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.lang__sep { color: var(--red); opacity: 0.6; font-size: 0.7rem; }

/* ---------- Lien « en savoir plus » (bas de la page de garde) ---------- */
.more {
  display: block;
  width: fit-content;
  margin: clamp(0.8rem, 1.8vh, 1.2rem) auto 0;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.more:hover { color: var(--red); }

/* ===================== LE CAFÉ (sous la page de garde) ===================== */
.info {
  position: relative;
  z-index: 10;
  padding: clamp(2.5rem, 7vh, 4.5rem) max(var(--pad), 2rem) clamp(1.6rem, 3vh, 2.2rem);
}
.info__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.info__kicker {
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.info__title {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  line-height: 1.12;
  color: var(--ink);
  margin-top: 0.6rem;
}
.info__text {
  font-family: var(--font-hand);
  font-size: clamp(1.08rem, 2.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 1rem auto 0;
  max-width: 34em;
}
.info__h {
  margin-top: clamp(2.2rem, 5vh, 3rem);
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
  display: flex; align-items: center; gap: 0.9rem; justify-content: center;
}
.info__h::before, .info__h::after { content: ""; width: 34px; height: 1px; background: rgba(183, 58, 46, 0.55); }

/* Étiquettes de vestiaire : matin / cuisine / bar */
.tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: clamp(1.6rem, 4vh, 2.2rem);
  text-align: left;
}
.tag {
  position: relative;
  background: var(--paper-lite);
  border: 1px solid rgba(183, 58, 46, 0.55);
  padding: 1.1rem 1rem 1.15rem;
}
.tag::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px dashed rgba(183, 58, 46, 0.35); pointer-events: none;
}
.tag__k {
  font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.tag__v {
  font-family: var(--font-hand);
  font-size: 1.04rem; line-height: 1.45; color: var(--ink);
  margin-top: 0.5rem;
}

/* Infos pratiques */
.facts { margin: 1.2rem auto 0; max-width: 520px; text-align: left; }
.facts__row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px dashed rgba(183, 58, 46, 0.4);
}
.facts__row:first-child { border-top: 1px dashed rgba(183, 58, 46, 0.4); }
.facts dt { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); font-weight: 500; padding-top: 0.15rem; }
.facts dd { font-size: 0.82rem; line-height: 1.5; color: var(--ink); }
.facts a, .faq a { color: inherit; text-decoration: underline; text-decoration-color: rgba(183, 58, 46, 0.5); text-underline-offset: 3px; }
.facts a:hover, .faq a:hover { color: var(--red); }

/* FAQ */
.faq { margin: 1.2rem auto 0; max-width: 560px; text-align: left; }
.faq__item { border-bottom: 1px dashed rgba(183, 58, 46, 0.4); }
.faq__item:first-child { border-top: 1px dashed rgba(183, 58, 46, 0.4); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0;
  font-family: var(--font-hand); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-mono); color: var(--red); flex: none; transition: transform 0.3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  font-family: var(--font-hand); font-size: 1.04rem; line-height: 1.5; color: var(--ink-dim);
  padding: 0 0 0.95rem;
}
.info__cta { margin-top: clamp(2rem, 5vh, 2.8rem); }

/* ===================== 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); } }
.coat.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, .coat.reveal { animation: none; opacity: 1; transform: none; }
  .openblock__dot { animation: none; }
}

/* ===================== RESPONSIVE (iPhone d'abord) ===================== */
@media (max-width: 720px) {
  .page { padding-top: 1.3rem; }
  .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; }
  .topbar__ornament { font-size: 0.64rem; padding: 0.25rem 0.5rem; }

  .eyebrow { font-size: 0.58rem; letter-spacing: 0.22em; }
  .coat { height: clamp(130px, 20vh, 190px); }
  .wordmark { width: 92%; }
  .hand-note { font-size: clamp(1.3rem, 5.6vw, 1.7rem); }

  .cta-row { width: 100%; gap: 0.6rem; }
  .btn { width: 100%; padding: 0.95rem 1.2rem; }

  .footer {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    text-align: center;
  }
  .footer__cell, .footer__cell--right { align-items: center; text-align: center; }
  .footer__cell--left { display: none; } /* le quartier est déjà dans la topbar */

  .tags { grid-template-columns: 1fr; gap: 0.7rem; }
  .facts__row { grid-template-columns: 5.6rem 1fr; gap: 0.7rem; }
  .info__cta .btn { width: 100%; }
}

@media (max-height: 740px) {
  .coat { height: clamp(120px, 20vh, 190px); }
  .wordmark { width: clamp(240px, 46vw, 420px); }
}

/* Téléphones courts (iPhone SE 667px, mini) : on resserre pour tenir sur un écran */
@media (max-width: 720px) and (max-height: 760px) {
  .page { padding-top: 1rem; padding-bottom: max(0.9rem, env(safe-area-inset-bottom)); }
  .stage { padding: 0.6rem 0; }
  .eyebrow { margin-bottom: 0.5rem; }
  .coat { height: clamp(96px, 16vh, 130px); }
  .wordmark { width: 84%; margin-top: 0.6rem; }
  .cafe-label { margin-top: 0.5rem; }
  .hand-note { font-size: clamp(1.15rem, 5vw, 1.4rem); margin-top: 0.6rem; }
  .openblock { margin-top: 0.9rem; }
  .cta-row { margin-top: 0.8rem; gap: 0.45rem; }
  .btn { padding: 0.75rem 1rem; }
  .openblock__links { margin-top: 0.6rem; }
  .footer { padding-top: 0.8rem; gap: 0.5rem; }
  .footer__cell { gap: 0.2rem; }
  .more { margin-top: 0.55rem; }
}
