  @font-face {
    font-family: 'Display';
    src: local('Sora'), local('Space Grotesk'), local('Segoe UI Semibold');
    font-weight: 400 700;
  }

  :root {
    --accent: #3B7A7A;
    --accent-2: #2E6363;
    --gold: #3B7A7A;
    --sand: #F4F5F3;
    --ink: #2B2E33;
    --paper: #FFFFFF;
    --alert: #B23A3A;
    --line: #E1E3E0;
    --muted: #6C7278;

    --bg: #FFFFFF;
    --surface: var(--paper);
    --text: var(--ink);
    --text-muted: var(--muted);
    --border: var(--line);
    --sidebar-bg: var(--sand);
    --sidebar-text: var(--ink);
    --sidebar-border: var(--line);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #16181C;
      --surface: #1E2126;
      --text: #E9EAEC;
      --text-muted: #9AA0A6;
      --border: #2C2F35;
      --accent: #6FB4B4;
      --accent-2: #6FB4B4;
      --gold: #6FB4B4;
      --alert: #D97A7A;
      --sidebar-bg: #1B1D22;
      --sidebar-text: #E9EAEC;
      --sidebar-border: #2C2F35;
    }
  }

  :root[data-theme="dark"] {
    --bg: #16181C;
    --surface: #1E2126;
    --text: #E9EAEC;
    --text-muted: #9AA0A6;
    --border: #2C2F35;
    --accent: #6FB4B4;
    --accent-2: #6FB4B4;
    --gold: #6FB4B4;
    --alert: #D97A7A;
    --sidebar-bg: #1B1D22;
    --sidebar-text: #E9EAEC;
    --sidebar-border: #2C2F35;
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Sora', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4 { font-family: 'Display', 'Sora', 'Space Grotesk', -apple-system, sans-serif; font-weight: 600; text-wrap: balance; margin: 0; }

  a { color: inherit; }

  .tabular { font-variant-numeric: tabular-nums; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

  /* ---------- Bloc identité (logo + titre) dans la sidebar ---------- */
  .brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.75rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
  }
  .crest {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-family: 'Display', 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .brand-text .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
  }
  .brand-text h1 { font-size: 1.25rem; font-weight: 600; color: var(--sidebar-text); }

  .search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--sidebar-border);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    margin: 1.1rem 1.25rem 0.5rem;
    background: var(--surface);
  }
  .search-form input {
    border: none; background: transparent; outline: none;
    font-family: inherit; font-size: 0.85rem; color: var(--sidebar-text);
    flex: 1;
    min-width: 0;
  }
  .search-form input::placeholder { color: var(--text-muted); }
  .search-form button {
    border: none; background: var(--accent); color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* ---------- Layout général : sidebar + contenu ---------- */
  .layout {
    display: grid;
    grid-template-columns: minmax(220px, 20%) 1fr;
    align-items: start;
  }

  /* ---------- Nav latérale fixe ---------- */
  nav.main {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.75rem 0 2rem;
  }
  .nav-inner {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.75rem;
  }
  .nav-inner a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
  }
  .nav-inner a:hover, .nav-inner a.active {
    border-left-color: var(--accent);
    background: var(--surface);
    color: var(--accent);
  }
  .nav-inner .nav-title {
    padding: 0 1rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
  }

  .content-col { min-width: 0; }

  @media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    nav.main { position: static; height: auto; padding: 0.5rem 0; }
    .nav-inner { flex-direction: row; overflow-x: auto; padding: 0 1rem; }
    .nav-inner a { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; border-radius: 0; }
    .nav-inner a:hover, .nav-inner a.active { border-left-color: transparent; border-bottom-color: var(--gold); }
    .nav-inner .nav-title { display: none; }
  }

  /* ---------- 1. Diaporama fixe (6 photos) ---------- */
  .hero {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--ink);
    z-index: 0;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
  }
  .hero-slide.is-active { opacity: 1; }
  .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,15,55,0.8) 0%, rgba(0,15,55,0.05) 45%, rgba(0,15,55,0.2) 100%);
  }
  .hero-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2.5rem 2rem 2.75rem;
    color: #fff;
    z-index: 2;
  }
  .hero-caption .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-weight: 600;
  }
  .hero-caption h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 400;
    max-width: 22ch;
    color: #fff;
  }
  .hero-dots {
    position: absolute;
    right: 2rem; bottom: 1.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
  }
  .hero-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
  }
  .hero-dots span.is-active { background: var(--gold); }

  /* ---------- Panneau "Accès rapide" flottant ---------- */
  .qa-toggle {
    position: fixed;
    top: 1.75rem;
    right: 1.75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(20, 27, 46, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
  }
  .qa-toggle:hover { background: rgba(20, 27, 46, 0.75); }
  .qa-toggle .bars { display: flex; flex-direction: column; gap: 3px; }
  .qa-toggle .bars span { width: 16px; height: 2px; background: var(--gold); display: block; }

  .qa-panel {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    height: 100vh;
    width: 0;
    overflow: hidden;
    background: var(--accent);
    z-index: 30;
    transition: width 0.45s cubic-bezier(.16,.84,.44,1);
  }
  .qa-panel:target,
  .qa-panel.is-open { width: min(560px, 92vw); }

  .qa-panel-inner {
    width: min(560px, 92vw);
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
  }
  .qa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
  }
  .qa-panel-head h3 { color: #fff; font-size: 1.5rem; font-weight: 400; }
  .qa-close {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .qa-close:hover { background: rgba(255,255,255,0.1); }

  .qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .qa-list li { border-bottom: 1px solid rgba(255,255,255,0.14); }
  .qa-list a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0.25rem;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
  }
  .qa-list a:hover { color: var(--gold); }
  .qa-list .ic { font-size: 1.3rem; width: 1.6rem; text-align: center; }

  .qa-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 25;
    pointer-events: none;
    transition: background 0.45s ease;
  }
  .qa-panel.is-open ~ .qa-scrim,
  .qa-panel:target ~ .qa-scrim {
    background: rgba(0,0,0,0.35);
    pointer-events: auto;
  }

  @media (max-width: 640px) {
    .qa-toggle { top: 1rem; right: 1rem; padding: 0.55rem 0.85rem; }
    .qa-toggle span.label { display: none; }
  }

  /* Le contenu qui suit recouvre le diaporama fixe au scroll */
  .scroll-content {
    position: relative;
    z-index: 1;
    background: var(--bg);
    box-shadow: 0 -12px 32px rgba(0,0,0,0.18);
  }

  /* ---------- 2. Actualités (bande horizontale) ---------- */
  .news-section { padding: 3.5rem 0 3rem; background: var(--bg); }
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.75rem;
  }
  .section-head .eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 0.35rem;
  }
  .section-head h3 { font-size: 1.9rem; font-weight: 400; }
  .section-head a {
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
  }
  .news-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .news-card .thumb {
    height: 160px;
    background-size: cover;
    background-position: center;
  }
  .news-card .body { padding: 1.1rem 1.2rem 1.3rem; }
  .news-card .cat {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
  }
  .news-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; line-height: 1.35; }
  .news-card p { margin: 0; color: var(--text-muted); font-size: 0.87rem; }

  /* ---------- 3. Accès rapides ---------- */
  .access-section { background: var(--accent); padding: 3rem 0; }
  .access-section .section-head h3, .access-section .section-head .eyebrow { color: #fff; }
  .access-section .section-head .eyebrow { color: var(--gold); }
  .access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.14);
    border-radius: 8px;
    overflow: hidden;
  }
  .access-grid a {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s ease;
  }
  .access-grid a:hover { background: rgba(255,255,255,0.12); }
  .access-grid .ic { font-size: 1.6rem; }
  .access-grid .label { font-size: 0.85rem; font-weight: 500; }

  /* ---------- 4. Agenda ---------- */
  .events-section { padding: 3.5rem 0; }
  .events-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .event-card {
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    overflow: hidden;
  }
  .event-date {
    background: var(--sand);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }
  :root[data-theme="dark"] .event-date { background: var(--bg); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .event-date { background: var(--bg); } }
  .event-date .day { font-size: 1.6rem; font-weight: 700; color: var(--accent-2); line-height: 1; }
  .event-date .month { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
  .event-body { padding: 1.1rem 1.2rem 1.3rem; }
  .event-body h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.4rem; line-height: 1.35; }
  .event-body p { margin: 0; font-size: 0.83rem; color: var(--text-muted); }

  /* ---------- 5. Kiosque publications ---------- */
  .docs-section { padding: 3rem 0; background: var(--sand); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .docs-section { background: var(--surface); } }
  :root[data-theme="dark"] .docs-section { background: var(--surface); }
  .docs-inner {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
  }
  .doc-cover {
    height: 260px;
    border-radius: 4px;
    background: linear-gradient(155deg, var(--accent) 0%, var(--accent-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Display', serif;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 12px 24px -8px rgba(0,15,55,0.35);
  }
  .docs-text .eyebrow { color: var(--accent-2); }
  .docs-text h3 { font-size: 1.7rem; font-weight: 400; margin-bottom: 0.7rem; }
  .docs-text p { color: var(--text-muted); max-width: 46ch; margin: 0; }
  .doc-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
  }

  /* ---------- 6. Newsletter ---------- */
  .newsletter-section {
    background: var(--ink);
    color: #fff;
    padding: 2.75rem 0;
  }
  .newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .newsletter-inner h3 { font-size: 1.5rem; font-weight: 400; color: #fff; }
  .newsletter-inner p { margin: 0.4rem 0 0; color: rgba(255,255,255,0.65); font-size: 0.9rem; }
  .newsletter-form { display: flex; gap: 0.6rem; }
  .newsletter-form input {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 240px;
  }
  .newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
  .newsletter-form button {
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
  }

  /* ---------- Footer ---------- */
  footer { background: #22262B; color: #C6CACD; }
  .footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-inner h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold);
    margin: 0 0 1rem;
    font-weight: 600;
  }
  .footer-inner ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-inner a { color: #C6CACD; text-decoration: none; font-size: 0.88rem; }
  .footer-inner a:hover { text-decoration: underline; }
  .footer-brand p { font-size: 0.85rem; color: #9CA0A4; max-width: 32ch; margin: 0.75rem 0 0; }
  .footer-legal {
    border-top: 1px solid #33373C;
    padding: 1.1rem 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: #83878B;
  }
  .footer-legal a { color: #83878B; text-decoration: none; }
  .footer-legal a:hover { text-decoration: underline; color: #C6CACD; }

  @media (max-width: 860px) {
    .site-inner { flex-direction: column; align-items: stretch; }
    .search-form { min-width: 0; }
    .access-grid { grid-template-columns: repeat(2, 1fr); }
    .events-row { grid-template-columns: 1fr 1fr; }
    .docs-inner { grid-template-columns: 1fr; text-align: center; }
    .doc-cover { margin: 0 auto; width: 160px; }
    .newsletter-inner { flex-direction: column; align-items: flex-start; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }
