/* Rhum Central — feuille de style unique, mobile-first */

:root {
  --encre: #0b1b2b;
  --encre-2: #14304a;
  --sable: #f5f2ed;
  --sable-2: #ece7de;
  --carte: #ffffff;
  --texte: #17232f;
  --texte-doux: #5d6b79;
  --bord: #e3ded4;
  --accent: #d94f27;
  --accent-2: #b23c19;
  --ok: #2c7a5f;
  --omble: 0 1px 2px rgba(11, 27, 43, .06), 0 6px 18px -12px rgba(11, 27, 43, .28);
  --r: 10px;
  --r-s: 6px;
  --max: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sable);
  color: var(--texte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3.4vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .9rem; }

.lien-saut {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--r-s) 0;
}
.lien-saut:focus { left: 0; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--encre); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.entete__interieur {
  max-width: var(--max); margin: 0 auto; padding: .7rem var(--pad);
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
}
.marque { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.marque__voile { color: var(--accent); display: flex; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.15; }
.marque__texte strong { font-size: 1.06rem; letter-spacing: -.01em; }
.marque__texte span { font-size: .72rem; color: #9db2c4; letter-spacing: .02em; }

.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: #cfdae4; text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: .42rem .7rem; border-radius: var(--r-s);
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- Bandeau de fraîcheur ---------- */
.bandeau {
  background: var(--sable-2); border-bottom: 1px solid var(--bord);
  font-size: .8rem; color: var(--texte-doux);
  padding: .45rem var(--pad); display: flex; align-items: center; gap: .5rem;
  justify-content: center; text-align: center;
}
.point {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(44, 122, 95, .18); flex: none;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 3rem; }

/* ---------- Héros ---------- */
.hero { padding: clamp(1.6rem, 6vw, 3.2rem) 0 1.4rem; }
.hero__surtitre {
  text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700;
  color: var(--accent); margin-bottom: .5rem;
}
.hero h1 { max-width: 22ch; }
.hero__intro { color: var(--texte-doux); max-width: 62ch; font-size: 1.02rem; }
.chiffres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem; margin: 1.4rem 0 0;
}
.chiffre {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r);
  padding: .85rem 1rem;
}
.chiffre strong { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.chiffre span { font-size: .78rem; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- Carte du parcours ---------- */
.parcours { margin: 1.8rem 0 1.2rem; }
.parcours__entete p { color: var(--texte-doux); max-width: 68ch; font-size: .94rem; margin: 0; }
.carte-off {
  margin-top: .8rem; border: 1px solid var(--bord); border-radius: var(--r);
  overflow: hidden; background: var(--encre); box-shadow: var(--omble);
  aspect-ratio: 16 / 9; min-height: 300px;
}
.carte-off iframe { display: block; width: 100%; height: 100%; border: 0; }
.parcours__liens { font-size: .85rem; color: var(--texte-doux); margin: .6rem 0 0; }
@media (max-width: 620px) {
  .carte-off { aspect-ratio: 4 / 3; min-height: 280px; }
}

/* ---------- Recherche et filtres ---------- */
.outils {
  position: sticky; top: 57px; z-index: 40;
  background: linear-gradient(var(--sable) 78%, rgba(245, 242, 237, 0));
  padding: .85rem 0 .7rem; margin-bottom: .5rem;
}
.recherche { display: flex; gap: .5rem; align-items: center; }
.recherche input[type="search"] {
  flex: 1; min-width: 0; padding: .72rem .9rem; font-size: 1rem;
  border: 1px solid var(--bord); border-radius: var(--r); background: var(--carte);
  color: var(--texte); font-family: inherit;
}
.recherche input[type="search"]:focus {
  outline: none; border-color: var(--encre-2); box-shadow: 0 0 0 3px rgba(20, 48, 74, .12);
}
.filtres { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem .1rem .2rem; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtre {
  flex: none; font-size: .82rem; font-weight: 600; text-decoration: none;
  color: var(--texte-doux); background: var(--carte); border: 1px solid var(--bord);
  padding: .38rem .72rem; border-radius: 999px; white-space: nowrap;
}
.filtre:hover { border-color: var(--encre-2); color: var(--texte); }
.filtre[aria-current="true"] { background: var(--encre); border-color: var(--encre); color: #fff; }
.filtre__n { opacity: .6; font-weight: 500; }

.compte { font-size: .84rem; color: var(--texte-doux); margin: .3rem 0 1rem; }

/* ---------- Grille des équipages ---------- */
.grille {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
}
.carte {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; box-shadow: var(--omble);
  transition: transform .15s ease, box-shadow .15s ease;
}
.carte:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 27, 43, .07), 0 16px 30px -18px rgba(11, 27, 43, .4); }
.carte:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.carte__media { position: relative; aspect-ratio: 4 / 3; background: var(--sable-2); overflow: hidden; }
.carte__media img { width: 100%; height: 100%; object-fit: cover; }
.carte__media--vide {
  display: flex; align-items: center; justify-content: center;
  color: #b6ada0; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
.carte__corps { padding: .8rem .9rem .95rem; display: flex; flex-direction: column; gap: .38rem; flex: 1; }
.carte__nom { font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.carte__bateau { font-size: .83rem; color: var(--texte-doux); }
.carte__bas { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .3rem; }
.etiquette {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px; color: #fff; white-space: nowrap;
}
.mini-reseaux { display: flex; gap: .3rem; color: var(--texte-doux); }
.mini-reseaux svg { display: block; }

/* ---------- Fiche équipage ---------- */
.fil { font-size: .82rem; color: var(--texte-doux); margin: 1.1rem 0 .8rem; }
.fil a { color: var(--texte-doux); }
.fiche__couverture {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--encre); aspect-ratio: 16 / 7; box-shadow: var(--omble);
}
.fiche__couverture img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.fiche__entete { display: flex; gap: 1rem; align-items: flex-end; margin-top: -3.2rem; padding: 0 .1rem; position: relative; }
.fiche__portrait {
  width: 118px; height: 118px; border-radius: 50%; overflow: hidden; flex: none;
  border: 4px solid var(--sable); background: var(--sable-2); box-shadow: var(--omble);
}
.fiche__portrait img { width: 100%; height: 100%; object-fit: cover; }
.fiche__titre { padding-bottom: .4rem; }
.fiche__titre h1 { margin-bottom: .3rem; }
.fiche__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .87rem; color: var(--texte-doux); }
.fiche__meta strong { color: var(--texte); font-weight: 600; }

.reseaux { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.reseau {
  display: inline-flex; align-items: center; gap: .42rem; text-decoration: none;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 999px;
  padding: .42rem .8rem .42rem .62rem; font-size: .85rem; font-weight: 600; color: var(--texte);
}
.reseau:hover { border-color: var(--accent); color: var(--accent-2); }
.reseau svg { flex: none; }

.sections { display: grid; gap: 1.1rem; margin-top: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sections { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.bloc {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r);
  padding: 1.1rem 1.15rem;
}
.bloc > h2 { font-size: 1.02rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); }
.bloc ul { margin: 0; padding-left: 1.05rem; }
.bloc li { margin-bottom: .32rem; }
.bio { white-space: pre-line; }
.citation {
  border-left: 3px solid var(--accent); margin: 0; padding: .2rem 0 .2rem .9rem;
  font-style: italic; color: var(--encre-2);
}

.technique { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.technique div { padding: .55rem 0; border-bottom: 1px dashed var(--bord); }
.technique dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-doux); }
.technique dd { margin: .1rem 0 0; font-weight: 600; }
.technique dd.absent { font-weight: 500; color: #a89f92; font-style: italic; }
.note-donnees { font-size: .78rem; color: var(--texte-doux); margin: .8rem 0 0; }

.palmares { list-style: none; margin: 0; padding: 0; }
.palmares li {
  display: grid; grid-template-columns: 3.6rem 1fr; gap: .7rem;
  padding: .6rem 0; border-bottom: 1px dashed var(--bord);
}
.palmares li:last-child { border-bottom: 0; }
.palmares__annee { font-weight: 700; color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.palmares__course { font-weight: 600; }
.palmares__detail { font-size: .84rem; color: var(--texte-doux); }
.puce-rdr {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: #fdece5; color: var(--accent-2);
  border-radius: 999px; padding: .1rem .45rem; margin-left: .35rem; vertical-align: 1px;
}

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; }
.galerie img { border-radius: var(--r-s); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--sable-2); }

/* ---------- Classes ---------- */
.grille-classes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.carte-classe {
  background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  box-shadow: var(--omble);
}
.carte-classe:hover { transform: translateY(-2px); }
.carte-classe__haut { padding: 1rem 1.1rem; border-top: 4px solid var(--c); }
.carte-classe h2 { margin: 0 0 .35rem; }
.carte-classe p { font-size: .88rem; color: var(--texte-doux); margin: 0; }
.carte-classe__chiffres { display: flex; flex-wrap: wrap; gap: .9rem; padding: .8rem 1.1rem 1rem; font-size: .8rem; color: var(--texte-doux); }
.carte-classe__chiffres strong { display: block; font-size: 1.05rem; color: var(--texte); }

.pts { display: grid; gap: .7rem; }
.pt { border-left: 3px solid var(--c, var(--bord)); padding-left: .8rem; }
.pt h3 { margin: 0 0 .15rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-doux); }
.pt p { margin: 0; font-size: .9rem; }

/* ---------- Vidéos ---------- */
.grille-videos { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.video { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); overflow: hidden; box-shadow: var(--omble); }
.video__cadre { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__corps { padding: .8rem .95rem 1rem; }
.video__titre { font-weight: 600; font-size: .98rem; margin: 0 0 .2rem; }
.video__date { font-size: .8rem; color: var(--texte-doux); }

/* ---------- États vides / texte ---------- */
.vide {
  background: var(--carte); border: 1px dashed var(--bord); border-radius: var(--r);
  padding: 2.4rem 1.4rem; text-align: center; color: var(--texte-doux);
}
.vide h2 { color: var(--texte); }
.bouton {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; padding: .6rem 1.1rem; border-radius: var(--r-s); border: 0;
}
.bouton:hover { background: var(--accent-2); color: #fff; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.1rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #b9c8d5; margin-top: 3rem; padding: 2.2rem var(--pad) 1.4rem; }
.pied__interieur {
  max-width: var(--max); margin: 0 auto; display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.pied h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.pied p { font-size: .86rem; }
.pied ul { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.pied li { margin-bottom: .3rem; }
.pied a { color: #dce5ec; }
.pied a:hover { color: #fff; }
.pied__bas {
  max-width: var(--max); margin: 1.6rem auto 0; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: #8fa3b4;
}

/* ---------- Impression ---------- */
@media print {
  .entete, .outils, .pied, .bandeau { display: none; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
  .carte:hover, .carte-classe:hover { transform: none; }
}
