/* ============================================================
   La Danseraie — feuille de style principale
   Les couleurs et tailles viennent toutes de tokens.css.
   Organisation : base → utilitaires → composants → sections.
   ============================================================ */

/* ---------- 1. Base ---------- */

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-corps);
  line-height: var(--lh-corps);
  color: var(--c-texte);
  background: var(--c-blanc);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: var(--lh-titre); margin: 0; font-weight: 600; }
p { margin: 0 0 1rem; }

a { color: inherit; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Anneau de focus visible : indispensable pour la navigation au clavier */
:focus-visible {
  outline: 3px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ---------- 2. Utilitaires ---------- */

/* max-width = largeur du CONTENU ; la gouttière s'ajoute par-dessus */
.conteneur {
  width: 100%;
  max-width: calc(var(--largeur-max) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

/* Masqué à l'écran, lu par les lecteurs d'écran */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  z-index: 100; padding: 0.75rem 1.25rem;
  background: var(--c-bleu-profond); color: var(--c-blanc);
  border-radius: var(--r-bouton); text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

.label {
  font-size: var(--t-label);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-turquoise);
  margin: 0 0 0.75rem;
}


/* ---------- 3. Composants ---------- */

/* Boutons ------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2.25rem;
  border: 0;
  border-radius: var(--r-bouton);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-blanc);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}
.bouton--turquoise { background: var(--c-turquoise); }
.bouton--bleu      { background: var(--c-bleu-profond); }

/* L'état de survol vert vient des composants livrés dans la maquette */
.bouton:hover { background: var(--c-vert); transform: translateY(-2px); }

.cta { text-align: center; margin-top: 22px; }
.cta--gauche { text-align: left; }


/* Titres de section --------------------------------------- */
.titre-section {
  font-size: var(--t-h2);
  font-weight: 500;
  color: var(--c-turquoise);
  text-align: center;
}
.sous-titre { font-weight: 400; }
.titre-section--gauche { text-align: left; }
.titre-section--blanc  { color: var(--c-blanc); }

.sous-titre {
  font-size: var(--t-h3);
  font-weight: 400;
  text-align: center;
  margin: 0.25rem 0 2rem;
}
.sous-titre--gauche { text-align: left; }

.intro {
  max-width: 610px;
  margin-inline: auto;
  text-align: center;
}

.precision { font-size: var(--t-corps); color: var(--c-texte-doux); }


/* Pastilles de dates -------------------------------------- */
.dates {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1.25rem 0 0;
}
.dates li {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  border: 1.5px solid var(--c-vert);
  border-radius: var(--r-date);
  transition: border-color var(--transition), background-color var(--transition);
}
.dates li:hover { border-color: var(--c-cyan); background: rgba(30, 210, 230, 0.08); }


/* Tableaux de tarifs -------------------------------------- */
/* Dégradé horizontal ; la maquette alterne le sens d'un bandeau à l'autre */
.bandeau-tarifs {
  background: linear-gradient(90deg, var(--grad-fonce) 0%, var(--grad-clair) 100%);
  padding: 24px 0 25px;
  margin-top: 40px;
}
.bandeau-tarifs--inverse {
  background: linear-gradient(90deg, var(--grad-clair) 0%, var(--grad-fonce) 100%);
}
.tarifs__titre { font-size: 1.25rem; font-weight: 700; text-align: center; }
.tarifs__note {
  font-size: 0.8125rem;
  text-align: center;
  max-width: 900px;
  margin: 0.25rem auto 0.9rem;
}

/* Table de 925px, 3 colonnes égales, cellules de 48px (mesuré) */
.tarifs {
  width: 100%;
  max-width: 925px;
  margin-inline: auto;
  border-collapse: separate;
  border-spacing: 8px;
  table-layout: fixed;
  text-align: center;
}
.tarifs th, .tarifs td {
  background: var(--c-blanc);
  padding: 0.8rem 0.5rem;
  border-radius: var(--r-cellule);
  font-weight: 500;
}
/* La cellule vide en haut à gauche reste transparente */
.tarifs thead td:empty { background: transparent; }


/* Carrousel de témoignages -------------------------------- */
.carrousel {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 20px);
  max-width: 1100px;      /* carte de 965px + flèches, mesuré */
  margin: 2rem auto 0;
}
.carrousel__piste { flex: 1; }

.avis {
  display: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--c-blanc);
  border-radius: var(--r-carte);
  box-shadow: var(--ombre-carte);
  text-align: center;
}
.avis.est-actif { display: block; }
.avis blockquote { margin: 0; }
.avis figcaption {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--c-bleu-profond);
}

.carrousel__fleche {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 2rem; line-height: 1;
  background: none; border: 0;
  color: var(--c-bleu-profond);
  cursor: pointer;
  border-radius: 50%;
  transition: background-color var(--transition);
}
.carrousel__fleche:hover { background: rgba(0, 82, 106, 0.08); }


/* Formulaire ---------------------------------------------- */
.champ { margin-bottom: 1rem; }
.champ label {
  display: block;
  font-size: var(--t-petit);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.champ input, .champ textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font: inherit;
  background: var(--c-blanc);
  border: 1.5px solid rgba(0, 82, 106, 0.25);
  border-radius: var(--r-bouton);
  transition: border-color var(--transition);
}
.champ textarea { border-radius: 20px; resize: vertical; }
.champ input:focus, .champ textarea:focus { border-color: var(--c-turquoise); }


/* ---------- 4. Sections ---------- */

.section { padding-block: 85px 0; }
.section:first-of-type { padding-top: 20px; }   /* le hero s'arrête déjà bas */
.section:last-of-type { padding-bottom: 85px; }


/* En-tête et navigation ----------------------------------- */
/* Bandeau dégradé blanc -> bleu très pâle, hauteur 121px sur la maquette */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #DDF3FA 100%);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 6.4vw, 92px);   /* écart logo -> liens, mesuré */
  max-width: calc(var(--largeur-max) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: 0 var(--gouttiere);
  min-height: var(--hauteur-entete);
}
.nav__logo img { width: 28px; height: 78px; }

.nav__liste {
  display: flex;
  gap: clamp(1rem, 3vw, 43px);   /* écart entre liens, mesuré */
  list-style: none;
  margin: 0; padding: 0;
}
.nav__liste a {
  text-decoration: none;
  font-size: var(--t-nav);
  transition: color var(--transition);
}
.nav__liste a:hover { color: var(--c-turquoise); }

/* Bouton hamburger : masqué sur grand écran */
.nav__burger { display: none; }


/* Hero ---------------------------------------------------- */
/* Colonnes mesurées : texte 578px, image 668px, sans gouttière entre elles */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 625fr 665fr;
  align-items: center;
  max-width: calc(var(--largeur-max) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding: 0 var(--gouttiere);
}
.hero__texte { padding-left: 47px; }   /* retrait du texte relevé sur la maquette */
/* Silhouette pâle en filigrane, derrière le texte, comme sur la maquette */
.hero__deco {
  position: absolute;
  left: 26px;
  top: 0;
  width: auto;
  height: clamp(280px, 37vw, 540px);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.hero__titre    { font-size: var(--t-h1); font-weight: 500; color: var(--c-turquoise); }
.hero__nom      { font-size: var(--t-hero-nom); font-weight: 700; margin: 0.4rem 0 0.3rem; }
.hero__accroche { font-size: var(--t-hero-lead); font-weight: 400; margin-bottom: 0.4rem; }
.hero__precision{ font-size: var(--t-label); font-weight: 600; margin-bottom: 0.4rem; }
.hero__actions  { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 2.75rem; }

/* Diaporama : les images se superposent, une seule est visible */
.diaporama { position: relative; }
.diaporama__image {
  position: absolute; inset: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 900ms ease;
}
.diaporama__image.est-actif { opacity: 1; }
/* La première image, en flux, donne sa hauteur au conteneur */
.diaporama__image:first-child { position: relative; }


/* Blocs image + texte ------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.duo--inverse .duo__image { order: 2; }


/* Colonnes de niveaux ------------------------------------- */
.niveaux {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 0;
  margin: 56px 0 0;
  text-align: center;
}
.niveaux--deux { grid-template-columns: repeat(2, 1fr); }
.niveau img { margin: 0 auto 24px; width: auto; height: 90px; }
.niveau p { font-size: var(--t-corps); margin: 0; }


/* À propos ------------------------------------------------ */
.a-propos {
  background: var(--c-turquoise);
  color: var(--c-blanc);
  padding: 68px 0 57px;
}
.a-propos__grille {
  display: grid;
  grid-template-columns: 224px 1fr;
  align-items: center;
  gap: clamp(2rem, 13vw, 190px);
}
.a-propos__portrait { border-radius: 50%; width: 100%; }
/* Sur la maquette les deux paragraphes s'enchaînent sans blanc */
.a-propos p { margin-bottom: 0; }


/* Témoignages --------------------------------------------- */
.temoignages {
  background: linear-gradient(180deg, #BCE2E8 0%, #DFF3F9 100%);
  padding-block: 70px;
}


/* Contact ------------------------------------------------- */
.contact {
  background: linear-gradient(180deg, #DFF3F9 0%, var(--c-blanc) 100%);
  padding-block: 70px;
}
.contact__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact__ligne {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.contact__adresse { font-style: normal; margin-bottom: 1.5rem; }
.contact__plan { display: block; text-decoration: none; }
.contact__plan img { border-radius: 12px; }
.contact__plan span {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--t-petit);
  color: var(--c-bleu-profond);
  text-decoration: underline;
}


/* Pied de page -------------------------------------------- */
.pied {
  background: var(--c-bleu-profond);
  color: var(--c-blanc);
  padding-block: 25px;
  font-size: var(--t-note);
}
/* Les trois blocs sont groupés à gauche sur la maquette, pas répartis */
.pied__grille {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 6vw, 90px);
}
.pied p { margin: 0; }
.pied__marque { display: flex; align-items: center; gap: 1rem; }
.pied__marque img { width: 30px; height: 84px; }
.pied__liens a { transition: color var(--transition); }
.pied__liens a:hover { color: var(--c-cyan); }


/* ---------- 5. Responsive ---------- */

/* Tablette */
@media (max-width: 900px) {
  .hero,
  .duo,
  .contact__grille,
  .a-propos__grille { grid-template-columns: 1fr; }

  .duo--inverse .duo__image { order: 0; }
  .a-propos__portrait { max-width: 200px; }
  .niveaux { grid-template-columns: 1fr; }

  /* Menu déroulant sur mobile, piloté par main.js */
  .nav__burger {
    display: block;
    margin-left: auto;
    width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
    position: relative;
  }
  .nav__burger span[aria-hidden] {
    display: block; width: 22px; height: 2px;
    background: var(--c-texte);
    margin-inline: auto;
    box-shadow: 0 -7px 0 var(--c-texte), 0 7px 0 var(--c-texte);
  }
  .nav__burger[aria-expanded="true"] span[aria-hidden] {
    background: var(--c-turquoise);
    box-shadow: 0 -7px 0 var(--c-turquoise), 0 7px 0 var(--c-turquoise);
  }

  .nav__liste {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-blanc);
    box-shadow: var(--ombre-carte);
    padding: 0.5rem 0;
  }
  .nav__liste.est-ouvert { display: flex; }
  .nav__liste a { display: block; padding: 0.9rem var(--gouttiere); }
}

/* Téléphone */
@media (max-width: 560px) {
  .contact__ligne { grid-template-columns: 1fr; gap: 0.35rem; }
  .pied__grille { flex-direction: column; text-align: center; }

  /* Les tableaux passent en cartes empilées pour rester lisibles */
  .tarifs, .tarifs thead, .tarifs tbody, .tarifs tr, .tarifs th, .tarifs td {
    display: block;
    text-align: left;
  }
  .tarifs thead { display: none; }
  .tarifs tbody tr {
    background: var(--c-blanc);
    border-radius: var(--r-cellule);
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  .tarifs tbody th, .tarifs tbody td { background: none; padding: 0.2rem 0; }
  .tarifs tbody th { font-weight: 700; margin-bottom: 0.35rem; }
  /* On réaffiche l'intitulé de colonne devant chaque prix */
  .tarifs tbody td::before {
    content: attr(data-libelle) " : ";
    font-weight: 600;
  }
}


/* ---------- 6. Ajustements de fidélité à la maquette ---------- */

/* Le titre Contact est en noir sur la maquette, pas en turquoise */
.contact .titre-section { color: var(--c-texte); }

/* Aucun lien souligné dans la maquette */
.contact a, .pied a, .contact__plan span { text-decoration: none; }
.contact a:hover, .pied a:hover { text-decoration: underline; }

/* Colonne de formulaire plus étroite et calée à droite */
.formulaire { max-width: min(430px, 100%); margin-left: clamp(0px, 8vw, 105px); box-sizing: border-box; }
.formulaire input, .formulaire textarea { max-width: 100%; }
.champ label.sr-only + input,
.champ label.sr-only + textarea { margin-top: 0; }
.champ input::placeholder, .champ textarea::placeholder {
  color: var(--c-texte); opacity: 1;
}

/* Plan à la largeur de la maquette */
.contact__plan img { max-width: min(523px, 100%); }

/* Pied de page : texte plus petit, comme la maquette */
.pied { font-size: 0.8125rem; }

/* Sur mobile les flèches passent sous la carte pour laisser respirer le texte */
@media (max-width: 560px) {
  .carrousel { flex-wrap: wrap; justify-content: center; }
  .carrousel__piste { flex: 1 0 100%; order: -1; }
}

/* ---------- 7. Page des mentions légales ---------- */

.page-legale {
  background: linear-gradient(180deg, #EFF9FC 0%, var(--c-blanc) 320px);
  padding-block: 70px 90px;
}
.page-legale__corps { max-width: calc(760px + 2 * var(--gouttiere)); }

.page-legale h1 { margin-bottom: 0.25rem; }
.page-legale h2 {
  font-size: var(--t-h3);
  font-weight: 500;
  color: var(--c-turquoise);
  margin: 3rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 82, 106, 0.15);
}
.page-legale h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.75rem 0 0.4rem;
}
.page-legale ul { padding-left: 1.15rem; margin: 0 0 1rem; }
.page-legale li { margin-bottom: 0.35rem; }
.page-legale a { color: var(--c-bleu-profond); }

.page-legale__maj { font-size: var(--t-note); color: var(--c-texte-doux); }

/* Sommaire cliquable en haut de page */
.page-legale__sommaire {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0.5rem;
}
.page-legale__sommaire a {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1.5px solid var(--c-vert);
  border-radius: var(--r-date);
  transition: border-color var(--transition), background-color var(--transition);
}
.page-legale__sommaire a:hover {
  border-color: var(--c-cyan);
  background: rgba(30, 210, 230, 0.08);
}

/* Listes de type « intitulé / valeur » pour l'éditeur et l'hébergeur */
.page-legale__liste { margin: 0 0 1.25rem; }
.page-legale__liste dt {
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.9rem;
}
.page-legale__liste dd { margin: 0.1rem 0 0; }

.page-legale__fort {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-bleu-profond);
}

/* Crédit de conception dans le pied de page */
.pied__droits { line-height: 1.6; }
.pied__droits a { text-decoration: underline; }

/* Case de consentement RGPD sous le formulaire */
.champ-consentement {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.champ-consentement input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--c-turquoise);
}
.champ-consentement a { color: var(--c-bleu-profond); }

/* Champ leurre anti-spam : retiré de l'affichage et du parcours clavier */
.piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 8. Page de confirmation d'envoi ---------- */

.merci {
  background: linear-gradient(180deg, #DFF3F9 0%, var(--c-blanc) 100%);
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding-block: 90px;
}
.merci__corps { position: relative; text-align: center; max-width: 620px; }
.merci__texte { max-width: 480px; margin-inline: auto; }
.merci__deco {
  position: absolute;
  left: -40px;
  top: -30px;
  height: 260px;
  width: auto;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 700px) { .merci__deco { display: none; } }
