/* ==========================================================================
   C2S — Feuille de style principale
   Concept : « La constellation » — bleu nuit, or, ivoire
   ========================================================================== */

:root {
  --navy: #121a2b;
  --navy-deep: #0b1120;
  --navy-soft: #1c2740;
  --gold: #b08d57;
  --gold-light: #d6bc8e;
  --gold-ink: #8a6a37;           /* or lisible sur fond clair (AA) */
  --ivory: #f6f2ea;
  --paper: #fbf9f4;
  --white: #ffffff;
  --ink: #121a2b;
  --muted: #5a6274;
  --line: rgba(18, 26, 43, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);

  --c-event: #b08d57;
  --c-sport: #d2643f;
  --c-culture: #8b6ccb;
  --c-solidaire: #2e9c86;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(11, 17, 32, 0.35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-stretch: 112%;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
em.accent, .accent {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink);
  letter-spacing: -0.01em;
  font-stretch: 100%;
}
.on-dark em.accent, .on-dark .accent { color: var(--gold-light); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section.ivory { background: var(--ivory); }
.section.dark, .on-dark { background: var(--navy); color: #e8e9ee; }
.section.deep { background: var(--navy-deep); color: #e8e9ee; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark a:hover { color: var(--gold-light); }
.on-dark .muted, .on-dark .lead { color: #aab1c2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-dark .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(11,17,32,.5); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { --bg: var(--gold); --fg: var(--navy-deep); }
.btn-gold:hover { --bg: var(--gold-light); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.on-dark .btn-ghost { --fg: #fff; border-color: rgba(255,255,255,.28); }
.on-dark .btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow .arrow { transition: transform .4s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, color .4s, transform .4s var(--ease);
  color: #fff;
}
.site-header.is-solid, body.light-header .site-header {
  background: rgba(251, 249, 244, 0.92); color: var(--ink);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-mark { height: 36px; width: auto; flex: none; }
.brand .logo-dark { display: none; }
.site-header.is-solid .logo-light, body.light-header .site-header .logo-light { display: none; }
.site-header.is-solid .logo-dark, body.light-header .site-header .logo-dark { display: block; }
.nav-open .site-header .logo-light { display: block; }
.nav-open .site-header .logo-dark { display: none; }
.brand-text { padding-left: 12px; border-left: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.footer-logo { display: inline-block; }
.footer-logo img { width: 150px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 1.35rem; letter-spacing: -0.02em; font-stretch: 115%; }
.brand-tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: .7; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; font-size: 0.93rem; font-weight: 500; text-decoration: none; border-radius: 999px;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a:hover { color: inherit; }
.main-nav a.btn { display: inline-flex; align-items: center; justify-content: center; margin-left: 10px; padding: 0 20px; min-height: 44px; line-height: 1; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; opacity: .9;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s, background .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; background: var(--navy-deep); color: #fff;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav-open .site-header .brand { position: relative; z-index: 2; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; padding: 16px 0; border-radius: 0; font-stretch: 110%; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--gold-light); }
  .main-nav li:last-child { border: 0; padding-top: 28px; }
  .main-nav a.btn { display: flex; margin: 0; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 999px; font-family: var(--f-body); font-size: 1.05rem; font-weight: 600; color: var(--navy-deep); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 75% 40%, rgba(176,141,87,.16), transparent 60%),
              radial-gradient(900px 500px at 10% 100%, rgba(46,156,134,.10), transparent 60%),
              var(--navy-deep);
  color: #fff; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero::before { /* grain */
  content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; }
@media (min-width: 980px) { .hero .container { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { color: #fff; margin-bottom: 28px; }
.hero h1 .accent { display: block; color: var(--gold-light); font-size: 1.08em; line-height: 1; }
.hero .lead { color: #b9c0cf; margin-bottom: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .88rem; color: #9aa3b6; }
.hero-meta strong { display: block; font-family: var(--f-display); font-size: 1.5rem; color: #fff; font-weight: 800; font-stretch: 110%; }
.hero-word {
  position: absolute; right: -2vw; bottom: -6vw; font-family: var(--f-display); font-weight: 900; font-size: 34vw; line-height: .8;
  letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(214,188,142,.10); pointer-events: none; user-select: none; font-stretch: 120%;
}

/* Constellation */
.constellation { width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1; }
.constellation .orbit { fill: none; stroke: rgba(214,188,142,.18); stroke-width: 1; stroke-dasharray: 2 6; }
.constellation .link { stroke: rgba(214,188,142,.45); stroke-width: 1; }
.constellation .minor { fill: rgba(255,255,255,.35); }
.constellation .node-label { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: #e6e0d4; }
.constellation .core-text { font-family: var(--f-display); font-weight: 900; font-size: 46px; fill: var(--navy-deep); letter-spacing: -1px; }
.constellation .spin { transform-origin: 280px 280px; animation: spin 120s linear infinite; }
.constellation .pulse { transform-origin: center; transform-box: fill-box; animation: pulse 4s ease-in-out infinite; }
.constellation .pulse.d1 { animation-delay: -1s; } .constellation .pulse.d2 { animation-delay: -2s; } .constellation .pulse.d3 { animation-delay: -3s; }
.constellation .dash { stroke-dasharray: 4 8; animation: dash 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .55; } }
@keyframes dash { to { stroke-dashoffset: -120; } }

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 420px at 85% 0%, rgba(176,141,87,.18), transparent 60%), var(--navy-deep);
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(64px, 8vw, 110px);
}
.page-hero h1 { color: #fff; max-width: 16ch; margin-bottom: 24px; }
.page-hero .lead { color: #b9c0cf; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .bg-constellation { position: absolute; right: -80px; top: 50%; width: min(620px, 70vw); transform: translateY(-45%); opacity: .5; pointer-events: none; }
.page-hero[data-domain] { background: radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--dc) 28%, transparent), transparent 60%), var(--navy-deep); }
.breadcrumb { font-size: .85rem; color: #8f98ab; margin-bottom: 28px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; } .breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Domain cards ---------- */
[data-domain="evenementiel"] { --dc: var(--c-event); }
[data-domain="sport"] { --dc: var(--c-sport); }
[data-domain="culture"] { --dc: var(--c-culture); }
[data-domain="solidaire"] { --dc: var(--c-solidaire); }

.domains { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .domains { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .domains { grid-template-columns: repeat(4, 1fr); } }
.domain-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 36px 28px 32px; min-height: 420px;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
@media (min-width: 720px) { .domain-card + .domain-card { border-left: 1px solid var(--line); } .domain-card:nth-child(3) { border-left: 0; } }
@media (min-width: 1100px) { .domain-card:nth-child(3) { border-left: 1px solid var(--line); } }
.domain-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.domain-card:hover, .domain-card:focus-visible { color: #fff; }
.domain-card:hover::before, .domain-card:focus-visible::before { transform: translateY(0); }
.domain-card .num { font-family: var(--f-display); font-weight: 800; font-size: .9rem; color: var(--dc); letter-spacing: .1em; }
.domain-card .icon { width: 64px; height: 64px; color: var(--dc); }
.domain-card h3 { font-size: 1.7rem; margin: 0; }
.domain-card p { color: var(--muted); margin: 0; font-size: .98rem; transition: color .5s; }
.domain-card:hover p { color: #b9c0cf; }
.domain-card .share { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; transition: border-color .5s; }
.domain-card:hover .share { border-color: var(--line-dark); }
.domain-card .share strong { font-family: var(--f-display); font-size: 2rem; font-weight: 800; color: var(--dc); font-stretch: 110%; }
.domain-card .go { position: absolute; top: 30px; right: 26px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .35; transition: opacity .4s, transform .5s var(--ease); }
.domain-card:hover .go { opacity: 1; transform: rotate(-45deg); }

/* ---------- Programmation ---------- */
.prog-bar { display: flex; height: 72px; border-radius: var(--radius-sm); overflow: hidden; margin: 32px 0 20px; }
.prog-bar > div { position: relative; display: flex; align-items: center; padding-left: 16px; color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; transform-origin: left; font-stretch: 110%; }
.prog-bar > div + div { border-left: 2px solid var(--navy); }
.reveal .prog-bar > div { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.reveal.is-visible .prog-bar > div { transform: scaleX(1); }
.reveal.is-visible .prog-bar > div:nth-child(2) { transition-delay: .1s; } .reveal.is-visible .prog-bar > div:nth-child(3) { transition-delay: .2s; } .reveal.is-visible .prog-bar > div:nth-child(4) { transition-delay: .3s; }
.prog-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.prog-legend li { display: flex; align-items: center; gap: 10px; }
.prog-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--dc); flex: none; }
.prog-legend b { margin-left: auto; padding-left: 12px; font-family: var(--f-display); white-space: nowrap; }
@media (min-width: 1100px) { .prog-legend { grid-template-columns: repeat(4, 1fr); gap: 12px 40px; } }

.goals { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 720px) { .goals { grid-template-columns: 1fr 1fr; } }
.goal { background: var(--navy); padding: clamp(28px, 4vw, 44px); }
.goal .year { font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; color: var(--gold-light); }
.goal .count { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1; color: #fff; margin: 8px 0 4px; letter-spacing: -.03em; font-stretch: 115%; }
.goal .unit { font-size: .9rem; color: #aab1c2; text-transform: uppercase; letter-spacing: .14em; }
.goal p { color: #b9c0cf; margin: 20px 0 0; font-size: .97rem; }

/* ---------- Cards (projets / actus) ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
/* Image entière au centre, fond flouté de la même image (affiches verticales ou carrées) */
.card-media img.bg, .article-cover img.bg { position: absolute; inset: 0; filter: blur(24px) brightness(.55) saturate(1.2); transform: scale(1.2); }
.card:hover .card-media img.bg { transform: scale(1.25); }
.card-media img.fg { position: relative; object-fit: contain; }
.card-media .placeholder { position: absolute; inset: 0; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin: 0; line-height: 1.15; }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .82rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 14px; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--dc, var(--gold)) 14%, transparent); color: color-mix(in srgb, var(--dc, var(--gold)) 70%, var(--ink));
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dc, var(--gold)); }
.status { position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(11,17,32,.78); color: #fff; backdrop-filter: blur(6px); }
.status[data-s="a-venir"] { background: var(--gold); color: var(--navy-deep); }
.status[data-s="en-cours"] { background: #fff; color: var(--navy-deep); }

.empty-state {
  border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px);
  text-align: center; background: color-mix(in srgb, var(--gold) 5%, transparent);
}
.empty-state h3 { margin-bottom: 8px; } .empty-state p { color: var(--muted); max-width: 52ch; margin: 0 auto 24px; }
.on-dark .empty-state p { color: #aab1c2; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters .group { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .group + .group { padding-left: 16px; margin-left: 8px; border-left: 1px solid var(--line); }
@media (max-width: 720px) {
  .filters { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
  .filters .group { min-width: 0; }
  .filters .group { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters .group::-webkit-scrollbar { display: none; }
  .filters .group + .group { border: 0; padding-block: 0; margin-block: 0; padding-left: var(--gutter); margin-left: calc(-1 * var(--gutter)); }
  .chip { white-space: nowrap; flex: none; }
}
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 9px 18px; font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Marquee réseau ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.8rem); white-space: nowrap; letter-spacing: -.02em; font-stretch: 110%; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: .5em; }
.marquee-track span:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--gold-light); font-stretch: 100%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA split ---------- */
.cta-split { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .cta-split { grid-template-columns: 1fr 1fr; } }
.cta-card {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: clamp(32px, 5vw, 56px); min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; text-decoration: none;
  transition: transform .6s var(--ease);
}
.cta-card:hover { transform: translateY(-4px); }
.cta-card.gold { background: var(--gold); color: var(--navy-deep); }
.cta-card.gold:hover { color: var(--navy-deep); }
.cta-card.navy { background: var(--navy); color: #fff; }
.cta-card.navy:hover { color: #fff; }
.cta-card h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0; letter-spacing: -.03em; }
.cta-card p { margin: 0; max-width: 44ch; opacity: .85; }
.cta-card .deco { position: absolute; right: -60px; bottom: -60px; width: 280px; opacity: .25; pointer-events: none; transition: transform 1.2s var(--ease); }
.cta-card:hover .deco { transform: rotate(25deg) scale(1.05); }
.cta-card .round { width: 64px; height: 64px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .6s var(--ease), background .4s, color .4s; }
.cta-card:hover .round { transform: rotate(-45deg); }
.cta-card.gold:hover .round { background: var(--navy-deep); color: var(--gold); border-color: var(--navy-deep); }
.cta-card.navy:hover .round { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }

/* ---------- Feature list / blocs texte ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.3fr; } .split.even { grid-template-columns: 1fr 1fr; } .split.sticky > :first-child { position: sticky; top: calc(var(--header-h) + 32px); } }
.prose { max-width: 68ch; }
.prose p { color: #384054; }
.on-dark .prose p { color: #c3c9d6; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; color: #384054; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; line-height: 1.4; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.on-dark .checklist li { border-color: var(--line-dark); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.on-dark .checklist li:first-child { border-color: var(--line-dark); }
.checklist .dot { flex: none; width: 10px; height: 10px; margin-top: 9px; border-radius: 50%; background: var(--dc, var(--gold)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--dc, var(--gold)) 20%, transparent); }
.checklist strong { display: block; font-family: var(--f-display); font-size: 1.08rem; margin-bottom: 2px; }
.checklist span { color: var(--muted); font-size: .97rem; }
.on-dark .checklist span { color: #aab1c2; }

.feature { padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); height: 100%; }
.feature .k { font-family: var(--f-display); font-weight: 800; color: var(--gold-ink); font-size: .9rem; letter-spacing: .1em; margin-bottom: 18px; display: block; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.on-dark .feature { background: var(--navy-soft); border-color: var(--line-dark); }
.on-dark .feature p { color: #aab1c2; }
.on-dark .feature .k { color: var(--gold-light); }

.values { counter-reset: v; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.value { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line-dark); }
.value h3 { font-size: 1.5rem; display: flex; gap: 12px; align-items: baseline; }
.value h3::before { counter-increment: v; content: "0" counter(v); font-size: .8rem; color: var(--gold-light); font-weight: 700; }
.value p { color: #aab1c2; margin: 0; }

.poles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.pole { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.pole .n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-family: var(--f-display); font-weight: 800; font-size: .9rem; }
.pole h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.pole p { margin: 0; color: var(--muted); font-size: .94rem; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold), transparent); }
.timeline li { position: relative; padding: 0 0 40px 44px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--navy-deep); border: 2px solid var(--gold); }
.timeline .when { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--gold-ink); }
.on-dark .timeline .when { color: var(--gold-light); }
.timeline h3 { margin: 4px 0 8px; }
.timeline p { margin: 0; color: var(--muted); }
.on-dark .timeline p { color: #aab1c2; }

.notice {
  display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: .95rem; color: #43495a;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--gold-ink); margin-top: 2px; }
.on-dark .notice { color: #d6d9e1; }

/* ---------- Domain page visual ---------- */
.domain-visual { border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; position: relative; }
.domain-visual img { width: 100%; height: 100%; object-fit: cover; }
.domain-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.domain-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line-dark); text-decoration: none; font-weight: 600; transition: background .3s, border-color .3s; }
.domain-nav a:hover { background: var(--navy-soft); border-color: var(--dc); color: #fff; }
.domain-nav a i { width: 10px; height: 10px; border-radius: 50%; background: var(--dc); }
.domain-nav a[aria-current="page"] { border-color: var(--dc); background: var(--navy-soft); }

/* ---------- Partenaires ---------- */
.partner-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.partner-cat { background: var(--paper); padding: 28px; }
.partner-cat h3 { font-size: 1.15rem; margin-bottom: 8px; }
.partner-cat p { margin: 0; color: var(--muted); font-size: .94rem; }
.partner-cat .count { display: inline-block; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--gold-ink); }
.partner-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); height: 100%; }
.partner-logo { height: 84px; display: flex; align-items: center; justify-content: flex-start; }
.partner-logo img { max-height: 84px; max-width: 200px; object-fit: contain; }
.partner-logo .initials { width: 84px; height: 84px; border-radius: 16px; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; }
.partner-card h3 { margin: 0; font-size: 1.2rem; }
.partner-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.partner-card .card-foot { margin-top: auto; }
.badge-status { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.badge-status.confirmed { background: rgba(46,156,134,.14); color: #1d6e5e; }
.badge-status.discussion { background: rgba(90,98,116,.12); color: var(--muted); }

/* ---------- Formulaires ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: 12px 20px; font-weight: 600; cursor: pointer; transition: all .3s;
}
.tab .n { font-family: var(--f-display); font-size: .8rem; color: var(--gold-ink); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab[aria-selected="true"] .n { color: var(--gold-light); }
.tab-panel[hidden] { display: none; }
.form-wrap { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 980px) { .form-wrap { grid-template-columns: 1fr 1.5fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; gap: 18px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .88rem; font-weight: 600; }
.field .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(18,26,43,.2); background: var(--paper); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 1rem; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(176,141,87,.18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(18,26,43,.18); border-radius: 999px; font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s; }
.checks input { accent-color: var(--gold); width: 16px; height: 16px; }
.checks label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-status { font-size: .95rem; padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 18px; }
.form-status:empty { display: none; }
.form-status.ok { background: rgba(46,156,134,.12); color: #1d6e5e; }
.form-status.err { background: rgba(192,57,43,.1); color: #922; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.side-info h3 { font-size: 1.15rem; }
.price-tag { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 8px 0 28px; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; }
.price-tag .k { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.price-tag .v { white-space: nowrap; font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1; font-stretch: 110%; }
.price-tag small { font-family: var(--f-body); font-weight: 500; font-size: .95rem; color: #aab1c2; }
.side-info .checklist li { padding: 14px 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.contact-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list .k { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.contact-list .v { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; word-break: break-word; }
.contact-list a { text-decoration: none; } .contact-list a:hover { text-decoration: underline; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .85; transition: all .3s; }
.socials a:hover { opacity: 1; background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.socials svg { width: 19px; height: 19px; }

/* ---------- Article / fiche ---------- */
.article-head { max-width: 900px; }
.article-cover { border-radius: calc(var(--radius) + 6px); overflow: hidden; margin-top: calc(-1 * clamp(40px, 6vw, 80px)); position: relative; z-index: 2; box-shadow: var(--shadow); background: var(--navy); aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover.framed .bg { position: absolute; inset: 0; filter: blur(30px) brightness(.5) saturate(1.2); transform: scale(1.2); }
.article-cover.framed .fg { position: relative; object-fit: contain; padding: clamp(12px, 2vw, 24px); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 40px; }
.facts div { background: var(--white); padding: 20px 22px; }
.facts dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.video { aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6,10,20,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: min(1200px, 100%); border-radius: 8px; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold); color: var(--navy-deep); }
.lightbox .lb-close { top: 16px; right: 16px; } .lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); } .lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c3c9d6; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #aab1c2; padding: clamp(64px, 8vw, 110px) 0 32px; position: relative; overflow: hidden; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--gold-light); }
.footer-top { display: grid; gap: 48px; grid-template-columns: 1fr; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-slogan { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: #fff; line-height: 1.1; letter-spacing: -.02em; margin: 24px 0 28px; font-stretch: 110%; }
.footer-slogan em { font-family: var(--f-serif); font-weight: 400; color: var(--gold-light); font-stretch: 100%; }
.site-footer h4 { color: #fff; font-family: var(--f-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; font-size: .84rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-giant { font-family: var(--f-display); font-weight: 900; font-size: 26vw; line-height: .75; color: transparent; -webkit-text-stroke: 1px rgba(214,188,142,.12); text-align: center; margin: 48px 0 -4vw; letter-spacing: -.05em; user-select: none; pointer-events: none; font-stretch: 120%; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Divers ---------- */
.stack-lg > * + * { margin-top: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: 40px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: #384054; }
.todo { background: rgba(176,141,87,.18); padding: 1px 6px; border-radius: 4px; font-weight: 600; color: var(--gold-ink); }
.skeleton { background: linear-gradient(90deg, rgba(18,26,43,.05), rgba(18,26,43,.09), rgba(18,26,43,.05)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius); min-height: 320px; }
@keyframes sk { to { background-position: -200% 0; } }
