/* ==========================================================================
   SAINT BARTH BJJ — Site vitrine
   Feuille de style unique. Aucune dépendance externe (pas de CDN, pas de
   Google Fonts) : le site se charge instantanément et ne dépend de rien.
   ========================================================================== */

/* --- 1. Palette et variables --------------------------------------------- */
:root {
  --bleu-profond: #0a2540;   /* fond hero, footer */
  --bleu-nuit:    #061a2e;
  --turquoise:    #17a2a8;   /* accent principal (lagon) */
  --turquoise-cl: #2fc3c9;
  --corail:       #e8613c;   /* appels à l'action */
  --corail-fonce: #cf4d29;
  --sable:        #f8f4ed;   /* fond de page */
  --sable-fonce:  #ece4d7;
  --encre:        #16222e;   /* texte */
  --encre-doux:   #4a5c6a;   /* texte secondaire */
  --blanc:        #ffffff;
  --ombre:        0 2px 12px rgba(10, 37, 64, .08);
  --ombre-forte:  0 8px 30px rgba(10, 37, 64, .16);
  --rayon:        14px;
  --largeur:      1080px;
}

/* --- 2. Base -------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px; /* compense l'en-tête fixe lors des ancres */
}

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

img { max-width: 100%; display: block; }

a { color: var(--turquoise); }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
}

h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 72px 0; }

section.alt { background: var(--blanc); }

.chapo {
  color: var(--encre-doux);
  max-width: 62ch;
  font-size: 1.05rem;
}

.surtitre {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: .6em;
}

/* --- 3. Bascule de langue ------------------------------------------------- */
/* Sans JavaScript, la page reste en français : rien ne casse. */
html[lang="fr"] .en { display: none; }
html[lang="en"] .fr { display: none; }

.langue {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  overflow: hidden;
}

.langue button {
  background: transparent;
  border: 0;
  color: var(--blanc);
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  opacity: .6;
}

.langue button[aria-pressed="true"] {
  background: var(--blanc);
  color: var(--bleu-profond);
  opacity: 1;
}

/* --- 4. En-tête ----------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 37, 64, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 78px;
}

.marque {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--blanc);
  margin-right: auto;
}

.marque img { width: 42px; height: auto; }

.marque span {
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover { color: var(--blanc); }

/* --- 5. Boutons ----------------------------------------------------------- */
.bouton {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}

.bouton:hover { transform: translateY(-1px); }

.bouton-primaire {
  background: var(--corail);
  color: var(--blanc);
  box-shadow: 0 4px 14px rgba(232, 97, 60, .35);
}

.bouton-primaire:hover { background: var(--corail-fonce); }

.bouton-clair {
  background: rgba(255, 255, 255, .12);
  color: var(--blanc);
  border: 1px solid rgba(255, 255, 255, .4);
}

.bouton-clair:hover { background: rgba(255, 255, 255, .22); }

.bouton-sombre {
  background: var(--bleu-profond);
  color: var(--blanc);
}

.bouton-petit { padding: 9px 18px; font-size: .88rem; }

/* --- 6. Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    linear-gradient(155deg, rgba(6, 26, 46, .92) 0%, rgba(10, 37, 64, .78) 45%, rgba(10, 37, 64, .55) 100%),
    url("images/hero-openmat.jpg") center 42% / cover no-repeat,
    var(--bleu-profond);
  color: var(--blanc);
  padding: 116px 0 124px;
  overflow: hidden;
}

/* Vague décorative en bas du hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--sable);
  clip-path: ellipse(72% 100% at 50% 100%);
}

.hero .conteneur { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 800;
  max-width: 16ch;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, .88);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.4rem;
}

.hero-reperes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .93rem;
  color: rgba(255, 255, 255, .78);
}

.hero-reperes span::before {
  content: "◆";
  color: var(--turquoise-cl);
  margin-right: 8px;
  font-size: .7em;
  vertical-align: 2px;
}

/* --- 7. Grilles et cartes ------------------------------------------------- */
.grille {
  display: grid;
  gap: 20px;
  margin-top: 34px;
}

.grille-4 { grid-template-columns: repeat(4, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }

.carte {
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: var(--rayon);
  padding: 26px 24px;
  box-shadow: var(--ombre);
}

section.alt .carte { background: var(--sable); }

.carte .age {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--turquoise);
}

.carte p { margin-bottom: 0; color: var(--encre-doux); font-size: .96rem; }

/* --- 8. Sections adultes / enfants ---------------------------------------- */
.section-adultes {
  padding: 72px 0;
  background: var(--bleu-profond);
  color: var(--blanc);
}

.section-adultes h2 { color: var(--blanc); }

.section-adultes p { color: rgba(255, 255, 255, .82); }

.section-adultes .surtitre { color: var(--turquoise-cl); }

/* Le logo adultes est blanc : il ne vit que sur fond sombre */
.section-adultes .duo-image img {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .45));
}

.section-enfants {
  padding: 72px 0;
  background: linear-gradient(180deg, #eef8f8 0%, #e6f4f4 100%);
}

/* Inverse la mise en page : image à droite */
.duo.miroir { grid-template-columns: 1fr 300px; }
.duo.miroir .duo-image { order: 2; }

.duo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: center;
}

.duo-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(10, 37, 64, .18));
}

.duo-texte h2 { margin-bottom: .6em; }

.duo-texte p { color: var(--encre-doux); }

.duo-texte .bouton { margin-top: 10px; }

/* --- 9. Horaires : planning par jour -------------------------------------- */
.legende {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.planning {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.jour {
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: var(--rayon);
  padding: 20px 20px 8px;
  box-shadow: var(--ombre);
}

.jour h3 {
  font-size: .84rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bleu-profond);
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--sable-fonce);
}

.creneau {
  padding: 14px 0;
  border-bottom: 1px solid var(--sable-fonce);
}

.creneau:last-child { border-bottom: 0; }

.creneau .heure {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.creneau .cours {
  display: block;
  color: var(--corail-fonce);
  font-weight: 700;
  font-size: .92rem;
  margin: 1px 0 7px;
}

/* Pastille indiquant le public visé */
.public {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}

.pub-adultes { background: #e5ecf4; color: #244a72; }
.pub-ados    { background: #d9f0f1; color: #0f6f73; }
.pub-enfants { background: #fde5dc; color: #b8431f; }

/* --- 9. Tarifs ------------------------------------------------------------ */
.tarif {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.tarif.vedette {
  border-color: var(--turquoise);
  border-width: 2px;
  box-shadow: var(--ombre-forte);
}

.tarif .etiquette {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--turquoise);
  color: var(--blanc);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.tarif .montant {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bleu-profond);
  margin: 10px 0 2px;
}

.tarif .periode {
  font-size: .88rem;
  color: var(--encre-doux);
  margin-bottom: 16px;
}

.tarif ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  font-size: .94rem;
  color: var(--encre-doux);
  flex-grow: 1;
}

.tarif li {
  padding: 7px 0 7px 26px;
  position: relative;
}

.tarif li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: 700;
}

.note-tarifs {
  margin-top: 26px;
  font-size: .92rem;
  color: var(--encre-doux);
}

/* --- 10. Étapes « comment commencer » ------------------------------------ */
.etapes {
  counter-reset: etape;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.etape {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--blanc);
  border-radius: var(--rayon);
  border: 1px solid var(--sable-fonce);
}

.etape::before {
  counter-increment: etape;
  content: counter(etape);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bleu-profond);
  color: var(--blanc);
  font-weight: 800;
  margin-bottom: 14px;
}

/* --- 11. Encadrement ------------------------------------------------------ */
.coachs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.coach {
  text-align: center;
  background: var(--blanc);
  border: 1px solid var(--sable-fonce);
  border-radius: var(--rayon);
  padding: 26px 16px;
}

.coach .portrait {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--bleu-profond);
  color: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.coach .nom { font-weight: 700; font-size: 1rem; }

.coach .grade {
  font-size: .86rem;
  color: var(--encre-doux);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 4px;
}

/* Sections encadrées par le coach */
.coach .charge {
  margin-top: 10px;
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--turquoise);
  background: rgba(23, 162, 168, .1);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Barre noire = ceinture noire */
.ceinture {
  display: inline-block;
  width: 26px; height: 8px;
  border-radius: 2px;
  background: #12181d;
  border: 1px solid #000;
  position: relative;
}

.ceinture::after {
  content: "";
  position: absolute;
  right: 3px; top: 1px; bottom: 1px;
  width: 4px;
  background: var(--blanc);
  border-radius: 1px;
}

/* --- 12. Galerie ---------------------------------------------------------- */
.section-galerie {
  background: var(--bleu-profond);
  color: var(--blanc);
}

.section-galerie h2 { color: var(--blanc); }

.section-galerie .chapo { color: rgba(255, 255, 255, .75); }

.section-galerie .surtitre { color: var(--turquoise-cl); }

.galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.galerie figure {
  margin: 0;
  border-radius: var(--rayon);
  overflow: hidden;
  background: rgba(255, 255, 255, .06);
}

.galerie img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.galerie .large img { height: 330px; }

.galerie figure:hover img { transform: scale(1.04); }

.galerie .large { grid-column: span 2; grid-row: span 1; }

.credit-photos {
  margin-top: 20px;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}

/* --- 13. Contact ---------------------------------------------------------- */
.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 34px;
  align-items: start;
}

.coordonnees { list-style: none; padding: 0; margin: 0; }

.coordonnees li {
  padding: 14px 0;
  border-bottom: 1px solid var(--sable-fonce);
}

.coordonnees li:last-child { border-bottom: 0; }

.coordonnees .etiquette-champ {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 3px;
}

.coordonnees a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
}

.coordonnees a:hover { color: var(--turquoise); }

.bloc-carte {
  background: var(--bleu-profond);
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: 32px 28px;
}

.bloc-carte h3 { color: var(--blanc); }

.bloc-carte p { color: rgba(255, 255, 255, .8); font-size: .96rem; }

/* --- 13. Bandeau d'appel -------------------------------------------------- */
.bandeau {
  background: var(--turquoise);
  color: var(--blanc);
  text-align: center;
  padding: 62px 0;
}

.bandeau h2 { color: var(--blanc); }

.bandeau p { color: rgba(255, 255, 255, .92); max-width: 54ch; margin: 0 auto 26px; }

/* --- 14. Pied de page ----------------------------------------------------- */
.pied {
  background: var(--bleu-nuit);
  color: rgba(255, 255, 255, .7);
  padding: 52px 0 30px;
  font-size: .92rem;
}

.pied-haut {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.pied h4 {
  color: var(--blanc);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.pied ul { list-style: none; padding: 0; margin: 0; }

.pied li { padding: 4px 0; }

.pied a { color: rgba(255, 255, 255, .7); text-decoration: none; }

.pied a:hover { color: var(--blanc); }

.affiliations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.affiliations img { height: 46px; width: auto; opacity: .92; }

.affiliations .sceau { height: 62px; }

.affiliations span {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .8rem;
  letter-spacing: .04em;
}

.pied-bas {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* --- 15. Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .grille-4, .coachs { grid-template-columns: repeat(2, 1fr); }
  .grille-3, .etapes { grid-template-columns: 1fr; }
  .contact-grille { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }              /* menu masqué : le CTA reste visible */
  .duo, .duo.miroir { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .duo.miroir .duo-image { order: 0; }   /* l'image repasse au-dessus du texte */
  .duo-image { max-width: 230px; margin: 0 auto; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .galerie .large { grid-column: span 2; }
}

@media (max-width: 560px) {
  section { padding: 54px 0; }
  .hero { padding: 68px 0 84px; }
  .grille-4, .coachs { grid-template-columns: 1fr; }
  .pied-haut { grid-template-columns: 1fr; }
  .entete .conteneur { height: 68px; gap: 12px; }
  .marque span { font-size: .86rem; }
  .bouton { padding: 12px 20px; }
  .hero-actions .bouton { flex: 1 1 100%; text-align: center; }
}

/* --- 16. Confort de lecture ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton:hover { transform: none; }
}

@media print {
  .entete, .hero-actions, .bandeau { display: none; }
  body { background: #fff; }
}
