/* =========================================================
   Dragon Ladies de Compiègne — feuille de style
   Polices auto-hébergées (pas d'appel à Google : conforme RGPD)
   ========================================================= */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --rose: #e62e63;          /* rose dragon : décor, pagayeuses */
  --rose-fonce: #c41d50;    /* boutons et liens (contraste AA) */
  --oise: #173f3a;          /* vert profond de l'Oise */
  --oise-clair: #255a53;
  --brume: #edf3f1;         /* fond clair, eau calme */
  --laiton: #e4a93c;        /* tambour, coque */
  --encre: #13211f;
  --blanc: #fff;

  --titre: "Unbounded", system-ui, sans-serif;
  --texte: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --marge: clamp(1.25rem, 5vw, 4.5rem);
  --large: 74rem;
  --rayon: 1.25rem;
  /* marge intérieure des bandes pleine largeur, alignée sur le contenu */
  --bord: max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge)));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--brume);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-fonce); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--laiton); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--titre); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 64ch; }

.evitement { position: absolute; left: -999px; top: .5rem; background: var(--blanc); padding: .6rem 1rem; z-index: 100; }
.evitement:focus { left: .5rem; }

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex; white-space: nowrap; align-items: center; gap: .5em;
  font-family: var(--titre); font-weight: 500; font-size: .95rem;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:active { transform: translateY(0); }
.bouton--rose { background: var(--rose-fonce); color: var(--blanc); }
.bouton--rose:hover { background: #a9163f; }
.bouton--vert { background: var(--oise); color: var(--blanc); }
.bouton--vert:hover { background: var(--oise-clair); }
.bouton--clair { background: transparent; color: inherit; border-color: currentColor; }
.bouton--petit { padding: .6em 1.1em; font-size: .85rem; }

.lien-fleche { font-weight: 700; color: var(--rose-fonce); }
.lien-fleche::after { content: ""; display: inline-block; vertical-align: -.1em; margin-left: .4em; width: .9em; height: .9em; background: currentColor; transition: transform .15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.lien-fleche:hover::after { transform: translateX(4px); }
.lien-fleche--clair { color: var(--blanc); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 1.6rem; }

/* Photo : fond de repli si l'image manque */
.photo { background: linear-gradient(135deg, var(--oise-clair), var(--oise)); overflow: hidden; margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo img.absente { visibility: hidden; }

.a-confirmer { font-style: italic; background: rgba(228,169,60,.22); padding: .2em .5em; border-radius: 4px; display: inline-block; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(237,243,241,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .2s ease; }
.entete.defile { box-shadow: 0 1px 0 rgba(19,33,31,.12); }
.entete__in { max-width: var(--large); margin: 0 auto; padding: .8rem var(--marge); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--oise); }
.marque__logo { height: 3.2rem; width: auto; flex: none; }
.marque__logo.absente { display: none; }
.marque__nom { font-family: var(--titre); font-weight: 700; font-size: 1rem; line-height: 1.05; }
.marque__nom span { display: block; font-weight: 500; font-size: .72rem; color: var(--oise-clair); margin-top: .2em; }

.nav { display: flex; align-items: center; gap: 1.4rem; flex-shrink: 0; }
.nav ul { list-style: none; display: flex; gap: 1.15rem; margin: 0; padding: 0; }
.nav ul a { color: var(--encre); text-decoration: none; font-weight: 700; font-size: 1rem; white-space: nowrap; padding: .3em 0; background: linear-gradient(var(--rose), var(--rose)) left bottom / 0 3px no-repeat; transition: background-size .2s ease; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background-size: 100% 3px; }

.menu-bouton { display: none; align-items: center; gap: .5rem; font: 700 1rem var(--texte); color: var(--oise); background: none; border: 2px solid var(--oise); border-radius: 999px; padding: .45rem .95rem; cursor: pointer; }
.menu-bouton__barres, .menu-bouton__barres::before, .menu-bouton__barres::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s; }
.menu-bouton__barres::before, .menu-bouton__barres::after { content: ""; position: absolute; left: 0; }
.menu-bouton__barres::before { top: -6px; } .menu-bouton__barres::after { top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-bouton__barres { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-bouton__barres::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton__barres::after { transform: translateY(-6px) rotate(-45deg); }

/* En dessous de 1240 px, le menu complet ne tient plus sur une ligne : on passe au bouton Menu */
@media (max-width: 1240px) {
  .menu-bouton { display: inline-flex; }
  .nav { position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1.2rem; padding: 1.2rem var(--marge) 1.8rem; background: var(--brume); box-shadow: 0 12px 24px rgba(19,33,31,.12);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .3s ease, visibility 0s .3s; }
  .nav.ouvert { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .3s ease; }
  .nav ul { flex-direction: column; gap: .8rem; }
  .nav ul a { font-size: 1.25rem; }
}

/* ---------- Ouverture ---------- */
.ouverture { position: relative; display: grid; min-height: min(calc(100vh - 5rem), 46rem); color: var(--blanc); background: var(--oise); overflow: hidden; }
.ouverture__photo { position: absolute; inset: 0; }
.ouverture__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,63,58,.94) 0%, rgba(23,63,58,.78) 38%, rgba(23,63,58,.05) 75%); }
.ouverture__texte { grid-area: 1 / 1; position: relative; align-self: center; width: 100%; max-width: var(--large); margin: 0 auto; padding: 2.5rem var(--marge) 3rem; }
/* Logo du SNC : la section est rattachée au club */
.affiliation { display: inline-flex; align-items: center; gap: .85rem; margin-bottom: 1.2rem; padding: .4rem 1.1rem .4rem .45rem; background: var(--blanc); color: var(--encre); border-radius: .9rem; text-decoration: none; font-size: .95rem; line-height: 1.2; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .15s ease; }
.affiliation:hover { transform: translateY(-2px); }
.affiliation img { height: 3.5rem; width: auto; border-radius: .5rem; }
.affiliation img.absente { display: none; }
.affiliation strong { display: block; font: 700 1rem var(--titre); color: var(--oise); margin-top: .15rem; }
.ouverture h1 { max-width: 13ch; }
.ouverture__intro { font-size: 1.25rem; max-width: 48ch; }
.rdv { display: inline-flex; flex-wrap: wrap; gap: .2rem .6rem; margin: .4rem 0 0; padding: .7rem 1.1rem; border-left: 4px solid var(--laiton); background: rgba(19,33,31,.35); }
.rdv__jour { font-family: var(--titre); font-weight: 700; color: var(--laiton); }

/* chargement : une seule séquence orchestrée */
@media (prefers-reduced-motion: no-preference) {
  .ouverture__texte > * { animation: monte .7s cubic-bezier(.2,.7,.2,1) both; }
  .ouverture__texte > :nth-child(2) { animation-delay: .12s; }
  .ouverture__texte > :nth-child(3) { animation-delay: .24s; }
  .ouverture__texte > :nth-child(4) { animation-delay: .36s; }
  .ouverture__texte > :nth-child(5) { animation-delay: .48s; }
  .ouverture__photo img { animation: glisse 1.6s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes monte { from { opacity: 0; transform: translateY(18px); } }
@keyframes glisse { from { transform: scale(1.06); } }

@media (max-width: 760px) {
  .ouverture { min-height: 0; }
  .ouverture__photo { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .ouverture__photo::after { background: linear-gradient(0deg, var(--oise) 0%, rgba(23,63,58,0) 45%); }
  .ouverture__texte { grid-area: auto; padding-top: 1rem; padding-bottom: 3rem; }
  .ouverture__intro { font-size: 1.125rem; }
}

/* ---------- Le bateau ---------- */
.bateau { background: var(--oise); color: var(--blanc); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem 3.5rem; align-items: center;
  padding: clamp(3rem, 7vw, 6rem) var(--bord); border-top: 1px solid rgba(255,255,255,.12); }
.bateau > * { max-width: none; }
/* Grand écran : texte et bouton à gauche, bateau à droite. Mobile : texte, bateau, puis bouton */
.bateau { grid-template-areas: "texte scene" "commande scene"; grid-template-rows: auto 1fr; row-gap: 0; }
.bateau__texte { max-width: 30rem; grid-area: texte; align-self: end; }
.bateau__scene { grid-area: scene; }
.bateau__commande { grid-area: commande; align-self: start; max-width: 30rem; }
.bateau__scene { overflow: hidden; border-radius: var(--rayon); background:
  repeating-linear-gradient(0deg, rgba(255,255,255,0) 0 22px, rgba(255,255,255,.035) 22px 24px), #1d4c46; padding: 1rem 0 .4rem; }
.bateau__svg { width: 100%; height: auto; display: block; }
.bateau__legende { list-style: none; display: flex; gap: 1.2rem; justify-content: center; margin: .2rem 0 .6rem; padding: 0; font-size: .9rem; opacity: .85; }
.pastille { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-right: .4em; border: 2px solid var(--blanc); vertical-align: -.05em; }
.pastille--rose { background: var(--rose); } .pastille--creme { background: #f6e3b8; } .pastille--blanc { background: var(--blanc); }

.tambour { display: inline-flex; align-items: center; gap: .7rem; margin-top: .6rem; font: 500 1rem var(--titre); color: var(--encre); background: var(--laiton);
  border: 0; border-radius: 999px; padding: .75rem 1.4rem .75rem .9rem; cursor: pointer; transition: transform .1s ease; }
.tambour svg { width: 1.9rem; height: 1.9rem; }
.tambour:active, .tambour.frappe { transform: scale(.95); }
.bateau__aide { font-size: .95rem; opacity: .75; margin-top: .7rem; }

/* Dragon boat de profil */
.bateau__scene { background: linear-gradient(180deg, #2b6a61 0%, #1f5049 55%, #1d4c46 100%); }
.bateau__svg .plan-arbres ellipse { fill: #1b4741; }
.bateau__svg .eau-fond { fill: #2f6d64; }
.bateau__svg .buissons ellipse { fill: #173f3a; }
.bateau__svg .roseaux path { fill: none; stroke: #173f3a; stroke-width: 2; stroke-linecap: round; }
.bateau__svg .plan-rides path, .bateau__svg .plan-rides-devant path { fill: none; stroke: #8fc0b6; stroke-width: 2; stroke-linecap: round; opacity: .45; }
.bateau__svg .coque { fill: var(--laiton); stroke: var(--encre); stroke-width: 3; }
.bateau__svg .liseret { stroke: var(--rose); stroke-width: 5; fill: none; }
.bateau__svg .ecailles path, .bateau__svg .ecailles-cou path { fill: none; stroke: #c88d22; stroke-width: 2; }
.bateau__svg .ecailles-cou path { stroke: #9c1840; }
.bateau__svg .queue, .bateau__svg .cou, .bateau__svg .tete-dragon, .bateau__svg .machoire, .bateau__svg .truffe { fill: var(--rose); stroke: var(--encre); stroke-width: 3; stroke-linejoin: round; }
.bateau__svg .gueule { fill: #5a0f22; }
.bateau__svg .langue { fill: none; stroke: #ff8fab; stroke-width: 4; stroke-linecap: round; }
.bateau__svg .crocs { fill: #fff; stroke: var(--encre); stroke-width: 1.2; stroke-linejoin: round; }
.bateau__svg .criniere { fill: var(--laiton); stroke: var(--encre); stroke-width: 2.5; stroke-linejoin: round; }
.bateau__svg .corne { fill: none; stroke: #f6e3b8; stroke-width: 5; stroke-linecap: round; }
.bateau__svg .corne--fond { stroke: #c9b48a; stroke-width: 4; }
.bateau__svg .narine { fill: var(--encre); }
.bateau__svg .oeil-blanc { fill: #fff; stroke: var(--encre); stroke-width: 2; }
.bateau__svg .oeil { fill: var(--encre); }
.bateau__svg .sourcil { fill: none; stroke: var(--laiton); stroke-width: 5; stroke-linecap: round; }
.bateau__svg .moustache { fill: none; stroke: #f6e3b8; stroke-width: 2.5; stroke-linecap: round; }
.bateau__svg .barbe { fill: none; stroke: var(--laiton); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.bateau__svg .corps { stroke: var(--rose); stroke-width: 15; stroke-linecap: round; }
.bateau__svg .corps--barreur, .bateau__svg .jambe { stroke: #f6e3b8; }
.bateau__svg .jambe { stroke-width: 9; stroke-linecap: round; }
.bateau__svg .tete { fill: #fff; stroke: var(--encre); stroke-width: 2.5; }
.bateau__svg .visiere { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; }
.bateau__svg .membre { fill: none; stroke: var(--rose); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.bateau__svg .manche, .bateau__svg .poignee, .bateau__svg .baton { stroke: #f6e3b8; stroke-width: 4; stroke-linecap: round; }
.bateau__svg .pale { stroke: #f6e3b8; stroke-width: 12; stroke-linecap: round; }
.bateau__svg .contour { stroke: var(--encre); stroke-width: 6.5; stroke-linecap: round; }
.bateau__svg .contour--pale { stroke-width: 15; }
.bateau__svg .gouverne { stroke: #f6e3b8; stroke-width: 4; stroke-linecap: round; }
.bateau__svg .fut { fill: #b5442b; stroke: var(--encre); stroke-width: 2.5; }
.bateau__svg .peau { fill: #f6e3b8; stroke: var(--encre); stroke-width: 2; }
.bateau__svg .eau { fill: #2f6d64; opacity: .78; }
.bateau__svg .remous ellipse { fill: #cfe5df; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bateau__svg .sillage { stroke: #cfe5df; stroke-width: 2.5; stroke-linecap: round; fill: none; opacity: 0; }
.rang--fond { opacity: .55; }
.rang--fond .corps, .rang--fond .membre { stroke: #b8234f; }

/* Position de repos : pagaie prête, pale hors de l'eau */
.torse { transform-origin: 0 0; transform: rotate(10deg); }
.bras { transform-origin: 4px -34px; transform: translateY(-8px) rotate(-10deg); }
.baguette { transform-origin: -2px -32px; }

/* Un coup de pagaie : grande allonge vers l'avant, attaque, traction le long de la coque, sortie à la hanche, retour */
.bateau__scene.coup .torse { animation: torse .95s cubic-bezier(.45,0,.35,1) both; animation-delay: calc(var(--i) * 25ms); }
.bateau__scene.coup .bras  { animation: bras .95s cubic-bezier(.45,0,.35,1) both; animation-delay: calc(var(--i) * 25ms); }
.bateau__scene.coup .remous ellipse { animation: remous .95s ease-out both; animation-delay: calc(var(--i) * 25ms); }
.bateau__scene.coup .baguette { animation: baguette .3s ease-out; }
@keyframes torse {
  0%   { transform: rotate(10deg); }
  24%  { transform: rotate(34deg); }
  34%  { transform: rotate(34deg); }
  68%  { transform: rotate(-8deg); }
  84%  { transform: rotate(-2deg); }
  100% { transform: rotate(10deg); }
}
@keyframes bras {
  0%   { transform: translateY(-8px) rotate(-10deg); }
  24%  { transform: translateY(-6px) rotate(-44deg); }
  34%  { transform: translateY(9px)  rotate(-42deg); }
  68%  { transform: translateY(9px)  rotate(28deg); }
  82%  { transform: translateY(-18px) rotate(30deg); }
  100% { transform: translateY(-8px) rotate(-10deg); }
}
@keyframes remous {
  0%, 30% { opacity: 0; transform: scale(.4); }
  45%     { opacity: .8; }
  100%    { opacity: 0; transform: scale(1.8); }
}
@keyframes baguette {
  0%   { transform: rotate(0); }
  40%  { transform: rotate(-35deg); }
  100% { transform: rotate(0); }
}

@media (max-width: 900px) {
  .bateau { grid-template-columns: 1fr; grid-template-areas: "texte" "scene" "commande"; grid-template-rows: auto; row-gap: 1.4rem; }
  .bateau__commande { text-align: center; max-width: none; }
  .bateau__commande .tambour { margin-top: 0; }
  .bateau__aide { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .bateau__commande .tambour { width: 100%; justify-content: center; padding: 1rem 1.4rem; font-size: 1.05rem; }
}

/* ---------- Sections génériques ---------- */
.section { max-width: var(--large); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--marge); }
.section__tete { margin-bottom: 2.5rem; }
.section__suite { margin-top: 2rem; }

/* Étapes (vraie séquence : numérotation justifiée) */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: etape; }
.etapes li { counter-increment: etape; position: relative; padding: 3.6rem 1.6rem 0 0; }
.etapes li::before { content: counter(etape); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  font: 800 1.05rem var(--titre); color: var(--blanc); background: var(--rose); border-radius: 50%; z-index: 1; }
.etapes li::after { content: ""; position: absolute; top: 1.3rem; left: 2.6rem; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--oise) 0 8px, transparent 8px 14px); opacity: .35; }
.etapes li:last-child::after { display: none; }
.etapes p { font-size: 1.05rem; }
@media (max-width: 860px) {
  .etapes { grid-template-columns: 1fr; gap: 1.8rem; }
  .etapes li { padding: 0 0 0 3.8rem; }
  .etapes li::after { top: 2.6rem; bottom: -1.8rem; left: 1.3rem; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--oise) 0 8px, transparent 8px 14px); }
}

/* Santé */
.sante { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; border-top: 2px solid rgba(23,63,58,.12); }
.encadrement { background: var(--blanc); border-radius: var(--rayon); padding: 2rem; border-top: 6px solid var(--rose); }
.encadrement ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.encadrement li { padding-left: 1.6rem; position: relative; font-size: 1.05rem; }
.encadrement li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--laiton); }
@media (max-width: 860px) { .sante { grid-template-columns: 1fr; } }

/* Venise */
.venise { position: relative; display: grid; min-height: clamp(26rem, 70vh, 38rem); color: var(--blanc); background: var(--encre); overflow: hidden; }
.venise__photo { position: absolute; inset: 0; }
.venise__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19,33,31,.95) 0%, rgba(19,33,31,.55) 55%, rgba(19,33,31,.2) 100%); }
.venise__texte { position: relative; align-self: end; width: 100%; max-width: var(--large); margin: 0 auto; padding: 6rem var(--marge) 4rem; }
.venise h2 { max-width: 18ch; }
.venise .a-confirmer { color: var(--encre); background: var(--laiton); }

/* Entreprises */
.entreprises { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: center; }
.chiffres { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgba(23,63,58,.15); border-radius: var(--rayon); overflow: hidden; }
.chiffres div { background: var(--blanc); padding: 1.4rem 1.2rem; }
.chiffres dt { font-size: .95rem; color: var(--oise-clair); }
.chiffres dd { margin: .2rem 0 0; font: 700 1.5rem var(--titre); color: var(--oise); }
@media (max-width: 860px) { .entreprises { grid-template-columns: 1fr; } }

/* Soutiens */
.soutiens { border-top: 2px solid rgba(23,63,58,.12); }
.logos { list-style: none; margin: 2rem 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.photo--logo { background: var(--blanc); border-radius: var(--rayon); width: 12.5rem; height: 7.5rem; padding: 1.1rem 1.4rem; }
.photo--logo { position: relative; }
.photo--logo img { object-fit: contain; }
.logo__nom { position: absolute; inset: 0; display: none; place-items: center; padding: 1rem; text-align: center; font-weight: 700; color: var(--oise); line-height: 1.25; }
.photo--logo:has(img.absente) .logo__nom { display: grid; }
.photo--logo img.absente { visibility: visible; opacity: 0; }
.partenaires { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.partenaires li { border: 2px solid rgba(23,63,58,.25); border-radius: 999px; padding: .35rem 1rem; font-weight: 700; color: var(--oise); }
.partenaires a { color: inherit; text-decoration: none; }
.partenaires a:hover { color: var(--rose-fonce); }

/* Presse : bande défilante horizontale */
.presse__liste { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 16rem); gap: 1.4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.presse__liste li { scroll-snap-align: start; }
.presse__liste a { display: block; text-decoration: none; color: inherit; }
.presse__vignette { display: block; aspect-ratio: 3 / 4; border-radius: .8rem; }
.presse__vignette img { object-position: top; transition: transform .35s ease; }
.presse__liste a:hover img { transform: scale(1.04); }
.presse__source { display: block; margin-top: .8rem; font-size: .9rem; color: var(--oise-clair); }
.presse__titre { display: block; font-weight: 700; line-height: 1.35; }

/* Film */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: var(--oise); }
.video__affiche { position: absolute; inset: 0; }
.video__affiche::after { content: ""; position: absolute; inset: 0; background: rgba(19,33,31,.35); }
.video__lecture { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .6rem;
  font: 500 1rem var(--titre); color: var(--blanc); background: var(--rose-fonce); border: 0; border-radius: 999px; padding: 1rem 1.6rem 1rem 1.2rem; cursor: pointer; transition: transform .15s ease; }
.video__lecture:hover { transform: translate(-50%, -50%) scale(1.05); }
.video__lecture svg { width: 1.6rem; height: 1.6rem; }
.video__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; padding: .7rem 1rem; font-size: .85rem; color: var(--blanc); background: rgba(19,33,31,.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Appel final */
.appel { background: var(--rose-fonce); color: var(--blanc); padding: clamp(3rem, 7vw, 5rem) var(--bord); }
.appel .bouton--rose { background: var(--blanc); color: var(--rose-fonce); }
.appel .bouton--rose:hover { background: var(--brume); }

/* Visionneuse presse */
.visionneuse { max-width: min(92vw, 56rem); max-height: 92vh; width: 100%; border: 0; border-radius: var(--rayon); padding: 3.4rem 1.2rem 1.2rem; background: var(--blanc); }
.visionneuse::backdrop { background: rgba(19,33,31,.82); }
.visionneuse img { max-height: 70vh; width: auto; margin: 0 auto; }
.visionneuse__legende { text-align: center; font-weight: 700; margin: .8rem auto; }
.visionneuse__fermer { position: absolute; top: .8rem; right: .8rem; }
.visionneuse__nav { display: flex; justify-content: space-between; }
.visionneuse button { font: 700 1rem var(--texte); background: var(--brume); color: var(--oise); border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.visionneuse button:hover { background: #dbe7e3; }

/* ---------- Pages intérieures ---------- */
.bandeau { background: var(--oise); color: var(--blanc); position: relative; }
.bandeau h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 18ch; }
.bandeau__intro { font-size: 1.25rem; max-width: 44ch; margin: 0; }
.bandeau__texte { position: relative; z-index: 1; padding: clamp(2.8rem, 6vw, 4.5rem) var(--bord) clamp(2.4rem, 5vw, 3.5rem); }
.bandeau__photo img { width: 100%; height: 100%; object-fit: cover; }

/* Variante « compact » : photo en fond, hauteur limitée, texte sur un dégradé */
.bandeau--compact { display: grid; min-height: clamp(19rem, 46vh, 28rem); overflow: hidden; }
.bandeau--compact .bandeau__photo { position: absolute; inset: 0; }
.bandeau--compact .bandeau__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,63,58,.95) 0%, rgba(23,63,58,.72) 45%, rgba(23,63,58,.1) 85%); }
.bandeau--compact .bandeau__texte { align-self: end; }
@media (max-width: 760px) {
  .bandeau--compact .bandeau__photo::after { background: linear-gradient(0deg, rgba(23,63,58,.97) 15%, rgba(23,63,58,.45) 100%); }
}

/* Variante « titre puis photo » : le texte sur fond vert, la photo en bandeau panoramique dessous */
.bandeau--scinde .bandeau__photo { position: relative; height: clamp(12rem, 30vw, 22rem); }

/* Variante « côte à côte » : texte à gauche, photo à droite */
.bandeau--cote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(18rem, 40vh, 26rem); }
.bandeau--cote .bandeau__texte { align-self: center; padding-left: max(var(--marge), calc((100vw - var(--large)) / 2 + var(--marge))); padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.bandeau--cote .bandeau__photo { position: relative; min-height: 14rem; }
@media (max-width: 760px) {
  .bandeau--cote { grid-template-columns: 1fr; }
  .bandeau--cote .bandeau__photo { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Variante « sobre » : pas de photo, juste le titre */
.bandeau--sobre .bandeau__photo { display: none; }

.colonnes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
@media (max-width: 860px) { .colonnes { grid-template-columns: 1fr; } }
.section--filet { border-top: 2px solid rgba(23,63,58,.12); }
.texte h2 { margin-top: 0; }
.texte h3 { margin-top: 2rem; }
.texte ul { padding-left: 1.2rem; max-width: 64ch; }
.texte li { margin-bottom: .4rem; }

/* Fiche d'infos pratiques */
.fiche { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: rgba(23,63,58,.15); border-radius: var(--rayon); overflow: hidden; }
.fiche div { background: var(--blanc); padding: 1.3rem 1.4rem; }
.fiche dt { font-size: .95rem; color: var(--oise-clair); }
.fiche dd { margin: .25rem 0 0; font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.fiche dd strong { display: block; font: 700 1.35rem var(--titre); color: var(--oise); margin-bottom: .15rem; }
@media (max-width: 860px) { .fiche { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fiche { grid-template-columns: 1fr; } }

/* Questions fréquentes */
.faq { max-width: 50rem; border-top: 2px solid rgba(23,63,58,.15); }
.faq details { border-bottom: 2px solid rgba(23,63,58,.15); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 700; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brume) linear-gradient(var(--oise), var(--oise)) center / 12px 2px no-repeat;
  box-shadow: inset 0 0 0 2px var(--oise); transition: transform .25s ease; }
.faq details:not([open]) summary::after { background-image: linear-gradient(var(--oise), var(--oise)), linear-gradient(var(--oise), var(--oise)); background-size: 12px 2px, 2px 12px; background-repeat: no-repeat; background-position: center; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--rose-fonce); }
.faq .reponse { padding: 0 0 1.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .reponse { animation: monte .3s ease both; }
}

/* Frise chronologique (vraie séquence) */
.frise { --col: 5.4rem; list-style: none; margin: 0; padding: 0; position: relative; max-width: 52rem; }
.frise::before { content: ""; position: absolute; left: var(--col); top: .6rem; bottom: .6rem; width: 2px; background: repeating-linear-gradient(180deg, var(--oise) 0 8px, transparent 8px 14px); opacity: .35; }
.frise li { display: grid; grid-template-columns: var(--col) 1fr; gap: 0 2rem; padding-bottom: 2.2rem; position: relative; }
.frise li::before { content: ""; position: absolute; left: calc(var(--col) - 7px); top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px var(--brume); }
.frise__annee { font: 800 1.15rem var(--titre); color: var(--oise); padding-top: .15rem; }
.frise h3 { margin-bottom: .3rem; }
.frise p { margin: 0; }
@media (max-width: 600px) { .frise { --col: 3.6rem; } .frise li { gap: 0 1.4rem; } .frise__annee { font-size: .95rem; } }
.frise li.nous::before { background: var(--laiton); width: 20px; height: 20px; left: calc(var(--col) - 9px); }

/* Déroulé numéroté */
.deroule { list-style: none; margin: 0; padding: 0; counter-reset: d; display: grid; gap: 1.4rem; max-width: 46rem; }
.deroule li { counter-increment: d; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; align-items: start; }
.deroule li::before { content: counter(d); width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font: 800 1.05rem var(--titre); color: var(--blanc); background: var(--rose); border-radius: 50%; }
.deroule h3 { margin: .45rem 0 .2rem; }
.deroule p { margin: 0; }

.carte-info { background: var(--blanc); border-radius: var(--rayon); padding: 2rem; border-top: 6px solid var(--laiton); }
.carte-info h2, .carte-info h3 { margin-top: 0; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3 { font-family: var(--titre); font-size: 1.15rem; letter-spacing: -.01em; }
.carte-info ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.carte-info li { padding-left: 1.4rem; position: relative; }
.carte-info li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--rose); }
.carte-info address { font-style: normal; margin-bottom: 1rem; }
.soutiens-choix { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.soutiens-choix li { background: var(--blanc); border-radius: var(--rayon); padding: 2rem; display: flex; flex-direction: column; align-items: flex-start; }
.soutiens-choix li:first-child { border-top: 6px solid var(--rose); }
.soutiens-choix li:nth-child(2) { border-top: 6px solid var(--oise); }
.soutiens-choix li:nth-child(3) { border-top: 6px solid var(--laiton); }
.soutiens-choix p { flex: 1; }
@media (max-width: 860px) { .soutiens-choix { grid-template-columns: 1fr; } }
.carte-photo { border-radius: var(--rayon); aspect-ratio: 4 / 3; }
.galerie { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; }
.galerie li { aspect-ratio: 4 / 3; }
.galerie a { display: block; height: 100%; border-radius: .8rem; }
.galerie img { transition: transform .35s ease; }
.galerie a:hover img { transform: scale(1.04); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #cfdcd8; font-size: 1rem; }
.pied a { color: var(--blanc); }
.pied__in { max-width: var(--large); margin: 0 auto; padding: 3.5rem var(--marge) 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.pied__titre { font: 700 1rem var(--titre); color: var(--blanc); }
.pied address { font-style: normal; margin-bottom: .6rem; }
.pied__bas { max-width: var(--large); margin: 0 auto; padding: 1.2rem var(--marge) 2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }
@media (max-width: 760px) { .pied__in { grid-template-columns: 1fr; } }

/* ---------- Formulaire (page contact) ---------- */
.formulaire { display: grid; gap: 1.2rem; max-width: 38rem; }
.champ label { display: block; font-weight: 700; margin-bottom: .35rem; }
.champ input, .champ select, .champ textarea { width: 100%; font: inherit; padding: .8rem 1rem; border: 2px solid rgba(23,63,58,.3); border-radius: .7rem; background: var(--blanc); color: var(--encre); }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--oise); outline: 3px solid rgba(228,169,60,.5); outline-offset: 0; }
.champ textarea { min-height: 10rem; resize: vertical; }
.champ--piege { position: absolute; left: -9999px; }
.message { padding: 1rem 1.2rem; border-radius: .7rem; font-weight: 700; }
.message--ok { background: #dff1e6; color: #145a32; }
.message--erreur { background: #fde4ea; color: #8f1235; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
