/* ==========================================================================
   Base — reset, typographie, en-tête, pied de page, composants partagés
   N'utilise QUE les tokens de rôle de tokens.css (couche 2).
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien d'évitement clavier */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-skip);
  background: var(--surface-inverse); color: var(--highlight);
  padding: 14px 22px; border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600; font-size: 15px;
}
.skip:focus { left: 0; text-decoration: none; }

/* Visible des lecteurs d'écran uniquement */
.visuallyhidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wide { max-width: var(--wide); margin: 0 auto; padding: 0 32px; }

/* --------------------------------------------------------------- Titres -- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: var(--wonk);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
}
h2 { font-size: clamp(2.3rem, 5.8vw, 4.4rem); line-height: .93; }
h2 em { font-style: normal; color: var(--brand); }
/* Sur les fonds teintés, le vert prairie tombe à 2,98:1 — deux centièmes sous
   le seuil des grands textes. On y passe au vert texte, un ton plus foncé. */
.pale h2 em,
.seo-block h2 em { color: var(--brand-text); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.dsp {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: var(--wonk), "opsz" 144;
  line-height: .88;
  letter-spacing: -.03em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brand-text);
  margin-bottom: 14px;
}
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

.sec-head { max-width: min(760px, 92%); margin-bottom: 48px; }
.sec-head p:not(.eyebrow) {
  font-size: 19px; color: var(--text-muted); margin-top: 18px; max-width: 54ch;
}

section { padding: var(--space-5) 0; }
.section-tight { padding: var(--space-4) 0; }
.pale { background: var(--surface-3); }

/* -------------------------------------------------------------- Boutons -- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 14.5px; padding: 13px 24px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform var(--dur-fast) ease,
              background var(--dur-fast) ease,
              color var(--dur-fast) ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { font-size: 16.5px; padding: 17px 34px; }

.btn-fill  {
  background: var(--btn-fill-bg); color: var(--btn-fill-text);
  border-color: var(--btn-fill-bg);
}
.btn-fill:hover  {
  background: var(--btn-fill-bg-hover); color: var(--btn-fill-text-hover);
  border-color: var(--btn-fill-bg-hover);
}
.btn-or    { background: var(--accent); color: var(--on-accent); border-color: var(--border-strong); }
.btn-or:hover    { background: var(--accent-hover); color: var(--on-accent); }
.btn-line  { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-line:hover  { background: var(--btn-fill-bg); color: var(--btn-fill-text); border-color: var(--btn-fill-bg); }
.btn-ghost { background: var(--on-cta-veil); color: var(--on-cta); border-color: var(--on-cta-border); }
.btn-ghost:hover { background: var(--on-cta); color: var(--brand-strong); }

/* -------------------------------------------------- Gouttes d'eau (déco) -- */
.drop {
  position: absolute; border-radius: 50%; pointer-events: none;
  opacity: var(--drop-opacity);
  background: radial-gradient(circle at 31% 26%,
    rgba(255,255,255,.98) 0%, rgba(255,255,255,.62) 9%,
    rgba(214,240,140,.34) 30%, rgba(95,155,18,.26) 62%,
    rgba(47,74,12,.30) 88%, rgba(255,255,255,.72) 100%);
  box-shadow: var(--shadow-drop),
              inset -11px -15px 28px rgba(255,255,255,.55),
              inset 9px 12px 22px rgba(47,74,12,.16);
  backdrop-filter: blur(1.5px);
  animation: bob 7s ease-in-out infinite;
}
.drop::after {
  content: ""; position: absolute; top: 16%; left: 20%;
  width: 26%; height: 19%; border-radius: 50%;
  background: #fff; filter: blur(1.5px); opacity: .92;
  transform: rotate(-22deg);
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

/* Rayons de lumière, comme le coin haut-gauche de l'affiche */
.rays {
  position: absolute; inset: 0; pointer-events: none; opacity: .85;
  background: repeating-conic-gradient(from 16deg at 4% -8%,
    var(--rays-tint) 0deg 2deg, rgba(255,255,255,0) 2deg 10.5deg);
  mask-image: radial-gradient(880px 720px at 4% -8%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(880px 720px at 4% -8%, #000 0%, transparent 70%);
}

/* Onde d'eau en bas des blocs verts.
   La règle CSS l'emporte sur l'attribut fill= du SVG, qui reste en secours. */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.wave svg { width: 100%; height: 110px; display: block; }
.wave svg path { fill: var(--surface); }
.wave-strip svg path { fill: var(--strip-bg); }

/* ------------------------------------------------------------- En-tête -- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 10px 32px; display: flex; align-items: center; gap: 26px;
}
.brand { display: block; flex: none; }
.brand img { height: 66px; width: auto; }

.site-nav { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.site-nav a:not(.btn) {
  color: var(--text); font-size: 14.5px; font-weight: 500;
  padding: 10px 0; position: relative;
}
.site-nav a:hover { text-decoration: none; }
.site-nav .btn { flex: none; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 5px;
  height: 2.5px; background: var(--brand); transition: right .28s ease;
}
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--brand-text); }

.menu-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 2px solid var(--border-strong);
  border-radius: 12px; background: none; cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.menu-toggle span { width: 19px; height: 2.2px; background: var(--text); border-radius: 2px; }

/* -------------------------------------------------- Bascule clair/sombre -- */
.theme-toggle {
  flex: none; width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-strong); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.theme-toggle:hover { background: var(--btn-fill-bg); color: var(--btn-fill-text); }
.theme-toggle svg { width: 19px; height: 19px; fill: currentColor; }
/* Un seul des deux pictogrammes est visible, selon le thème actif. */
.theme-toggle .ico-lune { display: block; }
.theme-toggle .ico-soleil { display: none; }
[data-theme="dark"] .theme-toggle .ico-lune { display: none; }
[data-theme="dark"] .theme-toggle .ico-soleil { display: block; }

/* ------------------------------------------------------------- Bandeau -- */
.strip { background: var(--strip-bg); color: var(--strip-text); padding: 17px 0; overflow: hidden; }
.strip-track { display: flex; width: max-content; animation: slide 44s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.strip-track span {
  font-family: var(--display); font-weight: 900;
  font-variation-settings: var(--wonk);
  font-size: 27px; letter-spacing: -.02em; padding: 0 24px;
  white-space: nowrap; display: flex; align-items: center; gap: 24px;
}
.strip-track span::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--strip-dot); flex: none;
}
.strip-track span:nth-child(2n)::after { background: var(--accent); }

/* ------------------------------------------------------- Intro de page -- */
.page-intro {
  position: relative; overflow: hidden;
  background: var(--gradient-hero);
  padding: 76px 0 120px;
}
.page-intro .wide { position: relative; z-index: 3; }
.page-intro h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); color: var(--on-gradient-title); }
.page-intro h1 em { font-style: normal; color: var(--on-gradient-em);
  text-shadow: var(--shadow-title); }
.page-intro .eyebrow { color: var(--on-gradient-eyebrow); }
.page-intro .eyebrow i { background: var(--on-gradient-dot); }
.page-intro .intro-lede {
  font-size: 20px; color: var(--on-gradient); max-width: 52ch; margin-top: 20px;
}

/* --------------------------------------------------------- Partenaires -- */
.partners { background: var(--surface); padding: 64px 0; border-top: 1px solid var(--border); }
.partners .label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-text); text-align: center; margin-bottom: 26px;
}
.partners ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; align-items: center;
}
.partners li {
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 24px; font-weight: 600; font-size: 14.5px;
  color: var(--text-muted); background: var(--surface-2);
}
/* Les logos de marque gardent leurs couleurs : on leur donne une pastille
   claire, identique en clair et en sombre, plutôt que de les inverser. */
.partners li.avec-logo {
  background: var(--logo-plate); border-color: var(--logo-plate-border);
  padding: 14px 22px; display: flex; align-items: center;
}
.partners li.avec-logo a { display: flex; align-items: center; }
.partners li.avec-logo img {
  height: 42px; width: auto; max-width: 190px; object-fit: contain;
  transition: transform var(--dur) var(--ease);
}
.partners li.avec-logo a:hover img { transform: scale(1.06); }
.partners li.avec-logo a:focus-visible { outline-offset: 6px; }
@media (max-width: 760px) {
  .partners li.avec-logo img { height: 34px; max-width: 150px; }
}

/* ------------------------------------------------------ Appel à l'action */
.cta-final {
  position: relative; overflow: hidden; color: var(--on-cta); text-align: center;
  padding: 118px 0; background: var(--gradient-cta);
}
.cta-final .wide { position: relative; z-index: 3; }
.cta-final h2 { font-size: clamp(2.6rem, 8.5vw, 7rem); color: var(--on-cta); }
.cta-final h2 em { color: var(--accent); }
.cta-final p { font-size: 20px; max-width: 44ch; margin: 24px auto 0; opacity: .95; }
.cta-buttons { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.cta-final .cta-buttons { justify-content: center; }

/* --------------------------------------------------------- Pied de page -- */
.site-footer { background: var(--surface-inverse); color: var(--on-inverse); padding: 72px 0 32px; }
.site-footer a { color: var(--on-inverse); }
.site-footer a:hover { color: var(--highlight); text-decoration: none; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px; padding-bottom: 42px;
  border-bottom: 1.5px solid var(--border-inverse);
}
.footer-top img { height: 62px; width: auto; }
.footer-say { margin-top: 16px; color: var(--on-inverse-muted); font-size: 15.5px; max-width: 34ch; }
.footer-col h2 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-inverse-faint); margin-bottom: 15px; font-family: var(--sans);
}
.footer-col a { display: block; font-size: 15.5px; margin-bottom: 9px; }
.footer-bottom {
  padding-top: 25px; display: flex; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-inverse-faint);
}

/* ------------------------------------------------- Bandeau de cookies -- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-consent);
  max-width: 560px; margin: 0 auto;
  background: var(--surface-inverse); color: var(--on-inverse);
  border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: var(--shadow-float);
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 20px; color: var(--on-inverse); margin-bottom: 8px; }
.consent p { font-size: 15px; color: var(--on-inverse-muted); margin-bottom: 18px; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { flex: 1 1 auto; }

/* --------------------------------------------------------- Apparitions -- */
.rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1000px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wide { padding: 0 20px; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; margin-left: 0; }
  .theme-toggle { margin-left: auto; order: 2; }
  .menu-toggle { order: 3; }
  .site-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--surface);
    border-bottom: 2px solid var(--border-strong); padding: 20px; gap: 6px; margin: 0;
  }
  .site-nav.open a { padding: 12px 0; }
  .brand img { height: 46px; }
  section { padding: 68px 0; }
  .page-intro { padding: 48px 0 96px; }
  .strip-track span { font-size: 21px; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-final { padding: 84px 0; }
}
/* ------------------------------------------------------------ Impression --
   Un programme, ça s'imprime. On retire le décor, on force le thème clair,
   et on fait apparaître les adresses des liens. */
@media print {
  :root { --surface: #fff; --surface-2: #fff; --surface-3: #fff;
          --text: #000; --text-muted: #333; --text-faint: #555;
          --border: #bbb; --border-strong: #000; --brand-text: #000; }
  html[data-theme="dark"] { --surface: #fff; --text: #000; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .site-header, .site-footer, .strip, .consent, .cta-final, .partners,
  .theme-toggle, .menu-toggle, .skip, .rays, .drop, .wave, .filtres,
  .recherche, .seo-block, .cta-buttons, .jour-tabs, .conf-go,
  .conf-agenda { display: none !important; }
  /* Les deux journées doivent figurer sur le papier, titrées. */
  .jour-panel[hidden] { display: block !important; }
  .jour-titre {
    position: static !important; width: auto !important; height: auto !important;
    clip: auto !important; clip-path: none !important;
    font-size: 15pt; margin: 14pt 0 6pt; break-after: avoid;
  }
  .page-intro, .hero { background: none !important; padding: 0 0 12pt !important; }
  .page-intro h1, .hero h1 { color: #000 !important; font-size: 22pt; }
  .page-intro h1 em { color: #000 !important; text-shadow: none !important; }
  section { padding: 10pt 0 !important; }
  .wide { max-width: none; padding: 0; }
  .rv { opacity: 1 !important; transform: none !important; }
  h2 { font-size: 16pt; }
  h2 em { color: #000 !important; }
  /* On imprime l'adresse des liens utiles, sinon le papier perd l'information */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; }
  main a[href^="#"]::after, main a[href^="./"]::after, main a[href^="../"]::after { content: ""; }
  .conf-item, .expo-card, .fact, .faq-item { break-inside: avoid; }
  .conf-item { border-bottom: 1px solid #ccc; padding: 6pt 0; }
  .expo-photo { display: none; }
  .expo-card { border: 1px solid #ccc; break-inside: avoid; }
  .expo-grid { display: block; }
  @page { margin: 14mm 12mm; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
