/* =========================================================
   Cluster Maritime Martinique — feuille de style (v2, moderne)
   ========================================================= */
:root {
  --nuit: #081a3a;
  --marine: #0c224e;
  --marine-2: #143a7a;
  --ocean: #1f5fbf;
  --lagon: #35c6d0;
  --lagon-clair: #e6f7f8;
  --rouge: #e8412c;          /* rouge du logo */
  --rouge-2: #ff6a4d;
  --sable: #f6f4ef;
  --texte: #142036;
  --gris: #5b6880;
  --bord: #e1e6ef;
  --blanc: #fff;
  --rayon: 18px;
  --ombre: 0 10px 40px rgba(8, 26, 58, .10);
  --ombre-forte: 0 24px 60px rgba(8, 26, 58, .22);
  --max: 1200px;
  /* Charte CMM : titres Bricolage Grotesque · texte Inter · libellés Space Grotesk */
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titre: "Bricolage Grotesque", Georgia, "Times New Roman", serif;
  --police-libelle: "Space Grotesk", var(--police);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police); color: var(--texte); line-height: 1.65; background: var(--blanc); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--police-titre); color: var(--marine); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
/* Libellés (surtitres, étiquettes, navigation, boutons) en Space Grotesk */
.surtitre, .etiquette, .nav a, .btn, .onglet, .hero-compteur span, .carte-date,
.pilier .numero, .sous-titre-logos, .site-footer h4, .evenement-date .mois { font-family: var(--police-libelle); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--lagon); color: var(--nuit); }

.conteneur { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--sable { background: var(--sable); }
.section--lagon { background: var(--lagon-clair); }
.section--nuit { background: var(--nuit); color: rgba(255,255,255,.85); overflow: hidden; }
.section--nuit h2, .section--nuit h3 { color: var(--blanc); }
.section--nuit .conteneur { position: relative; z-index: 2; }
.surtitre {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 1rem;
}
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--nuit .surtitre, .hero .surtitre, .bandeau .surtitre, .vedette .surtitre { color: var(--lagon); }
.entete-section { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.entete-section h2 { margin: 0; }
.lien-fleche { font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.lien-fleche::after { content: "→"; transition: transform .3s var(--ease); }
.lien-fleche:hover::after { transform: translateX(5px); }
.accent { color: var(--lagon); }

/* ---------- Boutons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn:hover { transform: translateY(-3px); }
.btn--plein { background: var(--rouge); color: var(--blanc); box-shadow: 0 10px 30px rgba(232,65,44,.35); }
.btn--plein:hover { background: var(--rouge-2); box-shadow: 0 14px 36px rgba(232,65,44,.45); }
.btn--marine { background: var(--marine); color: var(--blanc); }
.btn--marine:hover { background: var(--marine-2); }
.btn--clair { border-color: rgba(255,255,255,.6); color: var(--blanc); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn--clair:hover { background: var(--blanc); color: var(--marine); }
.btn--contour { border-color: var(--marine); color: var(--marine); }
.btn--contour:hover { background: var(--marine); color: var(--blanc); }
.btn::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(120%) skewX(-20deg); }

/* ---------- En-tête (verre dépoli, se densifie au défilement) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, box-shadow .4s, padding .4s; padding: .9rem 0; }
.site-header.defile { background: rgba(8, 26, 58, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: .45rem 0; }
/* menu mobile ouvert : on retire le backdrop-filter sinon il "piège" le menu plein écran dans l'en-tête */
.site-header.menu-ouvert { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
.site-header .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; gap: .9rem; text-decoration: none; position: relative; z-index: 2; }
.logo-officiel { height: 54px; width: auto; max-width: 170px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px 8px; transition: height .4s; }
.site-header.defile .logo-officiel { height: 46px; }
.logo-tagline { font-size: .68rem; color: rgba(255,255,255,.75); line-height: 1.35; letter-spacing: .04em; padding-left: .9rem; border-left: 1px solid rgba(255,255,255,.25); }
@media (max-width: 520px) { .logo-tagline { display: none; } }

.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  position: relative; display: block; padding: .6rem .85rem;
  text-decoration: none; color: rgba(255,255,255,.88); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--lagon); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blanc); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta a { border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: .65rem 1.2rem; margin-left: .6rem; color: var(--blanc); }
.nav .nav-cta a::after { display: none; }
.nav .nav-cta a:hover, .nav .nav-cta a[aria-current="page"] { background: var(--rouge); border-color: var(--rouge); }

.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--blanc); position: relative; z-index: 2; }
.burger svg { width: 30px; height: 30px; }
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0; background: var(--nuit); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 1; }
  .nav.ouvert { opacity: 1; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: .6rem; }
  .nav a { font-size: 1rem; padding: .8rem 1rem; }
  .nav .nav-cta a { margin: 1rem 0 0; }
}

/* ---------- Hero d'accueil ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; color: var(--blanc);
  background: radial-gradient(120% 80% at 75% 20%, #1b4b96 0%, var(--marine) 45%, var(--nuit) 100%);
  display: flex; align-items: center; padding: 8rem 0 10rem;
}
.hero .conteneur { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { color: var(--blanc); }
.hero h1 .ligne { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ligne span { display: inline-block; transform: translateY(110%); animation: monte 1s var(--ease) forwards; }
.hero h1 .ligne:nth-child(2) span { animation-delay: .12s; }
.hero h1 .ligne:nth-child(3) span { animation-delay: .24s; }
@keyframes monte { to { transform: none; } }
.hero-texte { font-size: 1.1rem; max-width: 46ch; color: rgba(255,255,255,.82); opacity: 0; animation: apparait 1s .5s var(--ease) forwards; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; opacity: 0; animation: apparait 1s .7s var(--ease) forwards; }
@keyframes apparait { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-compteur { margin-top: 2.6rem; display: flex; gap: 2.2rem; flex-wrap: wrap; opacity: 0; animation: apparait 1s .9s var(--ease) forwards; }
.hero-compteur div { border-left: 2px solid var(--lagon); padding-left: .9rem; }
.hero-compteur strong { display: block; font-size: 1.9rem; font-weight: 700; color: var(--blanc); line-height: 1; }
.hero-compteur span { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.65); }
canvas.particules { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero .conteneur > div:first-child { position: relative; z-index: 2; }
.hero .conteneur { pointer-events: none; }
.hero .conteneur a, .hero .conteneur p, .hero .conteneur h1 { pointer-events: auto; }
.hero-scene { min-height: 420px; }
.defiler { position: absolute; left: 50%; bottom: 2rem; z-index: 3; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; display: grid; justify-items: center; gap: .5rem; text-decoration: none; }
.defiler i { width: 1.5px; height: 42px; background: linear-gradient(var(--lagon), transparent); animation: goutte 2s infinite; }
@keyframes goutte { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 900px) {
  .hero .conteneur { grid-template-columns: 1fr; }
  .hero-scene { min-height: 330px; }
  .defiler { display: none; }
}

/* ---------- Bandeau des pages intérieures ---------- */
.bandeau {
  position: relative; overflow: hidden; color: var(--blanc);
  background: radial-gradient(120% 90% at 80% 0%, #1b4b96 0%, var(--marine) 50%, var(--nuit) 100%);
  padding: 10rem 0 7rem;
}
.bandeau .conteneur { position: relative; z-index: 3; }
.bandeau h1 { color: var(--blanc); max-width: 18ch; }
.bandeau p { font-size: 1.1rem; max-width: 56ch; color: rgba(255,255,255,.82); }
.bandeau .conteneur > * { opacity: 0; animation: apparait .9s var(--ease) forwards; }
.bandeau .conteneur > *:nth-child(2) { animation-delay: .1s; }
.bandeau .conteneur > *:nth-child(3) { animation-delay: .2s; }
.bandeau--photo { background-size: cover; background-position: center; }
.bandeau--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,26,58,.95) 0%, rgba(8,26,58,.78) 50%, rgba(8,26,58,.35) 100%); z-index: 1; }
.vagues { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 2; }
.vagues path { animation: houle 10s ease-in-out infinite alternate; }
.vagues path:first-child { animation-duration: 14s; }
@keyframes houle { to { transform: translateX(-60px); } }

/* ---------- Apparitions au défilement ---------- */
.revele { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delai, 0s); }
.revele.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .revele { opacity: 1; transform: none; }
}

/* ---------- Édito ---------- */
.edito {
  display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: center;
  background: var(--blanc); border-radius: 28px; box-shadow: var(--ombre-forte);
  padding: 3rem; margin-top: -6rem; position: relative; z-index: 4;
}
.edito-photo { width: 240px; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--lagon-clair); position: relative; }
.edito-photo img { width: 100%; height: 100%; object-fit: cover; }
.edito blockquote { margin: 0; font-size: 1.12rem; line-height: 1.7; color: var(--texte); font-weight: 500; position: relative; }
.edito blockquote::before { content: "“"; position: absolute; left: -.3rem; top: -3.4rem; font-size: 6rem; line-height: 1; color: var(--rouge); font-family: Georgia, serif; }
.signature { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.signature::before { content: ""; width: 40px; height: 2px; background: var(--rouge); flex-shrink: 0; }
.signature strong { display: block; color: var(--marine); }
.signature span { color: var(--gris); font-size: .88rem; }
@media (max-width: 800px) {
  .edito { grid-template-columns: 1fr; text-align: center; padding: 3.5rem 1.5rem 2rem; margin-top: -4rem; }
  .edito-photo { margin: 0 auto; width: 160px; }
  .signature { justify-content: center; text-align: left; }
}
.duo-boutons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; }

/* ---------- Cartes actualités ---------- */
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 980px) { .grille-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grille-3 { grid-template-columns: 1fr; } }
.carte { display: flex; flex-direction: column; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.carte:hover { transform: translateY(-8px); box-shadow: var(--ombre-forte); }
.carte-image { display: block; aspect-ratio: 16 / 11; background: var(--lagon-clair); overflow: hidden; position: relative; }
.carte-image img, .carte-image svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.carte:hover .carte-image img, .carte:hover .carte-image svg { transform: scale(1.08); }
.carte-date { position: absolute; left: 1rem; top: 1rem; z-index: 1; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--marine); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .75rem; border-radius: 999px; }
.carte-corps { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.carte-corps h3 { margin-bottom: .6rem; }
.carte-corps p { color: var(--gris); font-size: .92rem; flex: 1; }
.etiquette { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--lagon-clair); color: var(--marine-2); }
.carte--projet .carte-corps .etiquette { align-self: flex-start; margin-bottom: .7rem; }

/* ---------- Mise en avant photo (parallaxe) ---------- */
.vedette { position: relative; min-height: 580px; display: flex; align-items: center; overflow: hidden; color: var(--blanc); background: var(--nuit); }
.vedette-fond { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; }
.vedette::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8,26,58,.93) 0%, rgba(8,26,58,.65) 55%, rgba(8,26,58,.1) 100%); }
.vedette .conteneur { position: relative; z-index: 2; padding: 5rem 0; }
.vedette h2 { color: var(--blanc); max-width: 15ch; }
.vedette p { max-width: 48ch; color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ---------- Mosaïque photos ---------- */
.mosaique { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.mosaique figure { margin: 0; position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--marine); }
.mosaique figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaique figure:nth-child(4), .mosaique figure:nth-child(5) { grid-row: span 2; }
.mosaique figure:nth-child(6) { grid-column: span 2; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s; opacity: .9; }
.mosaique figure:hover img { transform: scale(1.07); opacity: 1; }
.mosaique figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; font-size: .8rem; font-weight: 600; color: var(--blanc); background: linear-gradient(transparent, rgba(8,26,58,.88)); transform: translateY(30%); opacity: 0; transition: .5s var(--ease); }
.mosaique figure:hover figcaption { transform: none; opacity: 1; }
@media (max-width: 860px) { .mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .mosaique figure:nth-child(4), .mosaique figure:nth-child(5) { grid-row: span 1; } }
@media (hover: none) { .mosaique figcaption { opacity: 1; transform: none; } }

/* ---------- Événements ---------- */
.liste-evenements { display: grid; gap: 1rem; }
.evenement {
  display: grid; grid-template-columns: 92px 1fr; gap: 1.6rem; align-items: center;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.2rem 1.5rem;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.evenement:hover { transform: translateX(6px); box-shadow: var(--ombre); border-color: transparent; }
.evenement-date { text-align: center; background: linear-gradient(160deg, var(--marine-2), var(--marine)); color: var(--blanc); border-radius: 14px; padding: .7rem .3rem; line-height: 1.1; }
.evenement-date .jour { display: block; font-size: 1.9rem; font-weight: 700; }
.evenement-date .mois { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.evenement h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.evenement-infos { color: var(--gris); font-size: .88rem; margin: 0; }
.evenement-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem; }
.etiquette--membres { background: #fdebe7; color: #b8321f; }
.etiquette--membres::before { content: "🔒 "; }
.etiquette--cmm { background: var(--marine); color: var(--blanc); }
.etiquette--martinique { background: var(--lagon-clair); color: #0d7279; }
@media (max-width: 640px) { .evenement { grid-template-columns: 72px 1fr; gap: 1rem; } }

/* ---------- Onglets agenda ---------- */
.onglets { display: inline-flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 2rem; background: var(--sable); padding: .35rem; border-radius: 999px; }
.onglet { background: none; border: 0; padding: .8rem 1.4rem; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--gris); cursor: pointer; border-radius: 999px; transition: .3s var(--ease); }
.onglet[aria-selected="true"] { background: var(--marine); color: var(--blanc); box-shadow: 0 6px 18px rgba(12,34,78,.25); }
.onglet:hover { color: var(--marine); }
.onglet[aria-selected="true"]:hover { color: var(--blanc); }
.intro-onglet { color: var(--gris); margin-bottom: 1.5rem; }
.vide { color: var(--gris); font-style: italic; }

/* ---------- Logos qui défilent ---------- */
.defilant { overflow: hidden; padding: .5rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defilant + .defilant { margin-top: 1rem; }
.defilant-piste { display: flex; gap: 1rem; width: max-content; animation: defile 55s linear infinite; }
.defilant:hover .defilant-piste { animation-play-state: paused; }
.defilant--inverse .defilant-piste { animation-direction: reverse; animation-duration: 40s; }
@keyframes defile { to { transform: translateX(calc(-50% - .5rem)); } }
.logo-membre {
  flex: 0 0 auto; min-width: 200px; max-width: 260px; height: 92px; display: grid; place-items: center; text-align: center;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; padding: .75rem 1.3rem;
  font-weight: 700; font-size: .8rem; color: var(--gris); text-decoration: none; transition: .4s var(--ease);
}
.logo-membre:hover { color: var(--marine); border-color: var(--lagon); transform: translateY(-4px); box-shadow: var(--ombre); }
.logo-membre img { max-height: 60px; width: auto; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.logos .logo-membre { min-width: 0; max-width: none; }
.sous-titre-logos { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gris); margin: 2.5rem 0 1rem; font-weight: 700; }

/* ---------- Annuaire ---------- */
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filtre { border: 1.5px solid var(--bord); background: var(--blanc); border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--marine); transition: .3s var(--ease); }
.filtre:hover { border-color: var(--marine); }
.filtre[aria-pressed="true"] { background: var(--marine); color: var(--blanc); border-color: var(--marine); }
.fiche-membre { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem; transition: transform .4s var(--ease), box-shadow .4s; position: relative; overflow: hidden; animation: apparait .5s var(--ease) both; animation-delay: var(--delai, 0s); }
.fiche-membre::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lagon); transform: scaleY(0); transition: transform .4s var(--ease); }
.fiche-membre:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.fiche-membre:hover::before { transform: scaleY(1); }
.fiche-membre h3 { font-size: 1rem; margin-bottom: .5rem; }
.fiche-membre p { color: var(--gris); font-size: .88rem; margin: .5rem 0 0; }

/* ---------- Piliers / chiffres ---------- */
.piliers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pilier { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--rayon); padding: 2rem; transition: .5s var(--ease); backdrop-filter: blur(4px); }
.pilier:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); border-color: var(--lagon); }
.pilier .numero { font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--lagon); }
.pilier h3 { margin: .8rem 0 .5rem; }
.pilier p { margin: 0; color: rgba(255,255,255,.75); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; }
.chiffre { padding: 1.5rem; border-radius: var(--rayon); background: var(--sable); text-align: center; }
/* logo double état (blanc sur héro sombre, couleur sur en-tête clair) */
.logo-couleur { display: none; }
.site-header.defile .logo-blanc { display: none; }
.site-header.defile .logo-couleur { display: inline-block; }
/* cartographie intégrée */
.carto-frame { border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--bord); box-shadow: var(--ombre); background: #dde7ec; }
.carto-frame iframe { width: 100%; height: 560px; border: 0; display: block; }
@media (min-width: 768px) { .carto-frame iframe { height: 700px; } }
.chiffre strong { display: block; font-size: clamp(2rem, 7.5vw, 2.8rem); font-weight: 700; color: var(--marine); line-height: 1.05; margin-bottom: .4rem; }
.chiffre span { color: var(--gris); font-size: .88rem; }
@media (max-width: 560px) { .chiffres { grid-template-columns: 1fr; } .chiffre { padding: 1.3rem 1.5rem; } }
.deux-colonnes { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
@media (max-width: 880px) { .deux-colonnes { grid-template-columns: 1fr; gap: 2.5rem; } }
.photo-ronde { border-radius: 28px; overflow: hidden; box-shadow: var(--ombre-forte); aspect-ratio: 4/3; }
.photo-ronde img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Adhésion ---------- */
.formulaire { background: var(--blanc); border-radius: 24px; box-shadow: var(--ombre-forte); padding: 2.5rem; }
.champ { margin-bottom: 1.2rem; }
.champ label, .champ legend { display: block; font-weight: 600; color: var(--marine); margin-bottom: .4rem; font-size: .86rem; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ textarea {
  width: 100%; padding: .9rem 1rem; border: 1.5px solid var(--bord); border-radius: 12px; font: inherit; background: #fafbfd; transition: border-color .3s, box-shadow .3s;
}
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--lagon); box-shadow: 0 0 0 4px rgba(53,198,208,.18); background: var(--blanc); }
.champ fieldset { border: 0; padding: 0; margin: 0; }
.choix { display: grid; gap: .55rem; }
.choix label { display: flex; align-items: center; gap: .8rem; font-weight: 500; color: var(--texte); border: 1.5px solid var(--bord); border-radius: 12px; padding: .85rem 1rem; cursor: pointer; margin: 0; transition: .3s var(--ease); }
.choix label:hover { border-color: var(--lagon); }
.choix label:has(input:checked) { border-color: var(--lagon); background: var(--lagon-clair); }
.choix input { accent-color: var(--marine); width: 18px; height: 18px; }
.ligne-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .ligne-2 { grid-template-columns: 1fr; } }
.obligatoire { color: var(--rouge); }
.mention { font-size: .8rem; color: var(--gris); }
.confirmation { display: none; background: var(--lagon-clair); border-left: 4px solid var(--lagon); padding: 1.4rem 1.6rem; border-radius: 14px; }
.confirmation.visible { display: block; animation: apparait .6s var(--ease); }
.plaquette { background: linear-gradient(150deg, var(--marine-2), var(--nuit)); color: var(--blanc); border-radius: 24px; padding: 2rem; display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; align-items: center; }
.plaquette h3 { color: var(--blanc); }
.plaquette p { opacity: .85; font-size: .92rem; }
.plaquette-visuel { border-radius: 6px; aspect-ratio: 210/297; box-shadow: 8px 8px 0 var(--lagon); overflow: hidden; transform: rotate(-4deg); transition: transform .5s var(--ease); }
.plaquette:hover .plaquette-visuel { transform: rotate(0) scale(1.05); }
.avantages { list-style: none; padding: 0; margin: 0 0 2.5rem; counter-reset: av; }
.avantages li { counter-increment: av; padding: 1rem 0 1rem 3.2rem; position: relative; border-bottom: 1px solid var(--bord); }
.avantages li::before { content: counter(av, decimal-leading-zero); position: absolute; left: 0; top: 1.05rem; font-weight: 700; font-size: .78rem; color: var(--lagon); letter-spacing: .1em; }

/* ---------- Bandeau d'appel ---------- */
.appel { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--marine-2), var(--nuit)); color: var(--blanc); border-radius: 28px; padding: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.appel::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(var(--lagon), transparent 70%); opacity: .35; animation: pulse 6s ease-in-out infinite; }
.appel > * { position: relative; z-index: 1; }
.appel h2 { color: var(--blanc); margin: 0 0 .4rem; }
.appel p { margin: 0; opacity: .85; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--nuit); color: rgba(255,255,255,.75); padding: 5rem 0 1.8rem; position: relative; overflow: hidden; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--lagon); }
.footer-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; position: relative; z-index: 2; }
@media (max-width: 880px) { .footer-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grille { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--blanc); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .88rem; }
.site-footer .logo { margin-bottom: 1.2rem; }
.reseaux { display: flex; gap: .6rem; margin-top: 1.2rem; }
.reseaux a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: .3s var(--ease); }
.reseaux a:hover { background: var(--lagon); border-color: var(--lagon); color: var(--nuit); transform: translateY(-3px); }
.reseaux svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.4rem; font-size: .78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; position: relative; z-index: 2; }
.site-footer canvas.particules { opacity: .5; }

/* ---------- Article ---------- */
.article-page { padding-top: 9rem; }
.article-meta { color: var(--gris); margin-bottom: 2rem; }
.article { max-width: 820px; }
.article .carte-image { border-radius: 24px; margin-bottom: 2.5rem; box-shadow: var(--ombre-forte); aspect-ratio: 16/9; }
.article p { font-size: 1.06rem; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* héro : voilier en points (màj charte or/aqua + comportement mobile) */
canvas.particules { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-scene { min-height: 420px; }
@media (max-width: 900px) {
  .hero-scene { order: -1; min-height: 0; height: clamp(230px, 36svh, 320px); }
}

/* Frise « Notre histoire » */
.frise { margin-top: 2.5rem; border-left: 2px solid var(--bord); }
.frise-item { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; padding: 1.3rem 0 1.3rem 1.8rem; }
.frise-item + .frise-item { border-top: 1px solid var(--bord); }
.frise-item::before { content: ""; position: absolute; left: -7px; top: 1.7rem; width: 12px; height: 12px; border-radius: 50%; background: var(--lagon); border: 2px solid var(--blanc); box-shadow: 0 0 0 2px var(--lagon); }
.frise-annee { font-family: var(--police-libelle); font-weight: 700; color: var(--ocean); font-size: 1.05rem; letter-spacing: .02em; }
.frise-item h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.frise-item p { margin: 0; color: var(--gris); font-size: .94rem; }
@media (max-width: 640px) { .frise-item { grid-template-columns: 1fr; gap: .25rem; } }

/* Espace Métiers · Formation · Emploi */
.bandeau--carriere .conteneur { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.scene-carriere { min-height: 300px; }
@media (max-width: 900px) {
  .bandeau--carriere .conteneur { grid-template-columns: 1fr; }
  .scene-carriere { order: -1; min-height: 0; height: clamp(160px, 24svh, 230px); }
}
.panneau-carriere { margin-top: .5rem; }
.panneau-carriere .fiche-membre { animation: apparait .5s both; animation-delay: var(--delai, 0s); }
.note-carriere { margin-top: 1.6rem; color: var(--gris); font-style: italic; max-width: 72ch; }

/* ---------- Logos fournis par le CMM (membres, partenaires, exposants, médias) ---------- */
.logo-membre--visuel { padding: .4rem 1rem; }
.logo-membre--visuel img { max-height: 76px; max-width: 100%; object-fit: contain; }
.fiche-logo { height: 56px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-bottom: .9rem; }
.presse-logo { height: 38px; width: auto; max-width: 60%; object-fit: contain; display: block; margin-bottom: .9rem; border-radius: 6px; }
.partenaires-officiels { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0 3.5rem; }
.partenaire-officiel { display: flex; align-items: center; gap: 1.2rem; margin: 0; background: var(--blanc); border: 1px solid var(--bord); border-radius: 14px; padding: .9rem 1.6rem .9rem 1rem; }
.partenaire-officiel img { width: 104px; height: 104px; object-fit: contain; }
.partenaire-officiel figcaption { font-weight: 700; color: var(--marine); font-size: 1.05rem; }
.partenaire-officiel figcaption span { display: block; font-weight: 500; font-size: .88rem; color: var(--gris); margin-top: .15rem; }
/* Piliers hors section sombre (Boat Show, Kay Lanmè, Pôle de la Mer) : la carte d'origine est pensée
   pour un fond nuit (texte blanc). Sur fond clair, même carte en version claire, texte lisible. */
.section:not(.section--nuit) .pilier { background: var(--blanc); border-color: var(--bord); backdrop-filter: none; box-shadow: var(--ombre); }
.section:not(.section--nuit) .pilier:hover { background: var(--blanc); border-color: var(--lagon); }
.section:not(.section--nuit) .pilier p { color: var(--gris); }
.section:not(.section--nuit) .pilier .numero { color: var(--ocean); }
/* Fenêtre (pop-up) du formulaire exposant — page Boat Show */
.modale { width: min(880px, calc(100vw - 2rem)); height: min(88dvh, 920px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--rayon); box-shadow: var(--ombre-forte); overflow: hidden; background: var(--blanc); }
.modale[open] { display: flex; flex-direction: column; }
.modale::backdrop { background: rgba(8, 26, 58, .7); backdrop-filter: blur(3px); }
.modale-entete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .8rem .8rem 1.4rem; background: var(--marine); }
.modale-entete h2 { margin: 0; font-size: 1rem; color: var(--blanc); }
.modale-fermer { flex: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--blanc); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .3s var(--ease); }
.modale-fermer:hover { background: rgba(255,255,255,.25); }
.modale iframe { flex: 1; width: 100%; border: 0; }
@media (max-width: 600px) { .modale { width: calc(100vw - 1rem); height: 94dvh; } }
/* « Suivez-nous » et contact du président */
.suivre { display: flex; flex-wrap: wrap; gap: .6rem; }
.suivre-lien { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1.5px solid var(--bord); background: var(--blanc); color: var(--marine); font-family: var(--police-libelle); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-decoration: none; transition: .3s var(--ease); }
.suivre-lien svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.suivre-lien:hover { background: var(--marine); border-color: var(--marine); color: var(--blanc); transform: translateY(-3px); }
.appel .suivre-lien { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: var(--blanc); }
.appel .suivre-lien:hover { background: var(--blanc); border-color: var(--blanc); color: var(--marine); }
.contact-president { display: grid; gap: .15rem; margin-top: 1.4rem; padding: 1.1rem 1.3rem; background: var(--blanc); border-left: 3px solid var(--lagon); border-radius: 14px; max-width: 26rem; }
.contact-president strong { color: var(--marine); }
.contact-president span { color: var(--gris); font-size: .88rem; margin-bottom: .3rem; }
/* ---------- Carte et annuaire des membres (page Nos membres) ---------- */
.annuaire-outils { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.6rem; }
.annuaire-outils .champ { margin: 0; flex: 1 1 240px; max-width: 340px; }
.annuaire-outils input, .annuaire-outils select { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--bord); border-radius: 12px; font: inherit; color: var(--texte); background: #fafbfd; transition: border-color .3s, box-shadow .3s; }
.annuaire-outils input:focus, .annuaire-outils select:focus { outline: none; border-color: var(--lagon); box-shadow: 0 0 0 4px rgba(53,198,208,.18); background: var(--blanc); }
.annuaire-outils .filtre { padding: .85rem 1.3rem; }
.annuaire-outils .filtre[hidden] { display: none; }
.annuaire-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; align-items: start; }
.annuaire-bloc { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem; box-shadow: var(--ombre); }
.annuaire-bloc--carte { position: sticky; top: 96px; }
.annuaire-bloc h3 { margin: 0 0 .2rem; }
.annuaire-effectif { margin: 0 0 1rem; font-size: .86rem; color: var(--gris); }
#carte-membres svg { font-family: var(--police) !important; border-radius: 12px; }
#carte-membres circle:focus-visible { outline: 3px solid var(--lagon); }
.annuaire-fiches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; max-height: 760px; overflow-y: auto; padding: 4px 6px 4px 2px; }
.fiche-annuaire { padding: 1.1rem 1.2rem; min-width: 0; background: var(--sable); border-color: transparent; }
.fiche-annuaire h3 { font-size: .95rem; line-height: 1.3; margin: 0 0 .3rem; overflow-wrap: anywhere; }
.fiche-annuaire .annuaire-lieu, .fiche-annuaire .annuaire-activite { font-size: .84rem; margin: 0; color: var(--gris); }
.fiche-annuaire .annuaire-activite { margin-top: .15rem; }
.annuaire-contact { font-size: .84rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed #cfd6e2; overflow-wrap: anywhere; }
.annuaire-contact div { margin: .1rem 0; }
.annuaire-contact small { color: var(--gris); }
.annuaire-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem !important; }
.annuaire-actions a, .annuaire-actions button { font: inherit; font-family: var(--police-libelle); font-size: .76rem; font-weight: 700; text-decoration: none; cursor: pointer; padding: .35rem .8rem; border-radius: 999px; border: 1.5px solid var(--bord); background: var(--blanc); color: var(--marine); transition: .3s var(--ease); }
.annuaire-actions a:hover, .annuaire-actions button:hover { border-color: var(--marine); }
.annuaire-actions .bt-wa { background: #e5f7ec; border-color: #bfe6cd; color: #0c6132; }
.annuaire-actions .bt-wa:hover { border-color: #0c6132; }
.annuaire-actions .bt-vcf { background: var(--marine); border-color: var(--marine); color: var(--blanc); }
.annuaire-actions .bt-vcf:hover { background: var(--marine-2); border-color: var(--marine-2); }
.annuaire-accord { font-size: .72rem !important; color: #0c6132 !important; margin: .5rem 0 0 !important; }
.annuaire-notes { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--bord); max-width: 90ch; }
.annuaire-notes p { margin: 0 0 .5rem; }
@media (max-width: 900px) {
  .annuaire-grille { grid-template-columns: 1fr; }
  .annuaire-bloc--carte { position: static; }
  .annuaire-fiches { max-height: none; overflow: visible; padding: 0; }
  .annuaire-outils .champ { max-width: none; flex-basis: 100%; }
}
.fiche-annuaire { scroll-margin: 120px; }
.fiche-annuaire .fiche-logo { height: 64px; max-width: 180px; margin-bottom: .8rem; background: var(--blanc); border-radius: 10px; padding: 6px 10px; }
.fiche-annuaire--cible { box-shadow: 0 0 0 3px var(--lagon), var(--ombre); background: var(--lagon-clair); }
