/* VTT Loisirs Réunion : charte noir / jaune / rouge (maillot Kreol Sportif) */
:root {
  --noir: #0b0b0b;
  --noir-2: #161616;
  --noir-3: #222;
  --jaune: #ffd400;
  --jaune-fonce: #e6b800;
  --rouge: #e3262f;
  --blanc: #fff;
  --gris: #b5b5b5;
  --clair: #f4f2ec;
  --texte: #1a1a1a;
  --titre: "Barlow Condensed", "Arial Narrow", sans-serif;
  --corps: "Barlow", system-ui, sans-serif;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font: 400 1.05rem/1.6 var(--corps); color: var(--texte); background: var(--clair); }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 44px 0; }
.section-sombre { background: var(--noir); color: var(--blanc); }

/* Titres */
.titre, h1 {
  font-family: var(--titre); font-style: italic; font-weight: 900;
  text-transform: uppercase; line-height: .9; letter-spacing: .5px;
}
.titre { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 22px; }
.titre span { color: var(--jaune); -webkit-text-stroke: 0; }
.section:not(.section-sombre) .titre span { color: var(--noir); background: var(--jaune); padding: 0 .15em; }
.titre-petit { font-size: 2rem; margin-bottom: 24px; }
.surtitre {
  font: 700 italic .95rem var(--titre); text-transform: uppercase; letter-spacing: 3px;
  color: var(--jaune); margin-bottom: 12px;
}
.chapo { font-size: 1.25rem; font-weight: 600; margin-bottom: 16px; }
.petit { font-size: .9rem; color: var(--gris); margin-top: 12px; }
.a-remplir { outline: 2px dashed var(--rouge); outline-offset: 4px; }

/* Boutons */
.btn {
  display: inline-block; padding: 14px 28px; font: 800 italic 1.15rem var(--titre);
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-jaune { background: var(--jaune); color: var(--noir); }
.btn-jaune:hover { background: var(--blanc); }
.btn-contour { background: var(--blanc); color: var(--noir); }
.btn-contour:hover { background: var(--jaune); }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(11, 11, 11, .95); backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--jaune);
}
.marque { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--blanc); }
/* Logo en badge : dépasse de la barre noire et mord sur le jaune */
.marque { position: relative; width: 270px; height: 52px; }
.marque img {
  position: absolute; top: 2px; left: 0; height: 170px; width: auto;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); transform: rotate(-4deg); transform-origin: top left;
  transition: height .25s, transform .25s;
}
.topbar.reduit .marque img { height: 52px; transform: none; }
.pied-logo { width: 180px; height: auto; margin: 0 auto 12px; }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
  color: var(--blanc); text-decoration: none; font: 700 italic 1.1rem var(--titre);
  text-transform: uppercase; letter-spacing: 1px;
}
.nav a:hover { color: var(--jaune); }
.nav .nav-cta { background: var(--jaune); color: var(--noir); padding: 6px 14px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.nav .nav-cta:hover { background: var(--blanc); color: var(--noir); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--jaune); margin: 5px 0; transition: .2s; }

/* Hero : plastron jaune du maillot */
.hero {
  position: relative; overflow: hidden; min-height: min(calc(100svh - 230px), 700px); display: flex; flex-direction: column;
  justify-content: flex-start; padding: 130px 16px 50px; color: var(--noir); background: var(--jaune);
}
/* Manche vidéo en diagonale : le jaune se dissout en points sur la vidéo */
.hero-bandes {
  position: absolute; top: -2px; bottom: -2px; right: -12%; width: 68%; pointer-events: none;
  transform: skewX(-14deg); backface-visibility: hidden; background: #2b3a22;
}
.hero-bandes::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 320px; z-index: 1;
  background: url(../images/trame-jaune-video-h.svg) repeat-y; background-size: 320px 16px;
}
.hero-video { position: absolute; inset: 0; overflow: hidden; }
/* Bas de la vidéo : fondu lisse vers le jaune */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,212,0,0) 0%, rgba(255,212,0,.35) 35%, rgba(255,212,0,.8) 70%, var(--jaune) 100%);
}
.hero-video video {
  position: absolute; top: 0; left: -20%; width: 140%; height: 100%; object-fit: cover; object-position: center 40%;
  transform: skewX(14deg); filter: saturate(1.1) contrast(1.05);
}
.hero-contenu { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero .surtitre { color: var(--noir); }
.hero h1 { font-size: clamp(3.6rem, 13vw, 8rem); margin-bottom: 20px; }
.hero h1 span { color: var(--jaune); background: var(--noir); padding: 0 .12em; display: inline-block; margin: .04em 0; }
.hero-texte { max-width: 520px; font-size: 1.15rem; font-weight: 600; color: #222; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-jaune { background: var(--noir); color: var(--jaune); }
.hero .btn-jaune:hover { background: var(--rouge); color: var(--blanc); }
.hero .btn-contour { background: var(--blanc); color: var(--noir); }

@media (min-width: 1720px) { .hero { padding-top: 46px; } }

/* Trames de points : transitions jaune <-> noir comme sur le maillot */
.trame { height: 256px; background-repeat: repeat-x; background-size: 16px 256px; }
.trame-jn { background-color: var(--jaune); background-image: url(../images/trame-jaune-noir.svg); }
.trame-nj { background-color: var(--noir); background-image: url(../images/trame-noir-jaune.svg); }

/* Bande des chiffres (ceinture noire + liseré rouge) */
.bande-chiffres { background: var(--noir); color: var(--blanc); padding: 10px 0 30px; }
.hero-chiffres { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.hero-chiffres li { border-left: 4px solid var(--rouge); padding-left: 14px; }
.hero-chiffres strong { display: block; font: 900 italic 3rem/1 var(--titre); color: var(--jaune); text-transform: uppercase; }
.hero-chiffres span { font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gris); }

/* Sections jaunes */
.section-jaune { background: var(--jaune); color: var(--noir); }
.section.section-jaune .titre span { color: var(--jaune); background: var(--noir); }
.section-jaune .vide { color: #333; }
.section-jaune .a-remplir { outline-color: var(--rouge); }

/* Club */
.club-grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.club-texte p + p { margin-top: 14px; }
.cartes { display: grid; gap: 14px; }
.carte { background: var(--noir); color: var(--blanc); padding: 20px 22px; border-left: 6px solid var(--jaune); }
.carte h3 { font: 800 italic 1.5rem var(--titre); text-transform: uppercase; color: var(--jaune); }
.carte p { color: #ccc; }
.bureau { margin-top: 28px; }
.bureau h3 { font: 800 italic 1.6rem var(--titre); text-transform: uppercase; margin-bottom: 14px; }
.bureau ul { display: flex; flex-wrap: wrap; gap: 14px; }
.bureau li { background: var(--blanc); padding: 14px 20px; border-bottom: 4px solid var(--jaune); min-width: 200px; }
.bureau strong { display: block; font: 700 italic 1.3rem var(--titre); text-transform: uppercase; }
.bureau span { color: #666; font-size: .9rem; }

/* Sorties */
.bandeau-info { background: var(--rouge); color: var(--blanc); padding: 8px 14px; margin-bottom: 20px; font-weight: 600; display: inline-block; }
.liste-sorties { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sortie { display: flex; background: var(--noir-2); border: 1px solid var(--noir-3); transition: border-color .15s; }
.sortie:hover { border-color: var(--jaune); }
.sortie-date {
  flex: 0 0 84px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--jaune); color: var(--noir); font: 700 italic .95rem var(--titre); text-transform: uppercase;
}
.sortie-date strong { font-size: 2.6rem; line-height: 1; font-weight: 900; }
.sortie-infos { padding: 16px 18px; }
.sortie-infos h3 { font: 800 italic 1.35rem/1.1 var(--titre); text-transform: uppercase; margin-bottom: 6px; }
.sortie-infos p { color: var(--gris); font-size: .95rem; }
.sortie-chiffres { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; align-items: center; }
.sortie-chiffres b { font: 800 italic 1.3rem var(--titre); color: var(--jaune); }
.niveau {
  display: inline-block; font: 700 italic .85rem var(--titre); text-transform: uppercase; letter-spacing: 1px;
  padding: 2px 10px; color: var(--noir);
}
.niveau-facile { background: #7ed957; }
.niveau-moyen { background: var(--jaune); }
.niveau-sportif { background: var(--rouge); color: var(--blanc); }
.legende-niveaux { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; color: var(--gris); font-size: .9rem; }
.vide { color: var(--gris); font-style: italic; }

/* Événements */
.evt { padding: 56px 0; color: var(--blanc); }
.evt-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.evt-titre { font-family: var(--titre); font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(3.4rem, 11vw, 6.5rem); margin-bottom: 18px; }
.evt-titre span { color: var(--jaune); }
.evt p { margin-bottom: 22px; color: #eee; }
.evt-4h {
  background:
    linear-gradient(180deg, rgba(10,14,30,.2), rgba(10,14,30,.85)),
    var(--photo-4h, linear-gradient(170deg, #121a33 0%, #3b1f3a 35%, #c2481c 70%, #f39a1e 88%, #241208 100%));
  background-size: cover; background-position: center;
}
.evt-4h .evt-titre { font-size: clamp(3rem, 8vw, 5.2rem); }
.evt-4h .evt-titre { color: var(--blanc); }
.evt-date { font: 800 italic 1.8rem var(--titre) !important; text-transform: uppercase; color: var(--jaune) !important; }
.evt-nouveau { background: rgba(11,11,11,.75); padding: 26px; border-left: 6px solid var(--rouge); }
.evt-badge {
  display: inline-block; background: var(--rouge); color: var(--blanc) !important; font: 900 italic 1.3rem var(--titre);
  text-transform: uppercase; padding: 4px 14px; transform: rotate(-3deg); margin-bottom: 14px !important;
}
.evt-nouveau h3 { font: 800 italic 1.7rem/1.1 var(--titre); text-transform: uppercase; color: var(--jaune); margin-bottom: 16px; }
.evt-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.evt-cats div { border: 2px solid var(--blanc); padding: 12px; }
.evt-cats div:last-child { border-color: #4f8cff; }
.evt-cats strong { display: block; font: 900 italic 1.5rem var(--titre); text-transform: uppercase; }
.evt-cats span { font-size: .85rem; color: #ccc; }
.evt-raid {
  background:
    repeating-linear-gradient(-60deg, transparent 0 30px, rgba(0,0,0,.08) 30px 34px),
    linear-gradient(135deg, #3a2812, #0b0b0b 60%);
  border-top: 6px solid var(--jaune);
}
.raid-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.raid-bloc { border: 2px solid var(--jaune); padding: 20px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.raid-bloc h3 { font: 800 italic 1.4rem var(--titre); text-transform: uppercase; color: var(--jaune); letter-spacing: 3px; margin-bottom: 10px; }
.raid-courses li { font: 800 italic 1.6rem/1.3 var(--titre); }
.raid-courses li::after { content: " »"; color: var(--jaune); }
.evt .raid-chiffre { font: 900 italic 2.6rem/1 var(--titre); color: var(--blanc); margin-bottom: 10px; }
.raid-chiffre small { font-size: 1rem; color: var(--jaune); }

/* Affiches des courses */
.evt-grille { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.evt-nouveau, .raid-infos { margin-top: 28px; }
.affiche { order: -1; display: block; justify-self: center; max-width: 480px; width: 100%; cursor: zoom-in;
  box-shadow: 0 20px 50px rgba(0,0,0,.55); border: 4px solid var(--jaune); transform: rotate(2deg); transition: transform .25s; }
.affiche:hover { transform: rotate(0) scale(1.02); }
.affiche img { width: 100%; height: auto; }
.evt-raid .affiche { transform: rotate(-2deg); }
.evt-raid .affiche:hover { transform: rotate(0) scale(1.02); }

/* Facebook */
.nav .nav-fb { display: inline-flex; align-items: center; gap: 6px; }
.nav-fb svg { width: 20px; height: 20px; }
.btn-noir { background: var(--noir); color: var(--jaune); }
.btn-noir:hover { background: var(--blanc); color: var(--noir); }
.pied-fb { display: inline-flex; align-items: center; gap: 8px; color: var(--jaune); text-decoration: none; font: 700 italic 1.1rem var(--titre); text-transform: uppercase; margin-bottom: 8px; }
.galerie-grille { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
/* Photos à la même hauteur que la tuile Facebook */
.galerie-grille > div { display: flex; }
.galerie-grille .grille-galerie { flex: 1; grid-auto-rows: 1fr; }
.galerie-grille .photo { aspect-ratio: auto; height: 100%; min-height: 170px; }
.fb-tuile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 340px;
  background: var(--noir); text-decoration: none; text-align: center; padding: 30px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
/* Icône façon appli : carré arrondi noir, liseré jaune, « f » jaune */
.fb-icone {
  display: grid; place-items: center; width: 170px; height: 170px; border-radius: 38px;
  background: var(--noir); color: var(--jaune); border: 6px solid var(--jaune);
  box-shadow: 0 0 0 6px var(--noir), 0 0 0 9px rgba(255,212,0,.35), 0 18px 30px rgba(0,0,0,.5);
  transition: transform .2s, background .2s, color .2s;
}
.fb-icone svg { width: 100%; height: 100%; transform: translate(3%, 5%); }
.fb-texte { font: 800 italic 1.5rem/1.05 var(--titre); text-transform: uppercase; color: var(--blanc); letter-spacing: .5px; }
.fb-texte b { display: block; color: var(--jaune); font-weight: 900; font-size: 1.9rem; }
.fb-tuile:hover .fb-icone { transform: rotate(-6deg) scale(1.06); background: var(--jaune); color: var(--noir); }
.photo { position: relative; display: block; }
.photo-legende { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--blanc); font: 700 italic .95rem var(--titre); text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.photo:hover .photo-legende { opacity: 1; }

/* Galerie */
.grille-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.photo { border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; background: var(--noir); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo:hover img { transform: scale(1.05); }
#lightbox { margin: auto; border: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
#lightbox::backdrop { background: rgba(0,0,0,.9); }
#lightbox img { max-height: 85vh; margin: 0 auto; }
#lightbox figcaption { color: var(--blanc); text-align: center; padding: 10px; }

/* Adhésion / contact */
.adhesion-grille { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; }
.tarifs li {
  display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--noir-3);
  font: 700 italic 1.3rem var(--titre); text-transform: uppercase;
}
.tarifs strong { color: var(--jaune); }
.contact { background: var(--noir-2); padding: 28px; border-top: 6px solid var(--jaune); }
.contact h3 { font: 800 italic 1.8rem var(--titre); text-transform: uppercase; color: var(--jaune); margin-bottom: 12px; }
.contact address { font-style: normal; color: #ddd; margin-bottom: 16px; }
.contact-liens { margin-bottom: 24px; }
.contact-liens li { padding: 6px 0; }
.contact-liens a { color: var(--blanc); text-decoration: none; border-bottom: 2px solid var(--jaune); }
.contact-liens a:hover { color: var(--jaune); }

/* Partenaires */
.partenaires { padding: 36px 0; background: #f7f7f7; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.logos li { display: grid; place-items: center; height: 96px; padding: 12px; background: var(--blanc); border: 1px solid #e6e6e6; border-bottom: 3px solid var(--jaune); }
.logos img { max-height: 64px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.logos li:hover img { filter: none; transform: scale(1.05); }
.logo-texte { font: 900 italic 1.4rem var(--titre); text-transform: uppercase; }

.pied { background: var(--noir); color: var(--gris); text-align: center; padding: 24px 16px; font-size: .9rem; border-top: 6px solid var(--rouge); }

/* Mobile */
@media (max-width: 860px) {
  .galerie-grille { grid-template-columns: 1fr; }
  .fb-tuile { min-height: 240px; }
  .fb-icone { width: 130px; height: 130px; border-radius: 30px; }
  .marque { width: 175px; }
  .marque img { height: 110px; }
  .hero { padding-top: 110px; }
  .hero::after { height: 60px; }
  .hero-bandes { position: relative; order: 1; top: 0; bottom: auto; right: auto; width: auto; height: 240px; margin: 36px -16px -50px; transform: none; }
  .hero-bandes::after { display: none; }
  .hero-video video { left: 0; width: 100%; transform: none; object-position: center 35%; }
  .hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,212,0,1), rgba(255,212,0,0) 18%); }
  .trame { height: 160px; background-size: 10px 160px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--noir); border-bottom: 3px solid var(--jaune); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; width: 100%; text-align: center; }
  .nav .nav-cta { clip-path: none; }
  .club-grille, .evt-grille, .adhesion-grille { grid-template-columns: 1fr; }
  .affiche { order: 0; justify-self: center; max-width: 340px; }
  .section, .evt { padding: 36px 0; }
  .liste-sorties { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .raid-infos, .evt-cats { grid-template-columns: 1fr; }
  .affiche { transform: none; }
  .sortie-date { flex-basis: 70px; }
}
.partenaires .titre span { color: var(--jaune); background: var(--noir); padding: 0 .15em; }

@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } .hero-video { background: url(../videos/hero-foret.jpg) center/cover; } }
