/* ============================================================
   LIO — Chocolatier · Pâtissier · Glacier
   Système visuel : Refero « ORYZO » (noyer / crème / braise)
   + effet verre (boutons & cartes produits) adapté au fond sombre
   ============================================================ */

:root {
  --cream: #ffedd7;
  --walnut: #100904;
  --bark: #382416;
  --cork: #40372e;
  --driftwood: #6c5f51;
  --ember: #dc5000;

  --cream-70: rgba(255, 237, 215, 0.7);
  --cream-50: rgba(255, 237, 215, 0.5);

  --font: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --text-hero: clamp(3.2rem, 10.5vw, 9.5rem);
  --text-display: clamp(2.4rem, 5.4vw, 4.6rem);
  --text-heading: clamp(2rem, 3.6vw, 2.6rem);
  --text-body-lg: clamp(1.2rem, 1.9vw, 1.8rem);
  --text-sub: 1.125rem;

  --radius-pill: 36px;
  --radius-ghost: 22.5px;
  --radius-card: 20px;
  --radius-img: 12px;

  --gutter: 18px;
  --pad: clamp(16px, 3vw, 24px);
  --maxw: 1360px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--walnut);
  color: var(--cream);
  font-family: var(--font);
  font-feature-settings: "ss01";
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--bark); color: var(--cream); }

/* ---------- Typo ---------- */
.upper,
h1, h2, h3, h4 {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.hero-title { font-size: var(--text-hero); line-height: 0.86; letter-spacing: -0.035em; }
.display    { font-size: var(--text-display); line-height: 0.9; letter-spacing: -0.02em; }
.heading    { font-size: var(--text-heading); line-height: 0.9; }
.sub        { font-size: var(--text-sub); line-height: 1; }
.lead       { font-size: var(--text-body-lg); line-height: 1.26; font-weight: 400; margin: 0; }
.muted      { color: var(--cream-70); }
.label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cream-70);
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.ember { color: var(--ember); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.full { min-height: 100vh; min-height: 100svh; }

.dash {
  border: 0;
  border-top: 1px dashed var(--cork);
  margin: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.nav.scrolled {
  background: rgba(16, 9, 4, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px dashed var(--cork);
}
.logo {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; text-transform: uppercase; font-weight: 500;
}
.logo b { font-size: 34px; line-height: .8; letter-spacing: -0.04em; font-weight: 500; }
.logo span { font-size: 10px; letter-spacing: .12em; color: var(--cream-70); }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; text-transform: uppercase; font-weight: 500;
  font-size: 13px; letter-spacing: 0.06em;
  padding-bottom: 4px; border-bottom: 1px dashed transparent;
  transition: border-color .25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--cream); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--cream);
  font: 500 13px var(--font); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; padding: 8px 0;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 14px; padding: 0 var(--pad);
    background: rgba(16, 9, 4, 0.94);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav-links a { font-size: clamp(2.4rem, 12vw, 3.6rem); line-height: .95; letter-spacing: -0.02em; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav.open .nav-toggle { position: relative; z-index: 2; }
}

/* ---------- Étiquette verticale (artefact « numéro de série ») ---------- */
.side-label {
  position: fixed; right: 14px; top: 50%; z-index: 40;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-size: 11px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream-50);
  white-space: nowrap; pointer-events: none;
}
@media (max-width: 820px) { .side-label { display: none; } }

/* ============================================================
   EFFET VERRE — dérivé du .glass-card fourni.
   Sur fond noyer, le blanc opaque devient un reflet crème
   translucide pour garder la matière « verre ».
   ============================================================ */
.glass {
  background: rgba(255, 237, 215, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 237, 215, 0.28);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 237, 215, 0.5),
    inset 0 -1px 0 rgba(255, 237, 215, 0.1),
    inset 0 0 20px 10px rgba(255, 237, 215, 0.06);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 237, 215, 0.8), transparent);
  pointer-events: none; z-index: 2;
}
.glass::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(255, 237, 215, 0.8), transparent, rgba(255, 237, 215, 0.3));
  pointer-events: none; z-index: 2;
}

/* ---- Bouton verre ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  color: var(--cream); text-decoration: none;
  font: 500 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.btn .arrow { transition: transform .3s ease; }
.btn:hover { background: rgba(255, 237, 215, 0.16); border-color: rgba(255, 237, 215, 0.5); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 1px dashed var(--cream); outline-offset: 4px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--radius-ghost);
  border: 1px solid var(--cream); color: var(--cream); background: transparent;
  text-decoration: none; font: 500 12px/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-ghost:hover { background: var(--cream); color: var(--walnut); }

.link {
  text-transform: uppercase; font-weight: 500; font-size: 13px; letter-spacing: .06em;
  text-decoration: none; border-bottom: 1px solid var(--cream); padding-bottom: 2px;
}

/* ---- Carte produit verre (240 × 360) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gutter);
}
.card {
  border-radius: var(--radius-card);
  aspect-ratio: 240 / 360;
  padding: 10px;
  display: flex; flex-direction: column;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 237, 215, 0.5); }
.card-img {
  flex: 1; min-height: 0; border-radius: var(--radius-img); overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body {
  padding: 14px 8px 6px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
}
.card-body h3 { font-size: 15px; line-height: 1.05; }
.card-body p { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--cream-70); }
.price {
  flex-shrink: 0; font-size: 12px; font-weight: 500; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 237, 215, .3);
  white-space: nowrap;
}

/* Lueurs chaudes derrière le verre (pour que le flou ait de la matière) */
.glow { position: relative; isolation: isolate; overflow-x: clip; }
.glow::before,
.glow::after {
  content: ''; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
}
.glow::before { width: 46vw; height: 46vw; left: -10vw; top: 5%; background: rgba(120, 62, 22, .45); }
.glow::after  { width: 36vw; height: 36vw; right: -8vw; bottom: 0; background: rgba(220, 80, 0, .14); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 var(--pad);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,9,4,.55) 0%, rgba(16,9,4,.15) 35%, rgba(16,9,4,.85) 80%, var(--walnut) 100%);
}
.hero-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gutter);
  align-items: end; margin-top: clamp(28px, 5vw, 56px);
}
.attrib {
  border-radius: var(--radius-card); padding: 18px 20px; max-width: 360px;
}
.attrib p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--cream-70); }

.page-hero { min-height: 88vh; min-height: 88svh; }

@media (max-width: 700px) {
  .hero-bottom { grid-template-columns: 1fr; }
}

/* ---------- Révélation produit (3 colonnes Refero) ---------- */
.reveal-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.1fr) 1fr;
  gap: var(--gutter);
  align-items: center;
}
.reveal-grid .col-left { align-self: start; }
.reveal-grid .col-right { align-self: end; }
.reveal-img {
  border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 3 / 4;
}
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.index-num { font-size: 12px; font-weight: 500; letter-spacing: .1em; color: var(--cream-50); margin-bottom: 18px; }
.col-right .lead + .btn,
.col-right .lead + .actions { margin-top: 28px; }

@media (max-width: 900px) {
  .reveal-grid { grid-template-columns: 1fr; }
  .reveal-grid .col-left, .reveal-grid .col-right { align-self: auto; }
  .reveal-img { aspect-ratio: 4 / 5; max-height: 70vh; }
}

/* ---------- Grilles diverses ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .lead { max-width: 560px; }

.photo { border-radius: var(--radius-img); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Parcours / timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--gutter);
  padding: 18px 0; border-top: 1px dashed var(--cork);
}
.timeline li:last-child { border-bottom: 1px dashed var(--cork); }
.timeline .t-k { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-50); padding-top: 4px; }
.timeline .t-v { font-size: 20px; font-weight: 500; text-transform: uppercase; line-height: 1.1; }
.timeline .t-v small { display: block; font-size: 14px; font-weight: 400; text-transform: none; color: var(--cream-70); margin-top: 4px; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px dashed var(--cork); padding: 22px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.marquee .serif { color: var(--cream-70); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Lieux */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.place {
  border-radius: var(--radius-card); padding: 12px;
  display: grid; grid-template-rows: auto 1fr; gap: 18px;
}
.place .photo { aspect-ratio: 16 / 10; }
.place-body { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 14px; }
.place-body h3 { font-size: 26px; line-height: .95; }
.hours { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px dashed var(--cork); }
.hours li span:last-child { color: var(--cream-70); text-align: right; }
.place .actions { margin-top: auto; }
@media (max-width: 820px) { .places { grid-template-columns: 1fr; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Encadré info (commandes, conditions) */
.note { border-radius: var(--radius-card); padding: clamp(20px, 3vw, 32px); }
.note ul { margin: 14px 0 0; padding: 0; list-style: none; }
.note li { padding: 10px 0; border-top: 1px dashed var(--cork); font-size: 15px; }
.note li b { font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; display: block; color: var(--cream-70); margin-bottom: 2px; }

/* Signatures (grands titres éditoriaux) */
.signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.signature { padding-top: 18px; border-top: 1px dashed var(--driftwood); }
.signature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: .95; margin: 12px 0 10px; }
.signature p { margin: 0; color: var(--cream-70); font-size: 15px; }
@media (max-width: 820px) { .signatures { grid-template-columns: 1fr; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.gallery .photo { aspect-ratio: 3 / 4; }
.gallery .photo.wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Formulaire ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full-w { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-70); }
.field input,
.field select,
.field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--cream);
  border-radius: 0; color: var(--cream); font: 400 18px/1.4 var(--font);
  padding: 6px 2px; outline: none;
}
.field select option { background: var(--walnut); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-style: dashed; }
.form .consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--cream-70); }
.form .consent input { accent-color: var(--bark); margin-top: 4px; }
.form-status { grid-column: 1 / -1; font-size: 14px; color: var(--cream-70); min-height: 1.4em; margin: 0; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

.map { border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--cork); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.35) brightness(.72) contrast(1.1); }

/* ---------- CTA final ---------- */
.cta-final { text-align: left; }
.cta-final .display { max-width: 16ch; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 28px; border-top: 1px dashed var(--cork); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px var(--gutter); }
.footer h4 { font-size: 12px; letter-spacing: .1em; color: var(--cream-50); margin-bottom: 14px; }
.footer p, .footer li { font-size: 14px; margin: 0; line-height: 1.7; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .big { font-size: clamp(4rem, 14vw, 12rem); line-height: .8; font-weight: 500; letter-spacing: -0.05em; text-transform: uppercase; margin-top: 64px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; font-size: 12px; color: var(--cream-50); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Animations d'apparition ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .card, .card-img img, .btn { transition: none; }
}

/* Mobile : cartes un peu moins hautes */
@media (max-width: 520px) {
  .card { aspect-ratio: 4 / 5; }
}

/* ---------- Hero accueil : fond halftone bloom + bulle en verre ---------- */
.hero-bloom { justify-content: center; padding: 110px 0 60px; background: #000; }
.bloom-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bloom::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,9,4,.35) 0%, transparent 22%, transparent 72%, var(--walnut) 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 3vw, 48px);
  align-items: center;
}
.hero-left { align-self: end; }
.bloom-title { font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: .88; margin-top: 14px; }
.hero-right { align-self: end; display: grid; gap: var(--gutter); justify-items: start; }
.hero-right .attrib { max-width: 340px; }

.bubble {
  width: min(560px, 42vw); aspect-ratio: 1; border-radius: 50%;
  padding: clamp(10px, 1.4vw, 18px);
  animation: bubble-float 7s ease-in-out infinite;
}
.bubble img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bubble.rv.in { animation: bubble-float 7s ease-in-out infinite; }
@keyframes bubble-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .bubble { grid-column: 1 / -1; order: -1; justify-self: center; width: min(520px, 62vw); }
  .hero-right { justify-items: end; }
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 28px; }
  .hero-left, .hero-right { align-self: auto; justify-items: center; }
  .bubble { width: min(420px, 82vw); }
  .hero-right .attrib { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .bubble, .bubble.rv.in { animation: none; } }
