/* ============================================================================
 *  Costa Verde Aïkido — Site (page d'accueil)
 *  Direction visuelle « Costa Verde » : vert profond + or sable.
 *  Typo : Bricolage Grotesque (titres) / Libre Franklin (corps).
 * ==========================================================================*/

:root {
  --cv-green:    #0e3b36;  /* vert profond — marque / fonds sombres */
  --cv-gold:     #e0b15e;  /* or sable — accent */
  --cv-cream:    #f6f4ef;  /* fond clair de page */
  --cv-ink:      #12201e;  /* texte foncé */
  --cv-ink-2:    #3a4744;  /* texte secondaire */
  --cv-ink-3:    #5a6763;  /* texte tertiaire */
  --cv-ink-4:    #7c8a82;  /* texte atténué */
  --cv-cta-ink:  #3d4a2f;  /* texte sur fond or */
  --cv-on-green: rgba(246,244,239,.82);
  --cv-border:   rgba(18,32,30,.12);
  --cv-border-g: rgba(246,244,239,.18);
  --cv-wrap:     1180px;
  --cv-pad-x:    clamp(20px, 5vw, 48px);
  --cv-pad-y:    clamp(48px, 6vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cv-green); }

.cv {
  font-family: "Libre Franklin", system-ui, -apple-system, sans-serif;
  background: var(--cv-cream);
  color: var(--cv-ink);
  overflow-x: hidden;
}

.cv h1, .cv h2, .cv h3 {
  font-family: "Bricolage Grotesque", "Libre Franklin", sans-serif;
  letter-spacing: -.02em;
  margin: 0;
}

.cv a { color: inherit; }

.cv-wrap {
  max-width: var(--cv-wrap);
  margin: 0 auto;
  padding: 0 var(--cv-pad-x);
}

.cv-eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cv-green);
}
.cv-eyebrow--gold { color: var(--cv-gold); }

/* --- Boutons ------------------------------------------------------------- */
.cv-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 10px;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, background .15s ease, filter .15s ease;
}
.cv-btn:hover { transform: translateY(-2px); }
/* Le préfixe .cv augmente la spécificité pour battre la règle `.cv a`
   (sinon les liens-boutons héritent de la couleur de leur conteneur). */
.cv .cv-btn--gold  { background: var(--cv-gold);  color: var(--cv-green); }
.cv .cv-btn--gold:hover { filter: brightness(1.05); }
.cv .cv-btn--ghost { background: rgba(246,244,239,.12); color: var(--cv-cream); }
.cv .cv-btn--ghost:hover { background: rgba(246,244,239,.2); }
.cv .cv-btn--dark  { background: var(--cv-green); color: var(--cv-cream); }
.cv .cv-btn--dark:hover { filter: brightness(1.15); }

/* --- Header / Nav -------------------------------------------------------- */
.cv-header {
  background: var(--cv-green);
  color: var(--cv-cream);
  position: sticky;
  top: 0;
  z-index: 50;
}
.cv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.cv-logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--cv-cream);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cv-logo span { color: var(--cv-gold); }
/* Logo image : badge blanc arrondi (rend bien sur le bandeau vert, que le
   fichier soit détouré ou sur fond blanc). Si le fichier est absent, le
   <img> se retire tout seul et seul le texte reste. */
.cv-logo__img { height: 40px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 4px; }

.cv-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(246,244,239,.85);
}
.cv-navlink {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}
.cv-navlink:hover { color: var(--cv-gold); }
/* Trait or animé qui apparaît sous l'onglet au survol */
.cv-navlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: var(--cv-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}
.cv-navlink:hover::after { transform: scaleX(1); }

.cv-header__cta { padding: 11px 20px; font-size: 14px; border-radius: 8px; }

/* Burger (mobile) */
.cv-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.cv-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cv-cream);
  transition: transform .2s ease, opacity .2s ease;
}
.cv-header.is-open .cv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cv-header.is-open .cv-burger span:nth-child(2) { opacity: 0; }
.cv-header.is-open .cv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.cv-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: var(--cv-green);
  color: var(--cv-cream);
}
.cv-hero__text {
  padding: clamp(48px,7vw,84px) clamp(20px,5vw,64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cv-hero__eyebrow { color: var(--cv-gold); margin-bottom: 22px; }
.cv-h1 {
  font-weight: 800;
  font-size: clamp(38px,5.4vw,64px);
  line-height: 1.02;
  margin-bottom: 22px;
  text-wrap: balance;
}
.cv-hero__lead {
  font-size: clamp(16px,2vw,18px);
  line-height: 1.6;
  color: var(--cv-on-green);
  max-width: 46ch;
  margin: 0 0 34px;
}
.cv-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Média (photo) — placeholder hachuré à remplacer par une vraie image */
.cv-media {
  background-size: cover;
  background-position: center;
  min-height: 340px;
}
.cv-ph {
  background: repeating-linear-gradient(45deg,#dfe6df,#dfe6df 12px,#e9eee8 12px,#e9eee8 24px);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--cv-ink-4);
}

/* --- Cartes d'infos ------------------------------------------------------ */
.cv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cv-card {
  border: 1px solid var(--cv-border);
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(14,59,54,.4);
}
.cv-card__label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--cv-green);
  margin-bottom: 6px;
}
.cv-card__value { font-size: 26px; font-weight: 700; }
.cv-card__sub { font-size: 14px; color: var(--cv-ink-3); margin-top: 4px; }

/* --- Sections génériques ------------------------------------------------- */
.cv-section { padding-top: var(--cv-pad-y); padding-bottom: var(--cv-pad-y); }
.cv-section--cards { padding-top: clamp(40px,5vw,56px); padding-bottom: 8px; }

.cv-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.cv-h2 {
  font-weight: 800;
  font-size: clamp(26px,3.4vw,36px);
  line-height: 1.1;
}
.cv-p { font-size: 17px; line-height: 1.65; color: var(--cv-ink-2); margin: 0 0 16px; }
.cv-p--sm { font-size: 15px; color: var(--cv-ink-3); margin: 0; }

/* --- Horaires ------------------------------------------------------------ */
.cv-band-green { background: var(--cv-green); color: var(--cv-cream); }
.cv-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cv-sched-card {
  border: 1px solid var(--cv-border-g);
  border-radius: 14px;
  padding: 28px;
}
.cv-sched-card h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 14px;
}
/* Survol des tuiles cliquables (accueil « Découvrir le club ») */
a.cv-sched-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.cv-sched-card:hover {
  transform: translateY(-4px);
  border-color: var(--cv-gold);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.5);
}
a.cv-sched-card:hover h3 { color: var(--cv-gold); }
.cv-sched-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.cv-sched-row + .cv-sched-row { border-top: 1px solid rgba(246,244,239,.14); }
.cv-sched-time { color: var(--cv-gold); font-weight: 700; }
.cv-note { font-size: 14px; color: rgba(246,244,239,.6); margin: 18px 0 0; }

/* --- Lignée -------------------------------------------------------------- */
.cv-master { display: flex; gap: 20px; align-items: center; }
.cv-portrait {
  width: 120px;
  flex: 0 0 120px;
  aspect-ratio: 3/4;
  border-radius: 12px;
  object-fit: cover;
}
.cv-master h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px; }
.cv-master__role { font-size: 14px; color: var(--cv-ink-3); margin-top: 4px; }
.cv-master__dates { font-size: 14px; color: var(--cv-ink-4); }

/* Chaîne de transmission (page Histoire) */
.cv-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(246,244,239,.18);
}
.cv-chain__item {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--cv-cream);
  background: rgba(246,244,239,.08);
  border: 1px solid rgba(246,244,239,.2);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}
.cv-chain__item--us {
  background: var(--cv-gold);
  border-color: var(--cv-gold);
  color: var(--cv-green);
}
.cv-chain__arrow { color: var(--cv-gold); font-weight: 700; }

/* Version mise en avant (page Histoire) : portraits plus grands, liseré or */
.cv-master--lg { gap: 26px; }
.cv-master--lg .cv-portrait {
  width: 200px;
  flex: 0 0 200px;
  border: 3px solid var(--cv-gold);
  box-shadow: 0 14px 34px -16px rgba(0,0,0,.55);
}
.cv-master--lg h3 { font-size: clamp(24px, 2.6vw, 30px); }
.cv-master--lg .cv-master__role { font-size: 16px; font-weight: 600; margin-top: 6px; }
.cv-master--lg .cv-master__dates { font-size: 15px; margin-top: 2px; }
@media (max-width: 560px) {
  .cv-master--lg { flex-direction: column; align-items: flex-start; }
  .cv-master--lg .cv-portrait { width: 220px; flex: 0 0 auto; }
}

/* --- Avis ---------------------------------------------------------------- */
.cv-reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.cv-reviews__title { margin-top: 10px; }
.cv-gscore {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cv-gscore__num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--cv-green);
}
.cv-gscore__meta { font-size: 13px; color: var(--cv-ink-3); }
.cv-stars { display: inline-flex; gap: 2px; }
.cv-stars svg { width: 17px; height: 17px; }
.cv-stars .on  { fill: var(--cv-gold); }
.cv-stars .off { fill: #d9d5cc; }

.cv-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.cv-review-card {
  background: #fff;
  border: 1px solid var(--cv-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cv-review-card__top { display: flex; align-items: center; gap: 12px; }
.cv-review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--cv-green), #1c5a52);
}
.cv-review-card__name { font-weight: 700; }
.cv-review-card__src { font-size: 13px; color: var(--cv-ink-4); }
.cv-review-card__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cv-ink-2); }
.cv-badge-g {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--cv-ink-4);
  margin-top: auto;
}
.cv-badge-g svg { width: 14px; height: 14px; }

/* --- CTA ----------------------------------------------------------------- */
.cv-cta-block {
  background: var(--cv-gold);
  color: var(--cv-green);
  border-radius: 18px;
  padding: clamp(36px,5vw,56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cv-cta-block h2 { font-weight: 800; font-size: clamp(26px,3.4vw,36px); line-height: 1.05; margin-bottom: 8px; }
.cv-cta-block__sub { font-size: 16px; color: var(--cv-cta-ink); }

/* --- Footer -------------------------------------------------------------- */
.cv-footer { background: var(--cv-green); color: rgba(246,244,239,.7); }
.cv-footer__inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cv-footer__brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--cv-cream);
}
.cv-footer__meta { font-size: 14px; margin-top: 4px; }
.cv-social { display: flex; gap: 18px; color: var(--cv-gold); font-weight: 600; font-size: 14px; }
.cv-social a { text-decoration: none; transition: color .15s ease; }
.cv-social a:hover { color: #fff; }

/* --- Pages secondaires --------------------------------------------------- */
.cv-pagehero { background: var(--cv-green); color: var(--cv-cream); }
.cv-pagehero__inner { padding: clamp(44px,6vw,80px) 0; }
.cv-pagehero .cv-eyebrow { color: var(--cv-gold); margin-bottom: 18px; }
.cv-pagehero h1 {
  font-weight: 800;
  font-size: clamp(32px,4.6vw,52px);
  line-height: 1.04;
  text-wrap: balance;
}
.cv-pagehero p {
  color: var(--cv-on-green);
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: clamp(16px,2vw,18px);
  line-height: 1.6;
}

.cv-prose p { font-size: 17px; line-height: 1.7; color: var(--cv-ink-2); margin: 0 0 18px; max-width: 72ch; }
.cv-prose h2 { margin: 8px 0 16px; }
.cv-prose h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; margin: 26px 0 8px; color: var(--cv-green); }

/* Grille de bénéfices / points (Aïkitaïso) */
.cv-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Galerie */
.cv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cv-gallery .cv-ph { aspect-ratio: 4/3; border-radius: 12px; min-height: 0; justify-content: center; align-items: center; }

/* Cartes de stages */
.cv-stage {
  border: 1px solid var(--cv-border);
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.cv-stage__date {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--cv-gold);
  background: var(--cv-green);
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.cv-stage__body { flex: 1; min-width: 220px; }
.cv-stage__body h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; margin: 0 0 6px; }

/* --- Formulaire (cours d'essai) ------------------------------------------ */
.cv-form { display: grid; gap: 16px; max-width: 640px; }
.cv-form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.cv-field { display: flex; flex-direction: column; gap: 6px; }
.cv-field label { font-size: 14px; font-weight: 600; color: var(--cv-green); }
.cv-field input,
.cv-field select,
.cv-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--cv-ink);
  background: #fff;
  border: 1px solid var(--cv-border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.cv-field textarea { min-height: 120px; resize: vertical; }
.cv-field input:focus,
.cv-field select:focus,
.cv-field textarea:focus {
  outline: none;
  border-color: var(--cv-gold);
  box-shadow: 0 0 0 3px rgba(224,177,94,.25);
}
@media (max-width: 560px) { .cv-form__row { grid-template-columns: 1fr; } }

/* --- Galerie : sélecteur de saison + carrousel --------------------------- */
.cv-seasons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cv-season-btn {
  border: 1px solid var(--cv-border);
  background: #fff;
  color: var(--cv-green);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.cv-season-btn:hover { border-color: var(--cv-gold); }
.cv-season-btn.is-active { background: var(--cv-green); color: var(--cv-cream); border-color: var(--cv-green); }

.cv-carousel { position: relative; }
.cv-carousel__viewport { overflow: hidden; border-radius: 16px; }
.cv-carousel__track { display: flex; transition: transform .4s ease; }
.cv-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e9eee8;
}
.cv-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-slide__ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cv-ink-4);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: repeating-linear-gradient(45deg,#dfe6df,#dfe6df 12px,#e9eee8 12px,#e9eee8 24px);
}
.cv-slide__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.cv-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(14,59,54,.82);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease;
}
.cv-carousel__btn:hover { background: var(--cv-green); }
.cv-carousel__btn--prev { left: 14px; }
.cv-carousel__btn--next { right: 14px; }
.cv-carousel__btn svg { width: 22px; height: 22px; }
.cv-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.cv-dot {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--cv-border);
  cursor: pointer;
  transition: background .15s ease, width .15s ease;
}
.cv-dot.is-active { background: var(--cv-gold); width: 24px; border-radius: 999px; }
.cv-carousel__empty { text-align: center; color: var(--cv-ink-3); padding: 48px 16px; }

/* --- Responsive ---------------------------------------------------------- */
/* Le menu (long) passe en burger dès 1160px pour ne jamais déborder. */
@media (max-width: 1160px) {
  .cv-burger { display: flex; }
  .cv-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cv-green);
    padding: 8px var(--cv-pad-x) 20px;
    border-top: 1px solid rgba(246,244,239,.12);
    display: none;
  }
  .cv-header.is-open .cv-nav { display: flex; }
  .cv-nav .cv-navlink { padding: 14px 0; border-bottom: 1px solid rgba(246,244,239,.08); }
  .cv-nav .cv-navlink::after { display: none; }
}

/* La mise en page (grilles) passe en 1 colonne sur mobile. */
@media (max-width: 820px) {
  .cv-features { grid-template-columns: 1fr; }
  .cv-gallery { grid-template-columns: 1fr 1fr; }
  .cv-hero { grid-template-columns: 1fr; }
  .cv-cards { grid-template-columns: 1fr; }
  .cv-two { grid-template-columns: 1fr; gap: 28px; }
  .cv-schedule { grid-template-columns: 1fr; }
  .cv-header__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .cv-btn, .cv-card, .cv-carousel__track { transition: none !important; }
}
