/* ============================================================
   LABCLUSTER — Feuille de style principale
   Fusion de style.css + style2.css
   ============================================================ */

/* ── Composant slide-show ── */
slide-show {
  position: relative;
  display: block;
  z-index: 0;
  overflow: hidden;
}
slide-show img {
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 100%;
  object-fit: cover;
}
slide-show img.forefront { z-index: 2; }
slide-show img.backfront  { z-index: 1; }
slide-show img:not(.forefront, .backfront, .fallback) { display: none; }

/* ── Polices ── */
@font-face {
  font-family: Futura;
  font-weight: 400;
  src: url(../fonts/futura/400.ttf);
}
@font-face {
  font-family: "Futura Condensed";
  font-weight: 400;
  src: url(../fonts/futura/300.ttf);
}
@font-face {
  font-family: "Futura Condensed";
  font-weight: 700;
  src: url(../fonts/futura/700.ttf);
}
@font-face {
  font-family: Expressa;
  font-weight: 400;
  src: url(../fonts/expressa-demibold.ttf);
}

/* ── Base ── */
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Futura;
  color: #1b1b1b;
  background-color: white;
}
main {
  padding: 1em;
  gap: 1em;
}
@media (max-width: 37em) {
  main { padding: 0.5em; gap: 0.5em; }
}

/* ── Utilitaires ── */
.btn-hover-effect { transition: 0.32s; }
.btn-hover-effect:hover  { filter: brightness(0.8); transition: 0.12s; }
.btn-hover-effect:active { filter: brightness(0.6); transition: 0.04s; }

.box {
  color: white;
  padding: 1.5em;
  box-sizing: border-box;
  border-radius: 2em;
  border: rgba(27, 27, 27, 0.1) 0.128em solid;
}
@media (max-width: 37em) {
  .box { border-radius: 1.5em; padding: 1em; }
}
.box p, .box ul { font-size: 1.2em; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box > h1:first-child { margin-top: 0; }

/* ── Branding ── */
.branding {
  display: flex;
  align-items: center;
  gap: 0.2em;
  text-decoration: none;
}
.branding img.icon { width: 1.25em; aspect-ratio: 1/1; }
.branding div.wordmark { display: flex; font-family: Expressa; }
.branding div.wordmark span:first-child { color: #accf20; }
.branding div.wordmark span:last-child  { color: #5e5f62; }

/* ── En-tête de page (fixe) ── */
header.page-header {
  position: fixed;
  box-sizing: border-box;
  z-index: 10;
  top: 0;
  width: 100%;
}

/* Variante base */
header.page-header:is(.base-header) {
  background: linear-gradient(to bottom, white 60%, rgba(255,255,255,0.9));
  backdrop-filter: blur(10px);
  padding: 0 1em;
  height: 4em;
}
header.page-header:is(.base-header) button.nav-toggle {
  font: inherit;
  background-color: transparent;
  border: none;
  font-weight: bold;
  font-size: 1.2em;
  text-decoration: solid underline #1b1b1b;
}
@media (max-width: 40em) {
  header.page-header:is(.base-header) nav.page-nav {
    position: fixed;
    top: 0; left: 0;
    padding-top: 4em;
    height: 100dvh; width: 100%;
    background-color: white;
    backdrop-filter: blur(20px);
    z-index: -1;
    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    transition: opacity 0.16s;
  }
  header.page-header:is(.base-header) nav.page-nav a { font-size: 2em; padding: 0.25em 1em; }
  header.page-header:is(.base-header) nav.page-nav:not(.open) { opacity: 0; pointer-events: none; }
}
@media not (max-width: 40em) {
  header.page-header:is(.base-header) button.nav-toggle { display: none; }
  header.page-header:is(.base-header) nav.page-nav {
    box-sizing: border-box;
    height: 100%;
    display: flex;
  }
  header.page-header:is(.base-header) nav.page-nav a {
    height: 100%; width: 100%;
    display: flex;
    font-size: 1.25em;
    box-sizing: border-box;
    padding: 0.4em 0.15em;
  }
  header.page-header:is(.base-header) nav.page-nav a:last-child { margin-right: -0.15em; }
  header.page-header:is(.base-header) nav.page-nav a span {
    transition-duration: 0.32s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 0.85em;
    border-radius: 2em;
  }
  header.page-header:is(.base-header) nav.page-nav a:hover span {
    background-color: rgba(82, 113, 255, 0.14);
    color: #5271FF;
    transition-duration: 0.12s;
  }
}

/* Variante flottante */
header.page-header:is(.floating-header) { padding: 1em; }
header.page-header:is(.floating-header) button.nav-toggle { display: none; }
@media (max-width: 40em) {
  header.page-header:is(.floating-header) { padding: 0.5em; }
  header.page-header:is(.floating-header) div.container { gap: 0.5em; }
  header.page-header:is(.floating-header) .branding { font-size: 3em; }
  header.page-header:is(.floating-header) div.branding-container,
  header.page-header:is(.floating-header) nav.page-nav { max-width: 100%; }
  header.page-header:is(.floating-header) nav.page-nav a { font-size: 1.1em; }
  header.page-header:is(.floating-header) nav.page-nav a span { padding: 0; }
}
header.page-header:is(.floating-header) div.container { flex-direction: column; gap: 1em; }
header.page-header:is(.floating-header) div.branding-container,
header.page-header:is(.floating-header) nav.page-nav {
  box-sizing: border-box;
  background-color: white;
  width: 34em;
  display: flex;
  justify-content: center;
  border-radius: 2em;
}
header.page-header:is(.floating-header) div.branding-container { padding: 1em; }
header.page-header:is(.floating-header) .branding { font-size: 5em; }
header.page-header:is(.floating-header) nav.page-nav {
  box-sizing: border-box;
  height: 100%;
  display: flex;
}
header.page-header:is(.floating-header) nav.page-nav a {
  height: 100%; width: 100%;
  display: flex;
  font-size: 1.25em;
  box-sizing: border-box;
  padding: 0.2em;
  height: 2.5em;
}
header.page-header:is(.floating-header) nav.page-nav a span {
  width: 100%;
  transition-duration: 0.32s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 0.85em;
  border-radius: 2em;
}
header.page-header:is(.floating-header) nav.page-nav a:hover span {
  background-color: rgba(82, 113, 255, 0.14);
  color: #5271FF;
  transition-duration: 0.12s;
}

/* Commun en-tête */
header.page-header div.container {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  max-width: 50em;
  height: 100%;
}
header.page-header .branding { font-size: 2em; }
header.page-header nav.page-nav a { text-decoration: none; }
header.page-header nav.page-nav a.is-current-page { color: #5271FF; font-weight: bold; pointer-events: none; }
header.page-header nav.page-nav a:not(.is-current-page) { color: #5e5f62; }

/* ── Footer ── */
footer {
  background-color: #5e5f62;
  border-radius: 2em 2em 0 0;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
footer a { color: #accf20; }
footer div.container {
  padding: 2em 1em;
  margin: auto;
  max-width: 50em;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1em;
}
footer div.branding { font-size: 3em; }
footer div.branding div.wordmark span { color: white !important; }

/* ── Page d'accueil ── */
body.is-homepage slide-show.page-hero { height: calc(100% - 12em); width: 100%; }
body.is-homepage main {
  padding: 1em;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1em;
}
@media (max-width: 37em) {
  body.is-homepage main { padding: 0.5em; gap: 0.5em; }
}
body.is-homepage main > section { max-width: 50em; margin: auto; width: 100%; }

body.is-homepage main section.next-event {
  padding: 1.5em 1em;
  box-sizing: border-box;
  border: rgba(27, 27, 27, 0.15) 0.128em solid;
  border-radius: 2em;
  background-color: #accf20;
  position: relative;
  margin-top: -5.5em;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.is-homepage main section.next-event div.left,
body.is-homepage main section.next-event div.right { display: flex; justify-content: center; align-items: center; }
body.is-homepage main section.next-event div.right { flex-direction: column; gap: 1.6em; z-index: 1; }
body.is-homepage main section.next-event h1,
body.is-homepage main section.next-event h2 { margin: 0; }
body.is-homepage main section.next-event img.arrow {
  width: 20em;
  opacity: 0.4;
  mask-image: linear-gradient(-50deg, rgba(27, 27, 27, 0.6), #1b1b1b);
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 0; bottom: 0;
  margin: auto;
  left: 0;
  transform: translateX(-5em);
  filter: invert(1);
}
body.is-homepage main section.next-event div.event-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}
body.is-homepage main section.next-event div.event-details h1.event-name {
  font-family: "Futura Condensed";
  color: white;
  font-size: 3em;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.15);
}
@media (max-width: 37em) {
  body.is-homepage main section.next-event div.event-details h1.event-name { font-size: 2.2em; }
}
body.is-homepage main section.next-event div.event-details h1.event-name span.city { color: #1b1b1b; }
body.is-homepage main section.next-event div.event-details h2.event-date {
  font-family: "Futura Condensed";
  font-size: 2.5em;
}
body.is-homepage main section.next-event div.event-details h2.event-subject {
  max-width: 20em;
  font-size: 1.75em;
  margin-top: 0.4em;
  color: #1b1b1b;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.15);
}
@media (max-width: 37em) {
  body.is-homepage main section.next-event div.event-details h2.event-subject { font-size: 1.3em; }
}
body.is-homepage main section.next-event a.register-to-event {
  display: flex;
  align-items: center;
  font-family: inherit;
  height: 3.5em;
  text-decoration: none;
  border-radius: 2em;
  padding: 0 3em;
  border: none;
  background-color: #5e5f62;
  color: white;
  font-weight: bold;
}
body.is-homepage main section.next-event a.register-to-event span { font-size: 2em; }

body.is-homepage main section.horizontal { display: flex; gap: 1em; }
@media (max-width: 37em) { body.is-homepage main section.horizontal { gap: 0.5em; } }
@media (max-width: 50em) { body.is-homepage main section.horizontal { flex-direction: column; } }
body.is-homepage main section.horizontal a {
  border: rgba(27, 27, 27, 0.1) 0.128em solid;
  color: white;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  width: 100%;
  height: 3em;
  background-color: #a6a6a6;
  border-radius: 2em;
}
body.is-homepage main section.horizontal a img,
body.is-homepage main section.horizontal a span { font-size: 2em; height: 1em; font-weight: bold; }

body.is-homepage main section.events-to-come,
body.is-homepage main section.research-centers,
body.is-homepage main section.themes-of-the-year { background-color: #a6a6a6; }
body.is-homepage main section.labcluster-description { background-color: #38b6ff; }
body.is-homepage main section.events-to-come table { font-size: 1.2em; width: 100%; }
body.is-homepage section :first-child { margin-top: 0; }
body.is-homepage section :last-child  { margin-bottom: 0; }
body.is-homepage section p,
body.is-homepage section ul { font-size: 1.2em; text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.2); }
body.is-homepage footer { margin-top: 4em; }

/* ── Page événement ── */
body.is-eventpage {
  background:
    radial-gradient(circle, rgba(172,207,32,0.1) 10%, transparent 11%),
    radial-gradient(circle at bottom left,  rgba(172,207,32,0.1) 5%, transparent 6%),
    radial-gradient(circle at bottom right, rgba(172,207,32,0.1) 5%, transparent 6%),
    radial-gradient(circle at top left,     rgba(172,207,32,0.1) 5%, transparent 6%),
    radial-gradient(circle at top right,    rgba(172,207,32,0.1) 5%, transparent 6%);
  background-size: 4em 4em;
  background-color: #ffffff;
}

/* Hero avec photo + overlay vert semi-transparent */
body.is-eventpage header.page-hero {
  padding-top: 4em;
  border-radius: 0 0 2em 2em;
  overflow: hidden;
  color: #1b1b1b;
  position: relative;
  z-index: 0;
}
body.is-eventpage header.page-hero.with-photo {
  background: none;
}
/* Couche 1 : photo de fond */
body.is-eventpage header.page-hero.with-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* Couche 2 : bandeau vert — plus opaque pour meilleure lisibilité */
body.is-eventpage header.page-hero.with-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(172, 207, 32, 0.87);
  z-index: 1;
}
/* Contenu au-dessus des couches */
body.is-eventpage header.page-hero.with-photo > .container {
  position: relative;
  z-index: 2;
}
/* Hero sans photo (fond vert plein) */
body.is-eventpage header.page-hero:not(.with-photo) {
  background-color: #accf20;
}

body.is-eventpage header.page-hero div.container {
  max-width: 35em;
  margin: auto;
  padding: 3em 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
body.is-eventpage header.page-hero h1,
body.is-eventpage header.page-hero h2 { margin: 0; }
body.is-eventpage header.page-hero h1.event-name {
  font-family: "Futura Condensed";
  color: white;
  font-size: 3em;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.15);
}
@media (max-width: 37em) {
  body.is-eventpage header.page-hero h1.event-name { font-size: 2em; }
}
body.is-eventpage header.page-hero h1.event-name span.city { color: #1b1b1b; }
body.is-eventpage header.page-hero h2.event-date {
  font-family: "Futura Condensed";
  font-size: 2.5em;
  color: white;
}
@media (max-width: 37em) {
  body.is-eventpage header.page-hero h2.event-date { font-size: 2em; }
}
body.is-eventpage header.page-hero h2.event-subject {
  max-width: 20em;
  font-size: 1.75em;
  margin-top: 0.4em;
  color: #1b1b1b;
  font-weight: bold;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.25);
}
@media (max-width: 37em) {
  body.is-eventpage header.page-hero h2.event-subject { font-size: 1.3em; }
}
body.is-eventpage header.page-hero h3.event-address {
  max-width: 20em;
  font-size: 1.60em;
  font-weight: bold;
  margin-top: 0.4em;
  color: #1b1b1b;
  text-shadow: 0 0.1em 0 rgba(50, 50, 50, 0.4);
}
body.is-eventpage header.page-hero p {
  font-size: 1.39em;
  font-weight: 600;
  text-shadow: 0 0.04em 0 rgba(27, 27, 27, 0.55);
}
body.is-eventpage header.page-hero p:last-child { margin-bottom: 0; }
body.is-eventpage header.page-hero slide-show {
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 50%;
  mask-image: linear-gradient(to right, #1b1b1b, transparent);
  opacity: 0.25;
}

body.is-eventpage main {
  padding: 2em 1em;
  gap: 2em;
  display: flex;
  flex-direction: column;
}
@media (max-width: 37em) {
  body.is-eventpage main { padding: 2em 0.5em; }
}

body.is-eventpage section.event-cost {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}
body.is-eventpage section.event-cost p {
  margin: 0;
  max-width: 26em;
  font-size: 1.2em;
  background-color: white;
}

body.is-eventpage a.register-to-event {
  display: flex;
  align-items: center;
  font-family: inherit;
  height: 3.5em;
  text-decoration: none;
  border-radius: 2em;
  padding: 0 3em;
  border: none;
  background-color: #5e5f62;
  color: white;
  font-weight: bold;
  width: fit-content;
}
body.is-eventpage a.register-to-event span { font-size: 2em; }

body.is-eventpage section.got-questions {
  margin: auto;
  max-width: 50em;
  text-align: center;
  padding: 2em 0 3em;
}
body.is-eventpage section.got-questions p { font-size: 1.2em; background-color: white; }
body.is-eventpage section.got-questions a {
  background: #accf20;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 2em;
  font-size: 2em;
  padding: 0.15em 1.5em;
  width: fit-content;
}

/* Timetable / Programme */
body.is-eventpage section.event-timetable {
  overflow: hidden;
  max-width: 70em;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}
body.is-eventpage section.event-timetable > section {
  background-color: #accf20;
  border: rgba(27, 27, 27, 0.1) 0.128em solid;
  border-width: 0.064em 0.128em;
  padding: 1.5em;
}
@media (max-width: 37em) {
  body.is-eventpage section.event-timetable > section { padding: 1em; }
}
body.is-eventpage section.event-timetable > section:first-of-type {
  border-top-width: 0.128em;
  border-radius: 2em 2em 0 0;
}
@media (max-width: 37em) {
  body.is-eventpage section.event-timetable > section:first-of-type { border-radius: 1.5em 1.5em 0 0; }
}
body.is-eventpage section.event-timetable > section:last-of-type {
  border-bottom-width: 0.128em;
  border-radius: 0 0 2em 2em;
}
@media (max-width: 37em) {
  body.is-eventpage section.event-timetable > section:last-of-type { border-radius: 0 0 1.5em 1.5em; }
}
body.is-eventpage section.event-timetable > section.free-access {
  text-align: center;
  background-color: #38b6ff;
}
body.is-eventpage section.event-timetable > section.free-access span {
  margin: 1em auto;
  display: block;
  max-width: 20em;
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.2;
  color: white;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.2);
}
body.is-eventpage section.event-timetable h1 { margin: 0; font-size: 3em; }
body.is-eventpage section.event-timetable h1,
body.is-eventpage section.event-timetable h2 { text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.2); color: white; }
body.is-eventpage section.event-timetable h3 { margin-top: 0; font-size: 1.8em; font-weight: bold; }
body.is-eventpage section.event-timetable p,
body.is-eventpage section.event-timetable h2 { font-size: 1.8em; }
body.is-eventpage section.event-timetable p:first-child,
body.is-eventpage section.event-timetable h2:first-child { margin-top: 0; }
body.is-eventpage section.event-timetable p:last-child,
body.is-eventpage section.event-timetable h2:last-child { margin-bottom: 0; font-size: 1.4em; }
body.is-eventpage section.event-timetable p { color: #1b1b1b; line-height: 1.5; }

/* Formulaire d'inscription */
body.is-eventpage section.registration-form {
  background-color: #ffffff;
  border: solid rgba(27, 27, 27, 0.1);
  border-width: 0.128em 0;
}
body.is-eventpage section.registration-form h3 { text-align: center; }
body.is-eventpage section.registration-form div.container {
  padding: 2em 1em;
  margin: auto;
  max-width: 50em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
body.is-eventpage section.registration-form div.branding { font-size: 2em; }
body.is-eventpage section.registration-form form {
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 2em;
}
body.is-eventpage section.registration-form form .box {
  background-color: #38b6ff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.2);
}
body.is-eventpage section.registration-form form .box p { font-size: 1.2em; max-width: 30em; font-weight: bold; }
body.is-eventpage section.registration-form form .box h1 { font-size: 2em; }
body.is-eventpage section.registration-form form .box h1,
body.is-eventpage section.registration-form form .box p { margin: 0; }
body.is-eventpage section.registration-form form label { font-size: 1.2em; display: inline-block; flex-shrink: 0; }
body.is-eventpage section.registration-form form .supplementary-questions { display: flex; gap: 0.5em; flex-direction: column; }
body.is-eventpage section.registration-form form .supplementary-questions label { text-align: center; }
body.is-eventpage section.registration-form form .supplementary-questions textarea { height: 10em; resize: none; }
body.is-eventpage section.registration-form form .captcha { display: flex; justify-content: center; }
body.is-eventpage section.registration-form form input:not([type=submit]),
body.is-eventpage section.registration-form form select,
body.is-eventpage section.registration-form form textarea {
  font: inherit;
  font-size: 1.2em;
  margin: 0;
  padding: 0.32em;
  border-radius: 0.5em;
  border: solid rgba(27, 27, 27, 0.1) 0.128em;
  outline: none;
  box-sizing: border-box;
  transition: 0.32s;
}
body.is-eventpage section.registration-form form input:not([type=submit]):focus,
body.is-eventpage section.registration-form form select:focus,
body.is-eventpage section.registration-form form textarea:focus {
  border-color: #accf20;
  transition: 0.12s;
}
body.is-eventpage section.registration-form form input { width: 100%; }
body.is-eventpage section.registration-form form input[type=submit] {
  font: inherit;
  font-size: 2em;
  width: fit-content;
  margin: auto;
  padding: 0.15em 1.5em;
  border-radius: 2em;
  background-color: #38b6ff;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
body.is-eventpage section.registration-form form select { background-color: white; }
body.is-eventpage section.registration-form form select:focus { background-color: rgba(172, 207, 32, 0.2); }
body.is-eventpage section.registration-form form select option { background-color: white; }
body.is-eventpage section.registration-form form div.conferences-checklist { display: flex; flex-direction: column; }
body.is-eventpage section.registration-form form div.conferences-checklist > label { font-weight: bold; margin-bottom: 0.5em; }
body.is-eventpage section.registration-form form div.conferences-checklist > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em;
  border-radius: 0.5em;
}
body.is-eventpage section.registration-form form div.conferences-checklist > div.grey { background-color: rgba(27, 27, 27, 0.035); }
body.is-eventpage section.registration-form form div.conferences-checklist > div label { width: calc(100% - 2em); }
body.is-eventpage section.registration-form form div.conferences-checklist > div input {
  flex: 0;
  height: 1.25em;
  aspect-ratio: 1/1;
  margin: 0; padding: 0;
}
body.is-eventpage section.registration-form form div.vertical-inputs > div {
  display: flex;
  align-items: center;
  border-radius: 1em;
}
@media not (max-width: 30em) {
  body.is-eventpage section.registration-form form div.vertical-inputs > div { padding: 0.5em 0.5em 0.5em 1em; gap: 2em; }
  body.is-eventpage section.registration-form form div.vertical-inputs > div.grey { background-color: rgba(27, 27, 27, 0.035); }
}
@media (max-width: 30em) {
  body.is-eventpage section.registration-form form div.vertical-inputs > div { flex-direction: column; align-items: start; padding: 0.5em 0; }
}
body.is-eventpage section.registration-form form div.vertical-inputs > div label { width: 20em; }
@media (max-width: 47em) { body.is-eventpage section.registration-form form div.vertical-inputs > div label { width: 10em; } }
@media (max-width: 30em) { body.is-eventpage section.registration-form form div.vertical-inputs > div label { width: 100%; font-size: 1.1em; } }

/* Validation / Captcha */
body.is-eventpage section.registration-form form .invalid input,
body.is-eventpage section.registration-form form .invalid select,
body.is-eventpage section.registration-form form .invalid textarea {
  border-color: #ff4d4f;
  background-color: rgba(255, 77, 79, 0.06);
}
body.is-eventpage section.registration-form form .captcha .captcha-wrap {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
body.is-eventpage section.registration-form form .captcha .captcha-text { color: #ff4d4f; font-weight: bold; text-align: center; }
body.is-eventpage section.registration-form form .captcha .captcha-code {
  background-color: #ff4d4f;
  color: #fff;
  padding: 0.25em 0.5em;
  border-radius: 0.35em;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* ── Page archive ── */
body.is-archivepage {
  background:
    radial-gradient(circle, rgba(172,207,32,0.1) 10%, transparent 11%),
    radial-gradient(circle at bottom left,  rgba(172,207,32,0.1) 5%, transparent 6%),
    radial-gradient(circle at bottom right, rgba(172,207,32,0.1) 5%, transparent 6%),
    radial-gradient(circle at top left,     rgba(172,207,32,0.1) 5%, transparent 6%),
    radial-gradient(circle at top right,    rgba(172,207,32,0.1) 5%, transparent 6%);
  background-size: 4em 4em;
  background-color: #ffffff;
}
body.is-archivepage header.page-hero {
  background-color: #5e5f62;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4em;
  line-height: 1.1;
  border-radius: 0 0 2em 2em;
  height: 20em;
}
body.is-archivepage header.page-hero h1 { margin: 0; text-align: center; font-size: 3em; }
body.is-archivepage header.page-hero h1.branding { font-family: Expressa; font-weight: normal; font-size: 3.5em; }
body.is-archivepage main { max-width: 50em; margin: auto; display: flex; flex-direction: column; }
body.is-archivepage section.click-to-access {
  background-color: #a6a6a6;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.15);
  text-align: center;
}
body.is-archivepage section.click-to-access span { font-size: 1.5em; font-weight: bold; }
body.is-archivepage div.grid { display: flex; flex-wrap: wrap; gap: inherit; justify-content: center; }
body.is-archivepage div.grid > a.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(50% - 0.5em);
  text-decoration: none;
  text-shadow: 0 0.1em 0 rgba(27, 27, 27, 0.15);
}
@media (max-width: 40em) and (not (max-width: 34em)) {
  body.is-archivepage div.grid > a.box ul { font-size: 1.1em; }
}
@media (max-width: 34em) { body.is-archivepage div.grid > a.box { width: 100%; } }
body.is-archivepage div.grid > a.box.green { background-color: #accf20; }
body.is-archivepage div.grid > a.box.blue  { background-color: #38b6ff; }
body.is-archivepage div.grid > a.box.grey  { background-color: #5e5f62; }
body.is-archivepage div.grid > a.box h1 { font-size: 3em; margin: 0; text-align: center; }
body.is-archivepage div.grid > a.box ul { padding-left: 0.5em; display: flex; flex-direction: column; gap: 0.25em; }

/* ── Bandeau cookies ── */
.cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background-color: #1f1f1f;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.cn-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cn-text { margin: 0; }
.cn-link { color: #4ea3ff; text-decoration: underline; }
.cn-link:hover { text-decoration: none; }
.cn-actions { display: flex; justify-content: flex-end; }
.cn-btn {
  cursor: pointer;
  font: inherit;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 8px 16px;
  transition: background-color 0.2s, border-color 0.2s;
}
.cn-btn-primary { background-color: #4ea3ff; color: #fff; border-color: #4ea3ff; }
.cn-btn-primary:hover { background-color: #2b89e6; border-color: #2b89e6; }
.cookie-notice-noscript {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #222;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
}
@media (min-width: 600px) {
  .cn-container { flex-direction: row; align-items: center; justify-content: space-between; }
  .cn-actions { justify-content: flex-start; }
}
