/* =========================================================
   Yoga en Soie - Feuille de style unique, responsive
   Site statique - refonte juillet 2026
   ========================================================= */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --purple: #73427f;
  --purple-dark: #542e5d;
  --pink: #993366;
  --pink-light: #f9e9f1;
  --pink-bg: #fdf3f8;
  --ink: #3a2e3d;
  --grey: #666;
  --grey-light: #f5f2f4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(115, 66, 127, 0.12);
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover, a:focus { color: var(--pink); text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Open Sans", sans-serif; font-weight: 700; color: var(--purple-dark); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.3em; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--pink-light);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 10px rgba(115,66,127,.06);
}
.site-header .container {
  padding-top: 8px; padding-bottom: 8px;
}
.header-grid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; position: relative;
}
.logo-link { display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin: 0 auto; }
.logo-link img { height: 116px; width: auto; }

.nav-toggle {
  display: block;
  background: none; border: 2px solid var(--purple); border-radius: 8px;
  width: 46px; height: 42px; cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--purple);
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 27px; }

.main-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--pink-light);
  box-shadow: var(--shadow);
}
.main-nav.is-open { display: block; padding: 10px 0 16px; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0 20px; display: flex;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch;
}
.main-nav a {
  display: block; padding: 13px 8px; color: var(--purple-dark);
  font-weight: 600; font-size: 1rem; border-radius: 0; white-space: nowrap;
  border-bottom: 1px solid var(--grey-light);
}
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] {
  background: var(--pink-light); color: var(--pink); text-decoration: none;
}

/* À partir de 1025px : logo centré (2x plus grand, sans texte), menu coupé
   en deux groupes de part et d'autre. En dessous, menu hamburger classique
   (évite tout débordement ou retour à la ligne — bug corrigé de la v2). */
@media (min-width: 1025px) {
  .header-grid { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-toggle { display: none; }
  .logo-link { grid-column: 2; justify-self: center; margin: 0; }
  .main-nav {
    display: contents; position: static; background: none; border: 0; box-shadow: none;
  }
  .main-nav ul {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 2px;
    align-items: center; padding: 0;
  }
  .main-nav ul.nav-left { grid-column: 1; justify-self: start; }
  .main-nav ul.nav-right { grid-column: 3; justify-self: end; }
  .main-nav a { padding: 10px 11px; border-bottom: none; border-radius: 8px; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--pink-bg) 0%, var(--pink-light) 100%);
  padding: 48px 0 40px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.hero-figure .hero-quote {
  font-style: italic; font-size: 1.05rem; color: var(--purple-dark);
  text-align: center; margin: 14px 6px 0;
}
.hero-note { color: var(--grey); font-size: .95rem; }
@media (max-width: 780px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

/* Simple page header (non-home pages) */
.page-header {
  background: linear-gradient(160deg, var(--pink-bg), var(--white));
  padding: 34px 0 26px; border-bottom: 1px solid var(--pink-light);
}
.page-header h1 { margin-bottom: 0; }
.page-header nav[aria-label="fil d'ariane"] { font-size: .85rem; color: var(--grey); margin-bottom: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-size: .98rem; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--purple-dark); color: #fff; text-decoration: none; }
.btn svg { vertical-align: -4px; margin-right: 8px; }

/* ---------- Sections & cards ---------- */
section { padding: 44px 0; }
section.alt { background: var(--grey-light); }
.section-title { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 28px;
}
.card {
  background: var(--white); border: 1px solid var(--pink-light); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.tarif-serie { color: var(--grey); font-size: .9rem; margin-bottom: 0; }

/* ---------- Tableau planning (Horaires & Tarifs) ---------- */
.schedule-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; }
.schedule-table th, .schedule-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--pink-light); }
.schedule-table th { color: var(--purple-dark); font-weight: 700; font-size: .9rem; }
.schedule-table td { font-size: .95rem; }
@media (max-width: 560px) {
  .schedule-table { font-size: .88rem; }
  .schedule-table th, .schedule-table td { padding: 9px 8px; }
}

/* Tarifs à l'année, présentés en cartes plutôt qu'en liste à puces */
.price-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  margin: 20px 0 24px;
}
.price-card {
  background: var(--pink-bg); border: 1px solid var(--pink-light); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; flex: 1 1 170px; max-width: 220px;
}
.price-freq { color: var(--grey); font-size: .88rem; margin-bottom: 10px; line-height: 1.3; }
.price-amount { font-family: "Open Sans", sans-serif; font-weight: 700; color: var(--purple-dark); font-size: 1.5rem; margin: 0; }
.price-amount span { font-weight: 400; font-size: .85rem; color: var(--grey); }

/* Lien de téléchargement (fiche d'inscription PDF) */
.pdf-download { margin-top: 22px; }
.pdf-download a {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink-bg); border: 1px solid var(--pink-light); border-radius: 999px;
  padding: 12px 20px; color: var(--purple-dark); font-weight: 700; font-size: .96rem;
}
.pdf-download a:hover, .pdf-download a:focus {
  background: var(--pink-light); color: var(--pink); text-decoration: none;
}
.pdf-download svg { flex-shrink: 0; color: var(--purple); }
.pdf-meta { font-weight: 400; color: var(--grey); font-size: .85rem; }

.fb-events-cta { margin: 14px 0 22px; }
.fb-events-cta .btn {
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap; border-radius: 999px; padding: 12px 22px;
}
.fb-events-cta svg { flex-shrink: 0; }
.fb-meta { font-weight: 400; opacity: .85; font-size: .85rem; }

/* Photo with caption under title (pattern used site-wide) */
.page-photo { margin: 0 0 28px; }
.page-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.page-photo figcaption { font-size: .85rem; color: var(--grey); margin-top: 8px; text-align: center; }

/* Photo flottante à côté d'un bloc de texte, pour aérer les longs paragraphes */
.float-photo { margin: 0 0 24px 28px; max-width: 300px; }
.float-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.float-photo.float-right { float: right; }
.float-photo.float-left { float: left; margin: 0 28px 24px 0; }
.clear-float { clear: both; }
@media (max-width: 640px) {
  .float-photo { float: none; max-width: 100%; margin: 0 0 24px; }
}

/* ---------- CD « Bhakti » (chants sacrés de l'Inde) ---------- */
/* Visuel en basse définition : affiché à sa taille naturelle et centré, plutôt
   qu'étiré sur toute la largeur du conteneur (évite le flou à l'agrandissement). */
.page-photo.photo-natural { text-align: center; }
.page-photo.photo-natural img { width: auto; max-width: 100%; height: auto; }

.cd-offer {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start;
  background: var(--pink-bg); border: 1px solid var(--pink-light);
  border-radius: var(--radius); padding: 24px; margin: 28px 0 34px;
}
.cd-cover { margin: 0; flex: 0 0 240px; max-width: 240px; }
.cd-cover img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.cd-details { flex: 1 1 320px; min-width: 260px; }
.cd-details h2 { margin-bottom: 2px; }
.cd-details p { margin: 0 0 12px; }
.cd-details .cd-artist { color: var(--grey); font-size: .95rem; margin-bottom: 4px; }
.cd-details .cd-price {
  font-family: "Open Sans", sans-serif; font-weight: 700;
  color: var(--purple-dark); font-size: 2rem; margin: 10px 0 18px;
}
.cd-details .cd-price span { font-weight: 400; font-size: .85rem; color: var(--grey); margin-left: 10px; }
.cd-details .cd-contact { font-size: .95rem; margin-bottom: 0; }
.cd-signature {
  font-style: italic; color: var(--purple-dark); text-align: center;
  margin: 32px 0; line-height: 1.8;
}
.cd-signature span { font-style: normal; font-size: .85rem; color: var(--grey); }
@media (max-width: 560px) {
  .cd-offer { padding: 18px; gap: 20px; }
  .cd-cover { flex: 1 1 100%; max-width: 260px; margin: 0 auto; }
  .cd-details .cd-price { font-size: 1.7rem; }
}

/* Ligne d'appel vers le CD, en bas de la page Horaires & Tarifs */
.cd-teaser {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  background: var(--grey-light); border: 1px solid var(--pink-light);
  border-radius: var(--radius); padding: 14px 20px; margin-top: 26px;
  font-size: .96rem;
}
.cd-teaser strong { color: var(--purple-dark); font-weight: 600; }
.cd-teaser-price { font-weight: 700; color: var(--pink); white-space: nowrap; }
.cd-teaser a { font-weight: 700; }

/* ---------- Avis Google (témoignages) ---------- */
.testimonials { background: linear-gradient(160deg, var(--pink-bg) 0%, var(--white) 100%); }
.rating-summary {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin: 10px 0 4px;
}
.rating-summary .stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 2px; }
.rating-summary .rating-number { font-size: 1.6rem; font-weight: 700; color: var(--purple-dark); }
.rating-summary .rating-count { color: var(--grey); }
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin: 30px 0;
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--pink-light); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.testimonial-card .stars { color: #f5a623; font-size: .95rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p { flex-grow: 1; color: var(--grey); font-style: italic; }
.testimonial-card cite { display: block; margin-top: 14px; font-style: normal; font-weight: 700; color: var(--purple-dark); }
.testimonials-cta { text-align: center; margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px;
}
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; position: relative; }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus img { transform: scale(1.06); }
.gallery-hint { text-align: center; color: var(--grey); font-size: .9rem; margin-top: 6px; }

/* ---------- Lightbox (visionneuse galerie) ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(40, 20, 45, .93);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 94vw; }
.lightbox-img {
  max-width: 94vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 12px 44px rgba(0, 0, 0, .55);
}
.lightbox-caption { color: #fff; margin-top: 14px; font-size: .95rem; text-align: center; max-width: 760px; }
.lightbox-counter { position: absolute; top: 20px; left: 24px; color: #fff; font-size: .9rem; opacity: .85; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255, 255, 255, .16); border: none; color: #fff;
  cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-close:focus,
.lightbox-prev:hover, .lightbox-prev:focus,
.lightbox-next:hover, .lightbox-next:focus { background: rgba(255, 255, 255, .34); outline: none; }
.lightbox-close { top: 16px; right: 20px; width: 46px; height: 46px; font-size: 2rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 2.4rem; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; font-size: 1.9rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-img { max-height: 72vh; }
}

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contact-info-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-note { display: block; font-size: .85rem; color: var(--grey); margin-top: 4px; }
.contact-info-list svg { flex-shrink: 0; margin-top: 3px; color: var(--purple); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--purple-dark); }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #ddc7dd; border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(115,66,127,.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--grey); margin-top: -6px; margin-bottom: 18px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: #e6f6ec; color: #1c6b3a; }
.form-status.error { background: #fbe7e7; color: #a12b2b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple-dark); color: #f1e6f3; padding: 36px 0 24px; margin-top: 40px; }
.site-footer a { color: #f1e6f3; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: .93rem; }
.footer-bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: .82rem; color: #d9c6dd; text-align: center;
}
.footer-bottom a { color: #d9c6dd; text-decoration: underline; }

.social-inline { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Accessibilité tactile (WCAG 2.2 — critère 2.5.8) ----------
   Les liens isolés doivent offrir une cible d'au moins 24x24 px. Les liens
   situés au fil d'une phrase bénéficient de l'exception « inline » de la norme
   et ne sont volontairement pas modifiés (les passer en inline-flex les
   empêcherait de se couper en fin de ligne). La taille du texte ne change pas :
   seule la zone cliquable s'agrandit de quelques pixels. */
.page-header nav[aria-label="fil d'ariane"] a,
.card > p:last-child a,
.testimonials-cta a,
.contact-info-list a,
.social-inline a,
.footer-grid ul a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.pt-page { padding-top: 34px; }
.mb-1 { margin-bottom: 1em; }
.legal-content h2 { margin-top: 1.6em; }
.legal-content address { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-grid img { transition: none; }
}
