/* Marin de l'Année 2026 — feuille de styles de production
   DA : voir /maquettes et CLAUDE.md. Ne pas modifier les couleurs/typos sans validation FFVoile. */

:root {
  --bleu-nuit: #0E274F;
  --marine: #032250;
  --carte: #1B3766;
  --dore: #d29834;
  --dore-clair: #F3D3A6;
  --dore-texte: #F0C68C;
  --dore-fonce: #8A5E22;
  --blanc: #FCF8F7;
  --fond-clair: #F6F1E8;
  --gris-texte: #5a5f66;

  --font-titre: 'Bebas Neue', sans-serif;
  --font-texte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --bandeau-angle: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  --bandeau-angle-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);

  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bleu-nuit);
  color: var(--blanc);
  font-family: var(--font-texte);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.skew-title {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 0.9;
  transform: skewX(-7deg);
  transform-origin: left;
  text-transform: none;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--dore);
  color: var(--marine);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 3px solid var(--dore);
  outline-offset: 2px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 900px) {
  .container {
    padding: 0 40px;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  font-family: var(--font-texte);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-plein {
  background: var(--dore);
  color: var(--marine);
  clip-path: var(--bandeau-angle);
}

.btn-plein:hover,
.btn-plein:focus-visible {
  background: var(--dore-clair);
}

.btn-contour {
  background: transparent;
  border-color: var(--blanc);
  color: var(--blanc);
}

.btn-contour:hover,
.btn-contour:focus-visible {
  border-color: var(--dore);
  color: var(--dore);
}

.btn-vote {
  background: transparent;
  border-color: var(--dore);
  color: var(--dore);
}

.btn-vote:hover,
.btn-vote:focus-visible {
  background: var(--dore);
  color: var(--marine);
}

.btn svg {
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.header--solid,
.site-header.header--opaque {
  background: var(--bleu-nuit);
  border-bottom-color: rgba(228, 169, 93, 0.4);
  box-shadow: 0 8px 20px rgba(3, 20, 48, 0.35);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

@media (min-width: 900px) {
  .header-inner {
    padding: 0 40px;
  }
}

.logo-link {
  display: flex;
  flex-shrink: 0;
}

.logo-link img {
  height: 38px;
  width: auto;
}

@media (min-width: 900px) {
  .logo-link img {
    height: 46px;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 1080px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .main-nav a:not(.btn) {
    color: var(--blanc);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
  }

  .main-nav a:not(.btn):hover,
  .main-nav a:not(.btn):focus-visible {
    color: var(--dore-texte);
  }

  .main-nav a[aria-current="page"] {
    color: var(--dore);
    border-bottom-color: var(--dore);
  }
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--blanc);
  cursor: pointer;
}

@media (min-width: 1080px) {
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: var(--bleu-nuit);
  padding: 24px 20px 40px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

@media (min-width: 1080px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav a:not(.btn) {
  color: var(--blanc);
  text-decoration: none;
  font-size: 20px;
  font-family: var(--font-titre);
  letter-spacing: 0.01em;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(228, 169, 93, 0.25);
}

.mobile-nav a[aria-current="page"] {
  color: var(--dore);
}

.mobile-nav .nav-cta {
  flex-direction: column;
  align-items: stretch;
  margin-top: 16px;
}

.mobile-nav .btn {
  width: 100%;
}

/* ---------- Hero commun ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: url(assets/img/motifs/fond-mda.webp);
  background-size: cover;
  color: var(--blanc);
  padding-top: 40px;
}

.hero-mer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Le motif (courbes + voiles) n'occupe que le tiers bas de son propre cadre :
   il faut l'afficher assez grand pour que la partie visible se lise, le reste
   (transparent) déborde sans gêner puisqu'il ne capte pas les clics. */
.hero-motif-coin {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 260px;
  height: auto;
  pointer-events: none;
  opacity: 0.85;
}

.hero-motif-coin--gauche {
  left: 0;
}

@media (min-width: 900px) {
  .hero-motif-coin {
    width: 45%;
  }
}

.hero-motif-voiles {
  position: absolute;
  z-index: 1;
  width: 140px;
  height: auto;
  pointer-events: none;
  opacity: 0.65;
}

/* Voiles en filigrane derrière le titre "Save The Date". */
.hero-voiles-titre {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 220px;
  height: auto;
  pointer-events: none;
  opacity: 0.45;
}

@media (min-width: 900px) {
  .hero-voiles-titre {
    top: 4px;
    width: 320px;
  }
}

.hero-fondu {
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  bottom: 20%;
  background: linear-gradient(180deg, var(--bleu-nuit) 0%, rgba(14, 39, 79, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-partenaires-bandeau {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(70vw, 460px);
  height: auto;
  opacity: 0.95;
}

.hero-contenu {
  position: relative;
  z-index: 5;
}

.date-banniere {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  background: linear-gradient(100deg, var(--dore) 0%, #EDBB7A 62%, var(--dore-clair) 100%);
  clip-path: var(--bandeau-angle);
  font-family: var(--font-titre);
  font-size: 28px;
  color: var(--marine);
  white-space: nowrap;
}

.mascotte-sur-bandeau {
  position: absolute;
  width: 40px;
  height: auto;
  left: 16px;
  top: -46px;
  z-index: 1;
}

/* ---------- Hero savethedate ---------- */
.hero--savethedate {
  min-height: 620px;
  padding-bottom: 60px;
  background: url(assets/img/motifs/fond-mda.webp);
  background-size: cover;
}

.hero--savethedate .hero-mer {
  height: 260px;
  opacity: 0.95;
}

.titre-save-the-date {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-titre);
  line-height: 0.82;
  transform: skewX(-9deg);
  text-align: center;
  margin: 24px 0 0;
}

.titre-save-the-date .the {
  font-size: 44px;
  color: var(--dore);
  padding-bottom: 4px;
}

.titre-save-the-date .save-date {
  display: flex;
  flex-direction: column;
}

.titre-save-the-date .save-date span {
  font-size: 72px;
  color: var(--blanc);
}

.bloc-date {
  position: relative;
  margin: 46px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  width: 100%;
}

.bloc-date .date-banniere {
  width: 100%;
  font-size: 34px;
}

.bloc-date img.casino-logo {
  width: 100%;
  height: auto;
  margin-top: 6px;
}

/* Mascotte debout (PNG détouré, ratio 240×351) : pieds posés sur le bord haut
   du bandeau, à gauche, là où le titre centré ne descend pas. */
.bloc-date .mascotte-sur-bandeau {
  left: 10px;
  top: -64px;
  width: 46px;
}

.compte-rebours-bloc {
  position: relative;
  z-index: 5;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.compte-rebours-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dore-texte);
}

.compte-rebours {
  display: flex;
  gap: 8px;
}

.cr-unite {
  width: 66px;
  padding: 8px 0 6px;
  border: 2px solid var(--blanc);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cr-unite.cr-secondes {
  background: var(--dore);
  clip-path: var(--bandeau-angle);
  color: var(--marine);
  border-color: var(--dore);
}

.cr-valeur {
  font-family: var(--font-titre);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cr-unite-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-invite {
  position: relative;
  z-index: 5;
  margin: 36px auto 0;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 20px;
}

.hero-invite strong {
  color: var(--dore-texte);
}

@media (min-width: 900px) {
  .hero--savethedate {
    min-height: 600px;
    height: 90vh;
    padding-top: 0;

  }

  .hero--savethedate .hero-mer {
    height: 380px;
  }

  .titre-save-the-date {
    margin-top: 40px;
    gap: 18px;
  }

  .titre-save-the-date .the {
    font-size: 90px;
  }

  .titre-save-the-date .save-date span {
    font-size: 150px;
  }

  .bloc-date {
    max-width: 560px;
    margin-top: 40px;
  }

  .bloc-date .date-banniere {
    font-size: 56px;
    height: 74px;
  }

  .bloc-date .mascotte-sur-bandeau {
    left: 16px;
    width: 70px;
    top: -98px;
  }

  .compte-rebours-bloc {
    position: absolute;
    left: 40px;
    bottom: 50%;
    z-index: 5;
    align-items: flex-start;
    text-align: left;
    margin: 0;
  }

  .compte-rebours {
    gap: 10px;
  }

  .cr-unite {
    width: 78px;
  }

  .cr-valeur {
    font-size: 40px;
  }

  .hero-invite {
    position: absolute;
    right: 40px;
    bottom: 50%;
    z-index: 5;
    align-items: flex-end;
    text-align: right;
    margin: 0;
    max-width: 320px;
    padding: 0;
  }

  .hero-partenaires-bandeau {
    width: 560px;
  }
}

/* ---------- Hero vote ---------- */
.hero--vote {
  min-height: 720px;
  padding-bottom: 40px;
}

.hero--vote .hero-mer {
  height: 220px;
}

.hero--vote .hero-motif-voiles {
  left: 24px;
  bottom: 0;
}

@media (min-width: 900px) {
  .hero--vote .hero-motif-voiles {
    left: 40px;
    width: 190px;
  }
}

.hero-vote-flex {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px 0 48px;
}

.hero-vote-texte h1 {
  font-size: 44px;
}

.hero-vote-texte h1 .accent {
  color: var(--dore);
}

.hero-vote-texte p {
  max-width: 520px;
  font-size: 15px;
  margin: 18px 0;
}

.hero-vote-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-vote-fin {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: var(--dore-texte);
}

.grille-nommes-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

@media (min-width: 640px) {
  .grille-nommes-hero {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.mini-carte-nomme {
  aspect-ratio: 1 / 1;
  background: var(--carte);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.mini-carte-nomme img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.mini-carte-nomme span {
  position: relative;
  width: 100%;
  padding: 4px 6px;
  background: var(--bleu-nuit);
  font-family: var(--font-titre);
  font-size: 12px;
  line-height: 1.1;
  border-top: 2px solid var(--dore);
}

@media (min-width: 900px) {
  .hero--vote {
    min-height: 900px;
  }

  .hero--vote .hero-mer {
    height: 360px;
  }

  .hero-vote-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    padding: 100px 0 0;
  }

  .hero-vote-texte {
    flex: 0 0 46%;
  }

  .hero-vote-texte h1 {
    font-size: 80px;
  }

  .grille-nommes-hero {
    flex: 1;
    margin-top: 6px;
  }

  .mini-carte-nomme span {
    font-size: 15px;
  }
}

/* ---------- Hero apres ---------- */
.hero--apres {
  min-height: 780px;
  padding-bottom: 40px;
}

.hero--apres .hero-mer {
  height: 220px;
}

.hero-apres-flex {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 16px 0 40px;
}

.photo-laureat-wrap {
  position: relative;
}

.photo-laureat-fond {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, var(--dore) 0%, var(--dore-clair) 100%);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  z-index: 0;
}

.photo-laureat {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 3px solid var(--blanc);
  background: var(--carte);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.photo-laureat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.photo-laureat figcaption {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252, 248, 247, 0.75);
}

.bandeau-titre-marin {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
}

.bandeau-titre-marin .date-banniere {
  font-size: 24px;
  height: 46px;
  padding: 0 22px;
}

.bandeau-titre-marin .mascotte-sur-bandeau {
  right: 12%;
  left: auto;
  width: 40px;
  top: -48px;
}

.nom-laureat {
  font-size: 56px;
  margin-top: 14px;
}

.nom-laureat .prenom {
  display: block;
}

.saison-laureat {
  font-size: 15px;
  font-weight: 500;
  margin: 14px 0 0;
}

.apres-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.espoirs-liste {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.espoir-carte {
  background: var(--bleu-nuit);
  border: 2px solid var(--dore);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.espoir-carte .label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dore);
}

.espoir-carte .nom {
  font-family: var(--font-titre);
  font-size: 20px;
}

@media (min-width: 900px) {
  .hero--apres {
    min-height: 900px;
  }

  .hero--apres .hero-mer {
    height: 320px;
  }

  .hero-apres-flex {
    flex-direction: row;
    align-items: flex-start;
    gap: 56px;
    padding: 90px 0 0;
  }

  .photo-laureat-wrap {
    flex: 0 0 44%;
  }

  .apres-texte {
    flex: 1;
    padding-top: 12px;
  }

  .apres-texte .mascotte-sur-bandeau {
    right: 6%;
    left: auto;
    top: 25%;
    width: 150px;
    height: auto;
  }

  .nom-laureat {
    font-size: 96px;
  }

  .espoirs-liste {
    position: absolute;
    left: 40px;
    bottom: 28px;
    margin: 0;
  }
}

/* ---------- Titres de section ---------- */
.section-titre {
  font-size: 48px;
}

@media (min-width: 900px) {
  .section-titre {
    font-size: 80px;
  }
}

.section-titre .accent {
  color: var(--dore);
}

.section-entete {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

@media (min-width: 900px) {
  .section-entete {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
}

/* ---------- Présentation ---------- */
.section-presentation {
  background: var(--bleu-nuit);
  color: var(--blanc);
  padding: 56px 0;
}

.presentation-grille {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.presentation-texte {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  line-height: 1.65;
  text-align: justify;
  color: rgba(252, 248, 247, 0.92);
}

@media (min-width: 900px) {
  .presentation-grille {
    flex-direction: row;
    gap: 56px;
  }

  .presentation-grille .section-titre {
    flex: 0 0 410px;
  }

  .presentation-texte {
    flex: 1;
    padding-top: 8px;
  }
}

/* ---------- Section nommés ---------- */
.section-nommes {
  background: var(--fond-clair);
  color: var(--bleu-nuit);
  padding: 64px 0 72px;
}

.section-nommes a {
  color: var(--bleu-nuit);
}

.section-nommes a:hover,
.section-nommes a:focus-visible {
  color: var(--dore-fonce);
}

.nommes-vote-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (min-width: 900px) {
  .nommes-vote-info {
    align-items: flex-end;
  }
}

.nommes-vote-info .btn {
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.nommes-vote-info .btn:hover,
.nommes-vote-info .btn:focus-visible {
  background: var(--dore);
  color: var(--blanc);
}

.filtres-nommes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filtre-btn {
  height: 42px;
  padding: 0 18px;
  font-family: var(--font-texte);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid var(--bleu-nuit);
  background: transparent;
  color: var(--bleu-nuit);
}

.filtre-btn[aria-pressed="true"] {
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.filtre-btn:hover,
.filtre-btn:focus-visible {
  border-color: var(--dore-fonce);
}

.grille-nommes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 640px) {
  .grille-nommes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .grille-nommes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
  }
}

.carte-nomme {
  background: var(--bleu-nuit);
  color: var(--blanc);
  display: flex;
  flex-direction: column;
}

.carte-nomme .photo {
  aspect-ratio: 1 / 1;
  background: var(--carte);
  display: flex;
  align-items: flex-end;
  padding: 10px;
  position: relative;
}

/* Visuel du ou de la nommé·e (data.json > nommes > visuel) : carré, recadré
   au centre et vers le haut pour garder le visage. */
.carte-nomme .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  position: absolute;
  inset: 0;
}

.carte-nomme .categorie {
  flex: none;
  align-self: flex-start;
  margin: -14px 0 0 12px;
  position: relative;
  height: 28px;
  padding: 0 14px 0 10px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, var(--dore) 0%, var(--dore-clair) 100%);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--marine);
}

.carte-nomme .corps {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.carte-nomme h3 {
  margin: 0;
  font-family: var(--font-titre);
  font-size: 24px;
  line-height: 0.95;
}

.carte-nomme p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(252, 248, 247, 0.85);
  flex-grow: 1;
}

.note-nommes {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--gris-texte);
}

/* ---------- La cérémonie (phase savethedate) ---------- */
.section-ceremonie {
  background: var(--fond-clair);
  color: var(--bleu-nuit);
  padding: 64px 0 72px;
}

.section-ceremonie a:not(.btn) {
  color: var(--bleu-nuit);
}

/* En-tête pleine largeur, puis rappel des votes à gauche et calendrier à droite */
.ceremonie-entete {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.ceremonie-intro {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.6;
}

.ceremonie-haut {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

@media (min-width: 960px) {
  .ceremonie-haut {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }
}

.ceremonie-rappel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.annonce-revelation {
  position: relative;
  align-self: flex-start;
  margin-top: 72px;
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
}

/* Mascotte debout (PNG détouré) : pieds posés sur le bord haut du bandeau. */
.annonce-revelation .mascotte-sur-bandeau {
  left: 16px;
  top: -69px;
  width: 50px;
}

.annonce-revelation .date-banniere {
  width: auto;
  max-width: 100%;
  white-space: normal;
  font-size: 18px;
  line-height: 1.1;
  height: auto;
  min-height: 42px;
  padding: 8px 18px 8px 14px;
  text-align: left;
}

@media (min-width: 640px) {
  .annonce-revelation .date-banniere {
    font-size: 24px;
    min-height: 48px;
    padding: 8px 22px 8px 18px;
  }
}

.compte-rebours-clair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.compte-rebours-clair p {
  flex: 1 1 200px;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.5;
}

.compte-rebours-clair .compte-rebours {
  gap: 6px;
}

.compte-rebours-clair .cr-unite {
  background: var(--bleu-nuit);
  color: var(--blanc);
  border: none;
  width: 58px;
}

.compte-rebours-clair .cr-valeur {
  font-size: 28px;
}

.reseaux-liens {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reseaux-liens a {
  text-decoration: none;
}

/* Calendrier : une ligne par date, séparées par un filet */
.ceremonie-etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(14, 39, 79, 0.25);
}

.ceremonie-etape {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 20px 0 22px;
  border-bottom: 1px solid rgba(14, 39, 79, 0.25);
}

@media (min-width: 560px) {
  .ceremonie-etape {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }
}

.ceremonie-etape-date {
  font-family: var(--font-titre);
  font-size: 26px;
  line-height: 1;
  color: var(--dore-fonce);
}

.ceremonie-etape h3 {
  margin: 0 0 6px;
  font-family: var(--font-titre);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}

.ceremonie-etape p {
  font-size: 15px;
  line-height: 1.55;
}

.ceremonie-sous-titre {
  align-self: start;
  margin: 0 0 20px;
  font-family: var(--font-titre);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  transform: skewX(-7deg);
  transform-origin: left;
}

/* Disciplines : un film (ou un visuel de secours) par discipline, texte en dessous */
.ceremonie-disciplines {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

@media (min-width: 640px) {
  .ceremonie-disciplines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
}

.ceremonie-discipline {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Visuel de secours (sans film) : les visuels palmarès sont des 9:16 avec logo
   en haut et nom en bas, on cadre sur la partie photo. */
.ceremonie-discipline-visuel {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Film YouTube : vignette cliquable, remplacée par le lecteur au clic */
.video-lite {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--marine);
}

.video-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-lite-bouton {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 50px;
  margin: -25px 0 0 -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dore);
  color: var(--marine);
  clip-path: var(--bandeau-angle);
  transition: background 0.2s ease;
}

.video-lite:hover img,
.video-lite:focus-visible img {
  transform: scale(1.03);
}

.video-lite:hover .video-lite-bouton,
.video-lite:focus-visible .video-lite-bouton {
  background: var(--blanc);
}

.video-lite:focus-visible {
  outline: 3px solid var(--dore);
  outline-offset: 3px;
}

.video-lite-lecteur {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.ceremonie-discipline figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ceremonie-discipline-nom {
  font-family: var(--font-titre);
  font-size: 28px;
  line-height: 1;
}

.ceremonie-discipline-texte {
  font-size: 14px;
  line-height: 1.5;
  max-width: 480px;
}

.ceremonie-discipline-legende {
  font-size: 12px;
  font-style: italic;
  color: var(--gris-texte);
}

/* Trophées : simple liste à filets */
.ceremonie-bas {
  margin-bottom: 40px;
}

@media (min-width: 960px) {
  .ceremonie-bas {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
  }
}

.ceremonie-trophees {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(14, 39, 79, 0.25);
}

@media (min-width: 640px) {
  .ceremonie-trophees {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 32px;
  }
}

.ceremonie-trophee {
  padding: 16px 0 18px;
  border-bottom: 1px solid rgba(14, 39, 79, 0.25);
}

.ceremonie-trophee dt {
  font-family: var(--font-titre);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.ceremonie-trophee:first-child dt {
  color: var(--dore-fonce);
}

.ceremonie-trophee dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.ceremonie-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-contour-sombre {
  background: transparent;
  border-color: var(--bleu-nuit);
  color: var(--bleu-nuit);
}

.btn-contour-sombre:hover,
.btn-contour-sombre:focus-visible {
  border-color: var(--dore-fonce);
  color: var(--dore-fonce);
}

/* ---------- Section programme ---------- */
.section-programme {
  background: var(--bleu-nuit);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.programme-grille {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 1080px) {
  .programme-grille {
    flex-direction: row;
    align-items: flex-start;
  }
}

.frise-programme {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px dashed var(--dore);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.frise-etape {
  position: relative;
  padding: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.frise-point {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bleu-nuit);
  border: 2px solid var(--dore);
}

.frise-etape.frise-etape--fort .frise-point {
  background: var(--dore);
  border: none;
}

.frise-heure {
  font-family: var(--font-titre);
  font-size: 22px;
  line-height: 1;
  color: var(--dore);
}

.frise-etape--fort .frise-heure {
  font-size: 26px;
}

.frise-libelle {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.frise-etape--fort .frise-libelle {
  font-size: 16px;
  font-weight: 700;
}

.frise-final {
  position: relative;
  /* padding: 20px 0 0 24px; */
  margin-left: -26px;
}

.frise-final-losange {
  display: none;
  position: absolute;
  left: 11px;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--dore);
  transform: rotate(45deg);
}

.frise-final-bandeau {
  padding: 0 20px;
  height: 64px;
  display: flex;
  width: 75%;
  align-items: center;
  gap: 16px;
  background: linear-gradient(100deg, var(--dore) 0%, #EDBB7A 62%, var(--dore-clair) 100%);
  clip-path: var(--bandeau-angle);
  color: var(--marine);
  font-family: var(--font-titre);
}

.frise-final-bandeau span {
  font-size: 24px;
}

@media (min-width: 640px) {
  .frise-final-bandeau span {
    font-size: 32px;
  }
}

.infos-pratiques {
  border: 3px solid var(--blanc);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(14, 39, 79, 0.85);
}

@media (min-width: 1080px) {
  .infos-pratiques {
    width: 380px;
    flex-shrink: 0;
  }
}

.infos-pratiques img {
  width: 100%;
  height: auto;
}

.info-bloc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-bloc .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dore);
}

.info-bloc .valeur {
  font-size: 14px;
  line-height: 1.5;
}

.infos-pratiques .lien-agenda {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.infos-pratiques .lien-agenda:hover,
.infos-pratiques .lien-agenda:focus-visible {
  color: var(--dore-texte);
}

/* ---------- Section palmarès ---------- */
.section-palmares {
  background: var(--bleu-nuit);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.palmares-contours {
  position: absolute;
  right: 0;
  top: 60px;
  width: 220px;
  height: auto;
  opacity: 0.55;
  transform: scaleX(-1);
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 900px) {
  .palmares-contours {
    width: 320px;
  }
}

.palmares-annee-fond {
  position: absolute;
  right: 20px;
  top: 20px;
  font-family: var(--font-titre);
  font-size: clamp(120px, 24vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(228, 169, 93, 0.3);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.palmares-entete {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.palmares-nav {
  display: flex;
  gap: 10px;
}

.palmares-nav button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--blanc);
  background: var(--bleu-nuit);
  color: var(--blanc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palmares-nav button:last-child {
  border: none;
  background: var(--dore);
  color: var(--marine);
}

.palmares-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.palmares-nav button:not(:disabled):hover,
.palmares-nav button:not(:disabled):focus-visible {
  border-color: var(--dore);
}

/* Carrousel centré en boucle (main.js tient l'année sélectionnée).
   Mobile (< 900px) : une carte plein cadre avec l'aperçu des voisines,
   défilement au doigt (scroll-snap).
   Desktop : 5 cartes, data-pos = distance à l'année sélectionnée (-2 à 2),
   les autres sont repliées (largeur 0) de part et d'autre.
   Chaque carte est un <button> dont les 8 premiers pixels sont transparents :
   le fond commence à 8px, ce qui laisse le bandeau du nom déborder de -8px
   vers la gauche. */
.palmares-carrousel {
  --palmares-or: #E4A95D;
  --w: min(62vw, 290px);
  position: relative;
  z-index: 1;
  margin: 0 -20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.palmares-carrousel::-webkit-scrollbar {
  display: none;
}

.palmares-carrousel:focus-visible {
  outline: 2px solid var(--palmares-or);
  outline-offset: 4px;
}

.palmares-piste {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 12px calc((100vw - var(--w) - 8px) / 2) 28px;
}

.palmares-carte {
  position: relative;
  flex: none;
  width: calc(var(--w) + 8px);
  height: calc(var(--w) * 16 / 9);
  padding: 0 0 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  scroll-snap-align: center;
  order: var(--ordre-mobile, 0);
  opacity: 0.7;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

.palmares-carte[aria-current="true"] {
  opacity: 1;
  overflow: visible;
}

.palmares-carte:focus-visible {
  outline: 2px solid var(--palmares-or);
  outline-offset: 4px;
}

.palmares-carte-fond {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 8px;
  display: block;
  overflow: hidden;
  background: var(--carte);
}

/* Bordure dessinée par-dessus la créa (outline intérieur). */
.palmares-carte[aria-current="true"] .palmares-carte-fond {
  /* outline: 3px solid var(--palmares-or); */
  /* outline-offset: -3px; */
  box-shadow: 0 18px 40px rgba(3, 20, 48, 0.5);
}

/* Créa 1080×1920 entière : la carte a les mêmes proportions (9:16), rien
   n'est rogné. */
.palmares-carte-crea {
  width: 100%;
  clip-path: var(--bandeau-angle);
  height: 100%;
  object-fit: cover;
}

.palmares-carte .annee {
  position: relative;
  z-index: 1;
  padding: 14px 16px 0;
  font-family: var(--font-titre);
  font-size: 56px;
  line-height: 1;
  color: var(--palmares-or);
  white-space: nowrap;
  transition: font-size 0.3s ease;
}

/* Visuel du lauréat, cadré sur la seule partie photo : les visuels 1080×1920
   ont le logo en haut (≈ 15 %) et le nom en bas (à partir de ≈ 58 %), déjà
   repris par l'année et le bandeau. Un cadre 5:4 montre exactement cette bande. */
.palmares-carte-media {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  aspect-ratio: 5 / 4;
  margin: 0 3px;
  overflow: hidden;
}

.palmares-carte-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
}

.palmares-carte .visuel-tag {
  display: block;
  padding: 0 13px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252, 248, 247, 0.5);
  white-space: nowrap;
}

.palmares-carte .nom-vainqueur {
  position: relative;
  z-index: 1;
  margin: 0 0 16px -8px;
  padding: 10px 14px 10px 22px;
  background: linear-gradient(100deg, var(--palmares-or) 0%, var(--dore-clair) 100%);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  color: var(--marine);
  font-family: var(--font-titre);
  font-size: 20px;
  line-height: 1.05;
  transition: font-size 0.3s ease;
}

@media (min-width: 900px) {

  /* Tailles intermédiaires (900–1279px), puis tailles de la maquette. */
  .palmares-carrousel {
    --w0: calc(var(--h0) * 9 / 16);
    --h0: 384px;
    --a0: 64px;
    --n0: 20px;
    --w1: calc(var(--h1) * 9 / 16);
    --h1: 320px;
    --a1: 46px;
    --n1: 16px;
    --w2: calc(var(--h2) * 9 / 16);
    --h2: 264px;
    --a2: 38px;
    --n2: 14px;
    margin: 0 -40px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .palmares-piste {
    width: auto;
    height: calc(var(--h0) + 56px);
    padding: 12px 0 44px;
    gap: 0;
    justify-content: center;
  }

  /* Par défaut (cartes repliées) : largeur nulle, invisibles et hors du focus. */
  .palmares-carte {
    width: 0;
    height: var(--h2);
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease, visibility 0s linear 0.3s;
  }

  .palmares-carte[data-pos="cache-gauche"] {
    order: 0;
  }

  .palmares-carte[data-pos="-2"] {
    order: 1;
  }

  .palmares-carte[data-pos="-1"] {
    order: 2;
  }

  .palmares-carte[data-pos="0"] {
    order: 3;
  }

  .palmares-carte[data-pos="1"] {
    order: 4;
  }

  .palmares-carte[data-pos="2"] {
    order: 5;
  }

  .palmares-carte[data-pos="cache-droite"] {
    order: 6;
  }

  /* Visibles : gap de 16px entre les fonds (4 + 4 de marge + 8 transparents). */
  .palmares-carte[data-pos="-2"],
  .palmares-carte[data-pos="-1"],
  .palmares-carte[data-pos="0"],
  .palmares-carte[data-pos="1"],
  .palmares-carte[data-pos="2"] {
    margin: 0 4px;
    padding-left: 8px;
    visibility: visible;
    transition-delay: 0s;
  }

  .palmares-carte[data-pos="0"] {
    width: calc(var(--w0) + 8px);
    height: var(--h0);
    opacity: 1;
  }

  .palmares-carte[data-pos="-1"],
  .palmares-carte[data-pos="1"] {
    width: calc(var(--w1) + 8px);
    height: var(--h1);
    opacity: 0.8;
  }

  .palmares-carte[data-pos="-2"],
  .palmares-carte[data-pos="2"] {
    width: calc(var(--w2) + 8px);
    height: var(--h2);
    opacity: 0.55;
  }

  .palmares-carte .annee {
    font-size: var(--a2);
  }

  .palmares-carte .nom-vainqueur {
    font-size: var(--n2);
  }

  .palmares-carte[data-pos="-1"] .annee,
  .palmares-carte[data-pos="1"] .annee {
    font-size: var(--a1);
  }

  .palmares-carte[data-pos="-1"] .nom-vainqueur,
  .palmares-carte[data-pos="1"] .nom-vainqueur {
    font-size: var(--n1);
  }

  .palmares-carte[data-pos="0"] .annee {
    font-size: var(--a0);
  }

  .palmares-carte[data-pos="0"] .nom-vainqueur {
    font-size: var(--n0);
  }

  .palmares-carte:not([data-pos="0"]):hover {
    opacity: 1;
  }
}

@media (min-width: 1280px) {
  .palmares-carrousel {
    --h0: 480px;
    --a0: 80px;
    --n0: 24px;
    --h1: 400px;
    --a1: 58px;
    --n1: 18px;
    --h2: 330px;
    --a2: 48px;
    --n2: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .palmares-carte,
  .palmares-carte .annee,
  .palmares-carte .nom-vainqueur {
    transition: none;
  }
}

.frise-annees {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.frise-annees::before {
  content: none;
}

.annee-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-titre);
  font-size: 15px;
  cursor: pointer;
  border: 2px solid rgba(252, 248, 247, 0.35);
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.annee-btn.is-active,
.annee-btn[aria-current="true"] {
  border-color: var(--dore);
  background: var(--dore);
  color: var(--marine);
}

.annee-btn:hover,
.annee-btn:focus-visible {
  border-color: var(--dore);
}

.palmares-reperes {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.repere {
  border: 1px solid rgba(252, 248, 247, 0.35);
  padding: 10px 16px;
  font-size: 13px;
}

.repere strong {
  color: var(--dore);
}

/* ---------- Galerie ---------- */
.section-galerie {
  background: var(--bleu-nuit);
  padding: 64px 0 56px;
}

.lien-espace-presse {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dore-texte);
  text-decoration: none;
}

.lien-espace-presse:hover,
.lien-espace-presse:focus-visible {
  color: var(--dore);
}

.grille-galerie {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 900px) {
  .grille-galerie {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 200px 200px;
  }
}

.galerie-video {
  grid-column: span 2;
  border: 3px solid var(--blanc);
  background: #061a3a;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .galerie-video {
    grid-row: span 2;
    min-height: 0;
  }
}

.galerie-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.bouton-lecture {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid var(--blanc);
  background: rgba(3, 20, 48, 0.4);
  color: var(--blanc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bouton-lecture:hover,
.bouton-lecture:focus-visible {
  background: var(--dore);
  border-color: var(--dore);
  color: var(--marine);
}

.aftermovie-tag {
  position: absolute;
  left: -3px;
  bottom: 20px;
  z-index: 1;
  height: 44px;
  padding: 0 20px 0 18px;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, var(--dore) 0%, var(--dore-clair) 100%);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  font-family: var(--font-titre);
  font-size: 22px;
  color: var(--marine);
}

.galerie-photo {
  background: var(--carte);
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(252, 248, 247, 0.6);
  position: relative;
  overflow: hidden;
}

.galerie-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie-photo span {
  position: relative;
  z-index: 1;
  background: rgba(3, 20, 48, 0.55);
  padding: 2px 6px;
}

/* ---------- Partenaires ----------
   Pyramide à 4 rangs, chaque rang sous le précédent, taille décroissante :
   majeur + officiel côte à côte, puis 5 fournisseurs officiels, puis
   5 partenaires institutionnels. */
.section-partenaires {
  background: var(--fond-clair);
  color: var(--bleu-nuit);
  padding: 56px 0 48px;
}

.partenaires-majeurs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 36px;
}

.partenaire-rang-un {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.partenaire-rang-un .rang {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dore-fonce);
}

.partenaire-majeur {
  width: 100%;
  height: 130px;
  background: #fff;
  border-top: 4px solid var(--dore);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--bleu-nuit);
  padding: 18px 24px;
  box-sizing: border-box;
}

@media (min-width: 760px) {
  .partenaire-majeur {
    height: 150px;
  }
}

/* Logos : sans JavaScript, chaque logo tient simplement dans sa case
   (object-fit: contain). main.js les rééquilibre ensuite selon leurs
   proportions pour qu'ils aient tous le même poids visuel : un logo très
   large est affiché moins large, un logo carré ou vertical plus grand
   (même surface pour tous, dans la limite de la case). */
.logo-partenaire img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-partenaire .nom-secours {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}

.partenaires-souslabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris-texte);
  margin: 0 0 14px;
}

/* Rangée centrée : une case orpheline (5 logos sur 2 ou 3 colonnes) reste
   au milieu au lieu de se coller à gauche. */
.grille-partenaires-rang {
  --colonnes: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.grille-partenaires-rang>* {
  flex: 0 0 calc((100% - (var(--colonnes) - 1) * 12px) / var(--colonnes));
}

@media (min-width: 560px) {
  .grille-partenaires-rang {
    --colonnes: 3;
  }
}

@media (min-width: 900px) {
  .grille-partenaires-rang {
    --colonnes: 5;
  }
}

/* Fournisseurs officiels et partenaires institutionnels : cases identiques. */
.partenaire-secondaire {
  height: 104px;
  background: #fff;
  border-top: 3px solid var(--dore-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--gris-texte);
  padding: 14px 16px;
  box-sizing: border-box;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bleu-nuit);
  position: relative;
  overflow: hidden;
  padding: 36px 0;
  margin-top: 56px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-inner a {
  text-decoration: underline;
}

.footer-partenaires-bandeau {
  display: block;
  margin: 20px auto 0;
  width: min(100%, 340px);
  height: auto;
}

@media (min-width: 900px) {
  .footer-inner {
    max-width: 55%;
  }

  .footer-partenaires-bandeau {
    position: absolute;
    right: 0;
    bottom: -8px;
    margin: 0;
    width: 320px;
  }
}