/* ==========================================================================
   Harmonie La Lyre Républicaine de Dechy — feuille de style principale
   Thème bleu (uniforme) + or (instruments) — CSS natif, sans framework
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de l'uniforme */
  --bleu-roi: #1b3c93;
  --bleu-fonce: #12275f;
  --bleu-nuit: #0a1730;
  --bleu-clair: #e8eefb;
  --bleu-moyen: #4a6fd1;

  /* Accents dorés */
  --or: #d9b46a;
  --or-clair: #f1dcae;

  /* Neutres */
  --creme: #f7f8fb;
  --blanc: #ffffff;
  --gris-100: #eceef4;
  --gris-300: #cfd5e2;
  --gris-600: #5b6478;
  --gris-900: #1a1f2b;

  /* Typographie */
  --titre: "Playfair Display", Georgia, "Times New Roman", serif;
  --texte: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Rythme */
  --gouttiere: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --largeur: 1180px;

  /* Divers */
  --rayon: 6px;
  --rayon-lg: 14px;
  --ombre: 0 2px 6px rgba(10, 23, 48, .07), 0 14px 34px rgba(10, 23, 48, .09);
  --ombre-lg: 0 4px 10px rgba(10, 23, 48, .09), 0 26px 60px rgba(10, 23, 48, .16);
  --transition: 220ms cubic-bezier(.32, .72, 0, 1);
  --entete-h: 74px;
}

/* --------------------------------------------------------------------------
   3. Reset raisonné
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--texte);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.68;
  color: var(--gris-900);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
svg,
iframe {
  max-width: 100%;
  display: block;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--bleu-nuit);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
h4 { font-size: 1.08rem; font-family: var(--texte); font-weight: 600; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--bleu-roi);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover { color: var(--bleu-moyen); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }

strong { font-weight: 600; color: var(--bleu-fonce); }

figure { margin: 0; }

figcaption {
  font-size: .85rem;
  color: var(--gris-600);
  margin-top: .55rem;
}

:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--bleu-roi);
  color: #fff;
}

/* Lien d'évitement (navigation clavier) */
.lien-evitement {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .8rem 1.3rem;
  background: var(--bleu-nuit);
  color: #fff;
  border-radius: var(--rayon);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition);
}

.lien-evitement:focus { top: 1rem; color: #fff; }

/* --------------------------------------------------------------------------
   4. Structure
   -------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.conteneur--etroit { max-width: 820px; }

.section { padding-block: var(--section); }
.section--serree { padding-block: calc(var(--section) * .62); }
.section--bleu { background: var(--bleu-nuit); color: var(--bleu-clair); }
.section--bleu h2,
.section--bleu h3 { color: #fff; }
.section--bleu a { color: var(--or-clair); }
.section--clair { background: var(--blanc); }

/* --------------------------------------------------------------------------
   5. En-tête / navigation
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 23, 48, .95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(217, 180, 106, .22);
  color: #fff;
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--entete-h);
}

.marque {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.marque__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(217, 180, 106, .55);
  box-shadow: 0 0 0 3px rgba(217, 180, 106, .12);
}

.marque__texte {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.marque__nom {
  font-family: var(--titre);
  font-size: 1.12rem;
  font-weight: 700;
}

.marque__sous {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.nav__liste {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__liste li + li { margin-top: 0; }

.nav__lien {
  display: inline-block;
  padding: .55rem .78rem;
  border-radius: 99px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav__lien:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.nav__lien[aria-current="page"] {
  background: rgba(217, 180, 106, .16);
  color: var(--or-clair);
  box-shadow: inset 0 0 0 1px rgba(217, 180, 106, .38);
}

.nav__outils {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: .35rem;
}

.langue {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 99px;
  overflow: hidden;
  font-size: .76rem;
  letter-spacing: .08em;
  font-weight: 600;
}

.langue a,
.langue span {
  padding: .32rem .6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
  transition: background var(--transition), color var(--transition);
}

.langue a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.langue .actif {
  background: var(--or);
  color: var(--bleu-nuit);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--rayon);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */
.bouton {
  --bg: var(--bleu-roi);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 99px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
  box-shadow: 0 6px 18px rgba(27, 60, 147, .22);
}

.bouton:hover {
  transform: translateY(-2px);
  color: var(--fg);
  box-shadow: 0 10px 26px rgba(27, 60, 147, .3);
}

.bouton:active { transform: translateY(0); }

.bouton--or {
  --bg: var(--or);
  --fg: var(--bleu-nuit);
  box-shadow: 0 6px 18px rgba(217, 180, 106, .3);
}

.bouton--or:hover { box-shadow: 0 10px 26px rgba(217, 180, 106, .42); }

.bouton--contour {
  --bg: transparent;
  --fg: var(--bleu-roi);
  border-color: currentColor;
  box-shadow: none;
}

.bouton--contour:hover {
  --bg: var(--bleu-roi);
  --fg: #fff;
  box-shadow: 0 8px 22px rgba(27, 60, 147, .24);
}

.bouton--clair {
  --bg: transparent;
  --fg: #fff;
  border-color: rgba(255, 255, 255, .55);
  box-shadow: none;
}

.bouton--clair:hover {
  --bg: #fff;
  --fg: var(--bleu-nuit);
  border-color: #fff;
}

.bouton--petit { padding: .62rem 1.15rem; font-size: .87rem; }

.bouton__icone { width: 18px; height: 18px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   7. Héros
   -------------------------------------------------------------------------- */
.heros {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 80vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--bleu-nuit);
}

.heros__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}

.heros::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(6, 14, 32, .94) 0%,
    rgba(6, 14, 32, .66) 36%,
    rgba(6, 14, 32, .16) 70%,
    rgba(6, 14, 32, .44) 100%
  );
}

.heros__contenu {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  max-width: 880px;
}

.heros__surtitre {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .77rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--or);
  margin-bottom: 1.1rem;
}

.heros__surtitre::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.heros h1 {
  color: #fff;
  margin-bottom: .75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.heros h1 em {
  display: block;
  font-style: normal;
  font-size: .46em;
  letter-spacing: .03em;
  font-weight: 500;
  color: var(--or-clair);
  margin-top: .75rem;
  line-height: 1.35;
}

.heros__texte {
  font-size: clamp(1.02rem, .95rem + .5vw, 1.22rem);
  color: rgba(255, 255, 255, .9);
  max-width: 56ch;
  margin-bottom: 1.9rem;
}

.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.heros__defilement {
  position: absolute;
  bottom: 1.1rem;
  right: var(--gouttiere);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.heros__defilement svg { width: 16px; height: 16px; animation: rebond 2.4s infinite; }

@keyframes rebond {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Bandeau de chiffres clés */
.chiffres {
  background: var(--bleu-roi);
  color: #fff;
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.chiffres__grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .16);
}

.chiffre {
  background: var(--bleu-roi);
  padding: 1.7rem 1.1rem;
  text-align: center;
}

.chiffre__valeur {
  font-family: var(--titre);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  line-height: 1;
  color: var(--or-clair);
  display: block;
}

.chiffre__label {
  display: block;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-top: .6rem;
  color: rgba(255, 255, 255, .84);
}

/* --------------------------------------------------------------------------
   8. Titres de section
   -------------------------------------------------------------------------- */
.section-titre {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 4vw, 3.2rem);
  text-align: center;
}

.section-titre .surtitre {
  display: block;
  font-size: .77rem;
  letter-spacing: .21em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bleu-moyen);
  margin-bottom: .7rem;
}

.section--bleu .section-titre .surtitre { color: var(--or); }

/* Surtitre autonome (hors .section-titre) */
.surtitre {
  display: block;
  font-size: .77rem;
  letter-spacing: .21em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bleu-moyen);
  margin-bottom: .7rem;
}

.section--bleu .surtitre,
.entete-page .surtitre { color: var(--or); }

.section-titre p {
  color: var(--gris-600);
  font-size: 1.05rem;
}

.section--bleu .section-titre p { color: rgba(232, 238, 251, .82); }

/* Filet décoratif doré sous un titre */
.filet {
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 1.1rem auto 0;
}

/* --------------------------------------------------------------------------
   9. Cartes et grilles
   -------------------------------------------------------------------------- */
.grille {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.9rem);
}

.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.carte {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-lg);
}

.carte__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bleu-clair);
}

.carte__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.32, .72, 0, 1);
}

.carte:hover .carte__media img { transform: scale(1.04); }

.carte__corps {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}

.carte__corps > :last-child { margin-bottom: 0; }

.carte__etiquette {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  align-self: flex-start;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bleu-roi);
  background: var(--bleu-clair);
  padding: .28rem .62rem;
  border-radius: 99px;
}

.carte__etiquette--or {
  color: #6d5216;
  background: rgba(217, 180, 106, .2);
}

.carte h3 { margin: 0; }

.carte__texte {
  color: var(--gris-600);
  font-size: .95rem;
  margin: 0;
}

.carte__pied {
  margin-top: auto;
  padding-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  align-items: center;
  font-size: .87rem;
  color: var(--gris-600);
}

.carte__date {
  font-weight: 600;
  color: var(--bleu-roi);
}

/* Carte "événement" avec bloc date à gauche */
.agenda-carte {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: stretch;
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}

.agenda-carte:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-lg);
}

.agenda-carte__date {
  background: linear-gradient(160deg, var(--bleu-roi), var(--bleu-fonce));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  padding: 1.2rem .4rem;
  text-align: center;
  align-self: stretch;
}

.agenda-carte__jour {
  font-family: var(--titre);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--or-clair);
}

.agenda-carte__mois {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-top: .35rem;
  color: rgba(255, 255, 255, .85);
}

.agenda-carte__annee {
  font-size: .72rem;
  color: rgba(255, 255, 255, .6);
  margin-top: .1rem;
}

.agenda-carte__corps {
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
}

.agenda-carte__corps h3 { margin: 0; font-size: 1.18rem; }

.agenda-carte .carte__etiquette { margin-bottom: .1rem; }


.agenda-carte__lieu {
  font-size: .87rem;
  color: var(--gris-600);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.agenda-carte__lieu svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--bleu-moyen); }

.agenda-carte__texte { font-size: .93rem; color: var(--gris-600); margin: .2rem 0 0; }

/* Bloc mise en avant (texte + image) */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}

.duo__media {
  position: relative;
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: var(--ombre-lg);
}

.duo__media img { width: 100%; }

.duo__media--cadre::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: calc(var(--rayon-lg) - 6px);
  pointer-events: none;
}

.duo__texte h2 { margin-top: 0; }

.duo--inverse .duo__media { order: 2; }

.duo--haut { align-items: start; }

.colonne-infos {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.liste-liens {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liste-liens li { margin-top: .5rem; }
.liste-liens li:first-child { margin-top: 0; }

/* Liste numérotée (étapes) */
.liste-numero {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  counter-reset: etape;
}

.liste-numero li {
  position: relative;
  padding-left: 3rem;
  margin-top: 1.3rem;
  counter-increment: etape;
  line-height: 1.6;
}

.liste-numero li:first-child { margin-top: 0; }

.liste-numero li::before {
  content: counter(etape);
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bleu-nuit);
  background: var(--or);
}

.liste-numero strong { color: inherit; }

.note-blanche {
  font-size: .88rem;
  padding-left: .9rem;
  border-left: 2px solid rgba(241, 220, 174, .6);
  color: rgba(255, 255, 255, .86);
}


/* Liste à puces stylée */
.liste-fleches {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liste-fleches li {
  position: relative;
  padding-left: 1.9rem;
  margin-top: .85rem;
}

.liste-fleches li:first-child { margin-top: 0; }

.liste-fleches li::before {
  content: "♪";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--or);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section--bleu .liste-fleches li::before { color: var(--or); }

/* --------------------------------------------------------------------------
   10. Galerie vidéo + visionneuse (lightbox)
   -------------------------------------------------------------------------- */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.vignette {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--bleu-nuit);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: left;
  font: inherit;
  color: #fff;
  aspect-ratio: 16 / 9;
}

.vignette:hover { transform: translateY(-4px); box-shadow: var(--ombre-lg); }

.vignette img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.32, .72, 0, 1), filter var(--transition);
}

.vignette:hover img { transform: scale(1.05); filter: brightness(.78); }

.vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 14, 32, .9) 0%, rgba(6, 14, 32, .1) 55%, transparent 100%);
  pointer-events: none;
}

.vignette__lecture {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.vignette__lecture svg { width: 22px; height: 22px; fill: var(--bleu-roi); margin-left: 3px; }

.vignette:hover .vignette__lecture {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--or);
}

.vignette__titre {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.15rem;
  z-index: 2;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
}

.vignette__meta {
  display: block;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: .3rem;
}

/* Visionneuse */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 12, 26, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.visionneuse[hidden] { display: none; }

.visionneuse.ouverte { opacity: 1; visibility: visible; }

/* L'attribut hidden doit toujours l'emporter sur les styles d'affichage */
.visionneuse[hidden] { display: none !important; }

.visionneuse__cadre {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--rayon-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.visionneuse__cadre iframe,
.visionneuse__cadre video,
.visionneuse__media iframe,
.visionneuse__media video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.visionneuse__media {
  position: absolute;
  inset: 0;
}

.visionneuse__fermer {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(10, 23, 48, .75);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}

.visionneuse__fermer:hover { background: var(--bleu-roi); }

.visionneuse__fermer:hover svg { transform: rotate(90deg); }


.visionneuse__fermer svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition);
}


.visionneuse__titre {
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
  margin-top: 1rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Formulaires et encarts
   -------------------------------------------------------------------------- */
.formulaire {
  display: grid;
  gap: 1.1rem;
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-radius: var(--rayon-lg);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: var(--ombre);
}

.champ { display: grid; gap: .4rem; }

.champ label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--bleu-fonce);
}

.champ .aide {
  font-size: .78rem;
  color: var(--gris-600);
  font-weight: 400;
}

.champ input,
.champ select,
.champ textarea {
  font: inherit;
  font-size: .96rem;
  color: var(--gris-900);
  background: var(--creme);
  border: 1px solid var(--gris-300);
  border-radius: var(--rayon);
  padding: .72rem .85rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.champ textarea { min-height: 150px; resize: vertical; }

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--bleu-moyen);
  box-shadow: 0 0 0 3px rgba(74, 111, 209, .18);
}

.champ--case {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.champ--case input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--bleu-roi);
}

.champ--case label { font-weight: 400; font-size: .9rem; color: var(--gris-900); }

.deux-colonnes {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.note {
  font-size: .84rem;
  color: var(--gris-600);
  padding-left: .9rem;
  border-left: 2px solid var(--or);
}

.encart {
  background: var(--blanc);
  border: 1px solid var(--gris-100);
  border-radius: var(--rayon-lg);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--ombre);
}

.encart--bleu {
  background: linear-gradient(160deg, var(--bleu-roi), var(--bleu-fonce));
  color: #fff;
  border: 0;
  box-shadow: 0 18px 44px rgba(18, 39, 95, .3);
}

.encart--bleu h3 { color: #fff; }
.encart--bleu p { color: rgba(255, 255, 255, .85); }
.encart--bleu a { color: var(--or-clair); }

.encart__titre {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}

.encart__titre svg {
  width: 20px;
  height: 20px;
  color: var(--or);
  flex-shrink: 0;
}

.encart__titre h3 { margin: 0; font-size: 1.1rem; }

.fil {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .2rem;
  font-size: .88rem;
}

.fil li { margin: 0; color: rgba(255, 255, 255, .55); }

.fil li[aria-current] { color: #fff; }

.fil a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.fil a:hover { color: var(--or-clair); }

/* Bandeau d'en-tête des pages intérieures */
.entete-page {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.6rem, 6vw, 4.4rem) clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  background: linear-gradient(140deg, var(--bleu-fonce), var(--bleu-nuit) 70%);
  overflow: hidden;
}

.entete-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(217, 180, 106, .22), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(74, 111, 209, .3), transparent 50%);
}

.entete-page h1 {
  color: #fff;
  margin-bottom: .5rem;
  font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.1rem);
}

.entete-page__intro {
  max-width: 62ch;
  color: rgba(232, 238, 251, .84);
  font-size: 1.05rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   12. Bandeau partenaire / citation
   -------------------------------------------------------------------------- */
.citation {
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.citation blockquote {
  margin: 0;
  font-family: var(--titre);
  font-size: clamp(1.3rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--bleu-nuit);
}

.section--bleu .citation blockquote { color: #fff; }

.citation__source {
  margin-top: 1.1rem;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-600);
}

.section--bleu .citation__source { color: rgba(232, 238, 251, .7); }

/* Appel à l'action en bandeau */
.cta {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--bleu-nuit);
  overflow: hidden;
}

.cta__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
  opacity: .5;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(10, 23, 48, .94) 20%, rgba(10, 23, 48, .62) 100%);
}

.cta__contenu {
  max-width: 640px;
  padding-block: clamp(2.8rem, 7vw, 5rem);
}

.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .86); margin-bottom: 1.6rem; }

/* --------------------------------------------------------------------------
   13. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  background: #060e1e;
  color: rgba(232, 238, 251, .72);
  font-size: .92rem;
  padding-top: clamp(2.6rem, 5vw, 4rem);
}

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.6rem, 3.5vw, 2.8rem);
  padding-bottom: 2.6rem;
}

.pied h2,
.pied h3 {
  font-family: var(--texte);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 600;
  margin: 0 0 1rem;
}

.pied__marque {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.pied__marque img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(217, 180, 106, .4);
}

.pied__marque strong {
  display: block;
  font-family: var(--titre);
  font-size: 1.02rem;
  color: #fff;
  font-weight: 700;
}

.pied__marque span {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(232, 238, 251, .55);
}

.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-top: .5rem; }
.pied li:first-child { margin-top: 0; }

.pied a {
  color: rgba(232, 238, 251, .78);
  text-decoration: none;
  transition: color var(--transition);
}

.pied a:hover { color: var(--or-clair); text-decoration: underline; }

.pied__reseaux {
  display: flex;
  gap: .55rem;
  margin-top: 1.1rem;
}

.pied__reseaux a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.pied__reseaux a:hover {
  background: var(--bleu-roi);
  border-color: var(--bleu-roi);
  transform: translateY(-2px);
}

.pied__reseaux svg { width: 18px; height: 18px; fill: currentColor; color: #fff; }

.pied__bas {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(232, 238, 251, .5);
}

.pied__bas a { color: rgba(232, 238, 251, .7); }

/* --------------------------------------------------------------------------
   Contenu éditorial (mentions légales, 404)
   -------------------------------------------------------------------------- */
.prose h2 {
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  margin-top: 2.2rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li { color: var(--gris-600); }

.prose strong { color: var(--bleu-nuit); }

/* Page 404 */
.erreur {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(420px, 62vh, 640px);
  padding-block: var(--section);
}

.erreur__code {
  font-family: var(--titre);
  font-size: clamp(4.5rem, 3rem + 10vw, 9rem);
  line-height: .9;
  color: var(--bleu-clair);
  letter-spacing: -.04em;
  margin: 0;
}

.erreur p { max-width: 46ch; margin-inline: auto; color: var(--gris-600); }

.erreur .heros__actions { justify-content: center; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   15. Utilitaires
   -------------------------------------------------------------------------- */


.lecteur-ecran {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.centre { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2.8rem; }
.mb-0 { margin-bottom: 0; }

/* Révélation au défilement (amélioration progressive) */
.reveler {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, .61, .36, 1);
}

.reveler.visible { opacity: 1; transform: none; }

.sans-js .reveler { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --entete-h: 68px; }

  .pied__grille { grid-template-columns: 1fr 1fr; }

  .marque__nom { font-size: 1.02rem; }
  .marque__sous { font-size: .6rem; letter-spacing: .16em; }
}

@media (max-width: 900px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--entete-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a1730;
    border-bottom: 1px solid rgba(217, 180, 106, .25);
    padding: .8rem var(--gouttiere) 1.4rem;
    transform: translateY(-120%);
    transition: transform 320ms cubic-bezier(.32, .72, 0, 1), visibility 320ms;
    max-height: calc(100vh - var(--entete-h));
    overflow-y: auto;
    box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
    visibility: hidden;
  }

  .nav.ouverte { transform: translateY(0); visibility: visible; }

  .nav__liste {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__lien {
    display: block;
    padding: .95rem .6rem;
    border-radius: var(--rayon);
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .nav__lien[aria-current="page"] {
    box-shadow: none;
    background: rgba(217, 180, 106, .12);
  }

  .nav__outils {
    margin: .9rem 0 0;
    justify-content: space-between;
  }

  .duo--inverse .duo__media { order: 0; }
}

@media (max-width: 720px) {
  .heros { min-height: 86vh; }

  .heros__image { object-position: 42% 28%; }

  .heros__actions .bouton { width: 100%; }

  .heros__defilement { display: none; }

  .agenda-carte { grid-template-columns: 74px 1fr; }

  .agenda-carte__jour { font-size: 1.7rem; }

  .agenda-carte__corps { padding: 1rem 1.05rem; }

  .pied__grille { grid-template-columns: 1fr; gap: 1.9rem; }

  .pied__bas { flex-direction: column; align-items: flex-start; }

  .visionneuse { padding: .8rem; }
}

@media (max-width: 420px) {
  .marque__logo { width: 40px; height: 40px; }
  .marque__nom { font-size: .95rem; }
  .marque__sous { display: none; }
  .chiffres__grille { grid-template-columns: 1fr 1fr; }
}

/* Impression */
@media print {
  .entete,
  .pied,
  .heros__defilement,
  .visionneuse { display: none !important; }

  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 1.5rem; }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveler { opacity: 1; transform: none; }
}
