/* Sauvetage de Morges – feuille de style du site public */
:root {
  --nuit: #0B2A4A;
  --nuit-2: #12406B;
  --nuit-3: #071C33;
  --orange: #C2410C;
  --orange-clair: #FDBA74;
  --lac: #1F6299;
  --fond: #F6F8FA;
  --blanc: #FFFFFF;
  --texte: #0F1E2E;
  --texte-2: #33465A;
  --gris: #4A5B6C;
  --bordure: #DCE3EA;
  --bleu-pale: #DCE7F2;
  --bleu-gris: #9DB8D3;
  --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --corps: 'Source Sans 3', system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--corps); color: var(--texte); background: var(--fond); font-size: 17px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--nuit); }
a:hover { color: var(--orange); }
h1, h2, h3 { font-family: var(--titre); color: var(--nuit); margin: 0; line-height: 1; }
h2 { font-size: clamp(34px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 28px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--nuit); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Bandeau urgence */
.urgence { background: var(--orange); color: #fff; padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 16px; }
.urgence strong { text-transform: uppercase; letter-spacing: .04em; }
.urgence a { color: #fff; font-weight: 700; font-size: 18px; }

/* En-tête */
.entete { background: var(--blanc); border-bottom: 1px solid var(--bordure); position: sticky; top: 0; z-index: 50; }
.entete .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--nuit); flex-shrink: 0; }
.marque img, .marque .logo-vide { width: 48px; height: 48px; border-radius: 50%; }
.logo-vide { display: block; flex-shrink: 0; background: var(--nuit); }
.marque span { display: flex; flex-direction: column; line-height: 1.05; }
.marque b { font-family: var(--titre); font-weight: 800; font-size: 24px; letter-spacing: .02em; }
.marque small { font-size: 13px; color: var(--gris); }
.marque b, .marque small { white-space: nowrap; }
.menu { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 20px; font-weight: 600; margin-left: auto; }
.menu a { text-decoration: none; white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--orange); }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #A8380A; color: #fff; }
.btn-nuit { background: var(--nuit); color: #fff; }
.btn-nuit:hover { background: var(--nuit-2); color: #fff; }
.btn-lac { background: var(--lac); color: #fff; }
.btn-lac:hover { background: #18507D; color: #fff; }
.btn-blanc { background: #fff; color: var(--nuit); }
.btn-noir { background: var(--texte); color: #fff; }
.btn-noir:hover { background: #000; color: #fff; }
.btn-contour { border: 1.5px solid var(--nuit); padding: 9px 14px; border-radius: 8px; }
.menu .btn { padding: 10px 16px; border-radius: 8px; }
.burger { display: none; background: none; border: 1.5px solid var(--nuit); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--nuit); margin: 4px auto; }

@media (max-width: 1020px) {
  .entete .wrap { flex-wrap: nowrap; }
  .marque { flex-shrink: 1; min-width: 0; }
  .burger { display: block; flex-shrink: 0; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; border-bottom: 1px solid var(--bordure); gap: 4px; }
  .menu.ouvert { display: flex; }
  .menu a { padding: 10px 0; }
  .menu .btn, .menu .btn-contour { text-align: center; margin-top: 6px; }
}

/* Hero */
.hero { position: relative; background: var(--nuit-2); color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,74,.95) 0%, rgba(11,42,74,.6) 55%, rgba(11,42,74,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; }
.surtitre { font-weight: 700; color: var(--orange-clair); letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(42px, 7vw, 86px); line-height: .95; max-width: 780px; }
.hero p { font-size: 20px; max-width: 600px; color: var(--bleu-pale); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions .btn { font-size: 18px; padding: 16px 28px; }
.hero-court .wrap { padding-top: 72px; padding-bottom: 72px; }

/* Chiffres */
.chiffres { position: relative; margin-top: -48px; }
.chiffres-carte { background: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(11,42,74,.12); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px; }
.chiffre b { white-space: nowrap; display: block; font-family: var(--titre); font-weight: 800; font-size: 52px; line-height: 1; color: var(--nuit); }
.chiffre.accent b { color: var(--orange); }
.chiffre span { color: var(--gris); }

/* Sections */
.section { padding: 88px 0; }
.section-blanche { background: #fff; }
.section-nuit { background: var(--nuit); color: #fff; }
.section-nuit h2, .section-nuit h3 { color: #fff; }
.pile { display: flex; flex-direction: column; gap: 32px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.deux { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.deux > * { flex: 1 1 440px; min-width: 0; }
.etiquette { font-weight: 700; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.section-nuit .etiquette { color: var(--orange-clair); }
.intro { font-size: 18px; color: var(--texte-2); max-width: 720px; }
.section-nuit .intro { color: var(--bleu-pale); }

.carte { background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; border-top: 6px solid var(--nuit); }
.carte.orange { border-top-color: var(--orange); }
.carte.lac { border-top-color: var(--lac); }
.carte p { color: var(--texte-2); }
.carte .bas { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.carte svg { width: 36px; height: 36px; }

.reflexes { display: flex; flex-direction: column; gap: 14px; }
.reflexe { background: #fff; border-radius: 12px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.reflexe > b { font-family: var(--titre); font-weight: 800; font-size: 28px; color: var(--orange); line-height: 1; }
.reflexe strong { color: var(--nuit); }
.reflexe p { color: var(--texte-2); margin-top: 4px; }

.vent { background: var(--nuit); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.vent h3 { color: #fff; }
.vent small { color: var(--bleu-gris); }
.vent-live { display: flex; align-items: center; gap: 24px; }
.vent-rose { width: 120px; height: 120px; flex-shrink: 0; }
.vent-rose svg { width: 100%; height: 100%; }
.vent-chiffres { display: flex; flex-direction: column; gap: 4px; color: var(--bleu-pale); min-width: 0; }
.vent-vitesse { font-family: var(--titre); font-weight: 800; font-size: 60px; line-height: 1; color: #fff; }
.vent-vitesse small { font-size: 24px; }
.vent-dir b { color: var(--orange-clair); }
.vent-graph { width: 100%; height: 110px; display: block; background: var(--nuit-2); border-radius: 10px; }
.vent-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--bleu-gris); }
.vent-legende i { display: inline-block; width: 14px; height: 4px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.vent-legende .l-moy { background: #fff; }
.vent-legende .l-raf { background: #E07A3E; height: 8px; }
.vent-maj { font-size: 13px; color: var(--bleu-gris); }
.vent-maj a { color: var(--bleu-pale); }
.vent-maj.vieux { color: var(--orange-clair); }
.vent-erreur { margin: 0; padding: 16px; background: var(--nuit-2); border-radius: 10px; color: var(--bleu-pale); }
.vent-erreur a { color: #fff; }
[data-vent] { display: flex; flex-direction: column; gap: 14px; }

.bateau { border-radius: 16px; overflow: hidden; background: var(--fond); display: flex; flex-direction: column; }
.bateau img, .photo-vide { width: 100%; height: 220px; object-fit: cover; }
.photo-vide { background: var(--bleu-pale); }
.bateau div { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.bateau .etiquette { font-size: 13px; letter-spacing: .08em; }
.bateau p { color: var(--texte-2); }

.frise { display: flex; flex-direction: column; }
.frise div { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid #23507E; align-items: baseline; }
.frise div:last-child { border-bottom: 0; }
.frise b { font-family: var(--titre); font-weight: 800; font-size: 28px; color: var(--orange-clair); min-width: 80px; }
.frise span { color: var(--bleu-pale); }

.reseaux { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sponsors */
.sponsors { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.sponsors h2 { font-size: 26px; color: var(--gris); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 40px; }
.logos a { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--texte-2); font-weight: 600; }
/* Même hauteur pour tous les logos d'un même niveau (largeur libre, jamais plus large que l'écran) */
.logos.principaux img { height: 72px; width: auto; max-width: 100%; object-fit: contain; }
.logos.partenaires img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
/* Fond blanc des logos rendu transparent sur le fond clair des sections */
.logos img { mix-blend-mode: multiply; }
.logos a { max-width: 100%; }
/* Boutons TWINT RaiseNow : pleine largeur du cadre, sans déborder */
[id^="rnw-paylink-button-"] { width: 100%; max-width: 420px; }

/* Étapes, FAQ, formulaire */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.etape { border-top: 4px solid var(--orange); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.etape b { font-family: var(--titre); font-weight: 800; font-size: 40px; color: var(--orange); line-height: 1; }
.etape strong { color: var(--nuit); font-size: 19px; }
.etape span { color: var(--texte-2); }
.role { background: #fff; border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.role p { color: var(--texte-2); }

.formulaire { background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 12px 32px rgba(11,42,74,.08); }
.formulaire label { font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.formulaire input, .formulaire select, .formulaire textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid #B8C4D0; border-radius: 8px; background: #fff; }
.formulaire .ligne { display: flex; flex-wrap: wrap; gap: 16px; }
.formulaire .ligne label { flex: 1 1 200px; }
.formulaire .btn { font-size: 18px; padding: 16px; }
.message-ok { background: #E7F4EC; color: #14532D; padding: 14px; border-radius: 8px; }
.message-err { background: #FDECEA; color: #8A1C12; padding: 14px; border-radius: 8px; }
.piege { position: absolute; left: -9999px; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 12px; padding: 18px 20px; }
.faq summary { font-weight: 700; color: var(--nuit); cursor: pointer; }
.faq p { margin-top: 10px; color: var(--texte-2); }

.texte { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; color: var(--texte-2); }
.texte h2 { margin-top: 24px; }
.a-completer { background: #FFF4E5; border: 1px dashed var(--orange); padding: 2px 6px; border-radius: 4px; color: #7C2D12; font-size: .95em; }

/* Pied de page */
.pied { background: var(--nuit-3); color: var(--bleu-pale); }
.pied .wrap { padding-top: 56px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.pied .col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.pied b { color: #fff; }
.pied a { color: var(--bleu-pale); }
.pied a:hover { color: #fff; }
.pied .marque-pied { font-family: var(--titre); font-weight: 800; font-size: 24px; color: #fff; }
.pied .urgence-pied { flex: 1 1 240px; background: var(--orange); border-radius: 12px; padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.pied .urgence-pied b { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.pied .urgence-pied span { font-family: var(--titre); font-weight: 800; font-size: 40px; line-height: 1; }
.pied .urgence-pied a { color: #fff; text-decoration: underline; text-underline-offset: 4px; display: inline-block; padding: 4px 2px; }
.pied .urgence-pied a:hover { color: #FDBA74; }
.pied .urgence-pied small { font-size: 13px; opacity: .9; }
.pied .bas { padding-top: 0; padding-bottom: 32px; font-size: 14px; color: var(--bleu-gris); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.pied .version { opacity: .8; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .wrap { padding-top: 72px; padding-bottom: 90px; }
  .section { padding: 64px 0; }
  .carte, .formulaire, .chiffres-carte { padding: 24px; }
  .marque b { font-size: 20px; }
  .urgence .long { display: none; }
  .chiffre b { font-size: 40px; }
  .marque { min-width: 0; gap: 10px; }
  .marque img, .marque .logo-vide { width: 40px; height: 40px; }
  .marque span { min-width: 0; }
  .marque b, .marque small { overflow: hidden; text-overflow: ellipsis; }
  .marque b { font-size: 19px; }
  .burger { flex-shrink: 0; }
  .vent { padding: 22px; }
  .vent-live { gap: 16px; }
  .vent-rose { width: 84px; height: 84px; }
  .vent-vitesse { font-size: 48px; }
  .vent-vitesse small { font-size: 20px; }
}

/* Comité (page Contact) */
.comite { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 16px; }
.membre-comite { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.photo-comite { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: var(--bleu-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.photo-comite img { width: 100%; height: 100%; object-fit: cover; }
.photo-comite span { font-family: var(--titre); font-weight: 800; font-size: 44px; color: var(--nuit); }
.membre-comite b { color: var(--nuit); font-size: 18px; }
.membre-comite > span { color: var(--texte-2); font-size: 15px; line-height: 1.35; }

/* Sponsors par niveau (projet nouveau bateau) */
.niveau-titre { font-size: 22px; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }

/* Page Nouveau bateau */
.bandeau-projet { background: var(--orange); color: #fff; }
.bandeau-projet .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.bandeau-projet b { font-family: var(--titre); font-size: 30px; font-weight: 800; display: block; line-height: 1.05; }
.bandeau-projet .btn { background: #fff; color: var(--orange); }
.bandeau-projet .btn:hover { background: var(--nuit); color: #fff; }
.raison { background: #fff; border-radius: 14px; padding: 24px; border-left: 6px solid #B7832F; display: flex; flex-direction: column; gap: 8px; }
.raison p { color: var(--texte-2); }
.budget { background: var(--nuit); color: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.budget small { color: var(--orange-clair); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.budget b { font-family: var(--titre); font-weight: 800; font-size: clamp(48px, 7vw, 72px); line-height: 1; }
.budget ul { margin: 0; padding-left: 20px; color: var(--bleu-pale); display: flex; flex-direction: column; gap: 6px; }
.calendrier { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.calendrier > div { border-top: 4px solid var(--bleu-pale); padding: 18px 16px 0 0; position: relative; }
.calendrier > div::before { content: ""; position: absolute; top: -12px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #B8C4D0; box-sizing: border-box; }
.calendrier b { display: block; font-family: var(--titre); font-size: 24px; color: var(--gris); }
.calendrier span { display: block; color: var(--texte-2); }
.calendrier .etat { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; }
.calendrier .fait { border-top-color: var(--orange); }
.calendrier .fait::before { background: var(--orange); border-color: var(--orange); content: "✓"; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.calendrier .fait b { color: var(--orange); }
.calendrier .fait .etat { background: #FCE9DD; color: #8A2E08; }
.calendrier .encours { border-image: linear-gradient(90deg, var(--orange) var(--avance, 50%), var(--bleu-pale) var(--avance, 50%)) 1; }
.calendrier .encours::before { width: 26px; height: 26px; top: -15px; left: -3px; background: var(--orange); border: 5px solid #FDBA74; box-shadow: 0 0 0 0 rgba(194,65,12,.5); animation: pulse 2s infinite; }
.calendrier .encours b { color: var(--orange); }
.calendrier .encours .etat { background: var(--orange); color: #fff; }
.calendrier .avenir .etat { background: #EEF2F6; color: var(--gris); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194,65,12,.45); } 70% { box-shadow: 0 0 0 12px rgba(194,65,12,0); } 100% { box-shadow: 0 0 0 0 rgba(194,65,12,0); } }
@media (prefers-reduced-motion: reduce) { .calendrier .encours::before { animation: none; } }
@media (max-width: 600px) {
  .calendrier { grid-template-columns: 1fr; padding-left: 14px; }
  .calendrier > div { border-top: 0; border-left: 4px solid var(--bleu-pale); padding: 0 0 26px 24px; }
  .calendrier > div:last-child { padding-bottom: 0; }
  .calendrier > div::before { top: 2px; left: -12px; }
  .calendrier .fait { border-left-color: var(--orange); }
  .calendrier .encours { border-image: linear-gradient(180deg, var(--orange) var(--avance, 40%), var(--bleu-pale) var(--avance, 40%)) 1; }
  .calendrier .encours::before { top: -1px; left: -15px; }
}
.niveaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.niveau { background: #fff; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--bleu-gris); }
.niveau.diamant { border-top-color: #5B8A99; }
.niveau.platine { border-top-color: #8A94A3; }
.niveau.or { border-top-color: #B7832F; }
.niveau h3 { font-size: 30px; }
.niveau .montant { font-weight: 700; color: var(--texte); }
.niveau ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--texte-2); }
.niveau li::before { content: "✓"; color: #2E7D4F; font-weight: 700; margin-right: 8px; }
.niveau li.non { color: #8A94A3; }
.niveau li.non::before { content: "–"; color: #8A94A3; }
.citation { background: var(--nuit); color: #fff; border-radius: 16px; padding: 32px; margin: 0; }
.citation p { font-size: 21px; line-height: 1.5; font-style: italic; }
.citation footer { margin-top: 14px; color: var(--orange-clair); font-weight: 700; }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 16px 20px; }
.iban code { font-size: 20px; font-weight: 700; color: var(--nuit); letter-spacing: .03em; font-family: var(--corps); }
.iban button { border: 1.5px solid var(--nuit); background: #fff; color: var(--nuit); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 600px) { .photo-comite { width: 104px; height: 104px; } .photo-comite span { font-size: 36px; } .membre-comite b { font-size: 16px; } .membre-comite > span { font-size: 14px; } }

/* Dons : général / nouveau bateau, bien séparés */
.dons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.don { border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.don p { color: var(--texte-2); }
.don-type { align-self: flex-start; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.don.general { background: var(--fond); border: 2px solid var(--nuit); }
.don.general .don-type { background: var(--nuit); color: #fff; }
.don.projet { background: #FFF4EC; border: 2px solid var(--orange); }
.don.projet .don-type { background: var(--orange); color: #fff; }

/* Jumelages (page Histoire) */
.jumelages { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 4px; }
.jumelage { background: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.jumelage img { width: 140px; height: 140px; object-fit: contain; margin-bottom: 6px; }
.jumelage b { color: var(--nuit); font-size: 17px; }
.jumelage span { color: var(--texte-2); font-size: 15px; }

/* Webcam (page Navigateurs) : lien vers MySwitzerland, ouverte dans un nouvel onglet */
.webcam-lien { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; min-height: 220px; background: var(--nuit); text-decoration: none; }
.webcam-lien img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.webcam-lien:hover img { transform: scale(1.03); }
.webcam-lien::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,42,74,.85) 0%, rgba(11,42,74,.1) 60%); }
.webcam-badge { position: absolute; top: 16px; left: 16px; z-index: 1; background: #fff; color: var(--nuit); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 20px; display: flex; align-items: center; gap: 8px; }
.webcam-badge i { width: 10px; height: 10px; border-radius: 50%; background: #D92D20; }
.webcam-cta { position: absolute; left: 20px; bottom: 18px; z-index: 1; color: #fff; font-family: var(--titre); font-weight: 800; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.webcam-source { font-size: 14px; color: var(--gris); }
.webcam { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; border-radius: 16px; overflow: hidden; background: var(--nuit); }
.webcam iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .webcam { aspect-ratio: 4 / 5; } }
.vent-webcam { color: #fff; font-weight: 700; }
.vent-webcam:hover { color: var(--orange-clair); }


/* Photo d'accueil (318 au port) : cadrage décalé à droite sur téléphone pour garder le bateau visible */
@media (max-width: 700px) { .hero-318 { object-position: 72% center; } }

/* Photo dans un texte (page Histoire) */
.photo-texte { margin: 0; }
.photo-texte img { width: 100%; max-height: 520px; object-fit: cover; object-position: 50% 60%; border-radius: 14px; }
.photo-texte figcaption { font-size: 14px; color: var(--gris); margin-top: 6px; }

/* Bandeaux photo des pages Navigateurs et Nous rejoindre : voile plus léger à droite pour laisser voir le sujet */
.hero:has(.hero-photo-droite)::after { background: linear-gradient(90deg, rgba(11,42,74,.92) 0%, rgba(11,42,74,.55) 50%, rgba(11,42,74,.05) 100%); }
@media (max-width: 700px) { .hero:has(.hero-photo-droite)::after { background: linear-gradient(0deg, rgba(11,42,74,.9) 0%, rgba(11,42,74,.55) 60%, rgba(11,42,74,.35) 100%); } }

/* Page Paddle : règle des 300 m mise en avant */
.paddle-regle { display: flex; gap: 28px; align-items: center; background: var(--orange); color: #fff; border-radius: 16px; padding: 28px 32px; }
.paddle-regle > b { font-family: var(--titre); font-size: clamp(56px, 9vw, 96px); line-height: .9; white-space: nowrap; }
.paddle-regle strong { display: block; font-size: 22px; margin-bottom: 6px; }
.paddle-regle p { color: #fff; margin: 0; opacity: .95; }
@media (max-width: 600px) { .paddle-regle { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; } }

/* Bandeau Navigateurs (orage) : voile léger pour laisser voir l'éclair à gauche, ciel déjà sombre */
.hero:has(.hero-orage)::after { background: linear-gradient(90deg, rgba(11,42,74,.55) 0%, rgba(11,42,74,.35) 45%, rgba(11,42,74,.05) 100%); }
.hero:has(.hero-orage) h1, .hero:has(.hero-orage) p, .hero:has(.hero-orage) .surtitre { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
@media (max-width: 700px) { .hero:has(.hero-orage)::after { background: linear-gradient(0deg, rgba(11,42,74,.75) 0%, rgba(11,42,74,.35) 60%, rgba(11,42,74,.2) 100%); } }

/* Carte swisstopo du secteur (page Navigateurs) */
.carte-secteur { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--bleu-pale); margin: 8px 0 4px; }
.carte-secteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Galerie « Ce qui t'attend » (Nous rejoindre) */
.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.galerie figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--nuit); }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-family: var(--titre); font-weight: 800; font-size: 24px; background: linear-gradient(0deg, rgba(11,42,74,.9), rgba(11,42,74,0)); }
@media (max-width: 600px) { .galerie figure { aspect-ratio: 4 / 3; } }
/* Grande photo dans le texte (Nouveau bateau) */
.photo-large { margin: 0; }
.photo-large img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; display: block; }
.photo-large figcaption { font-size: 14px; color: var(--gris); margin-top: 8px; }
@media (max-width: 600px) { .photo-large img { aspect-ratio: 4 / 3; } }
/* Bande de nuit au-dessus des dons (accueil) */
.bande-nuit { position: relative; border-radius: 16px; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; background: var(--nuit); }
.bande-nuit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.bande-nuit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,74,.85) 0%, rgba(11,42,74,.3) 70%); }
.bande-nuit p { position: relative; z-index: 1; color: #fff; margin: 0; padding: 28px 32px; font-size: 18px; max-width: 560px; }
.bande-nuit b { display: block; font-family: var(--titre); font-size: clamp(30px, 5vw, 44px); line-height: 1; margin-bottom: 8px; }


/* Frise des présidents : hauteur de chaque mandat proportionnelle à sa durée */
.presidents-bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.presidents-bloc > div { position: sticky; top: 120px; }
@media (max-width: 860px) { .presidents-bloc { grid-template-columns: 1fr; gap: 20px; } .presidents-bloc > div { position: static; } }
.frise-presidents { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; position: relative; max-width: 640px; }
.frise-presidents::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--bleu-pale); border-radius: 2px; }
.frise-presidents li { position: relative; display: grid; grid-template-columns: 112px 1fr auto; gap: 14px; align-items: start; min-height: max(30px, calc(var(--ans) * 4.5px)); padding-left: 10px; }
.frise-presidents li::before { content: ""; position: absolute; left: -24px; top: 4px; width: 11px; height: max(11px, calc(var(--ans) * 4.5px - 10px)); border-radius: 6px; background: var(--orange); }
.frise-presidents li:nth-child(even)::before { background: var(--nuit); }
.frise-presidents b { font-family: var(--titre); font-weight: 700; font-size: 19px; color: var(--orange); line-height: 1.2; }
.frise-presidents span { font-weight: 600; line-height: 1.35; }
.frise-presidents small { color: var(--gris); font-size: 13px; line-height: 1.6; }
.frise-presidents .actuel span { font-weight: 800; }
.frise-presidents .actuel::before { background: linear-gradient(180deg, var(--orange), rgba(0,0,0,0)); }
@media (max-width: 500px) { .frise-presidents li { grid-template-columns: 108px 1fr; } .frise-presidents small { display: none; } }

/* Jauge de la collecte (pourcentage seulement) */
.jauge { margin: 4px 0 6px; }
.jauge-tete { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.jauge-tete b { font-family: var(--titre); font-size: 34px; line-height: 1; color: var(--orange); }
.jauge-tete span { font-size: 15px; }
.jauge-barre { height: 14px; border-radius: 7px; background: rgba(11,42,74,.12); overflow: hidden; }
.jauge-barre i { display: block; height: 100%; border-radius: 7px; background: var(--orange); transition: width .8s ease; }
.jauge.sur-sombre { margin: 12px 0 14px; }
.jauge.sur-sombre .jauge-barre { background: rgba(255,255,255,.25); }
.jauge.sur-sombre .jauge-tete b, .jauge.sur-sombre .jauge-tete span { color: inherit; }
/* Urgence : pastille flottante, sur téléphone seulement */
.urgence-flottante { display: none; }
@media (max-width: 700px) {
  .urgence-flottante { display: block; position: fixed; right: 12px; bottom: 12px; z-index: 60; }
  .urgence-flottante summary { list-style: none; cursor: pointer; background: #B91C1C; color: #fff; font-weight: 700; font-size: 15px; padding: 11px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
  .urgence-flottante summary::-webkit-details-marker { display: none; }
  .urgence-flottante summary::before { content: "☎ "; }
  .urgence-flottante div { position: absolute; right: 0; bottom: calc(100% + 8px); display: grid; gap: 8px; width: 210px; }
  .urgence-flottante a { display: flex; justify-content: space-between; align-items: baseline; background: #fff; color: #B91C1C; font-weight: 800; font-size: 18px; text-decoration: none; padding: 14px 16px; border-radius: 12px; border: 2px solid #B91C1C; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .urgence-flottante a small { font-weight: 600; font-size: 13px; color: #555; }
  .pied { padding-bottom: 64px; }
}
.note-donnees { font-size: 13px; color: var(--gris); margin: 0; }
/* Pages de texte (merci, mentions légales) */
.texte-long { max-width: 760px; }
.texte-long h2 { margin-top: 28px; }
.texte-long ul { padding-left: 20px; }
.partager { display: flex; flex-wrap: wrap; gap: 10px; }
.budget .jauge-tete b { font-size: 34px; color: var(--orange-clair); }
.etape ul { margin: 0; padding-left: 18px; color: var(--texte-2); display: flex; flex-direction: column; gap: 4px; }

/* Cartes « Nos bateaux » : plusieurs photos qui se succèdent en fondu */
.diapo { position: relative; width: 100%; height: 220px; padding: 0; display: block; }
.diapo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.diapo img.vue { opacity: 1; }
.diapo .points { position: absolute; left: 0; right: 0; bottom: 10px; padding: 0; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 7px; z-index: 1; }
.diapo .points button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.4); cursor: pointer; }
.diapo .points button[aria-current="true"] { background: #fff; width: 22px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) { .diapo img { transition: none; } }

/* Galerie */
.albums { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.albums button { border: 1px solid var(--bleu-pale); background: #fff; color: var(--nuit); font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.albums button[aria-current="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.grille-photos figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bleu-pale); cursor: zoom-in; }
.grille-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.grille-photos figure:hover img { transform: scale(1.04); }
.grille-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 14px; line-height: 1.35; background: linear-gradient(0deg, rgba(11,42,74,.88), rgba(11,42,74,0)); }
/* Photo en grand */
.visionneuse { position: fixed; inset: 0; z-index: 90; background: rgba(6,20,36,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; object-fit: contain; }
.visionneuse p { color: #fff; max-width: 760px; text-align: center; margin: 14px 0 0; font-size: 15px; }
.visionneuse .fermer { position: absolute; top: 12px; right: 14px; }
.visionneuse button { border: 0; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 22px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.visionneuse button:hover { background: rgba(255,255,255,.28); }
.visionneuse .prec { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.visionneuse .suiv { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .visionneuse .prec { left: 8px } .visionneuse .suiv { right: 8px } .grille-photos { gap: 8px } }

/* Certifications des formations (page Nous rejoindre) */
.certifications { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: 12px; width: 100%; }
.certif { background: #fff; border: 1px solid var(--bleu-pale); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.certif:hover { border-color: var(--orange); transform: translateY(-2px); }
.certif img { height: 84px; width: 230px; object-fit: contain; margin-bottom: 10px; }
.certif b { color: var(--nuit); font-size: 17px; }
.certif span { color: var(--texte-2); font-size: 15px; }

/* Appel vers la page Paddle : le public qui n'a ni permis ni formation */
.appel-paddle { display: block; background: var(--orange); color: #fff; border-radius: 14px; padding: 20px 22px; text-decoration: none; transition: transform .2s ease; }
.appel-paddle:hover { transform: translateY(-2px); }
.appel-paddle b { display: block; font-family: var(--titre); font-size: clamp(24px, 4vw, 30px); line-height: 1.1; margin-bottom: 6px; }
.appel-paddle span { display: block; font-size: 16px; line-height: 1.5; }
.appel-paddle strong { font-weight: 700; }
.appel-paddle:hover, .appel-paddle:hover strong, .appel-paddle:hover b { color: #fff; }
.certif:hover b, .certif:hover span { color: inherit; }
.jumelage { text-decoration: none; }
.jumelage:hover { outline: 2px solid var(--orange); }
.jumelage:hover b { color: var(--orange); }
.chiffres-annee { text-align: center; color: var(--gris); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.pied .colonne-marque a, .pied p a, .pied span a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
