/* ==========================================================
   Ashtanga Yoga Paris — feuille de style principale
   Les couleurs, polices et rythmes sont dans tokens.css.
   ========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 9rem;
}

/* Josefin Sans a un petit œil : corps un peu plus grand pour rester lisible */
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.6rem; }

p {
  margin: 0 0 1em;
}

strong {
  font-weight: 600;
}

a {
  color: var(--color-primary);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--color-surface);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
}

/* ==========================================================
   En-tête : logo centré, navigation centrée en dessous
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.97);
  transition: box-shadow 0.4s var(--ease);
}

/* Filet fin sous le menu, sauf sur les pages d'accueil */
body:not(.page-home) .site-header {
  border-bottom: 1px solid var(--color-line);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px -22px rgba(42, 39, 36, 0.5);
}

.site-header__brand {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.25rem 0.5rem;
  transition: padding 0.4s var(--ease);
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand__logo {
  height: var(--logo);
  width: auto;
  max-width: 60vw;
  transition: height 0.4s var(--ease);
}

.site-header.is-scrolled .site-header__brand {
  padding-top: 0.45rem;
  padding-bottom: 0.3rem;
}

.site-header.is-scrolled .brand__logo {
  height: var(--logo-small);
}

/* Bouton menu (mobile) */

.nav-toggle {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: var(--color-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Navigation : base (mobile) */

.site-nav {
  display: none;
  border-top: 1px solid var(--color-line);
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.site-header.nav-open .site-nav {
  display: block;
  animation: fade-down 0.35s var(--ease);
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.nav,
.subnav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav {
  padding: 0.25rem 1.25rem 1.25rem;
}

.nav__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
}

.nav__link {
  flex: 1;
  display: block;
  padding: 0.95rem 0 0.8rem;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__item.is-active > .nav__link {
  color: var(--color-primary);
}

.nav__sub-toggle {
  background: none;
  border: 0;
  padding: 0.75rem;
  color: var(--color-muted);
  cursor: pointer;
  line-height: 0;
}

.nav__sub-toggle svg {
  transition: transform 0.3s var(--ease);
}

.nav__sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.subnav {
  display: none;
  flex-basis: 100%;
  padding: 0 0 0.9rem 0.75rem;
}

.nav__item.is-open > .subnav {
  display: block;
}

.subnav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-muted);
  text-decoration: none;
}

.subnav a:hover,
.subnav a[aria-current="page"] {
  color: var(--color-primary);
}

.subnav__label {
  display: block;
}

.subnav__note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.subnav__ext {
  font-size: 0.8em;
}

/* Navigation : grand écran, menus déroulants au survol */

@media (min-width: 64em) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    border-top: 0;
    max-height: none;
    overflow: visible;
  }

  .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 2rem;
    padding: 0 1.25rem;
  }

  .nav__item {
    position: relative;
    flex-wrap: nowrap;
    border-bottom: 0;
  }

  .nav__link {
    position: relative;
    flex: none;
    padding: 0.7rem 0 0.75rem;
    font-size: 0.75rem; /* même taille qu'en session B */
    letter-spacing: 0.14em;
  }

  /* Trait qui se déploie depuis le centre */
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.45rem;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
  }

  .nav__item:hover > .nav__link::after,
  .nav__item:focus-within > .nav__link::after,
  .nav__item.is-active > .nav__link::after {
    transform: scaleX(1);
  }

  .nav__item.is-active > .nav__link {
    color: var(--color-ink);
  }

  .nav__sub-toggle {
    padding: 0.4rem 0 0.6rem 0.35rem;
  }

  .subnav {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 15.5rem;
    padding: 0.75rem 0;
    background: var(--color-bg); /* même fond que l'en-tête */
    border: 1px solid var(--color-line);
    box-shadow: 0 24px 50px -30px rgba(42, 39, 36, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .nav__item:hover > .subnav,
  .nav__item:focus-within > .subnav,
  .nav__item.is-open > .subnav {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }

  .subnav a {
    padding: 0.5rem 1.4rem;
    color: var(--color-ink);
    white-space: nowrap;
    font-size: 1rem;
    transition: background-color 0.2s var(--ease), padding 0.3s var(--ease);
  }

  .subnav a:hover {
    background: var(--color-tint);
    padding-left: 1.65rem;
    color: var(--color-ink);
  }
}

@media (max-width: 30em) {
  .nav-toggle__label {
    display: none;
  }
}

/* ==========================================================
   Boutons et liens d’action
   ========================================================== */

.actions,
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Josefin Sans est dessinée haut sur la ligne : un peu plus d’espace au-dessus pour centrer le texte */
.button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.05rem 1.7rem 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.button:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-on-primary);
}

.button--ghost {
  background: transparent;
  color: var(--color-primary);
}

.button--ghost:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.button--light {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-primary);
}

.button--light:hover {
  background: transparent;
  border-color: var(--color-bg);
  color: var(--color-on-primary);
}

.button--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-on-primary);
}

.button--outline-light:hover {
  background: var(--color-bg);
  border-color: var(--color-bg);
  color: var(--color-primary);
}

.link-more {
  display: inline-block;
  position: relative;
  padding-bottom: 0.3rem;
  color: var(--color-ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.link-more:hover {
  color: var(--color-accent);
}

.link-more:hover::after {
  transform: scaleX(0.35);
}

/* ==========================================================
   Accueil
   ========================================================== */

/* Hero : texte et grande image côte à côte */

.home-hero {
  display: grid;
  background: var(--color-tint);
}

.home-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 5.5rem);
}

.home-hero__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.home-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.98;
  margin-bottom: 1.75rem;
}

.home-hero__lead {
  max-width: 28rem;
  font-size: 1.15rem;
  color: var(--color-muted);
  margin: 0;
}

.home-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

.home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe var(--breath) ease-in-out infinite alternate;
}

@media (min-width: 56em) {
  .home-hero {
    grid-template-columns: 1fr 1fr;
    min-height: min(calc(100vh - 7.5rem), 58rem);
  }

  .home-hero__media {
    min-height: 0;
  }
}

/* Les trois temps du titre apparaissent l’un après l’autre, comme trois respirations */
.breath-line {
  display: block;
  animation: breath-in 1.6s var(--ease) both;
}

.breath-line:nth-child(2) { animation-delay: 0.6s; }
.breath-line:nth-child(3) { animation-delay: 1.2s; font-style: italic; }

@keyframes breath-in {
  from {
    opacity: 0;
    transform: translateY(0.3em);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* Zoom lent des photos de hero : calque à part pour un mouvement fluide, sans à-coups */
.home-hero__media img,
.detail-hero__media img,
.cover-hero__img {
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}

/* Zoom en 3D (la photo avance vers nous) : Firefox ne l’accroche pas au pixel, donc pas d’à-coups.
   translateZ 6.542px avec une perspective de 100px = zoom de 7 %.
   --hero-z : zoom de départ réglé par photo (événements, 'hero_zoom'), 0 sinon */
@keyframes breathe {
  from { transform: perspective(100px) translateZ(var(--hero-z, 0px)); }
  to { transform: perspective(100px) translateZ(calc(var(--hero-z, 0px) + 6.542px)); }
}

/* Citation */

.home-quote {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  text-align: center;
}

.home-quote blockquote {
  margin: 0 auto;
  max-width: 48rem;
}

.home-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.home-quote footer {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Présentation : deux images superposées */

.home-intro {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.home-intro__media {
  position: relative;
  padding: 0 12% 12% 0;
}

.home-intro__img-main {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-intro__img-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 8px solid var(--color-bg);
}

.home-intro__text {
  max-width: var(--measure);
}

.home-intro__text p {
  color: var(--color-muted);
}

@media (min-width: 56em) {
  .home-intro {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
  }
}

/* Bandeau de photos qui défile lentement */

.gallery {
  overflow: hidden;
  padding: 0.75rem 0;
}

.gallery__track {
  display: flex;
  width: max-content;
  animation: drift 70s linear infinite;
}

.gallery:hover .gallery__track {
  animation-play-state: paused;
}

.gallery__set {
  display: flex;
  gap: 0.75rem;
  padding: 0 0.75rem 0 0;
  margin: 0;
  list-style: none;
}

.gallery__set img {
  height: clamp(200px, 28vw, 360px);
  width: auto;
  object-fit: cover;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Avec gallery.js : le script fait défiler la bande, on peut la faire glisser */
.gallery.gallery--js {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.gallery.gallery--js.is-dragging {
  cursor: grabbing;
}

.gallery--js .gallery__track {
  animation: none;
  will-change: transform;
}

.gallery--js img {
  -webkit-user-drag: none;
}

/* Offre découverte */

.home-offer {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.home-offer h2 {
  color: var(--color-on-primary);
}

.home-offer p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 30rem;
  margin: 0;
}

.home-offer__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.home-offer__price {
  display: flex;
  flex-direction: column;
}

.home-offer__amount {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 5.5rem);
  line-height: 1;
}

.home-offer__detail {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
}

.home-offer .actions {
  margin-top: 0;
}

@media (min-width: 56em) {
  .home-offer__inner {
    grid-template-columns: 1.4fr auto auto;
    gap: 4rem;
  }

  .home-offer__price {
    text-align: center;
  }
}

/* Deux blocs côte à côte */

.duo {
  display: grid;
  gap: 3.5rem 3rem;
}

@media (min-width: 52em) {
  .duo {
    grid-template-columns: 1fr 1fr;
  }
}

.duo__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--color-line);
}

.duo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo__item p {
  color: var(--color-muted);
  max-width: 32rem;
}

/* Visages des enseignants */

.faces {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 1.75rem 0 2rem;
  padding: 0 0 0 12px;
}

.faces li {
  margin-left: -12px;
}

.faces img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg);
  transition: transform 0.4s var(--ease);
}

.faces li:hover img {
  transform: translateY(-4px);
}

/* Newsletter */

.home-newsletter {
  background: var(--color-tint);
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  text-align: center;
}

.home-newsletter p {
  max-width: 32rem;
  margin: 0 auto 2rem;
  color: var(--color-muted);
}

/* ==========================================================
   Arche : cadre d’image récurrent
   ========================================================== */

.arch {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% 50% var(--radius) var(--radius) / 37.5% 37.5% var(--radius) var(--radius);
  background: var(--color-line);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch--square {
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% var(--radius) var(--radius) / 50% 50% var(--radius) var(--radius);
}

/* ==========================================================
   Pages intérieures
   ========================================================== */

.page-intro {
  background: var(--color-tint);
}

.page-intro__inner {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.page-intro__image {
  max-width: 15rem;
  width: 100%;
}

@media (min-width: 52em) {
  .page-intro--image .page-intro__inner {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }

  .page-intro__image {
    width: 16rem;
  }
}

.page-intro h1 {
  margin-bottom: 0.35em;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: var(--measure);
  margin-bottom: 0;
}

/* ==========================================================
   Sections et contenu
   ========================================================== */

main {
  display: block;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--tint {
  background: var(--color-tint);
}

.section__head {
  max-width: var(--measure);
  margin-bottom: 3rem;
}

.section__head p {
  color: var(--color-muted);
  margin: 0;
}

.section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
}

.section__head--split h2 {
  margin: 0;
}

.section__after {
  margin-top: 3rem;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 1.4em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li + li {
  margin-top: 0.35em;
}

.split {
  display: grid;
  gap: 3rem 5rem;
  align-items: center;
}

.split__image {
  max-width: 22rem;
  width: 100%;
}

@media (min-width: 52em) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split__image {
    max-width: 26rem;
    justify-self: center;
  }
}

/* Liste d’offres : lignes séparées par un filet */

.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.offer-list > li {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 52em) {
  .offer-list > li {
    grid-template-columns: 17rem 1fr auto;
    align-items: baseline;
  }
}

/* Lignes empilées (téléphone) : plus d'air entre le texte et le lien, comme sur la page À propos
   (toutes les listes .offer-list du site) */
.offer-list__link {
  margin-top: 0.85rem;
}

@media (min-width: 52em) {
  .offer-list__link {
    margin-top: 0;
  }
}

.offer-list h3 {
  margin: 0;
}

.offer-list p {
  margin: 0;
  color: var(--color-muted);
  max-width: var(--measure);
}

.offer-list__link {
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-ink);
}

/* Note encadrée */

.note {
  background: var(--color-tint);
  border-left: 2px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  max-width: var(--measure);
  margin-bottom: 1em;
}

.section--tint .note {
  background: var(--color-surface);
}

.note p:last-child {
  margin-bottom: 0;
}

/* Tarifs */

.price-group + .price-group {
  margin-top: 3.5rem;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.price-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.price-list__name {
  font-weight: 600;
}

.price-list__detail {
  display: block;
  font-weight: 400;
  color: var(--color-muted);
  font-size: 1rem;
}

.price-list__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  white-space: nowrap;
}

.muted {
  color: var(--color-muted);
}

/* Enseignants */

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.people figure {
  margin: 0;
}

.people .arch {
  margin-bottom: 0.9rem;
}

.people figcaption {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
}

/* Questions fréquentes */

.faq {
  max-width: 46rem;
  border-top: 1px solid var(--color-line);
}

.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > div {
  padding: 0 0 1.4rem;
  color: var(--color-muted);
  animation: fade-down 0.35s var(--ease);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* Citation (pages intérieures) */

.quote {
  margin: 0 auto;
  max-width: 46rem;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
}

.quote p {
  margin: 0;
}

/* ==========================================================
   Apparition des images au défilement (activée par main.js)
   ========================================================== */

/* Fondu lent et doux, seul effet d'apparition du site ; jamais sur les sections colorées */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 2.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
}

/* ==========================================================
   Pied de page : couleurs dans les variables --footer-* (tokens.css).
   Mise en page : footer.css (session A), site-b.css (session B).
   ========================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

/* ==========================================================
   Mouvement réduit
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    clip-path: none;
    opacity: 1;
  }

  .gallery {
    overflow-x: auto;
  }
}
