:root {
  --navy: #0d1b3e;
  --gold: #c9a84c;
  --red-don: #e63946;
  --white: #ffffff;
  --gray-bg: #f4f6f9;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  background: url('../images/hero-rdh.webp?v=17060032') top center / 100% auto no-repeat;
  overflow: hidden;
  margin-top: 42px;
}

@supports not (aspect-ratio: 1 / 1) {
  .hero-section {
    height: calc(100vw * 941 / 1672);
  }
}
.hero-overlay {
  display: none;
}
.hero-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, 10%);
  text-align: center;
  color: #fff;
  width: 90%;
  max-width: 600px;
}
.hero-center .rdh-big {
  display: none; /* image already shows RDH visually */
}
.hero-center .rdh-full {
  /* sr-only — image already shows the full name visually */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
.hero-center .hero-loi {
  display: none; /* image already contains this text */
}
.hero-center .hero-sep {
  display: none; /* image already contains separator */
}
.hero-center .hero-sep span { width: 30px; height: 1px; background: var(--gold); display:block; }
.hero-center .hero-slogan {
  display: none; /* image already contains slogan */
}
.hero-left-badge, .hero-right-badge {
  display: none; /* image already contains 1789/1948 visually */
}
.hero-badge-year {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1;
}
.hero-badge-text {
  font-size: clamp(.55rem, .8vw, .75rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.6;
  font-weight: 700;
  margin-top: .3rem;
}
.hero-stat-bar {
  display: none; /* image already contains stat bar visually */
}
.hero-stat-bar .stat-big {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: .08em;
}
.hero-stat-bar .stat-sub {
  font-size: clamp(.65rem, .9vw, .8rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-top: .2rem;
}
.hero-icons-bar {
  display: none;
}
.hero-icons-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: min(560px, 38vw);
  height: min(95px, 7vw);
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(6,21,42,.96), rgba(6,21,42,.98));
  border: 1px solid rgba(201,168,76,.5);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -10px 30px rgba(6,21,42,.35);
}
.hero-icons-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3.8vw, 4.5rem);
  width: max-content;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  animation: heroTicker 42s linear infinite;
}
.hero-icons-bar:hover .hero-icons-track {
  animation-play-state: paused;
}
.hero-icon-item {
  min-width: clamp(120px, 12vw, 190px);
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: rgba(255,255,255,.75);
  font-size: clamp(.62rem, .9vw, .86rem);
  line-height: 1.45;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  white-space: normal;
}
.hero-icon-item + .hero-icon-item {
  border-left: 1px solid rgba(255,255,255,.35);
  padding-left: clamp(1.25rem, 3.4vw, 4rem);
}
.hero-icon-item svg {
  width: clamp(34px, 3.5vw, 54px);
  height: clamp(34px, 3.5vw, 54px);
  stroke: #d99a2b;
  fill: none;
  flex: 0 0 auto;
}
.hero-icon-item span { display: block; }
.hero-icon-stat {
  min-width: clamp(250px, 23vw, 370px);
  color: #e7a65a;
}
.hero-icon-stat span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 1.8vw, 2rem);
  line-height: 1;
  letter-spacing: .08em;
}
.hero-icon-stat small {
  display: block;
  margin-top: .35rem;
  color: #f2b46b;
  font-size: clamp(.52rem, .78vw, .78rem);
  letter-spacing: .16em;
}
@keyframes heroTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Navigation ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13,27,62,.1);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  transition: background .35s, box-shadow .35s, border-color .35s;
}
/* Transparent au sommet de la home */
.home-page .site-header {
  background: rgba(13,27,62,.55);
  border-bottom: 1px solid rgba(201,168,76,.18);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
/* Scrollé : redevient blanc */
.site-header.scrolled {
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid rgba(13,27,62,.1) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.1) !important;
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: .55rem 2rem;
  display: flex; align-items: center; gap: 0;
}
/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2.5rem;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 4px; }
.nav-logo span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .04em;
  color: var(--navy);
  transition: color .25s;
}
.home-page .nav-logo span,
.site-header.scrolled .nav-logo span { color: var(--navy); }
.home-page:not(.scrolled-page) .nav-logo span { color: #fff; }
/* Links */
.nav-links {
  display: flex; align-items: center; justify-content: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
  flex: 1;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: .28rem;
  color: var(--navy);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem .9rem;
  border-radius: 5px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links > li > a .nav-arrow {
  font-size: .5rem;
  opacity: .6;
  transition: transform .2s;
}
.nav-links > li:hover > a .nav-arrow { transform: rotate(180deg); }
.nav-links > li > a:hover { color: var(--gold); background: rgba(201,168,76,.09); }
/* Blanc sur hero */
.home-page .site-header:not(.scrolled) .nav-links > li > a { color: #fff; }
.home-page .site-header:not(.scrolled) .nav-links > li > a:hover { color: var(--gold); background: rgba(255,255,255,.1); }
/* Dropdown */
.nav-dropdown {
  visibility: hidden;
  position: absolute; top: 100%; left: 0;
  padding-top: 10px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  min-width: 220px;
}
.nav-dropdown-inner {
  background: var(--navy);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 8px;
  padding: .5rem 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown a {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem 1.2rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .15s, background .15s, padding-left .15s;
}
.nav-dropdown a::before {
  content: '›';
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s;
}
.nav-dropdown a:hover { color: #fff; background: rgba(201,168,76,.1); padding-left: 1.5rem; }
.nav-dropdown a:hover::before { opacity: 1; }
/* CTA */
.nav-cta { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.btn-adherer {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: .42rem 1.1rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  display: flex; align-items: center; gap: .38rem;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
}
.btn-adherer:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.07); }
.home-page .site-header:not(.scrolled) .btn-adherer { border-color: rgba(255,255,255,.75); color: #fff; }
.home-page .site-header:not(.scrolled) .btn-adherer:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.12); }
.btn-don {
  background: var(--red-don);
  color: #fff;
  padding: .42rem 1.1rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  display: flex; align-items: center; gap: .38rem;
  box-shadow: 0 2px 8px rgba(230,57,70,.35);
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-don:hover { background: #c1121f; box-shadow: 0 4px 14px rgba(230,57,70,.5); }
/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 100%; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, background .25s;
}
.home-page .site-header:not(.scrolled) .nav-burger span { background: #fff; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  gap: .3rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile-item {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-mobile-item > a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 0;
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-mobile-sub { display: none; padding: 0 0 .5rem .8rem; }
.nav-mobile-sub.open { display: block; }
.nav-mobile-sub a {
  display: block; padding: .5rem 0;
  color: rgba(255,255,255,.7);
  text-decoration: none; font-size: .85rem;
}
.nav-mobile-sub a:hover { color: var(--gold); }
.nav-mobile-cta {
  display: flex; gap: .8rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.nav-mobile-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 1.6rem; line-height: 1;
}

/* ── Sections homepage ── */
.section-qui { background: var(--gray-bg); padding: 4rem 1.5rem; }
.section-actu-video { background: #fff; padding: 4rem 1.5rem; }
.section-cta { background: var(--navy); padding: 3.5rem 1.5rem; text-align: center; }
.container { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: .5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy); font-weight: 700;
  line-height: 1.2; margin-bottom: 1rem;
}
.section-tagline {
  font-style: italic; color: var(--gold);
  font-size: 1rem; margin-bottom: .8rem;
}
.card-dark {
  background: var(--navy); border-radius: 8px; padding: 1.2rem;
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: .8rem;
  transition: background .2s;
}
.card-dark:hover { background: #162245; }
.card-dark .card-icon { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }
.card-dark .card-label { font-size: .8rem; font-weight: 700; color: var(--gold); }
.card-dark .card-sub { font-size: .72rem; color: rgba(255,255,255,.65); margin-top: .15rem; }

/* Actualités */
.actu-une {
  background: var(--navy); border-radius: 8px; padding: 1.5rem;
  color: #fff;
}
.actu-une .badge-une {
  background: var(--gold); color: var(--navy);
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  padding: .2rem .6rem; border-radius: 3px;
  display: inline-block; margin-bottom: .6rem;
}
.actu-une h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: .4rem; }
.actu-une .actu-date { font-size: .72rem; color: rgba(255,255,255,.5); }
.actu-item {
  border-left: 3px solid var(--gold);
  padding: .5rem .8rem;
  background: #f8f9fa;
  border-radius: 0 4px 4px 0;
}
.actu-item h4 { font-size: .85rem; font-weight: 600; color: var(--navy); }
.actu-item .actu-date { font-size: .7rem; color: #888; }
.link-voir-tout {
  color: var(--gold); font-size: .75rem; font-weight: 700;
  text-decoration: none;
}
.link-voir-tout:hover { text-decoration: underline; }

/* Vidéo */
.video-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 8px 32px rgba(13,27,62,.18);
  border: 1px solid rgba(201,168,76,.2);
}
.video-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: none; padding: 0; margin: 0;
  display: block; width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transform: scale(1.04);
  transition: transform .4s, filter .4s;
}
.video-thumb:hover img { transform: scale(1.10); filter: brightness(.82); }
@media (pointer: coarse) {
  /* mobile : pas de zoom initial, active uniquement au tap */
  .video-thumb img { transform: scale(1.0); }
}
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(201,168,76,.92);
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.video-play svg { margin-left: 4px; }
.video-thumb:hover .video-play {
  background: var(--gold);
  transform: translate(-50%,-50%) scale(1.12);
  box-shadow: 0 6px 28px rgba(201,168,76,.5);
}
.video-info {
  padding: .85rem 1rem;
  display: flex; align-items: flex-start; gap: .6rem;
}
.video-info-icon { color: var(--gold); font-size: 1rem; flex-shrink:0; margin-top:.1rem; }
.video-info-title {
  color: rgba(255,255,255,.9);
  font-size: .82rem; font-weight: 600;
  line-height: 1.4;
}
/* Modale vidéo */
.video-modal {
  display: none; position: fixed; inset: 0; z-index: 3000;
  align-items: center; justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(6,21,42,.88); backdrop-filter: blur(6px);
}
.video-modal-box {
  position: relative; z-index: 1;
  width: min(900px, 95vw);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  border: 1px solid rgba(201,168,76,.25);
}
.video-modal-box iframe {
  display: block; width: 100%;
  aspect-ratio: 16/9; border: none;
}
.video-modal-close {
  position: absolute; top: -2.5rem; right: 0;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7); font-size: 1.5rem;
  transition: color .2s;
}
.video-modal-close:hover { color: #fff; }

/* Pages intérieures */
.page-hero-band {
  background: var(--navy);
  padding: 6rem 1.5rem 2.5rem;
  text-align: center;
}
.page-hero-band h1 {
  font-family: 'Playfair Display', serif;
  color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .5rem;
}
.page-hero-band .page-sous-titre { color: var(--gold); font-size: .9rem; }
.page-content {
  max-width: 900px; margin: 3rem auto; padding: 0 1.5rem;
  color: #333; line-height: 1.8; font-size: .95rem;
}
.breadcrumb {
  font-size: .72rem; color: #888;
  max-width: 900px; margin: 1rem auto; padding: 0 1.5rem;
}
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* Footer */
.site-footer {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 2.5rem 1.5rem;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem;
}
.footer-brand img { width: 48px; margin-bottom: .8rem; }
.footer-brand p { font-size: .8rem; line-height: 1.6; }
.footer-brand strong { color: #fff; }
.footer-nav h4, .footer-contact h4 {
  color: var(--gold); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: .8rem;
}
.footer-nav a { display: block; color: rgba(255,255,255,.65); text-decoration: none; font-size: .8rem; margin-bottom: .3rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: rgba(255,255,255,.4);
}
.footer-admin-link {
  color: rgba(255,255,255,.15);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s;
  user-select: none;
}
.footer-admin-link:hover { color: rgba(255,255,255,.5); }
.footer-projetbox {
  text-align: center;
  padding: .5rem 1rem .8rem;
  font-size: .7rem;
  color: rgba(255,255,255,.28);
}
.footer-projetbox a {
  color: rgba(201,168,76,.45);
  text-decoration: none;
  transition: color .2s;
}
.footer-projetbox a:hover { color: var(--gold); }

/* Admin */
.admin-body { background: #f0f2f5; font-family: Inter, sans-serif; }
.admin-sidebar {
  width: 240px; background: var(--navy); height: 100vh;
  position: fixed; top: 0; left: 0;
  padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.admin-content { margin-left: 240px; padding: 2rem; min-height: 100vh; }
.admin-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1.4rem;
  color: rgba(255,255,255,.7); text-decoration: none; font-size: .82rem;
  transition: color .15s, background .15s;
}
.admin-nav a:hover, .admin-nav a.active { color: var(--gold); background: rgba(201,168,76,.1); }
.admin-card {
  background: #fff; border-radius: 10px;
  padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th { background: var(--navy); color: #fff; padding: .6rem .8rem; text-align: left; font-size: .72rem; }
.admin-table td { padding: .6rem .8rem; border-bottom: 1px solid #e9ecef; }
.admin-table tr:hover td { background: #f8f9fa; }
.btn-admin { padding: .35rem .8rem; border-radius: 4px; font-size: .75rem; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }

/* Responsive */
@media (max-width: 900px) {
  .hero-left-badge, .hero-right-badge { display: none; }
  .hero-center .rdh-big { font-size: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none !important; }
  .nav-burger { display: flex; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-content { margin-left: 0; }

  /* Hero mobile : image dédiée, ratio portrait */
  .hero-section {
    aspect-ratio: 866 / 1817;
    background-image: url('../images/hero-rdh-mobile.webp?v=4');
    background-position: center top;
    background-size: cover;
    margin-top: 0.6cm;
  }
}

.values-marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: -1px;
  background: #06152a;
  border-top: 1px solid rgba(201,168,76,.55);
  border-bottom: 2px solid rgba(201,168,76,.72);
  padding: 1rem 0;
}
.values-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: valuesMarquee 36s linear infinite;
  will-change: transform;
}
/* bandeau toujours en mouvement */
.vm-item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 0 2.2rem;
  white-space: nowrap;
}
.vm-icon {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1;
}
.vm-text {
  font-size: clamp(.75rem, 1.1vw, .95rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.vm-sep {
  color: var(--gold);
  font-size: .65rem;
  opacity: .75;
  margin-left: .8rem;
}
@keyframes valuesMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .values-marquee-track { animation: none; }
}
