:root {
  --navy-950: #031a39;
  --navy-900: #05234b;
  --navy-800: #0a356d;
  --gold: #c79438;
  --gold-light: #e6bd6e;
  --ice: #eef7ff;
  --ink: #10233d;
  --muted: #66768b;
  --white: #fff;
  --shadow: 0 16px 40px rgba(7, 35, 75, 0.14);
  --radius: 20px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 30;
  inset: 0 0 auto;
  color: #fff;
}

.header-shell {
  position: relative;
}

.header-nav-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  padding: 6px 0 4px 140px;
}

.brand {
  position: absolute;
  z-index: 20;
  left: 0;
  top: 4px;
}

.brand img {
  max-height: 168px;
  padding-top: 15px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

.main-navigation {
  display: flex;
  gap: 26px;
  align-items: center;
}

.navigation-branch {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 32px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.submenu-toggle span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s ease;
}

.navigation-submenu {
  position: absolute;
  z-index: 40;
  top: calc(100% - 2px);
  left: 0;
  display: none;
  min-width: 230px;
  padding: .55rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: var(--navy-950);
  box-shadow: 0 18px 44px rgba(3,26,57,.24);
}

.navigation-submenu a {
  display: block;
  padding: .7rem .8rem;
  border-radius: 7px;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
}

.navigation-submenu a:hover,
.navigation-submenu a:focus-visible {
  background: rgba(255,255,255,.1);
}

.navigation-branch:hover .navigation-submenu,
.navigation-branch:focus-within .navigation-submenu,
.navigation-branch.submenu-open .navigation-submenu {
  display: block;
}

.navigation-branch.submenu-open .submenu-toggle span,
.submenu-toggle[aria-expanded="true"] span {
  transform: translateY(-1px) rotate(180deg);
}

.main-navigation a {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  position: relative;
}

.main-navigation a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--gold);
  transition: 0.25s;
}

.main-navigation a:hover:after,
.main-navigation a.active:after,
.navigation-branch.active > a:after {
  right: 0;
}

.mobile-registration-link {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 8px;
  padding: 8px 11px;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle-icon { font-size: 1.1rem; line-height: 1; }

.menu-toggle:focus-visible,
.main-navigation a:focus-visible,
.submenu-toggle:focus-visible,
.header-cta:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 14px 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 28px rgba(199, 148, 56, 0.25);
}

.btn-outline {
  border: 1px solid var(--gold);
  color: #fff;
  background: transparent;
}

.hero {
  height: 800px;
  min-height: 800px;
  background: radial-gradient(
    circle at 30% 35%,
    #0b427d 0,
    #052652 35%,
    #031a39 72%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 205px 0 185px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 4;
}

.hero-copy {
  max-width: 520px;
}

.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.hero h1 {
  font:
    700 clamp(3.2rem, 6vw, 6.2rem)/0.95 Georgia,
    serif;
  margin: 18px 0 24px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 1.08rem;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 30px;
}

.hero-media {
  position: absolute;
  right: 0;
  top: 82px;
  bottom: 0;
  width: 55%;
  clip-path: ellipse(76% 96% at 78% 48%);
  overflow: hidden;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-x, 50%) var(--hero-y, 29%);
  transform: scale(var(--hero-zoom, 1)) scaleX(var(--hero-flip-y, 1));
  transform-origin: var(--hero-x, 50%) var(--hero-y, 29%);
}

.hero-transition {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 145px;
  background: #fff;
  clip-path: polygon(0 78%, 100% 18%, 100% 100%, 0 100%);
  z-index: 6;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Traces fixes des lames. Le SVG ne se déplace et ne tourne jamais. */
.blade-traces {
  position: absolute;
  width: 540px;
  height: 980px;
  left: 39%;
  top: -185px;
  overflow: visible;
  transform: rotate(24deg);
  transform-origin: center;
}

.blade-trace {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.blade-trace-base {
  stroke: rgba(199, 148, 56, 0.38);
  stroke-width: 1.5;
}

.blade-trace-two.blade-trace-base {
  opacity: 0.72;
}

/* Le trait doré est dessiné par-dessus la trace fixe avec stroke-dashoffset. */
.blade-trace-gold {
  --trace-length: 2450;
  stroke: rgba(239, 207, 137, 0.96);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 2450;
  stroke-dashoffset: 2450;
  animation: blade-trace-draw 18s ease-in-out infinite;
}

.blade-trace-two.blade-trace-gold {
  --trace-length: 2240;
  stroke-dasharray: 2240;
  stroke-dashoffset: 2240;
  animation-duration: 18s;
  animation-delay: 0s;
  opacity: 0.86;
}

.star {
  position: absolute;
  z-index: 1;
  color: var(--gold-light);
  line-height: 1;
  opacity: 0.62;
  text-shadow: 0 0 12px rgba(231, 199, 130, 0.24);
  transform: rotate(var(--star-rotation, 0deg)) scale(0.92);
  transform-origin: center;
  /* Les étoiles sont statiques par défaut pour limiter le coût graphique. */
  animation: none;
}

/* Seulement quatre étoiles scintillent lentement. Aucun filtre animé ni
   synchronisation individuelle avec le tracé : l'effet reste léger, même
   sur Firefox et les appareils moins puissants. */
.star.s2,
.star.s4,
.star.s6,
.star.s11 {
  animation: hero-star-twinkle-light var(--twinkle-duration, 18s) linear infinite;
  animation-delay: var(--twinkle-delay, 0s);
  will-change: opacity, transform;
}


/* Éclats supplémentaires : deux trajectoires parallèles qui prolongent
   les traces de lames jusque sous le menu, sans masquer le trait doré. */
.s8 {
  left: 45.2%;
  top: 7%;
  font-size: 0.62rem;
  --star-rotation: -14deg;
  --twinkle-duration: 7.6s;
  --twinkle-delay: -3.2s;
}

.s9 {
  left: 41.7%;
  top: 10.5%;
  font-size: 1.08rem;
  --star-rotation: 9deg;
  --twinkle-duration: 6.3s;
  --twinkle-delay: -1.4s;
}

.s10 {
  left: 44.4%;
  top: 14.5%;
  font-size: 0.72rem;
  --star-rotation: -5deg;
  --twinkle-duration: 8.1s;
  --twinkle-delay: -5.5s;
}

.s11 {
  left: 40.7%;
  top: 18%;
  font-size: 1.32rem;
  --star-rotation: 16deg;
  --twinkle-duration: 24s;
  --twinkle-delay: -17.1s;
}

.s12 {
  left: 43.4%;
  top: 21.5%;
  font-size: 0.58rem;
  --star-rotation: -17deg;
  --twinkle-duration: 7.2s;
  --twinkle-delay: -0.9s;
}

.s13 {
  left: 40%;
  top: 24.5%;
  font-size: 0.86rem;
  --star-rotation: 4deg;
  --twinkle-duration: 6.8s;
  --twinkle-delay: -4.6s;
}

/* Éclats répartis le long des deux trajectoires abaissées vers le hero-transition. */
.s1 {
  left: 39.5%;
  top: 26%;
  font-size: 0.75rem;
  --star-rotation: -12deg;
  --twinkle-duration: 6.4s;
  --twinkle-delay: -1.8s;
}

.s2 {
  left: 42.2%;
  top: 35%;
  font-size: 1.5rem;
  --star-rotation: 8deg;
  --twinkle-duration: 14s;
  --twinkle-delay: -3.2s;
}

.s3 {
  left: 39.8%;
  top: 46%;
  font-size: 0.95rem;
  --star-rotation: -8deg;
  --twinkle-duration: 7.1s;
  --twinkle-delay: -2.6s;
}

.s4 {
  left: 43.5%;
  top: 56%;
  font-size: 1.2rem;
  --star-rotation: 15deg;
  --twinkle-duration: 17s;
  --twinkle-delay: -8.4s;
}

.s5 {
  left: 40.8%;
  top: 66%;
  font-size: 0.7rem;
  --star-rotation: -18deg;
  --twinkle-duration: 6.8s;
  --twinkle-delay: -5.2s;
}

.s6 {
  left: 43.7%;
  top: 82%;
  font-size: 1.45rem;
  --star-rotation: 5deg;
  --twinkle-duration: 20s;
  --twinkle-delay: -12.6s;
}

.s7 {
  left: 40.7%;
  top: 75%;
  font-size: 0.85rem;
  --star-rotation: -5deg;
  --twinkle-duration: 7.4s;
  --twinkle-delay: -1.1s;
}

@keyframes blade-trace-draw {
  0%, 8% {
    stroke-dashoffset: var(--trace-length, 2450);
    opacity: 0;
  }
  14% {
    opacity: 0.95;
  }
  68% {
    stroke-dashoffset: 0;
    opacity: 0.95;
  }
  86%, 100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes hero-star-twinkle-light {
  0%,
  47%,
  53%,
  100% {
    opacity: 0.62;
    transform: rotate(var(--star-rotation, 0deg)) scale(0.92);
  }
  50% {
    opacity: 0.94;
    transform: rotate(var(--star-rotation, 0deg)) scale(1.04);
  }
}

.features-wrap {
  margin-top: -28px;
  position: relative;
  z-index: 10;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 18px 0 42px;
}

.feature {
  padding: 10px 28px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
  border-right: 1px solid #e6edf5;
}

.feature:last-child {
  border-right: 0;
}

.feature-icon {
  font-size: 2rem;
}

.feature h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--navy-900);
}

.feature p {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
}

.section,
.page-main {
  padding: 95px 0;
}

.page-main {
  padding-top: 150px;
  min-height: 70vh;
}

.section-kicker {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.section-title {
  font:
    700 clamp(2.3rem, 4vw, 4rem)/1.05 Georgia,
    serif;
  margin: 12px 0 22px;
  color: var(--navy-900);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
}

.about-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
}

.programs {
  background: linear-gradient(180deg, #f7fbff, #fff);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}

.program-card {
  background: #fff;
  border: 1px solid #e5edf6;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(4, 31, 67, 0.07);
}

.program-card .icon {
  font-size: 2.3rem;
}

.program-card h2,
.program-card h3 {
  font:
    700 1.45rem Georgia,
    serif;
  color: var(--navy-900);
}

.events {
  background: var(--navy-950);
  color: #fff;
}

.events .section-title {
  color: #fff;
}

.events-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 70px;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: 14px;
}

.event-date {
  background: #fff;
  color: var(--navy-900);
  border-radius: 10px;
  text-align: center;
  padding: 8px;
}

.event-date strong {
  font:
    700 1.8rem Georgia,
    serif;
  display: block;
}

.event-date span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--gold);
}

.event-item h3 {
  margin: 0;
}

.event-item p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.event-empty {
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.news-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5edf6;
  background: #fff;
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card-content {
  padding: 24px;
}

.news-card h2,
.news-card h3 {
  font:
    700 1.35rem Georgia,
    serif;
  margin: 8px 0;
  color: var(--navy-900);
}

.news-card time,
.listing-card time {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}

.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #edf7ff, #fff7e8);
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.listing {
  display: grid;
  gap: 24px;
}

.listing-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  padding: 20px;
  border: 1px solid #e5edf6;
  border-radius: 18px;
}

.listing-card img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.prose {
  max-width: 850px;
}

.prose .cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  margin: 25px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-form {
  display: grid;
  gap: 18px;
  background: #f7fbff;
  padding: 30px;
  border-radius: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
}

.contact-turnstile {
  min-height: 65px;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.contact-turnstile .cf-turnstile {
  width: 100%;
}

.contact-antispam-note {
  margin: -10px 0 0;
  color: #66788d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-antispam-note a {
  color: var(--navy-800);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .contact-form {
    padding: 18px;
  }
}

.success {
  padding: 12px;
  background: #e6f7ed;
  color: #176a3a;
  border-radius: 8px;
}

.site-footer {
  background: #02152e;
  color: #fff;
  padding: 60px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  max-height: 120px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer h4 {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 40px;
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 981px) {
  .main-navigation .mobile-registration-link {
    display: none;
  }
}

@media (max-width: 980px) {
  .brand {
    z-index: 2;
  }
  .header-nav-row {
    padding-left: 170px;
  }
  .brand img {
    max-height: 138px;
    padding-top: 15px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .main-navigation {
    position: absolute;
    z-index: 10;
    left: 20px;
    right: 20px;
    top: 82px;
    background: var(--navy-950);
    border-radius: 14px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    max-height: calc(100vh - 102px);
    max-height: calc(100dvh - 102px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .navigation-branch {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
  }
  .navigation-branch > a { min-width: 0; }
  .submenu-toggle {
    width: 44px;
    height: 42px;
  }
  .navigation-submenu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: .15rem 0 .4rem;
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
  }
  .navigation-branch:hover:not(.submenu-open) .navigation-submenu {
    display: none;
  }
  .navigation-branch:focus-within:not(.submenu-open) .navigation-submenu {
    display: none;
  }
  .main-navigation.is-open {
    display: flex;
  }
  body.mobile-menu-open { overflow: hidden; }
  .mobile-registration-link {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    color: var(--navy-950);
  }
  .mobile-registration-link::after {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 745px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-media {
    right: -10%;
    top: 76px;
    width: 80%;
    opacity: 0.5;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .events-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }
  .header-nav-row {
    padding-left: 128px;
    min-height: 62px;
  }
  .brand img {
    max-height: 121px;
    padding-top: 15px;
    max-width: 122px;
  }
  .hero {
    min-height: 690px;
    padding: 185px 0 150px;
  }
  .hero h1 {
    font-size: 3.4rem;
  }
  .hero-media {
    right: -38%;
    top: 66px;
    width: 112%;
  }
  .hero-transition {
    height: 90px;
    clip-path: polygon(0 82%, 100% 36%, 100% 100%, 0 100%);
  }
  .features,
  .card-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .feature {
    border-right: 0;
    border-bottom: 1px solid #e6edf5;
  }
  .section,
  .page-main {
    padding: 70px 0;
  }
  .page-main {
    padding-top: 125px;
  }
  .cta-box,
  .footer-grid,
  .listing-card {
    grid-template-columns: 1fr;
  }
  .listing-card img {
    width: 100%;
  }
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.preview-banner {
  margin: 0 0 28px;
  padding: 13px 16px;
  border: 1px solid #e5bd69;
  background: #fff8e8;
  color: #745016;
  border-radius: 9px;
  font-weight: 750;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0 0 24px;
  color: var(--muted);
}

.event-detail-meta time {
  color: var(--gold);
  font-weight: 800;
}

.listing-card h2 a:hover,
.event-item h3 a:hover {
  color: var(--gold);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.album-card {
  border: 1px solid #e5edf6;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.25s;
}

.album-card:hover {
  transform: translateY(-5px);
}

.album-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.album-card div {
  padding: 24px;
}

.album-card h2 {
  font:
    700 1.55rem Georgia,
    serif;
  color: var(--navy-900);
  margin: 0 0 8px;
}

.album-card p {
  color: var(--muted);
  margin: 0;
}

.gallery-index-heading {
  max-width: 820px;
}

.gallery-index-heading > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.gallery-filter-panel {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #dfe8f2;
  border-radius: 20px;
  background: #f7fafc;
  box-shadow: 0 16px 36px rgba(3, 26, 57, 0.06);
}

.gallery-filter-grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(4, minmax(130px, 0.75fr));
  gap: 14px;
  align-items: end;
}

.gallery-filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-filter-grid input,
.gallery-filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  font: inherit;
  font-weight: 500;
}

.gallery-filter-grid input:focus,
.gallery-filter-grid select:focus {
  outline: 3px solid rgba(202, 153, 65, 0.22);
  border-color: var(--gold);
}

.gallery-filter-actions,
.gallery-results-bar,
.gallery-year-jumps,
.gallery-year-heading {
  display: flex;
  align-items: center;
}

.gallery-filter-actions {
  gap: 18px;
  margin-top: 18px;
}

.gallery-results-bar {
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.gallery-results-bar p {
  margin: 0;
  color: var(--muted);
}

.gallery-year-jumps {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gallery-year-jumps a {
  padding: 6px 11px;
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  color: var(--navy-900);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.gallery-year-jumps a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.gallery-album-date,
.album-date,
.gallery-timeline-copy time {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-album-date {
  margin: -10px 0 22px;
}

.album-date {
  margin-bottom: 8px;
}

.gallery-album-count {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 800;
}

.gallery-cover-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: linear-gradient(135deg, #edf5fb, #dbe9f5);
  color: var(--gold);
  font-size: 2rem;
}

.gallery-empty-state {
  margin-top: 34px;
  padding: 58px 24px;
  border: 1px dashed #cbd8e6;
  border-radius: 20px;
  background: #f8fafc;
  text-align: center;
}

.gallery-empty-state h2 {
  margin-top: 0;
  color: var(--navy-900);
  font-family: Georgia, serif;
}

.gallery-empty-state p {
  color: var(--muted);
}

.gallery-timeline {
  display: grid;
  gap: 52px;
  margin-top: 28px;
}

.gallery-year-group {
  scroll-margin-top: 24px;
}

.gallery-year-heading {
  gap: 14px;
  margin-bottom: 18px;
  align-items: baseline;
}

.gallery-year-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font: 700 2rem Georgia, serif;
}

.gallery-year-heading span {
  color: var(--muted);
  font-size: 0.88rem;
}

.gallery-year-items {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 42px;
}

.gallery-year-items::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: linear-gradient(var(--gold), #dce7f1);
}

.gallery-timeline-item {
  position: relative;
}

.gallery-timeline-item::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -37px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.gallery-timeline-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  overflow: hidden;
  border: 1px solid #e2eaf2;
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(3, 26, 57, 0.14);
}

.gallery-timeline-media {
  min-width: 0;
  background: #eaf2f8;
}

.gallery-timeline-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-timeline-media .photo-credit {
  padding: 0 14px 10px;
}

.gallery-timeline-copy {
  padding: 28px;
}

.gallery-timeline-copy h3 {
  margin: 8px 0 10px;
  color: var(--navy-900);
  font: 700 1.55rem Georgia, serif;
}

.gallery-timeline-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.gallery-year-group.is-undated .gallery-year-items {
  padding-left: 0;
}

.gallery-year-group.is-undated .gallery-year-items::before,
.gallery-year-group.is-undated .gallery-timeline-item::before {
  display: none;
}

.gallery-filtered-grid .gallery-cover-placeholder {
  min-height: 280px;
}

.gallery-album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid #dfe8f1;
  border-radius: 14px;
  background: #f7fafc;
}

.gallery-album-toolbar p {
  margin: 0;
  color: var(--muted);
}

.gallery-share-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-share-actions a,
.gallery-share-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #cbd8e6;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.gallery-share-actions a:hover,
.gallery-share-button:hover {
  border-color: var(--gold);
  color: #77571d;
}

.gallery-pagination {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.gallery-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #d6e1eb;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
}

.gallery-pagination a:hover,
.gallery-pagination a.is-current {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.gallery-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.gallery-pagination-edge:last-child {
  justify-self: end;
}

.gallery-pagination-pages {
  display: flex;
  align-items: center;
  gap: 7px;
}

.public-gallery-grid {
  display: grid;
  gap: 6px;
  margin-top: 40px;
  padding: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.public-gallery-row {
  display: grid;
  gap: 6px;
}

.public-gallery-row.is-standard-layout {
  grid-template-columns: repeat(var(--gallery-count, 4), minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 20vw, 260px);
}

.public-gallery-row.is-featured-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(180px, 20vw, 260px));
}

.public-gallery-grid figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 25px;
}

.public-gallery-row.is-featured-layout figure.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.public-gallery-row.has-3-companions .gallery-companion:last-child,
.public-gallery-row.has-2-companions .gallery-companion,
.public-gallery-row.has-1-companions .gallery-companion {
  grid-column: span 2;
}

.public-gallery-row.has-1-companions .gallery-companion {
  grid-row: span 2;
}

.public-gallery-row.has-0-companions figure.is-featured {
  grid-column: span 4;
}

.public-gallery-grid a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.public-gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
  border-radius: 25px;
  background-color: transparent;
  overflow: hidden;
}

.public-gallery-grid a:hover img,
.public-gallery-grid a:focus-visible img {
  transform: scale(1.018);
}

.public-gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  max-height: 72%;
  padding: 38px 14px 11px;
  overflow: hidden;
  background: linear-gradient(transparent, rgba(3, 26, 57, 0.9));
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
}

.public-gallery-grid figcaption > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  width: min(96vw, 1420px);
  max-width: none;
  height: min(94vh, 980px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #031a39;
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.gallery-lightbox::backdrop {
  background: rgba(2, 13, 30, 0.88);
  backdrop-filter: blur(5px);
}

.gallery-lightbox > figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.gallery-lightbox-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  place-items: center;
  padding: 24px 76px;
}

.gallery-lightbox-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.gallery-lightbox figcaption {
  display: grid;
  gap: 5px;
  max-height: min(34vh, 280px);
  max-height: min(34dvh, 280px);
  overflow-y: auto;
  padding: 14px 22px;
  background: #fff;
  color: var(--navy-900);
}

.gallery-lightbox figcaption > span,
.gallery-lightbox figcaption > small {
  color: var(--muted);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  appearance: none;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(3, 26, 57, 0.28);
  color: var(--navy-900);
  cursor: pointer;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-lightbox-close span,
.gallery-lightbox-nav span {
  display: block;
  filter: drop-shadow(0 1px 1px rgba(3, 26, 57, 0.18));
}

.gallery-lightbox-close {
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  font-size: 1.45rem;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 58px;
  height: 66px;
  transform: translateY(-50%);
  font-size: 1.8rem;
}

.gallery-lightbox-nav.is-previous {
  left: 14px;
}

.gallery-lightbox-nav.is-next {
  right: 14px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:not(:disabled):hover {
  background: #fff;
  box-shadow: 0 14px 34px rgba(3, 26, 57, 0.36);
}

.gallery-lightbox-close:hover {
  transform: scale(1.07);
}

.gallery-lightbox-nav:not(:disabled):hover {
  transform: translateY(-50%) scale(1.07);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-lightbox-nav:disabled {
  cursor: default;
  filter: grayscale(1);
  opacity: 0.34;
}

.gallery-lightbox-share {
  margin-top: 7px;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.coach-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e5edf6;
  background: #fff;
}

.coach-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.coach-card > div {
  padding: 25px;
}

.coach-card .coach-role {
  display: block;
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}

.coach-card h2 {
  font:
    700 1.55rem Georgia,
    serif;
  color: var(--navy-900);
  margin: 0 0 6px;
}

.structured-public-section {
  margin-top: var(--structured-margin-top, 0);
  margin-bottom: var(--structured-margin-bottom, 0);
  padding: var(--structured-padding-top, 80px) 0 var(--structured-padding-bottom, 80px);
}

/* Le fond d’une section structurée dépend uniquement du style choisi. */
.structured-public-section:nth-child(even) {
  background: transparent;
}

.structured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.structured-grid.left .structured-media {
  order: -1;
}

.structured-grid.right .structured-copy {
  order: -1;
}

.type-image_text .structured-grid.left.image-size-compact {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.type-image_text .structured-grid.right.image-size-compact {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
}

.type-image_text .structured-grid.left.image-size-large {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.type-image_text .structured-grid.right.image-size-large {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.structured-media img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.type-image_text .image-size-compact .structured-media img {
  height: 320px;
}

.type-image_text .image-size-large .structured-media img {
  height: 520px;
}

.structured-copy .btn {
  margin-top: 22px;
}

/* Le type décrit la structure; le thème choisi contrôle le fond. */
.type-highlight {
  color: inherit;
}

.type-highlight .section-title {
  color: inherit;
}

.type-cta .structured-grid {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 800px;
}

.page-intro {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 800px;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .album-grid,
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .structured-grid {
    grid-template-columns: 1fr;
  }
  .type-image_text .structured-grid {
    grid-template-columns: 1fr !important;
  }
  .structured-grid .structured-media {
    order: -1 !important;
  }
  .type-image_text .structured-media img {
    height: min(70vw, 420px) !important;
  }
}

@media (max-width: 600px) {
  .album-grid,
  .coach-grid {
    grid-template-columns: 1fr;
  }
  .public-gallery-grid {
    gap: 4px;
    padding: 4px;
  }
  .public-gallery-row {
    gap: 4px;
  }
  .public-gallery-row.is-standard-layout,
  .public-gallery-row.is-featured-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 42vw, 200px);
    grid-template-rows: none;
  }
  .public-gallery-row.is-standard-layout.has-1-photos {
    grid-template-columns: 1fr;
  }
  .public-gallery-row.is-standard-layout.has-3-photos figure:last-child {
    grid-column: 1 / -1;
  }
  .public-gallery-row.is-featured-layout figure.is-featured,
  .public-gallery-row.has-0-companions figure.is-featured {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
  .public-gallery-row.has-2-companions .gallery-companion {
    grid-column: span 1;
  }
  .public-gallery-row.has-1-companions .gallery-companion {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
  .gallery-album-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-pagination {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-pagination-pages {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
  }
  .gallery-pagination-edge {
    grid-row: 2;
  }
  .gallery-lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .gallery-lightbox-stage {
    padding: 58px 12px 12px;
  }
  .gallery-lightbox-nav {
    top: 50%;
    bottom: auto;
    width: 52px;
    height: 56px;
    transform: translateY(-50%);
  }
  .gallery-lightbox-nav:not(:disabled):hover {
    transform: translateY(-50%) scale(1.06);
  }
  .gallery-lightbox figcaption {
    max-height: 44vh;
    max-height: 44dvh;
    padding: 12px 14px;
  }
  .coach-card img {
    height: 320px;
  }
  .gallery-filter-panel {
    padding: 18px;
  }
  .gallery-filter-grid {
    grid-template-columns: 1fr;
  }
  .gallery-filter-actions,
  .gallery-results-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-timeline-card {
    grid-template-columns: 1fr;
  }
  .gallery-timeline-media img {
    height: 240px;
  }
  .gallery-year-items {
    padding-left: 30px;
  }
  .gallery-year-items::before {
    left: 7px;
  }
  .gallery-timeline-item::before {
    left: -28px;
  }
  .gallery-timeline-copy {
    padding: 22px;
  }
}

/* Header lisible sur les pages internes */

body.is-inner .site-header {
  position: relative;
  background: #fff;
  color: var(--navy-900);
  border-bottom: 1px solid #e6edf5;
  box-shadow: 0 8px 26px rgba(3, 26, 57, 0.06);
}

body.is-inner .brand img {
  filter: none;
}

body.is-inner .main-navigation a {
  color: var(--navy-900);
}

body.is-inner .navigation-submenu {
  border-color: #dbe5ef;
  background: #fff;
}

body.is-inner .navigation-submenu a {
  color: var(--navy-900);
}

body.is-inner .navigation-submenu a:hover,
body.is-inner .navigation-submenu a:focus-visible {
  background: #edf3f8;
}

body.is-inner .menu-toggle {
  color: var(--navy-900);
  border-color: #cbd8e6;
}

body.is-inner .page-main {
  padding-top: 120px;
}

.error-page-card {
  max-width: 760px;
  text-align: center;
  padding: 56px 24px;
}

.error-page-card .btn { margin-top: 18px; }

@media (max-width: 980px) {
  body.is-inner .main-navigation {
    background: #fff;
    border: 1px solid #e1e9f2;
    box-shadow: var(--shadow);
  }
  body.is-inner .main-navigation a {
    color: var(--navy-900);
  }
}

/* Rendu sécurisé du texte riche */

.rich-text {
  line-height: 1.75;
}

.rich-text p {
  margin: 0 0 1em;
}

.rich-text h2,
.rich-text h3 {
  font-family: Georgia, serif;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 1.3em 0 0.55em;
}

.rich-text h2 {
  font-size: 1.8rem;
}

.rich-text h3 {
  font-size: 1.4rem;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}

.rich-text blockquote {
  margin: 1.25em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--gold);
  background: #f7fbff;
  color: var(--muted);
}

.rich-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-rich-text {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  margin: 0 0 30px;
}

.hero-rich-text p:last-child,
.cta .rich-text p:last-child,
.site-footer .rich-text p:last-child {
  margin-bottom: 0;
}

.hero .rich-text h2,
.hero .rich-text h3,
.site-footer .rich-text h2,
.site-footer .rich-text h3 {
  color: inherit;
}

/* Logo variants: white treatment on home, blue original on internal pages. */

.is-inner .brand img {
  filter: none;
}

.footer-logo {
  width: 96px !important;
  height: 96px !important;
  aspect-ratio: 1/1;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

/* Hero : le fondu vertical s'applique uniquement à la photo;
   la position et la courbe gauche restent contrôlées par .hero-media. */

.hero-media img {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.42) 3.5%,
    #000 10%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.42) 3.5%,
    #000 10%,
    #000 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@media (max-width: 980px) {
  .hero-media img {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.55) 2.5%,
      #000 8%,
      #000 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.55) 2.5%,
      #000 8%,
      #000 100%
    );
  }
}

/* Partenaires */

.partners-section {
  background: linear-gradient(180deg, #fff 0, #f7fbff 100%);
  border-top: 1px solid #edf2f7;
}

.partners-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 50px;
  align-items: end;
  margin-bottom: 52px;
}

.partners-heading p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.02rem;
}

.partner-groups {
  display: grid;
  gap: 48px;
}

.partner-group {
  display: grid;
  gap: 24px;
}

.partner-group-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.partner-group-title span {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d9c18f);
}

.partner-group-title span:last-child {
  background: linear-gradient(90deg, #d9c18f, transparent);
}

.partner-group-title h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.partner-logo-card {
  min-height: 150px;
  padding: 26px;
  border: 1px solid #e4ebf3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(7, 35, 75, 0.06);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.partner-logo-card img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.76;
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

a.partner-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 148, 56, 0.6);
  box-shadow: 0 16px 36px rgba(7, 35, 75, 0.11);
}

a.partner-logo-card:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.03);
}

@media (max-width: 980px) {
  .partner-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .partners-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }
  .partner-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .partner-logo-grid {
    grid-template-columns: 1fr;
  }
  .partner-logo-card {
    min-height: 130px;
  }
}

/* Fiches détaillées des programmes */
.section-lead {
  max-width: 760px;
  color: #60758d;
  font-size: 1.08rem;
  line-height: 1.75;
}
.program-index-grid {
  display: grid;
  gap: 34px;
  margin-top: 46px;
}
.program-index-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  background: #fff;
  border: 1px solid #e4ecf4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(4, 31, 67, 0.08);
}
.program-index-image {
  min-height: 330px;
}
.program-index-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.program-index-copy {
  padding: 42px;
}
.program-index-copy h2 {
  font:
    700 clamp(1.7rem, 3vw, 2.35rem) Georgia,
    serif;
  margin: 8px 0 10px;
}
.program-index-copy h2 a {
  color: var(--navy-900);
}
.program-level {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
}
.program-subtitle {
  font-size: 1.08rem;
  color: #526a83;
}
.program-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0;
  color: #526a83;
  font-weight: 700;
}
.program-detail {
  background: #fff;
}
.program-hero {
  padding: 90px 0 70px;
  background: linear-gradient(180deg, #f5f9fd, #fff);
}
.program-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 70px;
  align-items: center;
}
.program-hero h1 {
  font:
    700 clamp(2.7rem, 6vw, 5.4rem) Georgia,
    serif;
  color: var(--navy-950);
  line-height: 1.03;
  margin: 12px 0 20px;
}
.program-hero-subtitle {
  font-size: 1.3rem;
  color: #526a83;
}
.program-summary {
  font-size: 1.08rem;
}
.program-hero-image {
  position: relative;
  display: inline-block;
  padding: 14px;
  margin: 10px 0;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(2deg);
  transform-origin: center;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.1),
    0 26px 60px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Deuxième photo derrière pour donner de la profondeur */
.program-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f7f7f7;
  border-radius: 4px;
  transform: rotate(-3deg) translate(-12px, 10px);
  z-index: -1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.program-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.program-hero-image:hover {
  transform: rotate(0.8deg) translateY(-6px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.12),
    0 36px 80px rgba(0, 0, 0, 0.2);
}

.program-hero-image:hover::before {
  transform: rotate(-4deg) translate(-15px, 12px);
}

@media (max-width: 900px) {
  .program-hero-image,
  .program-hero-image:hover {
    transform: none;
  }
  .program-hero-image::before {
    display: none;
  }
  .program-hero-image {
    padding: 10px;
  }
}
.program-body {
  padding: 80px 0;
}
.program-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 70px;
  align-items: start;
}
.program-section + .program-section {
  margin-top: 65px;
}
.program-section h2,
.program-facts h2 {
  font:
    700 2.15rem Georgia,
    serif;
  color: var(--navy-900);
}
.program-learning {
  padding: 38px;
  border-radius: 22px;
  background: #f5f9fd;
}
.program-facts {
  position: sticky;
  top: 110px;
  padding: 30px;
  border: 1px solid #dde7f1;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(4, 31, 67, 0.07);
}
.program-facts > div {
  display: grid;
  gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid #e7edf3;
}
.program-facts span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a8da1;
}
.program-facts strong {
  color: var(--navy-900);
}
.program-facts .btn {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}
.program-coaches,
.program-gallery,
.program-documents {
  padding: 78px 0;
}
.program-coaches {
  background: var(--navy-950);
  color: #fff;
}
.program-coaches .section-title {
  color: #fff;
}
.program-coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 38px;
}
.program-coach-grid article {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  border-radius: 18px;
}
.program-coach-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
}
.program-coach-grid h3 {
  font:
    700 1.3rem Georgia,
    serif;
  margin-bottom: 4px;
}
.program-gallery {
  background: #f5f9fd;
}
.program-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.program-gallery-grid img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 16px;
}
.document-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 35px;
}
.document-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #dce6ef;
  border-radius: 14px;
  color: var(--navy-900);
  font-weight: 800;
  background: #fff;
}
.document-list a:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .program-index-card,
  .program-hero-grid,
  .program-content-grid {
    grid-template-columns: 1fr;
  }
  .program-index-image {
    min-height: 250px;
  }
  .program-hero {
    padding-top: 55px;
  }
  .program-hero-image {
    order: -1;
    padding: 0;
  }
  .program-hero-image img {
    aspect-ratio: 4/3;
    border-radius: 32% 68% 42% 58% / 24% 30% 70% 76%;
    transform: none;
  }
  .program-hero-image img:hover {
    transform: none;
  }
  .program-facts {
    position: static;
  }
  .program-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .program-index-copy {
    padding: 28px;
  }
  .program-gallery-grid,
  .document-list {
    grid-template-columns: 1fr;
  }
  .program-gallery-grid img {
    height: 250px;
  }
  .program-learning {
    padding: 25px;
  }
}

/* Inscriptions */
.registration-section {
  padding: 70px 0 100px;
}
.registration-shell {
  max-width: 980px;
}
.registration-form,
.registration-notice,
.registration-confirmation {
  background: #fff;
  border: 1px solid #dfe8f1;
  border-radius: 24px;
  padding: clamp(25px, 5vw, 52px);
  box-shadow: 0 20px 55px rgba(4, 31, 67, 0.08);
}
.form-section + .form-section {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid #e4ebf2;
}
.form-section h2,
.registration-notice h2,
.registration-confirmation h2 {
  font:
    700 1.8rem Georgia,
    serif;
  color: var(--navy-900);
  margin-top: 0;
}
.public-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.public-form-grid .full {
  grid-column: 1/-1;
}
.registration-form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
  color: var(--navy-900);
}
.registration-form input,
.registration-form select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbd8e5;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: #18324f;
}
.session-choice-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 20px;
}
.session-card,
.public-check {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #d9e3ed;
  border-radius: 12px;
  background: #f9fbfd;
  cursor: pointer;
}
.session-card input,
.public-check input,
.radio-row input {
  width: auto;
  margin-top: 3px;
}
.session-card span {
  display: grid;
  gap: 3px;
}
.session-card small {
  color: #60758d;
}
.session-card:has(input:checked),
.public-check:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(199, 148, 56, 0.18);
}
.registration-price {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--navy-950);
  color: #fff;
  font-weight: 850;
  font-size: 1.15rem;
}
.consent-check {
  line-height: 1.55;
}
.registration-form fieldset {
  border: 0;
  padding: 0;
  margin: 28px 0 0;
}
.registration-form legend {
  font-weight: 850;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.radio-row label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}
.public-alert {
  margin-bottom: 25px;
  padding: 15px;
  border-radius: 10px;
  background: #fff0f0;
  color: #8f2222;
}
.registration-confirmation {
  border-top: 5px solid var(--gold);
}

@media (max-width: 700px) {
  .public-form-grid,
  .session-choice-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .registration-section {
    padding-top: 40px;
  }
  .registration-form,
  .registration-notice,
  .registration-confirmation {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blade-trace-gold,
  .star {
    animation: none;
  }

  .star {
    opacity: 0.75;
    transform: rotate(var(--star-rotation, 0deg));
  }
}

@media (max-width: 768px) {
  .star {
    display: none;
  }
}

/* Photo Hero décorative sur les pages internes */
@media (min-width: 981px) {
  body.is-inner {
    position: relative;
    overflow-x: hidden;
  }
  body.is-inner .site-header {
    position: relative;
    z-index: 50;
  }

  body.is-inner .page-main,
  body.is-inner > main {
    position: relative;
    z-index: 1;
  }
  .inner-page-hero-art {
    position: fixed;
    z-index: 0;
    top: 72px;
    right: 0;
    width: min(58vw, 1080px);
    height: clamp(900px, 115vh, 1450px);
    pointer-events: none;
    background-image: var(--inner-hero-image);
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    opacity: 0.14;
    filter: saturate(0.68) contrast(0.88);
    -webkit-mask-image:
      linear-gradient(to left, #000 0%, #000 42%, transparent 100%),
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 3%,
        #000 10%,
        #000 72%,
        transparent 100%
      );
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to left, #000 0%, #000 42%, transparent 100%),
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 3%,
        #000 10%,
        #000 72%,
        transparent 100%
      );
    mask-composite: intersect;
  }
}

@media (max-width: 980px) {
  body.is-inner {
    position: relative;
    overflow-x: hidden;
  }

  body.is-inner .site-header {
    position: relative;
    z-index: 50;
  }

  body.is-inner .page-main,
  body.is-inner > main {
    position: relative;
    z-index: 1;
  }

  .inner-page-hero-art {
    position: fixed;
    z-index: 0;
    top: 72px;
    right: 0;
    width: 100vw;
    height: calc(100vh - 72px);
    height: calc(100svh - 72px);
    min-height: 640px;
    pointer-events: none;
    background-image: var(--inner-hero-image);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    opacity: 0.08;
    filter: saturate(0.68) contrast(0.88);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    contain: paint;
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 5%,
      #000 16%,
      #000 78%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 5%,
      #000 16%,
      #000 78%,
      transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
}

/* Harmonisation de l'espacement supérieur des pages internes */
body.is-inner {
  --inner-page-top-spacing: 120px;
}

body.is-inner .page-main {
  padding-top: var(--inner-page-top-spacing);
}

/* Les fiches de programme utilisent le même dégagement que les autres pages internes. */
body.is-inner .program-detail {
  position: relative;
  z-index: 1;
}

body.is-inner .program-hero {
  padding-top: var(--inner-page-top-spacing);
  background: transparent;
}

@media (max-width: 980px) {
  body.is-inner {
    --inner-page-top-spacing: 88px;
  }

  body.is-inner .program-detail,
  body.is-inner .registration-page {
    background: transparent;
  }

  body.is-inner .program-hero {
    background: linear-gradient(
      180deg,
      rgba(245, 249, 253, 0.78),
      rgba(255, 255, 255, 0.58)
    );
  }
}

/* Le header des pages internes doit toujours rester au-dessus du contenu. */
@media (min-width: 981px) {
  body.is-inner .site-header {
    position: relative;
    z-index: 50;
  }
  body.is-inner .brand {
    z-index: 51;
  }
  body.is-inner .program-detail,
  body.is-inner .program-hero,
  body.is-inner .page-main,
  body.is-inner > main {
    z-index: 1;
  }
}

/* Laisse apparaître le fond Hero décoratif dès le haut des fiches de programme. */
@media (min-width: 981px) {
  body.is-inner .program-detail {
    background: transparent;
  }
  body.is-inner .program-hero,
  body.is-inner .program-body {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(255, 255, 255, 0.68) 46%,
      rgba(255, 255, 255, 0.24) 70%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}

/* Types enrichis des pages structurées */
.structured-grid.no-media,
.type-text .structured-grid,
.type-highlight .structured-grid,
.type-cta .structured-grid,
.type-quote .structured-grid,
.type-stats .structured-grid,
.type-fundraising_goal .structured-grid,
.type-cards .structured-grid {
  grid-template-columns: minmax(0, 1fr);
}

.structured-grid.no-media .structured-copy,
.type-text .structured-copy,
.type-highlight .structured-copy,
.type-stats .structured-copy,
.type-fundraising_goal .structured-copy,
.type-cards .structured-copy {
  width: 100%;
}

.type-text .structured-copy .rich-text {
  max-width: none;
}

.type-quote {
  text-align: center;
}

.type-quote .structured-copy {
  max-width: 900px;
  margin: 0 auto;
}

.structured-quote {
  margin: 0;
  color: var(--navy-900);
  font: 700 clamp(1.35rem, 2.6vw, 2.25rem)/1.4 Georgia, serif;
}

.structured-quote p { margin: 0; }
.structured-quotes {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.structured-quotes figure {
  margin: 0;
  padding: 30px clamp(20px, 4vw, 48px);
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}
.structured-quotes figcaption {
  display: grid;
  gap: 3px;
  margin-top: 20px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}
.structured-quotes figcaption small { font-weight: 500; }

.structured-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.structured-stat {
  padding: 28px 20px;
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10, 53, 109, 0.08);
}

.structured-stat strong {
  display: block;
  color: var(--gold);
  font: 700 clamp(2rem, 4vw, 3.4rem)/1 Georgia, serif;
}

.structured-stat span {
  display: block;
  margin-top: 10px;
  color: var(--navy-900);
  font-weight: 700;
}

.structured-fundraising-copy {
  max-width: 980px;
  margin-inline: auto;
}

.structured-fundraising {
  display: grid;
  grid-template-columns: minmax(130px, 220px) minmax(220px, 1fr);
  align-items: center;
  gap: clamp(28px, 7vw, 82px);
  margin-top: 34px;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(10, 53, 109, 0.1);
}

.structured-fundraising-chart {
  display: grid;
  place-items: center;
  min-width: 0;
}

.structured-fundraising-summary {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.structured-fundraising-summary strong {
  color: var(--gold);
  font: 700 clamp(3.4rem, 9vw, 7rem)/0.92 Georgia, serif;
}

.structured-fundraising-summary span {
  color: var(--navy-900);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.structured-fundraising-summary small {
  color: var(--muted);
  font-size: 0.98rem;
}

.fundraising-thermometer {
  position: relative;
  width: 66px;
  height: 260px;
  margin-bottom: 31px;
  overflow: visible;
  border: 8px solid var(--navy-900);
  border-bottom: 0;
  border-radius: 36px 36px 12px 12px;
  background: #edf2f7;
  box-shadow: inset 0 0 0 6px #fff;
}

.fundraising-thermometer::after {
  position: absolute;
  left: 50%;
  bottom: -31px;
  z-index: 2;
  width: 94px;
  height: 94px;
  border: 8px solid var(--navy-900);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 7px #fff;
  content: "";
  transform: translateX(-50%);
}

.fundraising-thermometer span {
  position: absolute;
  inset: auto 8px 0;
  height: var(--fundraising-progress);
  min-height: 0;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #efcc6a, var(--gold));
}

.fundraising-bar {
  position: relative;
  overflow: hidden;
  border: 6px solid var(--navy-900);
  background: #edf2f7;
  box-shadow: inset 0 0 0 4px #fff;
}

.fundraising-bar span {
  display: block;
  background: linear-gradient(135deg, #efcc6a, var(--gold));
}

.chart-horizontal {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.7fr);
}

.chart-horizontal .fundraising-bar {
  width: 100%;
  height: 58px;
  border-radius: 30px;
}

.chart-horizontal .fundraising-bar span {
  width: var(--fundraising-progress);
  height: 100%;
  border-radius: 22px;
}

.chart-vertical .fundraising-bar {
  width: 86px;
  height: 270px;
  border-radius: 28px 28px 14px 14px;
}

.chart-vertical .fundraising-bar span {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: var(--fundraising-progress);
}

.theme-navy .structured-fundraising,
.theme-gradient .structured-fundraising {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.theme-navy .structured-fundraising-summary span,
.theme-navy .structured-fundraising-summary small,
.theme-gradient .structured-fundraising-summary span,
.theme-gradient .structured-fundraising-summary small {
  color: #fff;
}

@media (max-width: 680px) {
  .structured-fundraising,
  .chart-horizontal {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .structured-fundraising-summary {
    justify-items: center;
  }
  .chart-horizontal .structured-fundraising-chart {
    width: 100%;
  }
}

.structured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.structured-cards article {
  padding: 28px;
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 53, 109, 0.07);
}

.structured-cards h3 {
  margin: 0 0 10px;
  color: var(--navy-900);
  font: 700 1.35rem Georgia, serif;
}

.structured-cards p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.type-highlight .structured-cards article,
.type-highlight .structured-stat {
  color: var(--navy-900);
}


/* Blocs de pages structurées — CMS 2.0 */
/* Styles visuels des sections structurées */
.structured-public-section.theme-transparent {
  background: transparent;
}

.structured-public-section.theme-translucent {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.structured-public-section.theme-navy {
  background: var(--navy-950);
  color: #fff;
}

.structured-public-section.theme-gold {
  background: linear-gradient(135deg, #d5ad5b, var(--gold));
  color: var(--navy-950);
}

.structured-public-section.theme-gradient {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 62%, #b88b35 135%);
  color: #fff;
}

.theme-navy .section-title,
.theme-navy .rich-text,
.theme-navy .rich-text p,
.theme-gradient .section-title,
.theme-gradient .rich-text,
.theme-gradient .rich-text p {
  color: #fff;
}

.theme-gold .section-title,
.theme-gold .rich-text,
.theme-gold .rich-text p {
  color: var(--navy-950);
}

/* Les composants internes ne doivent pas masquer complètement le fond transparent. */
.theme-transparent .structured-cards article,
.theme-transparent .structured-stat,
.theme-transparent .structured-faq details,
.theme-transparent .structured-accordion details {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.theme-navy .structured-cards article,
.theme-navy .structured-stat,
.theme-navy .structured-faq details,
.theme-navy .structured-accordion details,
.theme-gradient .structured-cards article,
.theme-gradient .structured-stat,
.theme-gradient .structured-faq details,
.theme-gradient .structured-accordion details {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.theme-navy .structured-cards h3,
.theme-navy .structured-cards p,
.theme-navy .structured-stat span,
.theme-gradient .structured-cards h3,
.theme-gradient .structured-cards p,
.theme-gradient .structured-stat span {
  color: #fff;
}

.theme-gold .structured-cards article,
.theme-gold .structured-stat,
.theme-gold .structured-faq details,
.theme-gold .structured-accordion details {
  border-color: rgba(3, 26, 57, 0.18);
  background: rgba(255, 255, 255, 0.5);
}
.type-hero { align-items: center; background: linear-gradient(90deg, rgba(3,26,57,.92), rgba(3,26,57,.48)), var(--block-bg, linear-gradient(135deg, #31506f, #031a39)) center/cover; color: #fff; display: flex; min-height: 470px; }
.structured-hero-copy { max-width: 760px; padding-block: 6rem; }
.type-hero .section-title, .type-hero .rich-text { color: #fff; }
.structured-columns { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.structured-columns article { padding-top: 1.25rem; border-top: 3px solid var(--gold); }
.structured-columns h3 { margin: 0 0 .65rem; color: var(--navy-900); font: 700 1.3rem Georgia, serif; }
.structured-columns p { margin: 0; line-height: 1.7; }
.structured-faq, .structured-accordion { display: grid; gap: .75rem; }
.structured-faq details, .structured-accordion details { background: #fff; border: 1px solid #dfe5ec; border-radius: 10px; padding: 1rem 1.2rem; }
.structured-faq summary, .structured-accordion summary { cursor: pointer; font-weight: 700; }
.structured-faq details p, .structured-accordion details div { margin: .8rem 0 0; line-height: 1.65; }
.structured-timeline { border-left: 2px solid #c79438; display: grid; gap: 1.5rem; margin-left: .5rem; padding-left: 1.5rem; }
.structured-timeline article { display: grid; gap: 1rem; grid-template-columns: minmax(75px, auto) 1fr; position: relative; }
.structured-timeline article::before { background: #c79438; border-radius: 50%; content: ''; height: 10px; left: -1.88rem; position: absolute; top: .45rem; width: 10px; }
.structured-timeline time { color: #c79438; font-weight: 800; }
.structured-video { aspect-ratio: 16/9; overflow: hidden; }
.structured-video iframe { border: 0; height: 100%; width: 100%; }
.structured-table-wrap { overflow-x: auto; }
.structured-table-wrap table { border-collapse: collapse; width: 100%; }
.structured-table-wrap th, .structured-table-wrap td { border-bottom: 1px solid #dfe5ec; padding: .8rem; text-align: left; }
.structured-table-wrap th { color: var(--navy-900); font-weight: 800; }
.structured-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 22px; }
.structured-buttons .btn { margin-top: 0; }
.btn-structured-outline { border: 1px solid var(--navy-800); background: transparent; color: var(--navy-900); }
.structured-button-link { color: var(--navy-800); font-weight: 800; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.structured-button-link:hover { color: var(--gold); }
.theme-navy .structured-quote,
.theme-gradient .structured-quote,
.theme-navy .structured-quotes figcaption,
.theme-gradient .structured-quotes figcaption,
.theme-navy .structured-columns h3,
.theme-gradient .structured-columns h3,
.theme-navy .structured-table-wrap th,
.theme-gradient .structured-table-wrap th,
.theme-navy .structured-button-link,
.theme-gradient .structured-button-link { color: #fff; }
.theme-navy .structured-quotes figure,
.theme-gradient .structured-quotes figure { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.theme-navy .structured-table-wrap th,
.theme-navy .structured-table-wrap td,
.theme-gradient .structured-table-wrap th,
.theme-gradient .structured-table-wrap td { border-color: rgba(255,255,255,.2); }
.theme-navy .btn-structured-outline,
.theme-gradient .btn-structured-outline,
.type-hero .btn-structured-outline { border-color: #fff; color: #fff; }
.type-hero .structured-button-link { color: #fff; }

/* Réglages éditoriaux communs des blocs structurés. */
.text-size-small :is(.structured-copy, .structured-hero-copy) {
  font-size: 0.9rem;
}

.text-size-large :is(.structured-copy, .structured-hero-copy) {
  font-size: 1.15rem;
}

.text-align-left :is(.structured-copy, .structured-hero-copy) {
  text-align: left;
}

.text-align-center :is(.structured-copy, .structured-hero-copy) {
  text-align: center;
}

.text-align-right :is(.structured-copy, .structured-hero-copy) {
  text-align: right;
}

.text-align-center .structured-buttons {
  justify-content: center;
}

.text-align-right .structured-buttons {
  justify-content: flex-end;
}

.text-color-navy { --structured-text-color: var(--navy-950); }
.text-color-blue { --structured-text-color: var(--navy-800); }
.text-color-gold { --structured-text-color: var(--gold); }
.text-color-muted { --structured-text-color: var(--muted); }
.text-color-black { --structured-text-color: #000; }
.text-color-white { --structured-text-color: #fff; }

[class*="text-color-"] :is(.structured-copy, .structured-hero-copy) {
  color: var(--structured-text-color);
}

[class*="text-color-"] :is(
  .section-kicker,
  .section-title,
  .rich-text,
  .rich-text p,
  .rich-text li,
  .structured-copy h3,
  .structured-copy p,
  .structured-copy summary,
  .structured-copy figcaption,
  .structured-copy time,
  .structured-copy small,
  .structured-stat strong,
  .structured-stat span
) {
  color: inherit;
}

/* Cadrage personnalisé des photos d'entraîneurs */
.coach-card-photo {
  height: 360px;
  overflow: hidden;
  background: #eef2f6;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.coach-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--coach-x, 50%) var(--coach-y, 0%);
  transform: scale(var(--coach-zoom, 1));
  transform-origin: var(--coach-x, 50%) var(--coach-y, 0%);
}

.coach-card > img {
  display: none;
}

@media (max-width: 600px) {
  .coach-card-photo {
    height: 320px;
  }
}

/* Liens entre les programmes et les fiches d'entraîneurs */
.program-coach-card {
  display: block;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.program-coach-card:hover,
.program-coach-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(230, 189, 110, 0.65);
  background: rgba(255, 255, 255, 0.12);
}

.program-coach-card:focus-visible {
  outline: 3px solid rgba(230, 189, 110, 0.35);
  outline-offset: 3px;
}

.program-coach-photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.program-coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--coach-x, 50%) var(--coach-y, 0%);
  transform: scale(var(--coach-zoom, 1));
  transform-origin: var(--coach-x, 50%) var(--coach-y, 0%);
}

.program-coach-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.coach-grid.is-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.coach-back-link {
  margin: -8px 0 28px;
}

/* P6.2 — contenus connectés */
.connected-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}

.connected-logo-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.connected-logo-card:hover,
a.connected-logo-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.connected-logo-card img { width: 100%; height: 72px; object-fit: contain; }

.connected-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.connected-gallery-grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--ice); }
.connected-gallery-grid figure.is-featured { grid-column: span 2; }
.connected-gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.connected-gallery-grid figure.is-featured img { aspect-ratio: 16 / 10; }
.connected-gallery-grid figure:hover img { transform: scale(1.025); }
.connected-gallery-grid figcaption { position: absolute; inset: auto 0 0; padding: 24px 14px 10px; background: linear-gradient(transparent, rgba(3,26,57,.8)); color: #fff; font-size: .82rem; }
.structured-source-link { display: inline-block; margin-top: 20px; color: var(--navy-800); font-weight: 800; }

/* Crédit centralisé des médias — absent du rendu lorsque le champ est vide. */
.photo-credit {
  display: block;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}
.photo-credit-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  max-width: min(75%, 420px);
  margin: 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(3, 26, 57, 0.7);
  color: #fff;
  text-align: right;
  backdrop-filter: blur(3px);
}
.hero-media .photo-credit-overlay { bottom: 132px; }
.hero-photo-credit-mobile { display: none; }
.photo-credit-after-cover { margin: -17px 0 25px; text-align: right; }
.photo-credit-on-dark { color: rgba(255, 255, 255, 0.74); }
.photo-credit-compact { margin-top: 2px; font-size: 0.64rem; text-align: center; }
.news-card > .photo-credit,
.program-card > .photo-credit,
.album-card > .photo-credit,
.coach-card > .photo-credit { padding-inline: 16px; }
.about-card > .photo-credit { text-align: right; }
.public-gallery-grid figcaption .photo-credit,
.connected-gallery-grid figcaption .photo-credit { margin-top: 3px; color: inherit; }
.connected-gallery-grid figcaption > span { display: block; }
.listing-card-media {
  display: grid;
  grid-template-rows: 180px auto;
  width: 260px;
  min-height: 180px;
}
.listing-card-media > a { display: block; min-height: 180px; }
.listing-card-media .photo-credit { padding-inline: 4px; }
.listing-card-placeholder {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, var(--navy-900), #0a4d89);
  color: #fff;
}
.listing-card-placeholder small {
  max-width: 210px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.listing-card-placeholder strong {
  margin-top: 4px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}
.listing-card-content {
  min-width: 0;
  align-self: center;
}
.event-external-action { margin-top: 28px; }
.program-index-media { display: grid; grid-template-rows: minmax(330px, 1fr) auto; min-width: 0; }
.program-index-image { display: block; }
.program-index-media > .photo-credit { margin: 0; padding: 8px 14px; background: #f5f8fb; }
.program-hero-image > .photo-credit { margin: 9px 4px 0; text-align: right; }
.program-gallery-grid figure { margin: 0; }
.program-gallery-grid figure > .photo-credit { padding-inline: 5px; }
.type-hero { position: relative; }
@media (max-width: 900px) {
  .program-index-media { grid-template-rows: minmax(250px, auto) auto; }
}

@media (max-width: 980px) {
  .hero-photo-credit-desktop { display: none; }
  .hero-transition .hero-photo-credit-mobile {
    position: absolute;
    right: 14px;
    bottom: 7px;
    display: block;
    max-width: min(68%, 420px);
    margin: 0;
    padding: 3px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: rgba(3, 26, 57, 0.72);
    font-size: 0.64rem;
    line-height: 1.25;
    text-align: right;
  }
}

@media (max-width: 640px) {
  .listing-card-media { width: 100%; }
}

.connected-event-calendar { display: grid; gap: 14px; }
.connected-event-calendar.is-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.connected-event-calendar article { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 18px; padding: 20px; border: 1px solid rgba(10,53,109,.12); border-radius: 16px; background: #fff; color: var(--ink); }
.connected-event-calendar time { display: grid; align-content: center; justify-items: center; min-height: 70px; border-radius: 12px; background: var(--navy-900); color: #fff; line-height: 1; }
.connected-event-calendar time strong { color: var(--gold-light); font-size: .68rem; letter-spacing: .08em; }
.connected-event-calendar time span { margin-top: 5px; font-size: 1.7rem; font-weight: 850; }
.connected-event-calendar h3 { margin: 0; color: var(--navy-900); }
.connected-event-calendar p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; }
.connected-event-calendar .rich-text { margin-top: 8px; font-size: .9rem; }

.public-weekly-schedule {
  display: grid;
  gap: 7px;
}

.public-weekly-schedule-day {
  display: grid;
  grid-template-columns: minmax(82px, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 9px 11px;
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--navy-900);
  font-size: 0.82rem;
  line-height: 1.45;
}

.public-weekly-schedule-day > span {
  color: var(--muted);
}

.program-current-schedule {
  display: grid;
  gap: 8px;
  margin: 2px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(10, 53, 109, 0.1);
  border-bottom: 1px solid rgba(10, 53, 109, 0.1);
}

.program-current-schedule > span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.program-current-schedule h3 {
  margin: 6px 0 0;
  font-size: 0.88rem;
}

.registration-program-schedule {
  margin: 14px 0 20px;
  padding: 18px;
  border: 1px solid rgba(10, 53, 109, 0.12);
  border-radius: 14px;
  background: #fff;
}

.registration-program-schedule h3 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: 1rem;
}

.registration-program-schedule .public-weekly-schedule {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.connected-documents { display: grid; gap: 18px; }
.connected-documents article { overflow: hidden; border: 1px solid rgba(10,53,109,.14); border-radius: 16px; background: #fff; color: var(--ink); }
.connected-document-heading { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px; }
.connected-document-heading > span { padding: 8px 7px; border-radius: 6px; background: #c53535; color: #fff; font-size: .7rem; font-weight: 900; }
.connected-document-heading h3 { margin: 0; color: var(--navy-900); font-size: 1rem; }
.connected-document-heading small { color: var(--muted); }
.connected-document-heading a { color: var(--navy-800); font-weight: 800; }
.connected-documents iframe { display: block; width: 100%; height: min(72vh, 760px); border: 0; border-top: 1px solid #e0e7ef; background: #eef2f6; }
.connected-document-demo { display: grid; place-items: center; min-height: 260px; border-top: 1px solid #e0e7ef; background: linear-gradient(135deg, #eef3f8, #fff); color: var(--muted); font-weight: 800; }

/* P6.3 — formulaires et sondages */
.structured-form { margin-top: 24px; }
.structured-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.structured-form-field { min-width: 0; }
.structured-form-field.is-full { grid-column: 1 / -1; }
.structured-form-label { display: block; margin-bottom: 7px; font-weight: 800; }
.structured-form input:not([type="radio"]):not([type="checkbox"]),
.structured-form select,
.structured-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #cbd6e1; border-radius: 9px; background: #fff; color: var(--ink); }
.structured-form input:focus,
.structured-form select:focus,
.structured-form textarea:focus { outline: 3px solid rgba(199,148,56,.24); border-color: var(--gold); }
.structured-form-field small { display: block; margin-top: 5px; color: var(--muted); }
.structured-choice-group { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 11px 0; border: 0; }
.structured-choice-group label { display: inline-flex; align-items: center; gap: 6px; }
.structured-scale-group { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; border: 0; }
.structured-scale-group label { cursor: pointer; }
.structured-scale-group input { position: absolute; opacity: 0; pointer-events: none; }
.structured-scale-group span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #cbd6e1; border-radius: 50%; background: #fff; color: var(--navy-900); font-weight: 800; }
.structured-scale-group input:checked + span { border-color: var(--gold); background: var(--navy-900); color: #fff; }
.structured-scale-group input:focus-visible + span { outline: 3px solid rgba(199,148,56,.35); }
.structured-scale-legend { display: flex; justify-content: space-between; max-width: 488px; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.structured-form-consent { display: flex; align-items: flex-start; gap: 9px; margin: 24px 0 18px; padding: 14px; border-radius: 10px; background: var(--ice); color: var(--ink); }
.structured-form-consent input { margin-top: 5px; }
.structured-form-consent a { color: var(--navy-800); text-decoration: underline; }
.structured-form-success,
.structured-form-error,
.structured-form-notice { display: grid; gap: 4px; margin-top: 22px; padding: 16px; border-radius: 10px; }
.structured-form-success { border: 1px solid #a6d5b1; background: #effaf2; color: #195d2b; }
.structured-form-error { border: 1px solid #e6aaaa; background: #fff2f2; color: #8a2424; }
.structured-form-notice { border: 1px solid #cbd6e1; background: #f5f8fb; color: var(--muted); }
.form-honeypot,
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.theme-navy .structured-source-link,
.theme-gradient .structured-source-link { color: var(--gold-light); }

@media (max-width: 700px) {
  .connected-gallery-grid,
  .structured-form-fields { grid-template-columns: 1fr; }
  .connected-gallery-grid figure.is-featured { grid-column: span 1; }
  .structured-form-field.is-half { grid-column: 1 / -1; }
  .connected-document-heading { grid-template-columns: auto minmax(0, 1fr); }
  .connected-document-heading a { grid-column: 2; }
  .structured-scale-group span { width: 34px; height: 34px; }
}
/* Contributions communautaires */
.community-contribution-page { min-height: 70vh; }
.community-contribution-heading { max-width: 780px; margin-bottom: 2rem; }
.community-contribution-heading > p { color: #52637a; font-size: 1.05rem; line-height: 1.75; }
.community-contribution-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; }
.community-contribution-choices > a { display: grid; gap: .65rem; min-height: 260px; padding: 2rem; border: 1px solid #dce3ec; border-radius: 24px; background: #fff; color: var(--navy-900); box-shadow: 0 16px 40px rgba(3,26,57,.08); text-decoration: none; }
.community-contribution-choices > a:hover { border-color: #c79438; transform: translateY(-2px); }
.community-contribution-choices span { font-size: 2.5rem; }
.community-contribution-choices strong { font-size: 1.45rem; }
.community-contribution-choices small { color: #637389; font-size: .98rem; line-height: 1.65; }
.community-contribution-choices b { margin-top: auto; color: #936c24; }
.community-contribution-switch { display: flex; gap: .35rem; margin-bottom: 1.5rem; padding: .3rem; width: fit-content; border-radius: 999px; background: #edf2f7; }
.community-contribution-switch a { padding: .7rem 1rem; border-radius: 999px; color: var(--navy-900); text-decoration: none; }
.community-contribution-switch a[aria-current="page"] { background: #fff; box-shadow: 0 3px 12px rgba(3,26,57,.12); font-weight: 700; }
.community-contribution-form { max-width: 900px; margin: 0; }
.community-contribution-form fieldset { display: grid; gap: 1rem; margin: 0; padding: 1.25rem; border: 1px solid #dce3ec; border-radius: 16px; }
.community-contribution-form legend { padding: 0 .45rem; color: var(--navy-900); font-weight: 800; }
.community-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.community-contribution-form label small { display: block; margin-top: .35rem; color: #66768b; font-weight: 400; line-height: 1.45; }
.community-contribution-form select { width: 100%; padding: 12px; border: 1px solid #cbd8e6; border-radius: 8px; background: #fff; color: inherit; }
.community-contribution-form .check { display: flex; grid-template-columns: none; align-items: flex-start; gap: .65rem; line-height: 1.55; }
.community-contribution-form .check input { flex: 0 0 auto; width: 1.1rem; margin-top: .2rem; }
.community-upload-resume { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 900px; margin: 0 0 1rem; padding: 1rem 1.15rem; border: 1px solid #d8b66e; border-radius: 14px; background: #fff8e9; color: var(--navy-900); }
.community-upload-resume[hidden] { display: none; }
.community-upload-resume p { margin: .25rem 0 0; color: #52637a; line-height: 1.5; }
.community-upload-resume .btn { flex: 0 0 auto; }
.community-upload-progress { display: grid; gap: .6rem; padding: 1rem; border-radius: 14px; background: #edf4fa; }
.community-upload-progress > div { display: flex; justify-content: space-between; gap: 1rem; }
.community-upload-progress progress { width: 100%; height: .8rem; accent-color: #c79438; }
.community-upload-progress p { margin: 0; color: #52637a; }
.community-upload-results { display: grid; gap: .45rem; max-height: 320px; overflow: auto; margin: .25rem 0 0; padding: 0; list-style: none; }
.community-upload-results:empty { display: none; }
.community-upload-results li { display: grid; grid-template-columns: 1.5rem minmax(0,1fr); align-items: start; gap: .55rem; padding: .65rem .75rem; border: 1px solid #d7e1eb; border-radius: 10px; background: #fff; }
.community-upload-results li > span:first-child { text-align: center; }
.community-upload-results li > span:last-child { display: grid; gap: .12rem; min-width: 0; }
.community-upload-results strong { overflow: hidden; color: var(--navy-900); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.community-upload-results small { color: #66768b; font-size: .78rem; line-height: 1.35; }
.community-upload-results .is-success { border-color: #a9d8b8; background: #f1faf4; }
.community-upload-results .is-error { border-color: #e7b1b1; background: #fff4f4; }
.community-upload-results .is-error small { color: #8a2d2d; }
.community-upload-results .is-active { border-color: #d8b66e; background: #fff9ed; }
.community-contribution-success { display: grid; gap: .35rem; }
.community-callout { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1.5rem; overflow: hidden; margin: 2rem 0; padding: clamp(1.4rem,3vw,2.25rem); border: 1px solid rgba(199,148,56,.4); border-radius: 24px; background: linear-gradient(135deg,#05234b 0%,#0a356d 100%); color: #fff; box-shadow: 0 18px 45px rgba(3,26,57,.16); }
.community-callout::after { content: ""; position: absolute; z-index: -1; right: -70px; bottom: -110px; width: 260px; height: 260px; border: 45px solid rgba(255,255,255,.06); border-radius: 50%; }
.community-callout-icon { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.1); font-size: 2rem; }
.community-callout-copy { max-width: 760px; }
.community-callout .section-kicker { margin-bottom: .35rem; color: var(--gold-light); }
.community-callout h2 { margin: 0; color: #fff; font-size: clamp(1.35rem,2.4vw,2rem); }
.community-callout p { margin: .65rem 0 0; color: rgba(255,255,255,.82); line-height: 1.7; }
.community-callout .btn { flex-shrink: 0; text-align: center; }
.community-callout-history { margin-bottom: clamp(2rem,5vw,4rem); }
.community-history-items { display: grid; gap: 1rem; margin: 1.5rem 0; }
.community-history-items article { display: grid; grid-template-columns: minmax(90px,150px) 1fr; gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(102,118,139,.25); }
.community-history-items.is-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.community-history-items.is-cards article { grid-template-columns: 1fr; padding: 1.25rem; border: 1px solid rgba(102,118,139,.25); border-radius: 18px; }
.community-history-items time { color: #9a7229; font-weight: 800; }
.community-history-items h3 { margin: 0 0 .45rem; }
.community-history-items p { margin: 0; white-space: normal; }
.community-history-items small { display: block; margin-top: .55rem; color: #66768b; }
.community-history-cta { margin-top: 1rem; }
@media (max-width: 720px) {
  .community-contribution-choices,.community-form-grid,.community-history-items.is-cards { grid-template-columns: 1fr; }
  .community-contribution-choices > a { min-height: 220px; }
  .community-contribution-form { padding: 1rem; }
  .community-upload-resume { align-items: stretch; flex-direction: column; }
  .community-upload-resume .btn { width: 100%; }
  .community-history-items article { grid-template-columns: 1fr; gap: .45rem; }
  .community-callout { grid-template-columns: 1fr; align-items: start; }
  .community-callout-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 1.6rem; }
  .community-callout .btn { width: 100%; }
}
.structured-form-preview-fields {
  display: contents;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Portail membre P8.3 */
.header-member-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: inherit;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-member-link > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
}
.header-member-link:hover,
.header-member-link.active { color: var(--gold-light); }
body.is-inner .header-member-link { color: var(--navy-900); }
body.is-inner .header-member-link:hover,
body.is-inner .header-member-link.active { color: #936c24; }
.mobile-member-link { display: none; }

.member-page { min-height: 70vh; }
.member-page-hero {
  padding: clamp(7rem,10vw,8.5rem) 0 clamp(2.5rem,6vw,4.5rem);
  background: linear-gradient(125deg,var(--navy-950),#0b4778 70%,#17649a);
  color: #fff;
}
.member-page-hero h1,
.member-page-hero p { color: #fff; }
body.is-member {
  background: #f4f7fa;
}
body.is-member .site-header {
  background: var(--navy-950);
  color: #fff;
  border-bottom-color: rgba(255,255,255,.12);
  box-shadow: none;
}
body.is-member .brand img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.18));
}
body.is-member .main-navigation a,
body.is-member .header-member-link,
body.is-member .menu-toggle {
  color: #fff;
}
body.is-member .menu-toggle { border-color: rgba(255,255,255,.4); }
body.is-member .page-main { padding-top: 0; }
body.is-member .navigation-submenu {
  border-color: rgba(255,255,255,.18);
  background: var(--navy-950);
}
body.is-member .navigation-submenu a { color: #fff; }
.member-shell,
.member-auth-shell {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(4rem,8vw,7rem);
}
.member-auth-shell { max-width: 760px; }
.member-portal-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  overflow-x: auto;
  margin: -1.2rem 0 2rem;
  padding: .45rem;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 36px rgba(3,26,57,.08);
}
.member-portal-nav a,
.member-portal-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .65rem .85rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--navy-900);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.member-portal-nav a:hover,
.member-portal-nav button:hover {
  background: #edf3f8;
}
.member-portal-nav a:focus-visible,
.member-portal-nav button:focus-visible {
  background: #edf3f8;
  outline: 3px solid rgba(199,148,56,.32);
  outline-offset: 2px;
}
.member-portal-nav a.is-current,
.member-portal-nav a[aria-current="page"] {
  background: var(--navy-900);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.member-portal-nav a.is-current:hover,
.member-portal-nav a.is-current:focus-visible,
.member-portal-nav a[aria-current="page"]:hover,
.member-portal-nav a[aria-current="page"]:focus-visible {
  background: #0b4778;
  color: #fff;
}
.member-portal-nav form { margin-left: auto; }
.member-card {
  padding: clamp(1.25rem,3vw,2rem);
  border: 1px solid #dce5ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(3,26,57,.07);
}
.member-card h2,
.member-card h3 { margin-top: 0; color: var(--navy-900); }
.member-card p { color: #52637a; line-height: 1.65; }
.member-card small { color: #68798d; }
.member-onboarding { margin-bottom: 2rem; border-color: rgba(199,148,56,.5); background: #fffaf0; }
.member-section { margin-top: clamp(2.25rem,5vw,4rem); }
.member-section-heading,
.member-registration-title,
.member-music-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}
.member-section-heading { align-items: center; margin-bottom: 1rem; }
.member-section-heading h2 { margin: .25rem 0 0; color: var(--navy-900); }
.member-profile-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.member-registration-list,
.member-music-list { display: grid; gap: 1rem; }
.member-registration-card { display: grid; gap: 1.15rem; }
.member-registration-title h3 { margin: .25rem 0; }
.member-registration-title p { margin: 0; }
.member-status {
  display: inline-flex;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #52637a;
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}
.member-status.status-confirmed { background: #def4e7; color: #1d6741; }
.member-status.status-review { background: #e8f0fb; color: #245982; }
.member-status.status-waitlisted { background: #fff0cf; color: #79520b; }
.member-status.status-cancelled { background: #f7e4e4; color: #8c3030; }
.member-registration-facts,
.payment-receipt dl {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .8rem;
  margin: 0;
}
.member-registration-facts > div {
  padding: .85rem;
  border-radius: 12px;
  background: #f5f8fb;
}
.member-registration-facts dt,
.payment-receipt dt { color: #6a798b; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.member-registration-facts dd,
.payment-receipt dd { margin: .25rem 0 0; color: var(--navy-900); font-weight: 750; }
.member-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.member-card-actions form { margin: 0; }
.member-card-actions .btn { min-height: 42px; padding: 10px 15px; }
.member-two-column {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
.member-auth-card { margin-top: -1.5rem; }
.member-form { display: grid; gap: 1rem; }
.member-form label { display: grid; gap: .4rem; color: var(--navy-900); font-weight: 750; }
.member-form input,
.member-form select {
  width: 100%;
  min-height: 46px;
  padding: .75rem .85rem;
  border: 1px solid #cbd8e6;
  border-radius: 9px;
  background: #fff;
  color: var(--navy-900);
  font: inherit;
}
.member-form > small { color: #68798d; line-height: 1.5; }
.field-optional { color: #68798d; font-size: .82em; font-weight: 600; }
.member-skater-link-state {
  display: grid;
  justify-items: start;
  gap: .55rem;
  margin: 1rem 0;
  padding: .9rem;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #f7fafc;
}
.member-skater-link-state p { margin: 0; font-size: .9rem; }
.member-inline-form,
.member-remove-profile-form { margin: 0; }
.member-link-request-form { width: 100%; }
.member-link-request-form .btn,
.member-inline-form .btn,
.member-remove-profile-form .btn { width: auto; min-height: 38px; padding: .55rem .8rem; }
.btn-danger-outline {
  border-color: #d9a9a9;
  background: #fff;
  color: #8c3030;
}
.btn-danger-outline:hover { border-color: #b95b5b; background: #fff4f4; color: #702323; }
.member-account-type {
  display: grid;
  gap: .7rem;
  padding: 1rem;
  border: 1px solid #dce5ee;
  border-radius: 12px;
}
.member-account-type legend { padding: 0 .4rem; color: var(--navy-900); font-weight: 800; }
.member-account-type label { display: flex; grid-template-columns: none; align-items: flex-start; gap: .6rem; }
.member-account-type input { width: auto; min-height: 0; margin-top: .2rem; }
.member-social-login { display: grid; gap: .7rem; }
.member-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  padding: .8rem 1rem;
  border: 1px solid #cbd8e6;
  border-radius: 10px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
}
.member-provider-button:hover { border-color: #8ca3bb; background: #f6f9fb; }
.member-provider-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.member-auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: #7a899a; }
.member-auth-divider::before,
.member-auth-divider::after { content: ""; flex: 1; height: 1px; background: #dce5ee; }
.member-auth-switch { margin: 1.5rem 0 0; text-align: center; }
.member-login-help { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #e1e8ef; }
.member-login-help summary { cursor: pointer; color: var(--navy-900); font-weight: 800; }
.member-inline-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .7rem; margin-top: .9rem; }
.member-inline-form label { display: grid; gap: .35rem; }
.member-inline-form input { min-height: 42px; padding: .65rem .75rem; border: 1px solid #cbd8e6; border-radius: 8px; }
.member-music-row { align-items: center; }
.registration-member-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #d9b96f;
  border-radius: 14px;
  background: #fff9eb;
}
.registration-member-callout div { display: grid; gap: .25rem; }
.registration-member-callout span { color: #596a7e; line-height: 1.5; }
.registration-capacity {
  margin-top: .75rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-weight: 750;
}
.registration-capacity.is-available { background: #edf8f1; color: #246743; }
.registration-capacity.is-waitlist { background: #fff2d8; color: #78530f; }
.receipt-shell { max-width: 820px; padding-top: 2rem; padding-bottom: 3rem; }
.receipt-actions { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; }
.payment-receipt { padding: clamp(1.35rem,3.5vw,2.5rem); border: 1px solid #d6e0e9; background: #fff; box-shadow: 0 18px 50px rgba(3,26,57,.1); }
.payment-receipt > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--navy-900); }
.payment-receipt > header img { width: 72px; height: 72px; object-fit: contain; }
.payment-receipt > header h1 { margin: 0 0 .4rem; color: var(--navy-900); }
.payment-receipt dl { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .9rem; margin: 1.25rem 0; }
.payment-receipt dl > div { padding: .65rem 0; border-bottom: 1px solid #e0e7ee; }
.payment-receipt .receipt-total { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; }
.payment-receipt .receipt-total dd { font-size: 1.55rem; }
.payment-receipt > footer { display: grid; gap: .35rem; color: #52637a; }
.payment-receipt > footer small { margin-top: .55rem; }

@media (max-width: 1180px) and (min-width: 981px) {
  .header-nav-row { gap: 14px; }
  .main-navigation { gap: 16px; }
  .header-member-link > span:last-child { display: none; }
}
@media (max-width: 980px) {
  .header-member-link { display: none; }
  .mobile-member-link { display: inline-flex; width: 100%; }
  .mobile-member-link::after { display: none; }
  body.is-member .main-navigation {
    border-color: rgba(255,255,255,.12);
    background: var(--navy-950);
  }
  body.is-member .main-navigation a { color: #fff; }
}
@media (max-width: 760px) {
  .member-profile-grid,
  .member-two-column,
  .member-registration-facts,
  .payment-receipt dl { grid-template-columns: 1fr; }
  .member-section-heading,
  .member-registration-title,
  .member-music-row,
  .registration-member-callout { align-items: stretch; flex-direction: column; }
  .member-section-heading .btn,
  .registration-member-callout .btn { width: 100%; }
  .member-portal-nav { margin-top: -.5rem; }
  .member-portal-nav form { margin-left: 0; }
  .member-inline-form { grid-template-columns: 1fr; }
  .payment-receipt .receipt-total { grid-column: auto; }
}
@page {
  size: auto;
  margin: 10mm;
}
@media print {
  .site-header,
  .site-footer,
  .no-print,
  .inner-page-hero-art { display: none !important; }
  html,
  body { margin: 0 !important; background: #fff !important; }
  body.is-inner .page-main,
  body.is-member .page-main,
  .receipt-page { min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  .receipt-shell { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .payment-receipt {
    padding: 6mm !important;
    border: 0;
    box-shadow: none;
    font-size: 10pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .payment-receipt > header { padding-bottom: 4mm; }
  .payment-receipt > header img { width: 20mm; height: 20mm; }
  .payment-receipt > header h1 { font-size: 20pt; }
  .payment-receipt dl {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 0 5mm;
    margin: 4mm 0 !important;
  }
  .payment-receipt dl > div { padding: 2.2mm 0 !important; }
  .payment-receipt .receipt-total { grid-column: 1 / -1 !important; }
  .payment-receipt .receipt-total dd { font-size: 16pt; }
  .payment-receipt > footer { gap: 1mm; }
  .payment-receipt > footer small { margin-top: 2mm; }
}
