/* ============================================================
   YODÉGA — Feuille de style principale
   ------------------------------------------------------------
   Ce fichier contrôle TOUTE l'apparence du site.
   Il est organisé en sections numérotées :
     1. Variables (couleurs, polices) — À MODIFIER ICI EN PRIORITÉ
     2. Bases (corps de page, titres, liens)
     3. En-tête et navigation
     4. Section héros (haut de la page d'accueil)
     5. Bloc actualités / évènements
     6. Section YO·DÉ·GA
     7. Cartes des cours
     8. Bandeau d'appel à l'action
     9. Pied de page
    10. Adaptation mobile (responsive)
   ============================================================ */


/* ============================================================
   1. VARIABLES — le "panneau de contrôle" du site
   ------------------------------------------------------------
   Pour changer une couleur partout sur le site, il suffit de
   la modifier ICI, une seule fois.
   Palette inspirée du studio : vert sapin du mur, ocre doré
   des hamacs, crème chaleureux (fini le fond blanc !).
   ============================================================ */
:root {
  /* Couleurs */
  --creme:       #F6F1E7;  /* fond principal, chaleureux */
  --blanc-doux:  #FDFBF7;  /* fond des cartes */
  --vert-sapin:  #52704F;  /* vert sapin adouci — couleur phare */
  --vert-fonce:  #3F5A40;  /* texte foncé et pied de page (ancien vert sapin) */
  --ocre:        #C08A2D;  /* ocre des hamacs — boutons et accents */
  --ocre-clair:  #E9D9B8;  /* version pâle de l'ocre, pour les fonds */

  /* Polices (chargées depuis Google Fonts dans le HTML) */
  --police-titres: "Fraunces", Georgia, serif;
  --police-texte:  "Karla", Arial, sans-serif;

  /* Largeur maximale du contenu sur grand écran */
  --largeur-max: 1100px;
}


/* ============================================================
   2. BASES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* les largeurs incluent les bordures */
}

html {
  scroll-behavior: smooth; /* défilement doux vers les ancres */
}

body {
  font-family: var(--police-texte);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--vert-fonce);
  background-color: var(--creme);
}

/* Titres : police Fraunces, plus expressive */
h1, h2, h3 {
  font-family: var(--police-titres);
  font-weight: 600;
  line-height: 1.15;
  color: var(--vert-fonce);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); } /* taille fluide selon l'écran */
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }

p { margin-bottom: 1em; }

a {
  color: var(--vert-sapin);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

/* Conteneur : centre le contenu et limite sa largeur */
.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Petite étiquette au-dessus des titres (ex : "Sainte-Pazanne · 44") */
.surtitre {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 0.8rem;
}

/* Boutons */
.bouton {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px; /* bouton arrondi "pilule" */
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bouton:hover { transform: translateY(-2px); }
.bouton:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }

.bouton-plein {
  background-color: var(--ocre);
  color: var(--blanc-doux);
}
.bouton-contour {
  border: 2px solid var(--vert-sapin);
  color: var(--vert-sapin);
}

/* Espacement vertical standard entre les sections */
.section { padding: 4.5rem 0; }


/* ============================================================
   3. EN-TÊTE ET NAVIGATION
   ============================================================ */
.entete {
  position: sticky; /* reste visible quand on fait défiler la page */
  top: 0;
  z-index: 100;
  background-color: rgba(246, 241, 231, 0.92); /* crème translucide */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(63, 90, 64, 0.15);
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  max-width: var(--largeur-max);
  margin: 0 auto;
}

/* Logo + nom dans l'en-tête */
.marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.marque img { width: 60px; height: 60px; }
.marque span {
  font-family: var(--police-titres);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--vert-fonce);
}

/* Menu de navigation */
.navigation ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
}
.navigation a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--vert-fonce);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.navigation a:hover,
.navigation a.actif {
  border-bottom-color: var(--ocre);
}

/* Bouton burger (mobile uniquement — caché sur ordinateur) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--vert-fonce);
  margin: 5px 0;
  border-radius: 2px;
}


/* ============================================================
   4. SECTION HÉROS (haut de la page d'accueil)
   ============================================================ */
.heros {
  padding: 4rem 0 4.5rem;
}
.heros-grille {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* texte un peu plus large que la photo */
  gap: 3rem;
  align-items: center;
}
.heros h1 {
  letter-spacing: 0.04em;
}
.heros .slogan {
  font-family: var(--police-titres);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--vert-sapin);
  margin: 1rem 0 1.5rem;
}
.heros-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.heros-photo img {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(38, 58, 40, 0.22);
}


/* ============================================================
   5. BLOC ACTUALITÉS / ÉVÈNEMENTS
   ------------------------------------------------------------
   C'est le bloc que vous modifierez le plus souvent (1 à 2
   fois par mois). Les instructions détaillées sont dans le
   fichier index.html, directement au-dessus du bloc.
   ============================================================ */
.actualites {
  background-color: var(--ocre-clair);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
}
.actualites-badge {
  flex-shrink: 0;
  background-color: var(--ocre);
  color: var(--blanc-doux);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}
.actualites h3 { margin-bottom: 0.3rem; }
.actualites p:last-child { margin-bottom: 0; }


/* ============================================================
   6. SECTION YO·DÉ·GA — l'histoire du nom
   ------------------------------------------------------------
   Section "signature" du site : trois colonnes qui racontent
   l'origine du nom, sur fond vert sapin.
   ============================================================ */
.yodega-histoire {
  background-color: var(--vert-sapin);
  color: var(--creme);
}
.yodega-histoire h2,
.yodega-histoire h3 {
  color: var(--creme);
}
.yodega-histoire .surtitre { color: var(--ocre-clair); }

.yodega-triptyque {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.yodega-triptyque .syllabe {
  font-family: var(--police-titres);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ocre-clair);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.yodega-triptyque p {
  font-size: 0.98rem;
  opacity: 0.92;
}


/* ============================================================
   7. CARTES DES COURS (aperçu sur la page d'accueil)
   ============================================================ */
.cartes-cours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.carte {
  background-color: var(--blanc-doux);
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  border: 1px solid rgba(63, 90, 64, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(38, 58, 40, 0.14);
}
.carte .pictogramme {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.carte p { font-size: 0.95rem; margin-bottom: 0; }


/* ============================================================
   8. BANDEAU D'APPEL À L'ACTION (séance d'essai)
   ============================================================ */
.bandeau-essai {
  text-align: center;
  background-color: var(--blanc-doux);
  border-radius: 18px;
  padding: 3rem 2rem;
  border: 1px solid rgba(63, 90, 64, 0.12);
}
.bandeau-essai .prix {
  font-family: var(--police-titres);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ocre);
}


/* ============================================================
   9. PIED DE PAGE
   ============================================================ */
.pied {
  background-color: var(--vert-sapin);
  color: var(--creme);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.pied a { color: var(--ocre-clair); }
.pied-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.pied h3 {
  color: var(--creme);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.pied p { font-size: 0.95rem; margin-bottom: 0.4rem; }

/* Icônes réseaux sociaux */
.reseaux {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.reseaux a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--ocre-clair);
  transition: background-color 0.15s ease;
}
.reseaux a:hover { background-color: rgba(233, 217, 184, 0.15); }
.reseaux svg { width: 20px; height: 20px; fill: var(--ocre-clair); }

.pied-bas {
  border-top: 1px solid rgba(246, 241, 231, 0.2);
  padding-top: 1.2rem;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.85;
}


/* ============================================================
   10. ADAPTATION MOBILE (écrans de moins de 820 px de large)
   ============================================================ */
@media (max-width: 820px) {

  /* Le menu devient un panneau déroulant ouvert par le burger */
  .burger { display: block; }

  .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--creme);
    border-bottom: 1px solid rgba(63, 90, 64, 0.15);
    display: none; /* caché par défaut, ouvert via JavaScript */
  }
  .navigation.ouvert { display: block; }
  .navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .navigation a {
    display: block;
    padding: 0.8rem 0;
  }

  /* Le héros passe en une seule colonne */
  .heros-grille {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Le triptyque YO·DÉ·GA s'empile */
  .yodega-triptyque { grid-template-columns: 1fr; gap: 1.8rem; }

  /* Le pied de page s'empile */
  .pied-grille { grid-template-columns: 1fr; }

  /* Le bloc actualités s'empile */
  .actualites { flex-direction: column; }

  .section { padding: 3rem 0; }
}


/* ============================================================
   11. PAGES INTÉRIEURES (À propos, Cours, Studios, Planning...)
   ============================================================ */

/* Bandeau de titre en haut de chaque page intérieure */
.entete-page {
  background-color: var(--vert-sapin);
  color: var(--creme);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.entete-page h1 {
  color: var(--creme);
  font-size: clamp(2rem, 5vw, 3rem);
}
.entete-page p {
  margin: 0.6rem auto 0;
  max-width: 800px;
  opacity: 0.92;
}

/* Grille deux colonnes (texte + photo) */
.grille-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.grille-2 img {
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(38, 58, 40, 0.16);
}

/* Frise chronologique (parcours de Sophie) */
.frise {
  list-style: none;
  margin-top: 2rem;
  border-left: 3px solid var(--ocre);
  padding-left: 1.8rem;
}
.frise li {
  position: relative;
  padding-bottom: 1.8rem;
}
.frise li::before {
  /* La pastille ronde sur la ligne de la frise */
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--ocre);
  border: 3px solid var(--creme);
}
.frise .annee {
  font-family: var(--police-titres);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--vert-sapin);
}

/* Tableaux (planning et tarifs) */
.tableau {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--blanc-doux);
  border-radius: 14px;
  overflow: hidden; /* pour que les coins arrondis s'appliquent */
  box-shadow: 0 6px 18px rgba(38, 58, 40, 0.08);
  margin-top: 1.5rem;
}
.tableau th {
  background-color: var(--vert-sapin);
  color: var(--creme);
  text-align: left;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tableau td {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid rgba(63, 90, 64, 0.12);
}
.tableau tr:nth-child(even) td {
  background-color: rgba(233, 217, 184, 0.18); /* léger zébrage ocre */
}
.tableau .prix-cellule {
  font-weight: 700;
  color: var(--vert-sapin);
  white-space: nowrap;
}

/* Fiches de cours et de studios : blocs alternés */
.fiche {
  background-color: var(--blanc-doux);
  border: 1px solid rgba(63, 90, 64, 0.12);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  margin-top: 1.8rem;
}
.fiche h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4em;
}
.fiche .etiquette {
  display: inline-block;
  background-color: var(--ocre-clair);
  color: var(--vert-fonce);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* Emplacement réservé au planning Momoyoga (branché à l'étape 3) */
.momoyoga-cadre {
  border: 2px dashed var(--ocre);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  background-color: rgba(233, 217, 184, 0.25);
  margin-top: 2rem;
}

@media (max-width: 820px) {
  .grille-2 { grid-template-columns: 1fr; gap: 2rem; }
  .tableau th, .tableau td { padding: 0.7rem 0.8rem; font-size: 0.92rem; }
}


/* ============================================================
   Accessibilité : respecter les préférences de mouvement réduit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .carte { transition: none; }
}


/* ============================================================
   12. FILIGRANE DÉCORATIF (silhouette yoga sur le bord gauche)
   ------------------------------------------------------------
   Présent sur les pages intérieures (pas l'accueil). Réglages :
   opacity (0.05 à 0.12) et height pour la taille.
   ============================================================ */
.filigrane-figure {
  position: fixed;          /* reste en place quand on fait défiler */
  left: -60px;              /* légèrement hors du bord : effet de fondu */
  top: 50%;
  transform: translateY(-50%);
  height: 75vh;             /* 75% de la hauteur de l'écran */
  opacity: 0.07;            /* quasi transparent : présence subtile */
  pointer-events: none;     /* ne gêne jamais les clics */
  z-index: 0;               /* derrière tout le contenu */
}
@media (max-width: 1250px) {
  .filigrane-figure { display: none; } /* masqué sur petits écrans */
}


/* ============================================================
   13. VIDÉOS (page videos.html)
   ============================================================ */
/* Cadre qui garde les proportions 16:9 d'une vidéo YouTube,
   quelle que soit la largeur de l'écran */
.video-cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(38, 58, 40, 0.14);
  margin-top: 1rem;
}
.video-cadre iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Colonne "Validité" du tableau des tarifs */
.tableau .validite-cellule {
  white-space: nowrap;   /* évite que "90 jours" se coupe en deux lignes */
  font-size: 0.95rem;
  opacity: 0.85;
}
