/* =========================================================================
   Commerçants & Artisans du Cheylard
   Charte reprise de commercantsartisanslecheylard.com
   ========================================================================= */
:root {
  --accent: #5b9a42;
  --accent-dark: #477a33;
  --accent-2: #fc5640;
  --accent-3: #d39013;
  --orange: #e8781e;
  --leaf: #8bb32a;
  --base: #f6f5f2;
  --base-2: #ffffff;
  --contrast: #422c18;
  --contrast-deep: #2e1f11;
  --contrast-2: #757c7e;
  --text-soft: #5a4a3c;
  --line: #e7e1d8;
  --overlay: rgba(66, 44, 24, .58);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(66, 44, 24, .06);
  --shadow: 0 14px 40px rgba(66, 44, 24, .12);
  --shadow-lg: 0 30px 70px rgba(66, 44, 24, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f-display: "Luckiest Guy", "Arial Black", sans-serif;
  --f-head: "Aleo", Georgia, serif;
  --f-body: "PT Sans", system-ui, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--f-body); color: var(--contrast); background: var(--base-2); overflow-x: hidden; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.005em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.375rem); }
h3, .h3 { font-size: 1.3rem; }
.h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }
mark { background: #fff1c2; padding: 0 4px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1220px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--contrast-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--contrast); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-base { background: var(--base); }
.has-waves { padding-top: clamp(100px, 11vw, 150px); padding-bottom: clamp(100px, 11vw, 150px); }
.kicker, .eyebrow { display: block; font: 400 1.0625rem/1.3 var(--f-display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8em; }
.kicker { color: var(--accent-2); }
.eyebrow { color: #fff; }
.intro { color: var(--text-soft); max-width: 640px; margin: 0 auto 2.4rem; font-size: 1.08rem; }
.note { font-size: .9rem; color: var(--contrast-2); margin-top: 1.4rem; }
.empty { padding: 32px; text-align: center; color: var(--contrast-2); background: var(--base); border-radius: var(--radius); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; }

/* ---------- Boutons ---------- */
.btn { --bg: var(--accent); --fg: #fff; position: relative; display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.9em; border-radius: 9999px; background: var(--bg); color: var(--fg);
  font: 700 .88rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--bg); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--contrast); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(66, 44, 24, .22); border-color: var(--contrast); }
.btn:hover::before { transform: translateY(0); }
.btn-arrow::after { content: "→"; font-size: 1.15em; transition: transform .35s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-ghost { --bg: transparent; border-color: rgba(255, 255, 255, .85); }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--contrast); border-color: #fff; }
.btn-outline { --bg: transparent; --fg: var(--accent-dark); border-color: var(--accent); }
.btn-outline:hover { color: #fff; }
.btn-light { --bg: #fff; --fg: var(--contrast); }
.btn-light::before { background: var(--accent); }
.btn-light:hover { color: #fff; border-color: var(--accent); }
.btn-small { padding: .7em 1.3em; font-size: .78rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid transparent; transition: box-shadow .4s var(--ease), border-color .4s; }
/* Le flou est porté par un calque : sur l'en-tête lui-même, il piégerait le menu mobile en position fixe. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(66, 44, 24, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .4s var(--ease); }
.is-scrolled .header-inner { height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--contrast); }
.logo-mark { width: 60px; height: auto; flex: none; transition: width .4s var(--ease), transform .6s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.is-scrolled .logo-mark { width: 48px; }
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.logo-text strong { font: 700 1.2rem var(--f-head); white-space: nowrap; }
.logo-city { display: flex; align-items: center; gap: 8px; width: 100%; font: 700 .84rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 3px 0 2px; }
.logo-city::before, .logo-city::after { content: ""; flex: 1; height: 1.5px; background: var(--orange); }
.logo-text small { font: 400 .76rem var(--f-head); transition: opacity .3s, max-height .3s; max-height: 20px; }
.is-scrolled .logo-text small { opacity: 0; max-height: 0; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; color: var(--contrast); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-2); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: var(--base); border-radius: 50%; cursor: pointer; }
.menu-icon { display: grid; gap: 5px; width: 20px; margin: auto; }
.menu-icon i { display: block; height: 2px; background: var(--contrast); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.menu-open .menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Vagues ---------- */
.wave { position: absolute; left: 0; right: 0; line-height: 0; pointer-events: none; z-index: 2; }
.wave svg { display: block; width: 100%; height: 80px; fill: var(--base-2); }
.wave-base svg { fill: var(--base); }
.wave-dark svg { fill: var(--contrast-deep); }
.wave-bottom { bottom: -1px; }
.wave-top { top: -1px; transform: scale(1, -1); }
.section-base > .wave svg { fill: var(--base-2); }

/* ---------- Héros ---------- */
.hero, .page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; }
.hero { padding: clamp(90px, 13vw, 170px) 0 140px; min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center; }
.hero-media { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 2.6s var(--ease) both; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(46, 31, 17, .55) 0%, rgba(66, 44, 24, .45) 40%, rgba(46, 31, 17, .85) 100%); }
.hero h1, .page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; max-width: 900px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); margin-bottom: .45em; }
.hero .lead, .page-hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 680px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 640px; margin-top: 2rem; background: #fff; padding: 8px; border-radius: 9999px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 20px; font: inherit; color: var(--contrast); background: transparent; border-radius: 9999px; }
.hero-search input:focus { outline: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 20; color: var(--contrast); text-align: left; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: inherit; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--base); }
.suggest i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.suggest small { color: var(--contrast-2); margin-left: auto; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.hero-quick a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; padding: 8px 14px; border-radius: 9999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); transition: background .3s, transform .3s var(--ease); }
.hero-quick a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.hero-quick i { width: 9px; height: 9px; border-radius: 50%; }
.stats { list-style: none; padding: 0; margin: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .22); border-radius: var(--radius); overflow: hidden; }
.stats li { background: rgba(46, 31, 17, .5); padding: 22px 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stats strong { display: block; font: 2.3rem/1 var(--f-display); padding-top: 4px; font-variant-numeric: tabular-nums; }
.stats span { font-size: .92rem; opacity: .9; }

.page-hero { padding: clamp(70px, 10vw, 120px) 0 clamp(120px, 12vw, 160px); }
.page-hero-tall { padding-top: clamp(110px, 14vw, 180px); }
.page-hero-small { padding: 60px 0 110px; }
.page-hero-small h1 { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 1.6rem; opacity: .92; }
.breadcrumb a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.breadcrumb a:hover { border-color: #fff; }
.fiche-cat { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 400 1rem var(--f-display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .8em; }
.fiche-cat i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

/* ---------- Ville / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split-text p { color: var(--text-soft); font-size: 1.05rem; }
.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 560px; }
.collage figure { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage figure:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage figure:hover img { transform: scale(1.06); }

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--contrast); isolation: isolate; box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease), filter .6s; }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(46, 31, 17, .9)); transition: opacity .6s; }
.cat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.1); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-label { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.cat-label strong { display: block; font: 700 1.08rem/1.2 var(--f-head); margin-bottom: 4px; }
.cat-label span { font-size: .86rem; opacity: .9; }
.cat-label b { display: inline-block; transition: transform .4s var(--ease); }
.cat-card:hover .cat-label b { transform: translateX(5px); }

/* ---------- Coups de cœur ---------- */
.featured { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feat-img { aspect-ratio: 3 / 2; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feat:hover .feat-img img { transform: scale(1.08); }
.feat-body { padding: 18px 20px 22px; display: grid; gap: 4px; border-top: 4px solid var(--c); }
.feat-body strong { font: 700 1.1rem var(--f-head); }
.feat-body span:last-child { font-size: .92rem; color: var(--text-soft); }

/* ---------- Fiches (cartes) ---------- */
.biz { position: relative; background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s; }
.biz::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); transition: top .4s var(--ease), bottom .4s var(--ease); }
.biz:hover, .biz.is-active { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.biz:hover::before, .biz.is-active::before { top: 0; bottom: 0; }
.biz-link { text-decoration: none; color: inherit; display: block; }
.biz-link::after { content: ""; position: absolute; inset: 0; }
.biz-type { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c, var(--accent)); }
.badge { font-style: normal; background: #fff1e4; color: var(--orange); border-radius: 9999px; padding: 2px 8px; margin-left: 6px; letter-spacing: .04em; }
.biz h3 { font-size: 1.1rem; margin: 3px 0 4px; }
.biz p { font-size: .93rem; color: var(--text-soft); margin: 0 0 8px; }
.biz-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .88rem; color: var(--contrast-2); }
.biz-meta a { font-weight: 700; text-decoration: none; }
.biz-locate { border: 0; background: none; padding: 0; font: 700 .88rem var(--f-body); color: var(--accent-2); cursor: pointer; }
.biz-locate:hover { text-decoration: underline; }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Annuaire ---------- */
.dir-toolbar { display: grid; gap: 18px; margin-bottom: 26px; }
.search input { width: 100%; max-width: 520px; padding: 1em 1.4em 1em 3em; border-radius: 9999px; border: 2px solid var(--line); font: inherit; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23757c7e' stroke-width='2.2'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='m14 14 4.5 4.5'/%3E%3C/svg%3E") no-repeat 1.1em center; transition: border-color .3s, box-shadow .3s; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 5px rgba(91, 154, 66, .15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --c: var(--contrast); display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--contrast); border-radius: 9999px; padding: .5em 1em; font: 700 .85rem var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease); }
.chip:hover { border-color: var(--c); transform: translateY(-1px); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chip span { font-weight: 400; opacity: .6; font-size: .8em; }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.chip[aria-pressed="true"] i { background: #fff; }
.dir-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.dir-count { font-weight: 700; color: var(--contrast-2); margin-bottom: 12px; }
.dir-list { display: grid; gap: 12px; max-height: 760px; overflow-y: auto; padding: 4px 10px 4px 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dir-list .biz.is-hidden { display: none; }
.map-wrap { position: sticky; top: calc(var(--header-h) + 16px); }
.map { height: 720px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 0; background: #e8e4dc; }
.map .leaflet-tile-pane { filter: saturate(.72) sepia(.1) brightness(1.03); }
.map-legend { font-size: .85rem; color: var(--contrast-2); margin-top: 10px; }
.map-fiche { height: 360px; }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.pin-wrap { animation: pin-drop .6s var(--ease) both; animation-delay: var(--d, 0s); }
.pin-wrap:hover .pin, .pin-wrap.is-active .pin { transform: rotate(-45deg) scale(1.35); }
.marker-cluster-custom { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--contrast); color: #fff; font: 700 .9rem var(--f-body);
  border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { font: 15px/1.45 var(--f-body); margin: 14px 18px; color: var(--contrast); }
.leaflet-popup-content strong { font: 700 1.05rem var(--f-head); display: block; margin: 2px 0; }
.popup-type { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.popup-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent-2) !important; text-decoration: none; }

.map-teaser { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.map-teaser-text p { color: var(--text-soft); }
.map-teaser .map { height: 440px; }
.section-map { background: var(--base); }

.cta-band { padding: clamp(40px, 6vw, 70px) 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 24px;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band-inner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band h2 { margin: 0 0 .2em; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { --bg: #fff; --fg: var(--accent-dark); }
.cta-band .btn:hover { color: #fff; }

/* ---------- Fiche détaillée ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.fiche-main h2:not(.h3) { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.fiche-main .h3 { margin-top: 2.4rem; }
.prose { color: var(--text-soft); font-size: 1.05rem; }
.prose h2 { color: var(--contrast); font-size: 1.4rem; margin-top: 1.8em; }
.fiche-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.card-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 1.4em; font-size: .95rem; }
.card-info dt { font-weight: 700; color: var(--contrast-2); }
.card-info dd { margin: 0; word-break: break-word; }
.socials { display: flex; gap: 14px; }
.horaires { width: 100%; border-collapse: collapse; font-size: .92rem; }
.horaires th { text-align: left; font-weight: 400; color: var(--contrast-2); padding: 5px 0; }
.horaires td { text-align: right; padding: 5px 0; }
.horaires .today { color: var(--accent-dark); }
.horaires .today th, .horaires .today td { font-weight: 700; color: var(--accent-dark); }
.card-claim { background: var(--base); border-radius: var(--radius); padding: 22px; font-size: .95rem; }
.card-claim p { color: var(--text-soft); margin: .3em 0 1em; }

/* ---------- Agenda ---------- */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.events-2 { grid-template-columns: repeat(2, 1fr); }
.event { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.event:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.event-img { position: relative; aspect-ratio: 16 / 10; }
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.event:hover .event-img img { transform: scale(1.07); }
.event-img { overflow: hidden; }
.event-date { position: absolute; left: 18px; bottom: 16px; background: var(--accent-2); color: #fff; border-radius: 14px; padding: 10px 14px 8px; text-align: center; line-height: 1; box-shadow: 0 10px 22px rgba(252, 86, 64, .35); min-width: 64px; }
.event-date b { display: block; font: 1.9rem var(--f-display); padding-top: 3px; }
.event-date small { display: block; font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }
.event-tag { position: absolute; right: 14px; top: 14px; background: rgba(255, 255, 255, .94); color: var(--contrast); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 11px; border-radius: 9999px; }
.event-body { padding: 22px 22px 24px; }
.event-body h3 { font-size: 1.15rem; transition: color .3s; }
.event:hover h3 { color: var(--accent-dark); }
.event-body p { font-size: .94rem; color: var(--text-soft); }
.event-info { font-size: .88rem; color: var(--contrast-2); margin: 0; display: grid; gap: 2px; }
.event-price { color: var(--accent-dark); font-weight: 700; }
.highlights { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.highlights-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.highlights-img img { width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent-3), var(--line)); }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent-3); }
.timeline .when { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-3); }
.timeline strong { display: block; font: 700 1.08rem var(--f-head); margin: 2px 0; }
.timeline p { margin: 0; font-size: .94rem; color: var(--text-soft); }
.past { list-style: none; padding: 0; columns: 2; }
.past a { text-decoration: none; color: var(--contrast); display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
.past time { color: var(--contrast-2); font-size: .9rem; margin-right: 8px; }

/* ---------- Page ville ---------- */
.dropcap { font-size: 1.18rem; color: var(--text-soft); }
.dropcap::first-letter { float: left; font: 4.4rem/.85 var(--f-display); color: var(--accent-2); margin: 6px 12px 0 0; }
.pillars { display: grid; gap: clamp(50px, 8vw, 110px); }
.pillar { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.pillar-reverse figure { order: 2; }
.pillar figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.pillar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pillar p { color: var(--text-soft); }
.pillar-num { font: 3.4rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--accent-2); display: block; margin-bottom: 10px; }
.figures { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figures li { background: #fff; border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.figures strong { display: block; font: 2.6rem/1 var(--f-display); color: var(--accent); padding-top: 4px; }
.figures span { color: var(--text-soft); font-size: .95rem; }

/* ---------- Rejoindre ---------- */
.join { color: #fff; overflow: hidden; isolation: isolate; }
.join-bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(46, 31, 17, .93) 30%, rgba(66, 44, 24, .72)); }
.join-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.join h2 { font-size: clamp(1.9rem, 3.8vw, 2.375rem); }
.join-text > p { opacity: .92; font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: .78rem; }
.join-quote { position: relative; padding: 40px 36px; border-radius: 24px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.join-quote::before { content: "“"; position: absolute; top: -34px; left: 26px; font: 7rem/1 var(--f-head); color: var(--orange); }
.join-quote p { font: italic 400 clamp(1.2rem, 2vw, 1.5rem)/1.45 var(--f-head); margin-bottom: 1em; }
.join-quote span { font-size: .92rem; opacity: .8; }

.join-page { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.benefits li { display: flex; gap: 18px; }
.benefits b { font: 1.6rem/1 var(--f-display); color: var(--accent-2); padding-top: 4px; }
.benefits strong { font: 700 1.1rem var(--f-head); }
.benefits p { margin: 4px 0 0; color: var(--text-soft); font-size: .95rem; }
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.type-switch { border: 0; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-switch legend { font: 700 1.1rem var(--f-head); margin-bottom: 12px; }
.type-option input { position: absolute; opacity: 0; }
.type-option span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.type-option span:hover { transform: translateY(-2px); }
.type-option small { color: var(--contrast-2); font-size: .82rem; }
.type-option input:checked + span { border-color: var(--accent); background: #f2f8ef; }
.type-option input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form-context { background: var(--base); padding: 12px 16px; border-radius: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; }
.field-full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: 400 1rem var(--f-body); padding: .8em 1em; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--contrast); transition: border-color .3s, box-shadow .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 154, 66, .15); }
.field.is-invalid input { border-color: var(--accent-2); }
.field-error { color: #c8321f; font-weight: 400; font-size: .85rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 8px; font-size: .9rem; color: var(--text-soft); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.form-card .btn { margin-top: 16px; }
.form-alert { background: #fdecea; color: #a12a1b; padding: 12px 16px; border-radius: 10px; }
.form-success { text-align: center; padding: 30px 10px; }
.success-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2.2rem; margin-bottom: 18px; animation: pop .7s var(--ease) both; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--contrast-deep); color: #e8e1d8; padding: 110px 0 30px; font-size: .95rem; margin-top: -1px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid p { color: #c9bdb0; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer a:not(.btn) { color: #e8e1d8; display: block; text-decoration: none; margin-bottom: 8px; transition: color .3s, transform .3s var(--ease); }
.site-footer a:not(.btn):hover { color: #fff; transform: translateX(3px); }
.logo-footer { margin-bottom: 16px; }
.logo-footer .logo-text strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; font-size: .82rem; color: #b9ab9c; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.credits summary { cursor: pointer; font-weight: 700; color: #e8e1d8; }
.credits ul { padding-left: 18px; columns: 2; }
.credits a { display: inline !important; text-decoration: underline !important; }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--contrast); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-2); }
.toast { position: fixed; left: 50%; top: 100px; z-index: 1100; transform: translateX(-50%); background: var(--contrast); color: #fff; padding: 14px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); animation: toast 5s var(--ease) both; }

/* =========================================================================
   Animations
   ========================================================================= */
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -20px); } 8%, 88% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -20px); } }

/* Les états cachés ne s'appliquent que si le JS tourne (classe posée sur <html>). */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="zoom"] { transform: scale(.94); }
/* Révélation « rideau » : un voile crème se retire pendant que la photo se dézoome. */
.js [data-reveal="clip"] { opacity: 1; transform: none; position: relative; overflow: hidden; }
.js [data-reveal="clip"]::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--base); transform-origin: top; transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="clip"] img { transform: scale(1.25); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in::after { transform: scaleY(0); }
.js [data-reveal="clip"].is-in img { transform: scale(1); }

.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); animation: word-up 1s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes word-up { to { transform: none; } }
.js [data-hero-in] { opacity: 0; transform: translateY(22px); animation: hero-in 1s var(--ease) forwards; animation-delay: calc(.45s + var(--i, 0) * .12s); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-hero-in], .js [data-split] .w > span { opacity: 1 !important; transform: none !important; }
  .js [data-reveal="clip"]::after { display: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: repeat(2, 1fr); }
  .events, .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; justify-content: center; gap: 26px; background: rgba(255, 255, 255, .98);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font: 700 1.6rem var(--f-head); }
  .is-scrolled .header-inner { height: var(--header-h); }
  .split, .dir-layout, .highlights, .join-inner, .map-teaser, .fiche, .join-page, .pillar { grid-template-columns: 1fr; }
  .pillar-reverse figure { order: 0; }
  .collage { height: 420px; }
  .stats, .figures { grid-template-columns: repeat(2, 1fr); }
  .map-wrap, .fiche-side { position: static; }
  .map-wrap { order: -1; }
  .map { height: 400px; }
  .dir-list { max-height: none; overflow: visible; padding: 0; }
  .hero { min-height: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .featured, .events, .events-2, .biz-grid, .form-grid, .type-switch { grid-template-columns: 1fr; }
  .wave svg { height: 46px; }
  .hero { padding-bottom: 90px; }
  .hero-search { flex-direction: column; border-radius: 20px; }
  .hero-search input { padding: 14px; }
  .hero-search .btn { justify-content: center; }
  .stats strong { font-size: 1.8rem; }
  .logo-mark { width: 44px; }
  .logo-text strong { font-size: .98rem; }
  .logo-text small { display: none; }
  .footer-grid, .past, .credits ul { grid-template-columns: 1fr; columns: 1; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
