:root {
  color-scheme: light;
  --ink: #14181B;
  --ink-soft: #4B5359;
  --ink-faint: #838B8F;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F0F4F1;
  --line: #DDE3DE;

  --green: #0B6B45;
  --green-strong: #084F34;
  --green-tint: #E3F0EA;
  --green-ink: #063D28;

  --gold: #B98A2E;
  --gold-tint: #F6EDDA;
  --gold-ink: #6B4E17;

  --dark: #0E140F;
  --dark-2: #16201A;
  --on-dark: #F2F6F3;
  --on-dark-soft: #B9C4BC;

  --focus: #0B6B45;
  --shadow: 150 30% 10%;
}

/* Palette volontairement fixe (pas d'adaptation auto au mode sombre du
   visiteur) : le rendu doit rester identique sur tous les appareils.
   Le bloc ci-dessous reste disponible pour un futur bouton de bascule
   manuelle (data-theme="dark"), mais ne s'active jamais tout seul. */
:root[data-theme="dark"] {
  --ink: #EDF2EE;
  --ink-soft: #B9C4BC;
  --ink-faint: #838B8F;
  --bg: #10140F;
  --surface: #171C17;
  --surface-2: #1D231D;
  --line: #2A322B;

  --green: #46B583;
  --green-strong: #5FCB98;
  --green-tint: #16281F;
  --green-ink: #9FE0BE;

  --gold: #D9AA55;
  --gold-tint: #2B2211;
  --gold-ink: #F0CE8E;

  --dark: #0A0D0A;
  --dark-2: #12160F;
  --on-dark: #F2F6F3;
  --on-dark-soft: #B9C4BC;

  --focus: #5FCB98;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Public Sans", sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}

a { color: var(--green); }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Transition de fondu entre les pages (SiteApp.vue) */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold-tint); color: var(--gold-ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Public Sans", sans-serif; font-size: 0.875rem; font-weight: 700;
  text-decoration: none; border-radius: 4px; padding: 13px 22px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-strong); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--surface-2); }
.btn-gold { background: var(--gold); color: #2B1F09; }
.btn-gold:hover { background: #A57C29; }

/* ---------- Header ---------- */

header.site { position: sticky; top: 0; z-index: 30; background: var(--green); border-bottom: 3px solid var(--gold); box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.nav-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: 20px; padding-top: 13px; padding-bottom: 13px;
}
.brand { grid-column: 1; justify-self: start; display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; color: #fff; min-width: 0; }
.brand-name { font-family: "Public Sans", sans-serif; font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-role {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin-top: 2px; white-space: nowrap;
}

nav.primary { grid-column: 2; justify-self: center; display: flex; align-items: stretch; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: stretch; padding-bottom: 13px; margin-bottom: -13px; }
nav.primary .nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; font-size: 0.875rem; font-weight: 700; color: rgba(255,255,255,0.85);
  padding: 10px 16px; border-radius: 10px; align-self: center;
}
nav.primary .nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-item:focus-within .nav-link { background: rgba(255,255,255,0.12); color: #fff; }

.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; }
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8); width: 18px; height: 18px;
}
.social-links a:hover { color: var(--gold); }

.caret { display: inline-flex; color: rgba(255,255,255,0.6); transition: transform .18s ease; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); color: var(--gold); }

.submenu {
  position: absolute; top: 100%; left: 0; margin-top: 10px; min-width: 280px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 28px 56px -24px hsl(var(--shadow) / 0.55), 0 4px 12px -4px hsl(var(--shadow) / 0.12);
  padding: 10px; display: flex; flex-direction: column; z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.submenu::before {
  content: ""; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px;
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg); border-radius: 3px 0 0 0;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  transition: opacity .16s ease, transform .16s ease;
}
.submenu-item {
  display: flex; align-items: center;
  text-decoration: none; padding: 13px 14px; border-radius: 10px;
  transition: background-color .12s ease;
}
.submenu-item:hover { background: var(--surface-2); }
.submenu-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.submenu-all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-decoration: none; margin-top: 4px; padding: 13px 12px 12px;
  border-top: 1px solid var(--line); color: var(--green-ink); font-weight: 700; font-size: 0.875rem;
  transition: background-color .12s ease;
}
.submenu-all svg { transition: transform .15s ease; }
.submenu-all:hover { background: var(--green-tint); border-radius: 0 0 9px 9px; }
.submenu-all:hover svg { transform: translateX(3px); }

.menu-toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 4px;
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: #fff; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
header.site.is-open .menu-toggle span { background: transparent; }
header.site.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); background: #fff; }
header.site.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); background: #fff; }

.mobile-panel-outer {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease;
  background: var(--green-strong); border-top: 1px solid rgba(255,255,255,0.18);
}
header.site.is-open .mobile-panel-outer { grid-template-rows: 1fr; }
.mobile-panel { overflow: hidden; }
.mobile-panel-inner { display: flex; flex-direction: column; padding: 4px 0 18px; }

.mobile-group { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,0.18); }
.mobile-parent {
  text-decoration: none; color: #fff; font-size: 1rem; font-weight: 600;
  padding: 14px 4px; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; width: 100%; text-align: left; cursor: pointer;
  font-family: "Public Sans", sans-serif;
}
.mobile-caret { display: inline-flex; color: rgba(255,255,255,0.6); transition: transform .2s ease; flex: none; }
button.mobile-parent[aria-expanded="true"] .mobile-caret { transform: rotate(180deg); }

.mobile-children {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease;
}
.mobile-children.is-open { grid-template-rows: 1fr; }
.mobile-children-inner {
  overflow: hidden; display: flex; flex-direction: column;
  margin: 2px 4px 12px 14px; padding-left: 16px; border-left: 2px solid rgba(255,255,255,0.22);
}
.mobile-child {
  position: relative;
  text-decoration: none; color: rgba(255,255,255,0.78); font-size: 0.875rem; font-weight: 500;
  padding: 11px 4px;
}
.mobile-child::before {
  content: ""; position: absolute; left: -16px; top: 50%; width: 8px; height: 2px;
  background: rgba(255,255,255,0.22); transform: translateY(-50%);
}
.mobile-child:hover { color: var(--gold); }
.mobile-child:hover::before { background: var(--gold); }
.mobile-panel-inner .btn { margin: 18px 4px 0; justify-content: center; }

/* ---------- Hero banner (homepage section) ---------- */

.hero-banner { background: var(--green); background-image: linear-gradient(160deg, var(--green) 0%, var(--green-strong) 100%); color: #fff; padding: 56px 0 100px; }
.hero-banner .eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 6px;
}
.hero-banner h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); margin-top: 18px; max-width: 18ch; }
.hero-banner p.lede { margin-top: 20px; max-width: 58ch; color: rgba(255,255,255,0.88); font-size: 1.125rem; }
.hero-banner .hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.55); }
.hero-banner .btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-portrait { justify-self: end; }
.hero-portrait img {
  display: block; width: 100%; max-width: 320px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 24px; border: 4px solid rgba(255,255,255,0.25);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
}

@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero-text .hero-actions { justify-content: center; }
  .hero-portrait { justify-self: center; order: -1; }
  .hero-portrait img { max-width: 220px; }
}

/* Quick-access tiles, overlapping the banner's bottom edge */

.quick-tiles {
  max-width: 1200px; margin: -56px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.quick-tiles--two { grid-template-columns: repeat(2, 1fr); }
.tile {
  background: var(--surface); padding: 26px 22px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); }
.tile .tile-label { font-weight: 700; font-size: 1rem; }
.tile .tile-arrow { font-size: 0.875rem; color: var(--green-ink); font-weight: 700; }
.tile:hover { background: var(--green-tint); }

.content-pad { padding: 80px 0 0; }

.page-placeholder { padding: 0 0 140px; text-align: center; }
.page-placeholder h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-placeholder p {
  margin: 16px auto 0; max-width: 52ch; color: var(--ink-soft); font-size: 1.125rem;
}

/* ---------- Footer ---------- */

footer.site { background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--on-dark); margin-top: 88px; border-top: 3px solid var(--gold); }
.footer-main { padding-top: 68px; padding-bottom: 46px; display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr; gap: 48px; }
.footer-col { position: relative; }
@media (min-width: 1101px) {
  .footer-col:not(:first-child)::before {
    content: ""; position: absolute; left: -24px; top: 2px; bottom: 2px; width: 1px;
    background: rgba(242,246,243,0.12);
  }
}
.footer-brand .brand-name { color: var(--on-dark); font-size: 1.375rem; }
.footer-brand p { margin: 14px 0 0; max-width: 32ch; color: var(--on-dark-soft); font-size: 0.875rem; line-height: 1.65; }
.footer-social { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(242,246,243,0.18);
  color: var(--on-dark-soft); transition: border-color .15s ease, color .15s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-heading {
  position: relative;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px; padding-bottom: 12px;
}
.footer-heading::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px; background: var(--gold);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.footer-col a { color: var(--on-dark); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.footer-col a:hover { color: var(--gold); }
.footer-col .muted { color: var(--on-dark-soft); font-size: 0.875rem; }
.footer-col .btn-gold { margin-top: 8px; }
.footer-col .btn-gold:hover { color: #2B1F09; }

.footer-bottom {
  border-top: 1px solid rgba(242,246,243,0.14);
  padding-top: 22px; padding-bottom: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 0.875rem; color: var(--on-dark-soft); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--gold); }
.footer-note { font-size: 0.875rem; color: var(--on-dark-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  nav.primary { display: none; }
  .header-actions .social-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-row { grid-template-columns: auto 1fr auto; }
  .quick-tiles { grid-template-columns: 1fr 1fr; margin-top: -40px; }
}
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 40px; padding-top: 52px; padding-bottom: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 46ch; }
}
@media (max-width: 560px) {
  .quick-tiles { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-col { text-align: center; }
  .footer-brand .brand { justify-self: center; align-items: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-heading::after { left: 50%; transform: translateX(-50%); }
  .footer-col ul { justify-items: center; }
  .footer-col .btn-gold { margin-left: auto; margin-right: auto; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ---------- Page header (pages sans hero, ex. Conférences) ---------- */

.page-header { padding: 64px 0 44px; }
.page-header .eyebrow-line {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--gold-tint); padding: 6px 12px; border-radius: 999px;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 16px; max-width: 22ch; }
.page-header .lede { margin-top: 14px; max-width: 60ch; color: var(--ink-soft); font-size: 1.125rem; }

/* ---------- Conférences (liste + galerie) ---------- */

.conferences-hero {
  background-image:
    linear-gradient(115deg, rgba(6,61,40,0.94) 0%, rgba(8,79,52,0.86) 42%, rgba(11,107,69,0.45) 100%),
    url('/images/conferences/reussir-test-recrutement/salle-audience.jpg');
  background-size: cover;
  background-position: center 42%;
}

.conferences-list-section { padding: 64px 0 120px; }

.conferences-group { margin-bottom: 64px; }
.conferences-group:last-child { margin-bottom: 0; }
.conferences-group-title {
  font-size: 1.375rem; margin: 0 0 26px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.conferences-group-title:has(+ .conferences-group-lede) {
  margin-bottom: 8px; padding-bottom: 0; border-bottom: none;
}
.conferences-group-lede {
  margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 1rem; max-width: 60ch;
}
.conferences-empty {
  padding: 34px; text-align: center; color: var(--ink-soft); font-size: 1rem;
  background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: 16px;
}
.conferences-list { display: flex; flex-direction: column; gap: 40px; }
.conference-card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 48px -32px hsl(var(--shadow) / 0.35);
}
.conference-cover {
  padding: 0; border: none; cursor: pointer; background: var(--surface-2);
  display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
}
.conference-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.conference-cover:hover img { transform: scale(1.04); }
.conference-body { padding: 32px 34px; display: flex; flex-direction: column; }
.conference-tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--green-ink); background: var(--green-tint); padding: 5px 11px; border-radius: 999px;
}
.conference-body h2 { font-size: 1.375rem; margin-top: 14px; line-height: 1.25; }
.conference-location {
  display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--ink-soft); font-size: 0.875rem; font-weight: 600;
}
.conference-summary { margin: 14px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.conference-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.conference-thumb {
  padding: 0; border: none; cursor: pointer; border-radius: 10px; overflow: hidden;
  aspect-ratio: 1; background: var(--surface-2);
}
.conference-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .2s ease; }
.conference-thumb:hover img { transform: scale(1.06); opacity: 0.9; }
.conference-more-link {
  align-self: flex-start; margin-top: 20px; font-weight: 700; font-size: 0.875rem;
  color: var(--green); text-decoration: none;
}
.conference-more-link:hover { text-decoration: underline; }

/* Conférence "à venir" — carte compacte (l'affiche porte déjà tous les détails) */
.conferences-upcoming-list { display: flex; flex-direction: column; gap: 16px; }
.conference-upcoming {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface); border: 1.5px solid var(--gold); border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 16px 32px -26px hsl(38 65% 40% / 0.4);
}
.conference-upcoming-thumb {
  flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden;
  padding: 0; border: none; cursor: pointer; background: var(--surface-2);
}
.conference-upcoming-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.conference-upcoming-thumb:hover img { transform: scale(1.06); }
.conference-upcoming-body { flex: 1 1 240px; min-width: 200px; }
.conference-upcoming-body h3 { font-size: 1.125rem; margin-top: 7px; line-height: 1.3; }
.conference-upcoming-date { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-soft); font-weight: 600; }
.conference-upcoming-cta { flex: none; margin-left: auto; }
.conference-tag--upcoming { color: var(--gold-ink); background: var(--gold-tint); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }

@media (max-width: 640px) {
  /* L'affiche (carrée) devient le visuel plein-largeur en haut de carte,
     lisible sans avoir à cliquer, au lieu d'une vignette de 84px. */
  .conference-upcoming { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
  .conference-upcoming-thumb { width: 100%; max-width: none; height: auto; aspect-ratio: 1 / 1; border-radius: 0; }
  .conference-upcoming-body { flex: 1 1 auto; width: 100%; padding: 18px 20px 0; }
  .conference-upcoming-cta { width: 100%; margin-left: 0; padding: 16px 20px 20px; }
  .conference-upcoming-cta .btn { width: 100%; justify-content: center; padding: 13px 22px; font-size: 0.875rem; }
}

@media (max-width: 780px) {
  .conference-card { grid-template-columns: 1fr; }
  .conference-cover { aspect-ratio: 16 / 10; }
}

/* ---------- Lightbox (galerie plein écran) ---------- */

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(9,13,10,0.92); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox-image { max-width: min(92vw, 1100px); max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
  font-size: 1.375rem; line-height: 1; cursor: pointer; width: 44px; height: 44px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3); color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.375rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.03em;
}
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.375rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Page détail événement ---------- */

.event-detail-hero { padding-bottom: 48px; }
.event-detail-back {
  display: block; color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 600;
  text-decoration: none; margin-bottom: 18px;
}
.event-detail-back:hover { color: #fff; text-decoration: underline; }
.event-detail-wrap { max-width: 860px; }
.event-detail-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.event-detail-summary { font-size: 1.125rem; }
.event-detail-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
  margin-top: 32px;
}
.event-detail-gallery-item {
  padding: 0; border: none; cursor: pointer; border-radius: 10px; overflow: hidden;
  aspect-ratio: 1; background: var(--surface-2);
}
.event-detail-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .2s ease; }
.event-detail-gallery-item:hover img { transform: scale(1.06); opacity: 0.9; }

.event-detail-testimonials { margin-top: 64px; }
.testimonial-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.testimonial-card {
  background: var(--surface); border-left: 3px solid var(--gold); border-radius: 4px;
  padding: 18px 22px;
}
.testimonial-message { margin: 0; font-style: italic; color: var(--ink); line-height: 1.6; }
.testimonial-name { margin: 10px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--ink-soft); }

.testimonial-form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px;
}
.testimonial-form-card h3 { margin: 0 0 18px; font-size: 1.125rem; }
.testimonial-form { display: flex; flex-direction: column; gap: 16px; }
.testimonial-form label {
  display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; color: var(--ink-soft); font-weight: 600;
}
.testimonial-form input,
.testimonial-form textarea {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem;
  font-family: inherit; resize: vertical;
}
.testimonial-form .btn { align-self: flex-start; }
.testimonial-form-error { color: #b3261e; margin: 0; font-size: 0.875rem; }
.testimonial-form-success {
  background: var(--green-tint); color: var(--green-ink); border-radius: 10px;
  padding: 16px 18px; font-weight: 600; margin: 0;
}


/* ---------- Finitions : apparition des titres ---------- */

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split-word-inner { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .js-anim .split-word-inner {
    animation: split-word-up 0.8s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--word-index) * 70ms);
  }
  .js-anim .split-title--short .split-word-inner {
    animation-duration: 0.6s;
    animation-delay: calc(var(--word-index) * 60ms);
  }
  .js-anim .hero-reveal {
    animation: hero-reveal 0.8s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
  }
}

@keyframes split-word-up {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Chargement de secours des evenements ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.title-skeleton {
  font-size: clamp(2.2rem, 4vw, 3.4rem); height: 1.1em; margin-top: 18px;
  width: min(14ch, 100%); border-radius: 10px; background: rgba(255, 255, 255, 0.14);
}
.load-retry { margin-top: 16px; }

/* ---------- Bouton « Nous contacter » de l'en-tete ---------- */

.header-cta {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 5px 5px 5px 18px;
  border-radius: 999px; background: var(--gold); color: #2B1F09;
  font-size: 0.875rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
.header-cta:hover { background: #A57C29; }
.header-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.header-cta-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-ink); color: var(--gold-tint);
}
@media (max-width: 560px) {
  .header-cta { display: none; }
}

/* ---------- Corrections responsive (audit du 10/11/2026) ---------- */

/* Portrait de l'accueil : carre a toutes les tailles (la hauteur 500 du HTML est annulee). */
.hero-portrait img { height: auto; }

/* Petits telephones : marges reduites et titre qui tient dans la largeur. */
@media (max-width: 400px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-banner h1 { font-size: clamp(1.7rem, 8.4vw, 2.2rem); }
}

/* Textes d'au moins 12 px. */
.brand-role { font-size: 0.75rem; }
.footer-heading { font-size: 0.75rem; }
.conference-tag { font-size: 0.75rem; }

/* Zones tactiles d'au moins 44 px. */
.menu-toggle { width: 44px; height: 44px; }
.footer-brand .brand { min-height: 44px; justify-content: center; }
.footer-col a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col ul:has(a:not(.btn)) { gap: 2px; }
.footer-bottom-links { gap: 4px 26px; }
.footer-bottom-links a { display: inline-flex; align-items: center; min-height: 44px; }
.conference-more-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; }
.event-detail-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; }

/* Formulaire de temoignage : memes champs que la page Contact. */
.testimonial-form label { color: var(--ink); font-weight: 700; font-size: 0.875rem; }
.testimonial-form input,
.testimonial-form textarea {
  min-height: 52px; padding: 13px 16px; border: 1px solid #87948B; border-radius: 12px;
  font-size: 1rem; color: var(--ink); background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.testimonial-form textarea { min-height: 130px; }
.testimonial-form input:focus,
.testimonial-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.testimonial-form .btn { min-height: 52px; padding-left: 24px; padding-right: 24px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .testimonial-form input, .testimonial-form textarea { transition: none; }
}.nav-row .brand { min-height: 44px; justify-content: center; }
nav.primary .nav-link { min-height: 44px; }

/* ---------- Boutons du site : pilule + fleche dans un rond (modele page Contact) ---------- */
/* L'administration garde ses boutons d'origine. */

.btn:not(:is(.admin-shell, .admin-login-card) *) {
  border-radius: 999px; min-height: 52px; padding: 6px 7px 6px 24px; gap: 14px;
  font-size: 1rem; justify-content: space-between;
}
.btn:not(:is(.admin-shell, .admin-login-card) *)::after {
  content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background-color: var(--gold-ink); background-repeat: no-repeat;
  background-position: 50% 50%; background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23F6EDDA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: background-position .3s cubic-bezier(.2, .8, .2, 1);
}
.btn-gold:not(:is(.admin-shell, .admin-login-card) *) { box-shadow: 0 8px 20px -8px rgba(185, 138, 46, 0.6); }
.btn-primary:not(:is(.admin-shell, .admin-login-card) *)::after {
  background-color: var(--green-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.btn-outline:not(:is(.admin-shell, .admin-login-card) *)::after {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hero-banner .btn-outline::after { background-color: rgba(255, 255, 255, 0.16); }
.btn:not(:is(.admin-shell, .admin-login-card) *):hover::after,
.btn:not(:is(.admin-shell, .admin-login-card) *):focus-visible::after { background-position: calc(50% + 3px) 50%; }
.btn:not(:is(.admin-shell, .admin-login-card) *):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero-banner .btn:focus-visible, footer.site .btn:focus-visible, .mobile-panel .btn:focus-visible { outline-color: #fff; }
.btn:not(:is(.admin-shell, .admin-login-card) *)[disabled] { opacity: 0.7; cursor: progress; }

.btn-sm:not(:is(.admin-shell, .admin-login-card) *) { min-height: 44px; padding: 5px 5px 5px 18px; gap: 10px; font-size: 0.875rem; }
.btn-sm:not(:is(.admin-shell, .admin-login-card) *)::after { width: 32px; height: 32px; background-size: 14px 14px; }

@media (prefers-reduced-motion: reduce) {
  .btn::after { transition: none; }
}
/* Bas de page mobile : de la place pour le bouton « Retour en haut ». */
@media (max-width: 640px) {
  footer.site .footer-bottom { padding-bottom: 88px; }
}
/* Moins de vide entre le contenu des pages et le pied de page. */
.conferences-list-section { padding-bottom: 48px; }

/* ---------- Animations au defilement (inspirees d'aura) ---------- */

:root { --ease-expo: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: no-preference) {
  /* Montee + fondu */
  .js-anim [data-reveal="up"] {
    opacity: 0; transform: translateY(36px);
    transition: opacity .9s var(--ease-expo) var(--reveal-delay, 0ms), transform .9s var(--ease-expo) var(--reveal-delay, 0ms);
  }
  .js-anim [data-reveal="up"].is-revealed { opacity: 1; transform: none; }

  /* Fondu seul */
  .js-anim [data-reveal="fade"] { opacity: 0; transition: opacity 1s var(--ease-expo) var(--reveal-delay, 0ms); }
  .js-anim [data-reveal="fade"].is-revealed { opacity: 1; }

  /* Cascade : les enfants arrivent l'un apres l'autre */
  .js-anim [data-reveal="stagger"] > * {
    opacity: 0; transform: translateY(36px);
    transition:
      opacity .9s var(--ease-expo) calc(var(--reveal-delay, 0ms) + var(--reveal-i, 0) * 90ms),
      transform .9s var(--ease-expo) calc(var(--reveal-delay, 0ms) + var(--reveal-i, 0) * 90ms);
  }
  .js-anim [data-reveal="stagger"].is-revealed > * { opacity: 1; transform: none; }
  .js-anim [data-reveal="stagger"].is-revealed:not(.is-revealing) > * { transition: none; }

  /* Photo en rideau + leger zoom. Le rideau est pose sur l'image (et non sur
     l'element observe), sinon l'element serait invisible pour l'observateur. */
  .js-anim [data-reveal="image"] > img,
  .js-anim [data-reveal="images"] > * {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1s var(--ease-expo) calc(var(--reveal-delay, 0ms) + var(--reveal-i, 0) * 100ms);
  }
  .js-anim [data-reveal="image"] > img { transform: scale(1.08); }
  .js-anim [data-reveal="images"] > * img { transform: scale(1.08); }
  .js-anim [data-reveal="image"].is-revealed > img,
  .js-anim [data-reveal="images"].is-revealed > * { clip-path: inset(0 0 0 0); }
  .js-anim [data-reveal="image"].is-revealed > img,
  .js-anim [data-reveal="images"].is-revealed > * img { transform: none; }
  .js-anim [data-reveal="image"].is-revealing > img {
    transition: clip-path 1s var(--ease-expo) var(--reveal-delay, 0ms), transform 1.3s var(--ease-expo) var(--reveal-delay, 0ms) !important;
  }
  .js-anim [data-reveal="images"].is-revealing > * img {
    transition: transform 1.3s var(--ease-expo) calc(var(--reveal-delay, 0ms) + var(--reveal-i, 0) * 100ms) !important;
  }
  .js-anim [data-reveal="image"].is-revealed:not(.is-revealing) > img { clip-path: none; }
  .js-anim [data-reveal="images"].is-revealed:not(.is-revealing) > * { clip-path: none; transition: none; }
}

/* ---------- Soulignement qui se dessine au survol ---------- */

.footer-col a:not(.btn),
.footer-bottom-links a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0 1px; background-position: 0 calc(50% + 0.8em);
  transition: background-size .35s var(--ease-expo), color .2s ease;
}
.footer-col a:not(.btn):hover, .footer-col a:not(.btn):focus-visible,
.footer-bottom-links a:hover, .footer-bottom-links a:focus-visible { background-size: 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  .footer-col a:not(.btn), .footer-bottom-links a { transition: none; }
}

/* ---------- Typographie (police et echelle reprises d'aura) ---------- */

:root { --font-sans: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif; }

body, button, input, select, textarea,
h1, h2, h3, .display, .btn, .brand-name, .mobile-parent, .mobile-child { font-family: var(--font-sans); }

h1, h2, h3, .display { font-weight: 700; letter-spacing: -0.025em; }

/* Grand titre : 28 px sur mobile, 44 px sur ordinateur. */
.hero-banner h1, .title-skeleton { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.12; }

/* Titres de section : 24 px sur mobile, 32 px sur ordinateur (toujours plus petits que le titre de page). */
.conferences-group-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.25; }

/* Titres de carte : 18 px. */
h3, .conference-card h3, .conference-upcoming h3 { font-size: 1.125rem; line-height: 1.375; }

/* Textes d'introduction : 18 px, interligne genereux. */
.hero-banner p.lede, .conferences-group-lede, .conference-summary, .event-detail-summary {
  font-size: 1.125rem; line-height: 1.625;
}

/* Sur-titres : 12 px, capitales espacees. */
.hero-banner .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; }

/* Menu et boutons : 14 px. */
nav.primary .nav-link { font-size: 0.875rem; font-weight: 500; }
.btn, .contact-submit, .header-cta { font-size: 0.875rem; font-weight: 600; }

.brand-name { font-weight: 700; }

/* Petits telephones : le grand titre tient toujours dans la largeur. */
@media (max-width: 400px) {
  .hero-banner h1 { font-size: clamp(1.55rem, 7.6vw, 1.75rem); }
}
/* Boutons du site a 14 px (priorite sur la regle des pilules). */
.btn:not(:is(.admin-shell, .admin-login-card) *) { font-size: 0.875rem; font-weight: 600; }
/* Petits ecrans : les boutons ne depassent jamais de la largeur. */
@media (max-width: 480px) {
  .btn:not(:is(.admin-shell, .admin-login-card) *) { max-width: 100%; white-space: normal; text-align: left; }
  .testimonial-form .btn { width: 100%; }
}

/* ---------- Corrections de l'audit design ---------- */

/* Fiche conference : le lien de retour sur sa propre ligne, au-dessus du sur-titre. */
.event-detail-back { display: flex; width: max-content; max-width: 100%; }

/* Pied de page : le bouton dore garde son texte fonce (contraste 5,2:1). */
footer.site .btn-gold { color: #2B1F09; }
footer.site .btn-gold:hover { color: #2B1F09; }

/* Sur-titres sur fond vert : texte or clair lisible (4,7:1), le trait reste or. */
.hero-banner .eyebrow { color: #F2D79A; border-bottom-color: var(--gold); }

/* Titres de document (pages legales) : niveau sous-section, 22 px. */
.legal-content .conferences-group-title { font-size: 1.375rem; }

/* Lignes de separation : toujours sous le titre, sur toute la largeur. */
.conferences-group-title:has(+ .conferences-group-lede) {
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.conferences-group-lede { padding-bottom: 0; border-bottom: none; }

/* Accueil : cartes rapides alignees sur la colonne, sans bandes grises. */
.quick-tiles {
  width: calc(100% - 64px); max-width: 1136px; padding: 0; gap: 16px;
  background: none; border: 0;
}
.quick-tiles .tile {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 28px -16px hsl(var(--shadow) / 0.35);
}
@media (max-width: 400px) { .quick-tiles { width: calc(100% - 40px); } }

/* Colonnes de contenu alignees sur le bord gauche du bandeau. */
.event-detail-wrap { max-width: 1200px; }
.event-detail-wrap > * { max-width: 860px; }

/* Affiches : visibles en entier, sur fond neutre, au lieu d'etre recadrees. */
.conference-cover img { object-fit: contain; background: var(--surface-2); }
/* Credit tout en bas du pied de page. */
.footer-credit {
  border-top: 1px solid rgba(242, 246, 243, 0.08);
  padding: 14px 0; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.04em; color: var(--on-dark-soft);
}
@media (max-width: 640px) {
  /* La place du bouton « Retour en haut » passe sous le credit. */
  footer.site .footer-bottom { padding-bottom: 22px; }
  .footer-credit { padding-bottom: 88px; }
}
/* Accueil empile (tablette et mobile) : titre et texte centres dans la colonne. */
@media (max-width: 860px) {
  .hero-text h1, .hero-text .lede { margin-left: auto; margin-right: auto; }
}