/* =====================================================================
   LE MONDE DE LA GLACE — feuille de style
   ===================================================================== */

:root {
  --ink: #14110E;
  --ink-soft: #4A453E;
  --cream: #F7F1E7;
  --paper: #FFFFFF;
  --line: #E4DCCE;
  --muted: #8C8475;
  --glacier: #2C8FA8;
  --glacier-soft: #CFEAF1;
  --peach: #F6C9A4;
  --accentc: var(--glacier);

  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --sect: clamp(72px, 10vw, 150px);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.sect { padding-block: var(--sect); }

/* ---- Typographic helpers ---- */
.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.lead p { margin: 0 0 1em; }
.lead p:last-child { margin-bottom: 0; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 15px;
  transition: transform .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* =====================================================================
   HEADER
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 12px var(--pad);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
.topbar.scrolled { border-color: var(--line); padding-block: 8px; }
.brandmark { display: flex; align-items: center; gap: 12px; }
.brandmark img { height: 38px; width: auto; transition: height .3s; }
.topbar.scrolled .brandmark img { height: 30px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); transition: background .2s, color .2s; white-space: nowrap;
}
.nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.topctl { display: flex; align-items: center; gap: 10px; }

/* lang switch */
.switch {
  display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 999px; padding: 3px;
}
.switch a, .switch button {
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .02em; transition: all .25s;
}
.switch .on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.burger { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px 11px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; }

/* mobile drawer */
.drawer { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .drawer { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; }
  .drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .3s; }
  .drawer .panel { position: absolute; top: 0; right: 0; height: 100%; width: min(82vw, 340px);
    background: var(--cream); transform: translateX(100%); transition: transform .35s cubic-bezier(.16,1,.3,1);
    padding: 80px 26px 26px; display: flex; flex-direction: column; gap: 6px; box-shadow: -20px 0 60px rgba(0,0,0,.18); }
  .drawer.open { pointer-events: auto; }
  .drawer.open .scrim { opacity: 1; }
  .drawer.open .panel { transform: none; }
  .drawer .panel a { font-family: var(--font-display); font-size: 26px; padding: 8px 0; border-bottom: 1px solid var(--line); }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-top: clamp(40px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,5vw,70px); align-items: center; }
.hero-logo { margin: 0; max-width: 560px; }
.hero-kicker { margin-bottom: 26px; }
.hero-lead { margin: 30px 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 220px 220px 26px 26px; overflow: hidden; aspect-ratio: 3/3.6; box-shadow: 0 40px 90px -40px rgba(0,0,0,.45); }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--paper); border-radius: 999px; padding: 16px 22px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4);
}
.hero-badge b { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.hero-badge span { font-size: 12px; color: var(--muted); max-width: 11ch; }
.hero-marquee { margin-top: clamp(40px,6vw,80px); border-block: 1px solid var(--line); overflow: hidden; }
.hero-marquee .track { display: flex; gap: 60px; padding: 18px 0; white-space: nowrap; animation: marq 38s linear infinite; }
.hero-marquee .track span { font-family: var(--font-display); font-style: italic; font-size: clamp(20px,2.4vw,30px); color: var(--ink-soft); display: inline-flex; gap: 60px; align-items: center; }
.hero-marquee .track span::after { content: "✦"; color: var(--glacier); font-style: normal; font-size: .7em; }
@keyframes marq { to { transform: translateX(-50%); } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-top: 30px; }
}

/* =====================================================================
   BRANDS
   ===================================================================== */
.sect-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: clamp(36px,5vw,64px); }
.sect-head .display { font-size: clamp(38px, 6vw, 80px); }
@media (max-width: 820px){ .sect-head { grid-template-columns: 1fr; gap: 16px; } }

.brand-list { display: flex; flex-direction: column; gap: 0; }
.brand-row {
  display: grid; grid-template-columns: 64px 1.1fr 1.3fr auto; gap: clamp(18px,3vw,46px);
  align-items: center; padding: clamp(22px,3vw,38px) 0; border-top: 1px solid var(--line);
  position: relative; transition: padding-left .35s; cursor: pointer;
}
.brand-row:last-child { border-bottom: 1px solid var(--line); }
.brand-row .idx { font-family: var(--font-display); font-size: 20px; color: var(--muted); }
.brand-row .bname { font-family: var(--font-display); font-size: clamp(28px,3.4vw,46px); line-height: 1; }
.brand-row .bsub { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.brand-row .btag { color: var(--ink-soft); font-size: clamp(15px,1.4vw,17px); }
.brand-row .go { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); display: grid; place-items: center; transition: all .3s; }
.brand-row:hover, .brand-row:focus-visible { padding-left: 14px; outline: none; }
.brand-row:hover .go, .brand-row:focus-visible .go { background: var(--brandc, var(--ink)); color: #fff; border-color: transparent; transform: rotate(-45deg); }
.brand-row .swatch { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brandc); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.brand-row:hover .swatch, .brand-row:focus-visible .swatch { transform: scaleY(1); }
@media (max-width: 720px){
  .brand-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .brand-row .idx { display:none; }
  .brand-row .btag { grid-column: 1 / -1; }
}

/* =====================================================================
   STORY
   ===================================================================== */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,80px); align-items: center; }
@media (max-width: 860px){ .story-grid { grid-template-columns: 1fr; } }
.story-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.story-media .tall { grid-row: span 2; aspect-ratio: 3/5; }
.story-media .sq { aspect-ratio: 1/1; }
.steps { margin-top: 30px; display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.step b { font-family: var(--font-display); font-size: 22px; color: var(--glacier); }
.step .display { font-size: 21px; }
.step p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }

/* =====================================================================
   PRODUCTS / FLAVORS
   ===================================================================== */
.flavors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 15px; transition: transform .25s, border-color .25s, background .25s;
}
.chip .dot { width: 12px; height: 12px; border-radius: 999px; }
.chip:hover { transform: translateY(-3px); border-color: var(--brandc, var(--ink)); }
.creations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(32px,4vw,52px); }
@media (max-width: 820px){ .creations { grid-template-columns: repeat(2,1fr); } }
.creation { border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.creation .ph { aspect-ratio: 4/5; overflow: hidden; }
.creation .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.creation:hover .ph img { transform: scale(1.06); }
.creation .cap { padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }

/* =====================================================================
   EVENTS (instant glacé)
   ===================================================================== */
.events { position: relative; color: var(--cream); background: var(--ink); border-radius: clamp(20px,3vw,34px); overflow: hidden; }
.events .inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,60px); align-items: center; padding: clamp(34px,5vw,72px); }
.events .lead { color: color-mix(in srgb, var(--cream) 82%, transparent); }
.events .display { font-size: clamp(34px,5vw,68px); }
.events .ev-media { display: grid; place-items: center; aspect-ratio: 4/3.4; }
.events .ev-media img { width: auto; max-width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
.events .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@media (max-width: 860px){ .events .inner { grid-template-columns: 1fr; } }

/* =====================================================================
   MAP
   ===================================================================== */
.map-grid { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 900px){ .map-grid { grid-template-columns: 1fr; } }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fbtn { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 13px; color: var(--ink-soft); transition: all .25s; }
.fbtn.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.loc-list { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; padding-right: 6px; }
.loc {
  display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; transition: border-color .25s, transform .2s;
}
.loc:hover, .loc:focus-visible { border-color: var(--brandc, var(--ink)); transform: translateX(3px); outline: none; }
.loc .pin { width: 10px; height: 10px; border-radius: 999px; margin-top: 6px; background: var(--brandc); }
.loc .lc-brand { font-weight: 700; font-size: 14px; }
.loc .lc-city { font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.loc .lc-addr { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.loc .tagm { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; }
.tagm.ok { background: #E6F4EA; color: #2E7D43; }
.tagm.no { background: #FBEFD6; color: #9A6B12; }
#leaflet-map { min-height: 540px; height: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-tile-pane { filter: saturate(.25) brightness(1.05); }

/* =====================================================================
   JOIN / RECRUIT
   ===================================================================== */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,60px); align-items: center; }
@media (max-width: 820px){ .join { grid-template-columns: 1fr; } }
.join-roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.role { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 600; font-size: 14px; }
.values { display: grid; gap: 14px; }
.value { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.value .vi { font-size: 22px; }
.value b { display: block; margin-bottom: 2px; }
.value span { color: var(--ink-soft); font-size: 14px; }

/* =====================================================================
   CONTACT + FOOTER
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--glacier); }
.field-errors { margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; color: #B3261E; }
.field .field-errors { margin: 0; }
.contact-cards { display: grid; gap: 12px; }
.ccard { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); }
.ccard .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ccard .v { font-family: var(--font-display); font-size: 23px; }
.ccard .v--addr { font-size: 17px; line-height: 1.3; }
.ccard a.v:hover { color: var(--glacier); }

footer.site {
  background: var(--ink); color: color-mix(in srgb, var(--cream) 80%, transparent);
  padding: clamp(48px,7vw,90px) 0 28px;
}
footer.site .ftop { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 820px){ footer.site .ftop { grid-template-columns: 1fr; gap: 24px; } }
footer.site .fcol h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 55%, transparent); margin: 0 0 14px; }
footer.site .fcol a { display: block; padding: 5px 0; color: color-mix(in srgb, var(--cream) 82%, transparent); }
footer.site .fcol a:hover { color: var(--cream); }
footer.site .flogo { height: 40px; width: auto; margin-bottom: 16px; filter: invert(1) brightness(1.6); }
footer.site .fbig { font-family: var(--font-display); font-size: clamp(40px,7vw,96px); line-height: .95; margin: 40px 0 26px; color: var(--cream); }
footer.site .fbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); padding-top: 22px; font-size: 12.5px; }
footer.site .region img { height: 42px; width: auto; border-radius: 6px; background: #fff; padding: 4px 8px; }

/* =====================================================================
   BRAND MODAL
   ===================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(20,17,14,.5);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(820px, 100%); max-height: 90vh; overflow: auto; background: var(--cream);
  border-radius: 22px; position: relative; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6);
  animation: pop .35s cubic-bezier(.16,1,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-x {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px;
  border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: var(--ink);
  font-size: 15px; display: grid; place-items: center; transition: transform .2s;
}
.modal-x:hover { transform: rotate(90deg); }
.modal-hd { display: flex; gap: 22px; align-items: center; padding: 34px 36px; background: var(--brand-bg); color: var(--brand-ink); position: relative; }
.modal-hd .logo-chip { background: #fff; border-radius: 16px; padding: 14px; flex: none; display: grid; place-items: center; }
.modal-hd .logo-chip img { height: 58px; width: auto; max-width: 120px; object-fit: contain; }
.modal-hd .display { font-size: clamp(30px,5vw,52px); margin: 4px 0; color: inherit; }
.modal-kick { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.modal-tag { font-style: italic; font-family: var(--font-display); font-size: 19px; opacity: .95; }
.modal-badge { position: absolute; right: 64px; bottom: 18px; height: 64px; width: auto; }
.modal-body { padding: 30px 36px 38px; }
.modal-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0; }
.modal-facts .fact { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.modal-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 6px; }
.modal-photos--3 { grid-template-columns: 1fr 1fr 1fr; }
.modal-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.modal-locs { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.modal-locs .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px){
  .ml-grid, .modal-photos, .modal-photos--3 { grid-template-columns: 1fr; }
  .modal-hd { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 90px; }
  .modal-badge { right: 24px; }
}
.ml { display: grid; gap: 2px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; position: relative; }
.ml b { font-family: var(--font-display); font-size: 18px; }
.ml span { font-size: 12.5px; color: var(--muted); }
.ml em { font-style: normal; margin-top: 6px; width: fit-content; }

/* leaflet custom pin */
.mdg-pin { display: grid; place-items: center; }
.mdg-pin .dot { width: 18px; height: 18px; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
