/* ==========================================================================
   Studio Unicité — direction artistique v3 (claire)
   Dominante sable/ivoire, accent or vif pour les boutons et l'essentiel,
   ébène gardé en minorité assumée (bandeau « séance offerte » + pied de page).
   ========================================================================== */

:root {
  --sable:   #F7EFE3;   /* fond général — dominante */
  --lin:     #EFE1C9;   /* fond alterné, un ton plus profond */
  --carte:   #FFFCF6;   /* surfaces élevées : cartes, champs, panneaux */
  --ebene:   #1E150D;   /* texte principal + les deux sections sombres */
  --ebene-2: #2A1D13;   /* nuance d'ébène pour les dégradés */
  --terre:   #5C4128;   /* texte secondaire, sur fond clair */
  --or:      #B48C4D;   /* traits, bordures, décor — jamais du texte */
  --ambre:   #D9971A;   /* accent principal : boutons, informations importantes */
  --ambre-2: #8A5A12;   /* variante foncée de l'accent, utilisée en texte (liens, labels) */
  --ligne:   rgba(92,65,40,.22);   /* filets fins sur fond clair */

  --f-titre: "Anton", Impact, sans-serif;
  --f-sign:  "Cinzel", Georgia, serif;
  --f-texte: "DM Sans", system-ui, sans-serif;

  --largeur: 1240px;
  --marge: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 9vw, 128px);

  /* Grain fin, chaud et discret, pensé pour un fond clair (mode multiply) */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .18  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

html { scroll-behavior: smooth; }

/* Teinte basse du dégradé sable : couleur enregistrée pour pouvoir
   l'animer en douceur (JS la change selon la section visible au scroll).
   Navigateurs sans support @property : le dégradé reste statique, sans casse. */
@property --teinte-bas {
  syntax: "<color>";
  inherits: true;
  initial-value: #EFE1C9;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--sable) 0%, var(--teinte-bas) 100%);
  background-attachment: fixed;
  transition: --teinte-bas .9s ease;
  color: var(--ebene);
  font-family: var(--f-texte);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--ambre); color: var(--ebene); }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 4px; }

.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ambre); color: var(--ebene); padding: 14px 22px; font-weight: 700;
}
.saut-contenu:focus { left: 0; }

.conteneur { width: min(var(--largeur), 100% - var(--marge) * 2); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 18px; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

.display {
  font-family: var(--f-titre);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.005em;
  font-size: clamp(44px, 7.6vw, 104px);
  color: var(--ebene);
}
.titre {
  font-family: var(--f-titre);
  text-transform: uppercase;
  line-height: 0.9;
  font-size: clamp(34px, 5.4vw, 76px);
  color: var(--ebene);
}
.sign {
  font-family: var(--f-sign);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 12.5px;
  color: var(--ambre-2);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sign::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--or);
  flex: none;
}
.chapo { font-size: clamp(17px, 1.9vw, 20px); color: var(--terre); max-width: 54ch; }

/* Le mot mis en évidence dans les titres : l'argument de conversion */
.or { color: var(--ambre-2); }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.entete.pose {
  background: rgba(247,239,227,.88);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(92,65,40,.14);
  box-shadow: 0 8px 24px -18px rgba(30,21,13,.35);
}
.entete-barre {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0;
}
.marque { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marque img { width: 66px; height: 66px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(92,65,40,.18); }
.marque b {
  font-family: var(--f-sign); font-weight: 700; letter-spacing: .17em;
  font-size: 21.5px; line-height: 1.15; display: block; color: var(--ebene);
}
.marque small {
  font-family: var(--f-texte); font-size: 16.5px; letter-spacing: .04em;
  color: var(--terre); display: block;
}

.nav-liste { display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav-liste a {
  text-decoration: none; font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  position: relative; padding: 8px 2px; display: inline-block; white-space: nowrap;
  color: rgba(30,21,13,.72);
}
/* Soulignement qui se déploie depuis la gauche */
.nav-liste a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; height: 2px; width: 100%;
  background: var(--ambre); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.nav-liste a:hover { color: var(--ebene); }
.nav-liste a:hover::after { transform: scaleX(1); }
.nav-liste a[aria-current="page"] { color: var(--ambre-2); font-weight: 700; }
.nav-liste a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  color: var(--ebene) !important; background: var(--ambre);
  border-radius: 999px; padding: 11px 22px !important; font-weight: 700 !important;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ebene); color: var(--sable) !important; transform: translateY(-2px); }

.burger {
  display: none; background: none; border: 1px solid rgba(30,21,13,.25);
  border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--ebene);
}
.burger i { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4.5px 0; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Héros
   -------------------------------------------------------------------------- */
.heros {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 150px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sable) 0%, var(--teinte-bas) 100%);
  transition: --teinte-bas .9s ease;
}
/* Halo doré derrière le titre */
.heros::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; bottom: -24%; width: 150vmax; height: 110vmax;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 100%,
      rgba(217,151,26,.22) 0%, rgba(180,140,77,.1) 27%, transparent 58%);
  pointer-events: none;
}
.heros::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: var(--grain); opacity: .07; mix-blend-mode: multiply; pointer-events: none;
}

/* Le soleil du logo, en très grand, animé au chargement puis en parallaxe */
.soleil-fond {
  position: absolute; z-index: 1;
  left: 58%; bottom: -22vw; width: min(1500px, 126%);
  transform: translateX(-50%);
  opacity: .9;
  pointer-events: none;
}
/* Voile clair qui éclaircit la gauche pour que le titre reste lisible sur le soleil */
.heros-voile {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(247,239,227,.98) 0%, rgba(247,239,227,.93) 26%, rgba(247,239,227,.55) 46%, rgba(247,239,227,.05) 68%, transparent 80%),
    linear-gradient(to top, rgba(247,239,227,.5) 0%, transparent 24%);
}
.soleil-fond .rayon { transform-box: fill-box; transform-origin: 50% 100%; }

.heros-inner { position: relative; z-index: 3; padding-bottom: clamp(48px, 7vw, 96px); }
.heros .display { max-width: 13ch; }
.heros-bas {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 32px; margin-top: clamp(28px, 4vw, 48px);
}
.heros-texte { max-width: 44ch; color: var(--terre); font-size: clamp(16px, 1.8vw, 19px); }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Bande défilante : donne le tempo, remplace une photo d'ambiance */
.ticker {
  position: relative; z-index: 3;
  border-top: 1px solid var(--ligne);
  border-bottom: 1px solid var(--ligne);
  overflow: hidden; padding: 15px 0; background: rgba(180,140,77,.08);
}
.ticker-piste { display: flex; width: max-content; animation: defile 34s linear infinite; }
.ticker span {
  font-family: var(--f-sign); font-weight: 600; letter-spacing: .22em;
  font-size: 12.5px; color: var(--terre);
  padding: 0 26px; white-space: nowrap; display: inline-flex; align-items: center; gap: 26px;
}
.ticker span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ambre); }
@keyframes defile { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Boutons — l'or vif porte toujours l'action principale
   -------------------------------------------------------------------------- */
.btn {
  --fond: var(--ambre); --texte: var(--ebene);
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-texte); font-size: 15.5px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  padding: 16px 30px; border-radius: 999px; border: 1px solid var(--fond);
  background: var(--fond); color: var(--texte);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, background-color .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(217,151,26,.55); }
.btn:active { transform: translateY(-1px); }
/* Reflet qui traverse le bouton au survol */
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .65s cubic-bezier(.2,.7,.3,1);
}
.btn:hover::before { transform: translateX(120%); }

.btn-fantome {
  --fond: transparent; --texte: var(--ebene);
  border-color: rgba(30,21,13,.3);
}
.btn-fantome:hover { border-color: var(--ebene); box-shadow: none; background: rgba(30,21,13,.05); }
.btn-fantome::before { display: none; }

.btn .fleche { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.btn:hover .fleche { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section) 0; position: relative; }
.section-tete { max-width: 40ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-tete .titre { margin: 18px 0 20px; }

/* --------------------------------------------------------------------------
   Les cours : lignes qui s'ouvrent au survol
   -------------------------------------------------------------------------- */
.cours { border-top: 1px solid var(--ligne); }
.cours-ligne {
  position: relative; display: block; text-decoration: none;
  border-bottom: 1px solid var(--ligne);
  padding: clamp(26px, 3.4vw, 42px) 0;
  overflow: hidden;
}
/* Le fond doré glisse depuis la gauche */
.cours-ligne::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(217,151,26,.14), rgba(217,151,26,0) 72%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
}
.cours-ligne:hover::before, .cours-ligne:focus-visible::before { transform: scaleX(1); }

.cours-grille {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 88px 1.1fr 1fr auto;
  align-items: center; gap: clamp(16px, 3vw, 40px);
  padding-inline: clamp(0px, 1.6vw, 26px);
  transition: padding-left .45s cubic-bezier(.2,.7,.3,1);
}
.cours-ligne:hover .cours-grille { padding-left: clamp(10px, 2.6vw, 40px); }

.cours-num {
  font-family: var(--f-sign); font-size: 12.5px; letter-spacing: .18em;
  color: var(--ambre-2);
}
.cours-nom {
  font-family: var(--f-titre); text-transform: uppercase; line-height: .95;
  font-size: clamp(28px, 4vw, 52px); color: var(--ebene);
  transition: color .35s ease;
}
.cours-ligne:hover .cours-nom { color: var(--ambre-2); }
.cours-age { font-size: 15px; color: var(--terre); margin-top: 6px; }
.cours-quand { font-size: clamp(17px, 2.1vw, 22px); font-weight: 700; white-space: nowrap; color: var(--ebene); }
.cours-quand small { display: block; font-weight: 400; font-size: 14px; color: var(--terre); }
.cours-fleche {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(180,140,77,.55);
  display: grid; place-items: center; flex: none;
  transition: background-color .35s, border-color .35s, transform .45s cubic-bezier(.2,.7,.3,1);
}
.cours-fleche svg { width: 17px; height: 17px; stroke: var(--ambre-2); fill: none; stroke-width: 1.8; transition: stroke .35s; }
.cours-ligne:hover .cours-fleche { background: var(--ambre); border-color: var(--ambre); transform: rotate(-45deg); }
.cours-ligne:hover .cours-fleche svg { stroke: var(--ebene); }

/* --------------------------------------------------------------------------
   Panneau « séance offerte » — la touche sombre assumée n°1
   -------------------------------------------------------------------------- */
.essai {
  position: relative; overflow: hidden;
  background: var(--ebene);
  padding: clamp(64px, 9vw, 120px) 0;
}
.essai::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 130vmax; height: 90vmax;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(217,151,26,.2) 0%, transparent 52%);
  pointer-events: none;
}
.essai-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.essai .titre, .essai .sign { color: var(--sable); }
.essai .sign { color: rgba(247,239,227,.65); }
.essai .sign::before { background: var(--or); }
.essai .or { color: var(--ambre); }
.essai p { margin-top: 18px; color: rgba(247,239,227,.72); max-width: 44ch; }

/* --------------------------------------------------------------------------
   Panneaux visuels : cartes ivoire, en attendant les photos
   -------------------------------------------------------------------------- */
.visuel {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; min-height: 360px;
  background: var(--carte);
  border: 1px solid rgba(180,140,77,.4);
  border-radius: 3px;
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -42px rgba(30,21,13,.35);
}
/* Lueur dorée, comme le soleil du logo qui se lève derrière le panneau */
.visuel::before {
  content: ""; position: absolute; left: 50%; top: -38%;
  width: 150%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle,
     rgba(217,151,26,.24) 0%, rgba(180,140,77,.1) 32%, transparent 62%);
}
.visuel.froid::before {
  background: radial-gradient(circle,
     rgba(180,140,77,.2) 0%, rgba(140,102,58,.08) 34%, transparent 64%);
  top: auto; bottom: -44%;
}
/* Marque du soleil, gravée au centre du panneau */
.visuel-marque {
  position: relative; z-index: 1;
  width: 46%; max-width: 210px; opacity: .55;
}
.visuel-note {
  position: absolute; z-index: 2; left: 22px; bottom: 22px;
  font-size: 13px; letter-spacing: .02em; color: var(--ebene);
  background: rgba(255,252,246,.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(30,21,13,.14); border-radius: 999px;
  padding: 8px 15px; display: inline-flex; align-items: center; gap: 9px;
}
.visuel-note::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ambre); flex: none;
}

/* Perspective au survol, pilotée en JS */
.tilt { transition: transform .5s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; will-change: transform; }

.duo { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

/* --------------------------------------------------------------------------
   Bloc engagement associatif — variante claire alternée (lin)
   -------------------------------------------------------------------------- */
.engagement { background: var(--lin); }

/* --------------------------------------------------------------------------
   Infos pratiques
   -------------------------------------------------------------------------- */
.infos { display: grid; gap: 0; }
.infos div { border-top: 1px solid var(--ligne); padding: 24px 0; display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: baseline; }
.infos div:last-child { border-bottom: 1px solid var(--ligne); }
.infos dt { font-family: var(--f-sign); font-size: 12px; letter-spacing: .16em; color: var(--ambre-2); }
.infos dd { margin: 0; font-size: clamp(18px, 2.1vw, 23px); font-weight: 700; line-height: 1.3; color: var(--ebene); }
.infos dd span { display: block; font-weight: 400; font-size: 15.5px; color: var(--terre); margin-top: 4px; }
.infos a { text-decoration: none; background-image: linear-gradient(var(--ambre-2), var(--ambre-2));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left 100%;
  transition: background-size .4s cubic-bezier(.2,.7,.3,1); padding-bottom: 2px; }
.infos a:hover { background-size: 100% 1px; color: var(--ambre-2); }

/* --------------------------------------------------------------------------
   Pied de page — la touche sombre assumée n°2
   -------------------------------------------------------------------------- */
.pied { background: var(--ebene); padding: clamp(56px, 8vw, 88px) 0 34px; color: rgba(247,239,227,.85); }
.pied-grille { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.pied h2 { font-family: var(--f-sign); font-size: 12px; letter-spacing: .18em; color: var(--ambre); margin-bottom: 16px; }
.pied p { color: rgba(247,239,227,.68); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 10px; color: rgba(247,239,227,.72); }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--ambre); }
.insta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  border: 1px solid rgba(217,151,26,.45); border-radius: 999px; padding: 10px 20px;
  text-decoration: none; font-weight: 700; font-size: 15px; color: rgba(247,239,227,.92);
  transition: background-color .3s, border-color .3s, transform .3s;
}
.insta:hover { background: rgba(217,151,26,.14); border-color: var(--ambre); transform: translateY(-2px); }
.insta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pied-bas {
  margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(247,239,227,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px;
  font-size: 13.5px; color: rgba(247,239,227,.5);
}

/* --------------------------------------------------------------------------
   Révélations au scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s cubic-bezier(.2,.7,.3,1), transform .85s cubic-bezier(.2,.7,.3,1); }
.reveal.vu { opacity: 1; transform: none; }

/* Transition entre les pages */
.voile {
  position: fixed; inset: 0; z-index: 500; background: var(--sable);
  pointer-events: none; opacity: 0; transition: opacity .42s ease;
}
.voile.actif { opacity: 1; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Resserrement de la barre avant le passage en menu mobile */
@media (max-width: 1240px) {
  .nav-liste { gap: 15px; }
  .nav-liste a { font-size: 13.5px; }
  .nav-cta { padding: 10px 17px !important; }
  .marque small { display: none; }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .nav-liste { gap: 0; }
  .nav-liste a { font-size: 17.5px; }
  .marque small { display: block; }
  .nav {
    position: fixed; inset: 102px 0 auto 0;
    background: rgba(247,239,227,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(92,65,40,.16);
    clip-path: inset(0 0 100% 0); transition: clip-path .45s cubic-bezier(.2,.7,.3,1);
  }
  .nav.ouvert { clip-path: inset(0 0 0 0); }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--marge) 26px; }
  .nav-liste li { border-bottom: 1px solid rgba(30,21,13,.1); }
  .nav-liste a { display: block; padding: 17px 0; font-size: 17.5px; }
  .nav-cta { text-align: center; justify-content: center; margin-top: 18px; }
  .duo, .essai-inner { grid-template-columns: 1fr; }
  .essai-inner { gap: 28px; }
  .pied-grille { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  /* En mobile, le voile devient vertical : le soleil reste visible sous le texte */
  .heros-voile {
    background:
      linear-gradient(to bottom, rgba(247,239,227,.97) 0%, rgba(247,239,227,.92) 48%, rgba(247,239,227,.3) 72%, transparent 88%);
  }
  .soleil-fond { left: 50%; bottom: -16vw; width: 160%; opacity: .95; }
  .cours-grille { grid-template-columns: 1fr auto; grid-template-areas: "num num" "nom fleche" "quand quand"; gap: 8px 16px; }
  .cours-num { grid-area: num; }
  .cours-bloc { grid-area: nom; }
  .cours-quand { grid-area: quand; margin-top: 6px; }
  .cours-fleche { grid-area: fleche; }
  .infos div { grid-template-columns: 1fr; gap: 6px; }
  .visuel { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Portrait de la professeure — la photo reste sur une plaque sombre discrète
   pour la légende, seule touche de contraste fort au fil du texte
   ========================================================================== */
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; isolation: isolate; }

/* Cadre doré décalé : de la profondeur sans surcharge */
.portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translate(18px, 18px);
  border: 1px solid rgba(180, 140, 77, .6); border-radius: 3px;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.portrait:hover::before, .portrait.couleur::before { transform: translate(9px, 9px); }

.portrait-cadre {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; border-radius: 3px; background: var(--carte);
  box-shadow: 0 30px 60px -38px rgba(30,21,13,.4);
}
.portrait-cadre img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(.42) saturate(.88) contrast(1.04);
  transition: filter .8s ease, transform .9s cubic-bezier(.2,.7,.3,1);
}
.portrait:hover .portrait-cadre img,
.portrait:focus-within .portrait-cadre img,
.portrait.couleur .portrait-cadre img {
  filter: sepia(0) saturate(1) contrast(1.04);
  transform: scale(1.045);
}

/* Voile sombre en bas, pour que le nom reste lisible — touche foncée locale */
.portrait-cadre::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(20,14,9,.88) 0%, rgba(20,14,9,.22) 40%, transparent 68%);
}

.portrait-nom { position: absolute; z-index: 3; left: 24px; bottom: 22px; right: 24px; pointer-events: none; }
.portrait-nom b {
  display: block; font-family: var(--f-titre); text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1; color: var(--sable);
}
.portrait-nom span {
  display: block; margin-top: 6px;
  font-family: var(--f-sign); font-weight: 600; letter-spacing: .16em;
  font-size: 11.5px; color: var(--ambre);
}
/* --- Galerie en défilement (variante à 2 photos et plus, page À propos) --- */
.galerie-piste {
  list-style: none; margin: 0; padding: 0; height: 100%; width: 100%;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.galerie-piste::-webkit-scrollbar { display: none; }
.galerie-diapo { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
.galerie-diapo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: sepia(.42) saturate(.88) contrast(1.04);
  transition: filter .8s ease, transform .9s cubic-bezier(.2,.7,.3,1);
}
.portrait-galerie:hover .galerie-diapo img,
.portrait-galerie:focus-within .galerie-diapo img,
.portrait-galerie.couleur .galerie-diapo img {
  filter: sepia(0) saturate(1) contrast(1.04);
}
.galerie-nav {
  position: absolute; z-index: 3; left: 24px; right: 24px; bottom: 76px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.galerie-fleche {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  border: 1px solid rgba(247,239,227,.4); background: rgba(20,14,9,.45);
  backdrop-filter: blur(8px); color: var(--sable); font-size: 18px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s;
}
.galerie-fleche:hover { background: var(--ambre); border-color: var(--ambre); color: var(--ebene); }
.galerie-puces { display: flex; gap: 8px; }
.galerie-puce {
  width: 7px; height: 7px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(247,239,227,.6); background: transparent;
  transition: background .3s, transform .3s, border-color .3s;
}
.galerie-puce.est-actif { background: var(--ambre); border-color: var(--ambre); transform: scale(1.2); }

/* --- Photo du lieu (salle) : même esprit que le cadre portrait, sans le sepia --- */
.lieu-photo {
  position: relative; margin: 0; aspect-ratio: 4 / 3; isolation: isolate;
  border-radius: 3px; overflow: hidden; border: 1px solid rgba(180,140,77,.4);
  box-shadow: 0 30px 60px -42px rgba(30,21,13,.35);
}
.lieu-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.03) contrast(1.02);
}

.portrait-indice {
  position: absolute; z-index: 3; top: 18px; right: 18px;
  font-size: 12px; color: rgba(247,239,227,.9);
  background: rgba(20,14,9,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(247,239,227,.25); border-radius: 999px;
  padding: 7px 14px; transition: opacity .5s ease;
}
.portrait:hover .portrait-indice, .portrait.couleur .portrait-indice { opacity: 0; }

/* ==========================================================================
   Bloc discipline
   ========================================================================== */
.discipline { border-top: 1px solid var(--ligne); }
.discipline-grille {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
}
.discipline .display { font-size: clamp(50px, 9vw, 128px); }

/* Bienfaits de l'activité */
.bienfaits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.bienfaits li {
  border-top: 1px solid var(--ligne);
  padding: 15px 0 15px 30px;
  position: relative;
  color: var(--terre);
  font-size: 16.5px;
}
.bienfaits li:last-child { border-bottom: 1px solid var(--ligne); }
.bienfaits li::before {
  content: ""; position: absolute; left: 2px; top: 24px;
  width: 14px; height: 2px; background: var(--ambre);
}
.essai .bienfaits li,
.pied .bienfaits li { color: rgba(247,239,227,.78); border-color: rgba(247,239,227,.18); }

@media (max-width: 860px) {
  .discipline-grille { grid-template-columns: 1fr; align-items: start; }
  .portrait::before { transform: translate(10px, 10px); }
}

/* ==========================================================================
   Bandeau de tête des pages intérieures
   ========================================================================== */
.banniere {
  position: relative; overflow: hidden;
  padding: clamp(150px, 17vw, 215px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--sable) 0%, var(--teinte-bas) 100%);
  transition: --teinte-bas .9s ease;
}
.banniere::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; width: 130vmax; height: 90vmax;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 100%, rgba(217,151,26,.18) 0%, rgba(180,140,77,.08) 28%, transparent 58%);
  pointer-events: none;
}
.banniere .heros-voile { opacity: .9; }
.banniere .soleil-fond { bottom: -34vw; opacity: .6; }
.banniere-inner { position: relative; z-index: 3; }
.banniere .titre { max-width: 16ch; }
.heros-court { min-height: 78svh; }

/* ==========================================================================
   Planning filtrable
   ========================================================================== */
.filtres {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  padding-bottom: 26px; border-bottom: 1px solid var(--ligne);
}
.filtres-titre {
  font-family: var(--f-sign); font-weight: 600; letter-spacing: .18em;
  font-size: 11.5px; color: var(--ambre-2);
}
.filtres-groupe { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre {
  font-family: var(--f-texte); font-size: 14.5px; font-weight: 500;
  color: var(--terre); cursor: pointer;
  background: var(--carte); border: 1px solid rgba(180,140,77,.4);
  border-radius: 999px; padding: 9px 18px;
  transition: color .25s, border-color .25s, background-color .25s, transform .25s;
}
.filtre:hover { color: var(--ebene); border-color: var(--ambre); transform: translateY(-1px); }
.filtre.actif { background: var(--ambre); border-color: var(--ambre); color: var(--ebene); font-weight: 700; }

.filtres-resultat { margin: 20px 0 0; font-size: 14.5px; color: var(--terre); }

.planning {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px; margin-top: 26px;
}
.planning:has(.creneau:not(.masque) ~ .creneau.masque):not(:has(.creneau:not(.masque) ~ .creneau:not(.masque))),
.planning { align-items: start; }
.creneau {
  max-width: 460px;
  border: 1px solid rgba(180,140,77,.35); border-radius: 4px;
  background: var(--carte); padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .5s cubic-bezier(.2,.7,.3,1), opacity .4s, box-shadow .4s;
  box-shadow: 0 20px 40px -34px rgba(30,21,13,.3);
}
.creneau:hover { border-color: var(--ambre); transform: translateY(-4px); box-shadow: 0 26px 46px -30px rgba(30,21,13,.35); }
.creneau.masque { display: none; }
.creneau-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.creneau-jour {
  font-family: var(--f-sign); font-weight: 600; letter-spacing: .16em;
  font-size: 11.5px; color: var(--ambre-2);
}
.creneau-heure { font-size: 15px; font-weight: 700; color: var(--ebene); }
.creneau-nom {
  font-family: var(--f-titre); text-transform: uppercase; line-height: 1;
  font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 4px; color: var(--ebene);
}
.creneau-age { font-size: 14.5px; color: var(--ambre-2); margin: 0 0 14px; }
.creneau-detail { font-size: 15.5px; color: var(--terre); margin-bottom: 22px; }
.creneau-lien {
  margin-top: auto; display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ambre-2);
  padding-top: 16px; border-top: 1px solid var(--ligne);
}
.creneau-lien:hover .fleche { transform: translateX(4px); }
.creneau-lien .fleche { transition: transform .3s cubic-bezier(.2,.7,.3,1); }

.planning-vide { margin-top: 28px; color: var(--terre); }
.lien-bouton {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ambre-2); font: inherit; text-decoration: underline;
}

/* ==========================================================================
   Encadrés
   ========================================================================== */
.encadre {
  border: 1px solid rgba(180,140,77,.4); border-radius: 4px;
  background: var(--carte);
  padding: 28px 30px; margin-top: 18px;
}
.encadre h3 { font-family: var(--f-texte); font-weight: 700; font-size: 19px; margin-bottom: 10px; color: var(--ebene); }
.encadre p { color: var(--terre); }

/* ==========================================================================
   FAQ — accordéon (natif, sans JS)
   ========================================================================== */
.faq-liste { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(180,140,77,.35); border-radius: 4px;
  background: var(--carte); padding: 4px 26px;
}
.faq-item[open] { border-color: rgba(180,140,77,.55); }
.faq-question {
  list-style: none; cursor: pointer; padding: 20px 34px 20px 0; position: relative;
  font-family: var(--f-texte); font-weight: 700; font-size: 17px; color: var(--ebene);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before, .faq-question::after {
  content: ""; position: absolute; right: 2px; top: 50%; background: var(--terre);
  transition: transform .3s ease;
}
.faq-question::before { width: 13px; height: 2px; transform: translateY(-50%); }
.faq-question::after { width: 2px; height: 13px; transform: translate(-5.5px, -50%); }
.faq-item[open] .faq-question::after { transform: translate(-5.5px, -50%) rotate(90deg) scaleY(0); }
.faq-reponse { padding: 0 0 22px; margin-top: -6px; }
.faq-reponse p { color: var(--terre); }

/* ==========================================================================
   Tarifs
   ========================================================================== */
.grille-tarifs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.tarif {
  border: 1px solid rgba(180,140,77,.35); border-radius: 4px;
  background: var(--carte); padding: 34px 30px 32px;
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
  box-shadow: 0 20px 40px -34px rgba(30,21,13,.28);
}
.tarif:hover { border-color: var(--ambre); transform: translateY(-5px); box-shadow: 0 28px 48px -30px rgba(30,21,13,.32); }
.tarif-phare { position: relative; border-color: var(--ambre); }
.tarif-phare::before {
  content: "Le plus choisi"; position: absolute; top: -11px; left: 28px;
  background: var(--ambre); color: var(--ebene);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px;
}
.tarif-prix {
  font-family: var(--f-titre); font-size: clamp(56px, 7vw, 82px); line-height: .9;
  margin: 0 0 14px; color: var(--ebene);
}
.tarif-phare .tarif-prix { color: var(--ambre-2); }
.tarif-prix span { font-size: .5em; }
.tarif-nom { font-family: var(--f-texte); font-weight: 700; font-size: 20px; margin-bottom: 10px; color: var(--ebene); }
.tarif-note { font-size: 15.5px; color: var(--terre); margin: 0; }

/* ==========================================================================
   Formulaire
   ========================================================================== */
.formulaire { max-width: 620px; }
.champ { margin-bottom: 24px; }
.champ label { display: block; font-weight: 700; font-size: 15.5px; margin-bottom: 7px; color: var(--ebene); }
.oblig, .facultatif {
  font-weight: 400; font-size: 12.5px; letter-spacing: .04em;
  border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: 1px;
}
.oblig { color: var(--ambre-2); border: 1px solid rgba(217,151,26,.5); }
.facultatif { color: var(--terre); border: 1px solid rgba(92,65,40,.25); }
.champ .aide { display: block; font-size: 14px; color: var(--terre); margin: -3px 0 9px; }

.champ input, .champ select, .champ textarea {
  width: 100%; font-family: var(--f-texte); font-size: 16px;
  color: var(--ebene); background: var(--carte);
  border: 1px solid rgba(92,65,40,.3); border-radius: 4px;
  padding: 14px 15px;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.champ textarea { min-height: 160px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--ambre); box-shadow: 0 0 0 3px rgba(217,151,26,.15);
}
.champ input::placeholder, .champ textarea::placeholder { color: rgba(30,21,13,.36); opacity: 1; }
.champ select option { background: var(--carte); color: var(--ebene); }
.champ input[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: #B23B22; }

/* Champs qui n'apparaissent que pour certains motifs */
.champ-conditionnel {
  display: none;
  animation: deplie .45s cubic-bezier(.2,.7,.3,1);
}
.champ-conditionnel.visible { display: block; }
@keyframes deplie { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.compteur { margin: 7px 0 0; font-size: 13px; color: rgba(30,21,13,.42); }
.erreur-champ { margin: 7px 0 0; font-size: 14px; color: #B23B22; font-weight: 600; }

.piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.consentement { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; margin-bottom: 24px; }
.consentement input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--ambre); }
.consentement label { font-weight: 400; color: var(--terre); }
.consentement a { color: var(--ambre-2); font-weight: 600; }

.message-form {
  margin-top: 22px; padding: 16px 18px; border-radius: 4px; font-size: 15.5px;
  display: none; max-width: none; font-weight: 500;
}
.message-form.succes { display: block; background: rgba(79,122,58,.1); border: 1px solid #4F7A3A; color: #35521F; }
.message-form.erreur  { display: block; background: rgba(178,59,34,.09); border: 1px solid #B23B22; color: #7A2A17; }

/* ==========================================================================
   Pages de texte légal
   ========================================================================== */
.page-texte { padding: 0 0 var(--section); }
.page-texte h2 {
  font-family: var(--f-titre); text-transform: uppercase;
  font-size: clamp(22px, 2.9vw, 32px); margin: 48px 0 14px; color: var(--ebene);
}
.page-texte h2:first-child { margin-top: 0; }
.page-texte p, .page-texte li { color: var(--terre); }
.page-texte ul { max-width: 68ch; padding-left: 20px; }
.page-texte li { margin-bottom: 9px; }
.page-texte a { color: var(--ambre-2); font-weight: 600; }
.a-completer {
  background: rgba(217,151,26,.16); border-bottom: 2px solid var(--ambre);
  color: var(--ambre-2); padding: 1px 7px; border-radius: 3px; font-weight: 700;
}

@media (max-width: 760px) {
  .filtres { gap: 14px; }
  .filtres-groupe { gap: 7px; }
  .filtre { font-size: 13.5px; padding: 8px 14px; }
}

/* Impression */
@media print {
  .entete, .pied, .voile, .heros-voile { display: none; }
}

/* h1 de l'accueil : sur-titre (mots-clés) + accroche dans un seul titre */
.h1-heros { margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; }

/* ==========================================================================
   Photos des cours
   ========================================================================== */
/* Accueil : la photo se dévoile depuis la droite au survol (visible en continu sur mobile/tactile) */
.cours-apercu {
  position: absolute; z-index: 0; top: 0; bottom: 0;
  right: clamp(96px, 9vw, 124px); width: clamp(170px, 17vw, 240px);
  overflow: hidden; pointer-events: none;
  clip-path: inset(0 0 0 100%);
  transition: clip-path .7s cubic-bezier(.2,.7,.3,1);
}
.cours-apercu img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.14); transition: transform 1s cubic-bezier(.2,.7,.3,1);
}
.cours-ligne:hover .cours-apercu, .cours-ligne:focus-visible .cours-apercu { clip-path: inset(0); }
.cours-ligne:hover .cours-apercu img, .cours-ligne:focus-visible .cours-apercu img { transform: scale(1); }

/* Horaires : photo en tête de carte, zoom au survol, clic = agrandissement */
.creneau-photo { margin: -30px -28px 22px; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px 3px 0 0; }
.creneau-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.creneau-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.creneau:hover .creneau-zoom img, .creneau-zoom:focus-visible img { transform: scale(1.06); }
.creneau-zoom:focus-visible { outline: 3px solid var(--ambre); outline-offset: -3px; }
.creneau-zoom::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(20,14,9,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f7efe3' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9.5 2.5h4v4M6.5 13.5h-4v-4M13.5 2.5l-4.2 4.2M2.5 13.5l4.2-4.2'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid rgba(247,239,227,.4); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.3,1);
}
.creneau:hover .creneau-zoom::after, .creneau-zoom:focus-visible::after { opacity: 1; transform: none; }

/* Lightbox (balise <dialog> native : Échap et clic pour fermer) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1200px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,14,9,.88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-entree .4s cubic-bezier(.2,.7,.3,1); }
@keyframes lb-entree { from { opacity: 0; transform: scale(.96); } }
.lightbox img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; margin: auto; border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lightbox-fermer {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(247,239,227,.45); background: rgba(30,21,13,.7); color: var(--sable);
  font-size: 24px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px);
}
.lightbox-fermer:hover { background: var(--ambre); border-color: var(--ambre); color: var(--ebene); }

@media (hover: none), (max-width: 1100px) {
  .cours-apercu {
    position: relative; z-index: 1; top: auto; bottom: auto; right: auto; width: 100%;
    aspect-ratio: 16 / 9; clip-path: none; margin-top: 18px; border-radius: 3px;
  }
  .cours-apercu img { transform: none; }
  .creneau-zoom::after { opacity: 1; transform: none; }
}
