/* Votre Studio — famille nature-organique, tokens « everlane » : blanc, onyx, angles vifs, Archivo 400, un ruban pistache. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root {
  --fond: #ffffff; --encre: #000000; --encre-2: #4c4c4c; --encre-3: #6a6a6a; --filet: #dcdcd8; --filet-fort: #9b9b9b;
  --pistache: #d9e9bb; --sombre: #121212; --sombre-encre: #f4f4f2; --gris: #f4f4f2;
  --police: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-1: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem); --t-2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); --t-3: 1.25rem;
  --e-1: 8px; --e-2: 16px; --e-3: 24px; --e-4: 32px; --e-6: 48px; --e-8: 64px;
  --e-section: clamp(64px, 7vw + 24px, 128px); --largeur: 1240px; --gouttiere: clamp(16px, 4vw, 40px);
  --suivi: .06em; --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--police); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; font-stretch: 90%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; font-stretch: 85%; }
h1 { font-size: var(--t-1); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: var(--t-2); line-height: 1.08; letter-spacing: -.03em; margin-bottom: var(--e-3); }
h3 { font-size: var(--t-3); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 var(--e-2); max-width: 62ch; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
button { font: inherit; cursor: pointer; }
.contenu { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
section { padding-block: var(--e-section); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lien-saut { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 8px 12px; }
.lien-saut:focus { left: 8px; z-index: 60; }

/* ruban pistache : le seul aplat de couleur du site */
.ruban { margin: 0; max-width: none; background: var(--pistache); text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.ruban a { display: block; padding: 11px var(--gouttiere); text-decoration: none; }
.ruban a:hover { text-decoration: underline; }

/* en-tête */
.entete { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--filet); }
.entete .contenu { display: flex; align-items: center; justify-content: space-between; gap: var(--e-3); min-height: 72px; }
.marque { text-decoration: none; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; }
.marque small { display: block; font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); margin-top: 4px; }
.menu { display: none; gap: var(--e-3); align-items: center; margin: 0; padding: 0; list-style: none; }
.menu a:not(.bouton) { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; padding: 8px 2px; border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.menu a:not(.bouton):hover, .menu a[aria-current] { border-color: var(--encre); }
.menu-bouton { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--encre); padding: 0 14px; min-height: 44px; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.menu-bouton svg { width: 20px; height: 20px; }
.menu-mobile { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); background: #fff; }
.menu-mobile[data-ouvert] { grid-template-rows: 1fr; border-top: 1px solid var(--filet); }
.menu-mobile > div { overflow: hidden; }
.menu-mobile ul { margin: 0; padding: var(--e-1) var(--gouttiere) var(--e-3); list-style: none; }
.menu-mobile a { display: block; padding: 14px 0; text-decoration: none; font-size: 1.25rem; letter-spacing: -.01em; border-bottom: 1px solid var(--filet); }

/* boutons : onyx plein, angles vifs ; lien souligné pour le secondaire */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; background: var(--encre); color: #fff; border: 1px solid var(--encre); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; text-decoration: none; transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 160ms var(--ease); }
.bouton:hover { background: #fff; color: var(--encre); }
.bouton:active { transform: translateY(1px); }
.bouton-clair { background: var(--sombre-encre); color: var(--sombre); border-color: var(--sombre-encre); }
.bouton-clair:hover { background: transparent; color: var(--sombre-encre); }
.lien { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; text-underline-offset: .4em; padding: 12px 0; }
.lien:hover { text-decoration-thickness: 2px; }

/* premier écran : photo large, titre masqué qui monte */
.hero { padding-block: var(--e-2) var(--e-6); overflow: clip; }
.hero .contenu { display: grid; gap: var(--e-3); }
.hero-visuel { margin: 0; order: -1; overflow: clip; }
.hero-visuel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--cadrage, 50% 30%); }
.hero-visuel { order: -2; }
.rampe { order: -1; position: relative; height: 26px; margin-top: calc(-1 * var(--e-3)); }
.rampe-piste { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--filet-fort); }
.rampe-trace { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--encre); transform-origin: left; }
.rampe-arrets { position: absolute; left: 0; right: 0; top: 8px; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.rampe-arrets li { width: 10px; height: 10px; background: #fff; border: 2px solid var(--filet-fort); }
.rampe-arrets li:last-child { border-color: var(--encre); }
.rampe-chariot { position: absolute; top: 2px; left: calc(100% - 30px); width: 30px; height: 20px; background: var(--encre); }
.rampe-chariot::after { content: ""; position: absolute; left: 50%; top: -5px; width: 2px; height: 5px; background: var(--encre); }
.hero h1 .ligne { display: block; }
.hero h1 .ligne > span { display: block; }
.chapo { font-size: clamp(1rem, .95rem + .4vw, 1.1875rem); color: var(--encre-2); max-width: 46ch; margin: var(--e-2) 0 var(--e-3); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-4); }
.hero-meta { list-style: none; margin: var(--e-4) 0 0; padding: var(--e-2) 0 0; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; gap: var(--e-1) var(--e-4); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); }

/* offre */
.cours .contenu { display: grid; gap: var(--e-4); }
.cours-titre p { color: var(--encre-2); }
.liste-cours { margin: 0; border-top: 1px solid var(--encre); }
.liste-cours > div { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--e-3); padding: var(--e-3) 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.liste-cours dt { font-size: 1.75rem; letter-spacing: -.025em; line-height: 1.15; }
.liste-cours dd { margin: 0; }
.niveau { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--encre-2); text-align: right; }
.detail { grid-column: 1 / -1; color: var(--encre-2); max-width: 58ch; }
.tarifs { margin-top: var(--e-8); }
.tarifs h3 { margin-bottom: var(--e-2); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tarifs table { border-top: 1px solid var(--encre); }
.tarifs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tarifs tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--e-3); padding: var(--e-2) 0; border-bottom: 1px solid var(--filet); }
.tarifs th[scope=row] { font-weight: 600; text-align: left; }
.tarifs td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--encre-2); font-size: .9375rem; }
.tarifs td:last-child { grid-column: 2; grid-row: 1 / span 2; font-size: 1.5rem; letter-spacing: -.02em; align-self: center; }

/* planning : le rail du Reformer et son chariot */
.reserver { background: var(--gris); }
.reserver-tete p { color: var(--encre-2); }
.planning { display: grid; gap: var(--e-4); margin-top: var(--e-4); }
.jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border: 1px solid var(--encre); background: #fff; }
.jour { background: #fff; border: 0; border-right: 1px solid var(--filet); padding: 10px 0 12px; min-height: 64px; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--encre); transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.jour:last-child { border-right: 0; }
.jour small { font-size: .625rem; text-transform: uppercase; letter-spacing: .08em; }
.jour strong { font-weight: 400; font-size: 1.375rem; letter-spacing: -.02em; line-height: 1; }
.jour:hover { background: var(--gris); }
.jour[aria-selected=true] { background: var(--encre); color: #fff; }
.jour[data-ferme] { color: var(--encre-3); }
.rail-zone { position: relative; }
.rail { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 0; }
.rail::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--filet-fort); }
.creneau { position: relative; width: 100%; display: grid; grid-template-columns: 5.5rem 1fr auto; gap: var(--e-2); align-items: baseline; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--filet); padding: 16px 12px 16px 0; color: var(--encre); min-height: 64px; transition: background-color 200ms var(--ease); }
.creneau::before { content: ""; position: absolute; left: -26px; top: 50%; width: 10px; height: 10px; margin-top: -5px; background: #fff; border: 2px solid var(--filet-fort); transition: background-color 200ms, border-color 200ms; }
.creneau:hover { background: rgba(255, 255, 255, .7); }
.creneau .heure { white-space: nowrap; font-size: 1.5rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.creneau .nom { font-size: 1rem; }
.creneau .nom small { display: block; color: var(--encre-2); font-size: .875rem; }
.creneau .places { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); text-align: right; }
.creneau[aria-pressed=true] { background: #fff; }
.creneau[aria-pressed=true]::before { background: var(--encre); border-color: var(--encre); }
.creneau[disabled] { color: var(--encre-3); cursor: not-allowed; }

.chariot { position: absolute; left: 1px; top: 0; width: 12px; height: 28px; background: var(--encre); transform: translateY(var(--y, 18px)); transition: transform 320ms var(--ease), opacity 200ms; opacity: 0; pointer-events: none; z-index: 1; }
.chariot[data-visible] { opacity: 1; }
.rail-vide { padding: var(--e-4) 0; color: var(--encre-2); }
.resume { background: #fff; border: 1px solid var(--encre); padding: var(--e-3); display: grid; gap: var(--e-2); align-content: start; }
.resume .choix { margin: 0; padding-bottom: var(--e-2); border-bottom: 1px solid var(--filet); color: var(--encre-2); }
.resume .choix strong { color: var(--encre); font-weight: 600; }
label { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; }
input, textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--filet-fort); border-radius: 0; background: #fff; color: var(--encre); min-height: 48px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--encre); outline-offset: 1px; border-color: var(--encre); }
textarea { resize: vertical; min-height: 120px; }
.confirmation { display: none; margin: 0; padding: 14px 16px; background: var(--pistache); font-weight: 500; }
form[data-envoye] .confirmation { display: block; }
form[data-envoye] button[type=submit] { display: none; }
.resume .bouton:disabled { opacity: .4; cursor: not-allowed; }
label.case { grid-template-columns: auto 1fr; align-items: start; gap: 12px; font-weight: 400; }
label.case input { width: 22px; min-height: 22px; margin-top: 2px; accent-color: #000; }

/* preuve */
.preuve .contenu { display: grid; gap: var(--e-4); align-items: start; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--cadrage, 50% 30%); }
.portrait figcaption, .mosaique figcaption { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-2); padding-top: 10px; }
.preuve-texte > p { color: var(--encre-2); }
.faits { list-style: none; margin: var(--e-4) 0 0; padding: 0; border-top: 1px solid var(--encre); }
.faits li { display: grid; gap: 4px; padding: var(--e-2) 0; border-bottom: 1px solid var(--filet); }
.faits b { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.faits span { color: var(--encre-2); font-size: .9375rem; }

/* galerie : pleine largeur, sans arrondi, sans recadrage forcé */
.galerie { padding-top: 0; }
.mosaique { list-style: none; margin: var(--e-4) 0 0; padding: 0; display: grid; gap: var(--e-3) var(--e-2); }
.mosaique figure { margin: 0; }
.mosaique img { width: 100%; object-fit: cover; object-position: var(--cadrage, 50% 40%); }

/* accès : le seul bloc sombre */
.acces { background: var(--sombre); color: var(--sombre-encre); }
.acces .contenu { display: grid; gap: var(--e-6); }
.acces .adresse { font-size: 1.25rem; line-height: 1.5; }
.trajets { list-style: none; margin: var(--e-3) 0 var(--e-4); padding: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.trajets li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.trajets span { color: #cfcfca; font-size: .9375rem; }
.horaires { align-self: start; border-top: 1px solid var(--sombre-encre); }
.horaires tr { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.horaires th { text-align: left; font-weight: 600; }
.horaires td { color: #cfcfca; }

/* faq */
.faq-liste { border-top: 1px solid var(--encre); max-width: 820px; }
.faq-liste details { border-bottom: 1px solid var(--filet); }
.faq-liste summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--e-2); padding: 20px 0; min-height: 56px; font-size: 1.1875rem; letter-spacing: -.01em; }
.faq-liste summary::-webkit-details-marker { display: none; }
.faq-liste summary::after { content: "+"; font-size: 1.75rem; line-height: 1; transition: transform 240ms var(--ease); }
.faq-liste details[open] summary::after { transform: rotate(45deg); }
.faq-liste details div { padding: 0 0 var(--e-3); color: var(--encre-2); animation: ouvrir 240ms var(--ease); }
.faq-liste details p { margin: 0; }
@keyframes ouvrir { from { opacity: 0; transform: translateY(-4px); } }

/* contact */
.contact { background: var(--gris); }
.contact .contenu { display: grid; gap: var(--e-4); }
.formulaire { background: #fff; border: 1px solid var(--encre); padding: var(--e-3); display: grid; gap: var(--e-2); }
.coordonnees p { margin-bottom: 6px; }
.pied { padding: var(--e-4) 0 var(--e-6); font-size: .875rem; color: var(--encre-2); border-top: 1px solid var(--filet); }
.pied p { margin-bottom: 6px; max-width: none; }

.barre-mobile { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--filet); }
.barre-mobile .bouton { width: 100%; }
.barre-mobile { transition: transform 260ms var(--ease); }
.barre-mobile[data-cachee] { transform: translateY(110%); }
body { padding-bottom: 76px; }

/* mouvement signature, au chargement : l'image se découvre de gauche à droite pendant que le titre monte de son masque */
@media (prefers-reduced-motion: no-preference) {
  .hero-visuel { animation: decouvrir 1200ms var(--ease) both; }
  .hero-visuel img { animation: respirer 1700ms var(--ease) both; }
  .rampe-chariot { animation: glisser 2200ms cubic-bezier(.45, 0, .2, 1) 400ms both; }
  .rampe-trace { animation: tracer 2200ms cubic-bezier(.45, 0, .2, 1) 400ms both; }
  .rampe-arrets li { animation: poser 600ms var(--ease) 900ms both; }
  .hero h1 .ligne > span { animation: monter 900ms var(--ease) both; }
  .hero h1 .ligne:nth-child(2) > span { animation-delay: 140ms; }
  .hero h1 .ligne:first-child > span { animation-delay: 260ms; }
  .hero h1 .ligne:nth-child(2) > span { animation-delay: 400ms; }
  .chapo, .hero-actions, .hero-meta { animation: deposer 800ms var(--ease) both; }
  .chapo { animation-delay: 620ms; } .hero-actions { animation-delay: 740ms; } .hero-meta { animation-delay: 860ms; }
  @keyframes glisser { from { left: 0; } }
  @keyframes tracer { from { transform: scaleX(0); } }
  @keyframes poser { from { background: var(--encre); border-color: var(--encre); } }
  @keyframes decouvrir { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
  @keyframes respirer { from { transform: scale(1.07); } to { transform: none; } }
  @keyframes monter { from { transform: translateY(45%); clip-path: inset(0 0 100% 0); } to { transform: none; clip-path: inset(0 0 -.2em 0); } }
  @keyframes deposer { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; } html { scroll-behavior: auto; } }

@media (min-width: 900px) {
  body { padding-bottom: 0; } .barre-mobile { display: none; }
  .menu { display: flex; } .menu-bouton, .menu-mobile { display: none; }
  .hero { padding-block: var(--e-6) var(--e-4); }
  .hero .contenu { grid-template-columns: 5fr 7fr; gap: var(--e-4) var(--e-8); align-items: center; }
  .hero-visuel { order: 0; }
  .rampe { order: 1; grid-column: 1 / -1; height: 56px; margin-top: var(--e-3); }
  .rampe-piste { top: 26px; }
  .rampe-arrets { top: 22px; }
  .rampe-chariot { top: 12px; width: 44px; height: 32px; left: calc(100% - 44px); }
  .rampe-chariot::after { top: -7px; height: 7px; }
  .cours .contenu:first-child { grid-template-columns: 4fr 7fr; gap: var(--e-8); }
  .cours-titre { position: sticky; top: 110px; align-self: start; }
  .liste-cours { border-top-color: var(--encre); }
  .tarifs tr { grid-template-columns: 220px 1fr 100px; align-items: baseline; padding: 18px 0; }
  .tarifs td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .tarifs td:last-child { grid-column: 3; grid-row: 1; text-align: right; font-size: 1.375rem; }
  .planning { grid-template-columns: 1fr 1fr; gap: var(--e-6) var(--e-8); align-items: start; }
  .jours { grid-column: 1 / -1; }
  .resume { position: sticky; top: 110px; }
  .preuve .contenu { grid-template-columns: 5fr 6fr; gap: var(--e-8); }
  .mosaique { grid-template-columns: repeat(3, 1fr); gap: var(--e-4) var(--e-3); }
  .mosaique .m-large { grid-column: span 2; }
  .mosaique .m-large img { aspect-ratio: 3 / 2; }
  .mosaique li:not(.m-large) img { aspect-ratio: 4 / 5; }
  .mosaique li:nth-child(3) img { aspect-ratio: 1; }
  .acces .contenu { grid-template-columns: 1fr 1fr; gap: var(--e-8); }
  .horaires tr { grid-template-columns: 11rem 1fr; gap: var(--e-3); }
  .contact .contenu { grid-template-columns: 1fr 1fr; gap: var(--e-8); }
}
