/* ==========================================================================
   Yoga Dance — blog.css
   Feuille de style propre aux pages migrées (articles de blog + anciennes
   pages fixes : /yoga-danse, /contact, /galerie, /mentions-legales,
   /pour-faire-simple, /blog). Charge après assets/css/style.css et réutilise
   ses variables (--cream, --ink, --blush, --font-display, --font-body, etc.),
   ne redéfinit rien du design system existant.
   ========================================================================== */

/* ---------- point C, 21/09/2026 : anti-débordement horizontal général ---------- */
/* mot ou URL très long dans le corps : ne force plus la largeur de la page */
.article-body, .article-body p, .article-body li, .article-body blockquote { overflow-wrap: anywhere; }
.article-body img, .article-body iframe, .article-body video {
  max-width: 100%;
  height: auto;
}
/* tableau éventuel dans le corps : défilement horizontal contenu, jamais la page entière */
.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* ---------- colonne de lecture ---------- */
.article-wrap {
  max-width: 700px; /* ~70 caractères/ligne en Geist 16px */
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}
.article-wrap--wide { max-width: 1100px; }

/* ---------- fil d'Ariane ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blush-deep); }
.breadcrumb span[aria-current] { color: var(--ink); }

/* ---------- article ---------- */
article h1 { margin-bottom: 0.5rem; }
/* point C, 21/09/2026 : le H1 "hero" global (style.css, jusqu'à 5rem/80px) ne convient qu'aux
   titres courts. Titres > 40 caractères (classe posée par le script) : plafonné à ~48px. */
article h1.h1-long { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; }
.article-date {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}
.article-body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: 2.2em;
}
.article-body h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  margin-top: 1.8em;
}
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
  list-style: disc outside;
}
.article-body ol { list-style: decimal outside; }
.article-body li { margin: 0 0 0.5em; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--blush);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
/* 21/09/2026 (point F) : jamais de rognage sur une image de contenu — ratio naturel, centrée,
   hauteur plafonnée. Le rognage 16/10 reste réservé aux vignettes de cartes (.blog-card,
   .keep-reading-card, plus bas), jamais à .article-body/.gallery-grid. */
.article-body img, .gallery-grid img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 1.75em auto;
  box-shadow: var(--shadow);
}
/* portrait (plus haut que large) : plafonné en largeur plutôt que d'occuper toute la colonne */
.article-body img.img-portrait, .gallery-grid img.img-portrait {
  max-width: 420px;
}
/* logos/labels (Yoga Alliance, Qualiopi...) : petites images, affichées entières, en ligne */
.article-body img.img-inline-logo, .gallery-grid img.img-inline-logo {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  margin: 0.5em 0.75em 0.5em 0;
  box-shadow: none;
  border-radius: 0;
}
.article-body a { color: var(--ink); }

/* ---------- CTA sobre en bas d'article ---------- */
.article-cta {
  margin: 3rem 0 3.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--cream-deep);
  border-radius: var(--radius);
}

/* ---------- Keep reading ---------- */
.keep-reading { margin-top: 2rem; }
.keep-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .keep-reading-grid { grid-template-columns: 1fr; }
}
.keep-reading-card {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.keep-reading-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.keep-reading-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.keep-reading-title {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: var(--blush-deep);
  text-decoration-thickness: 1.5px;
}

/* ---------- index du blog (/blog) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; }
.blog-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.blog-card-body h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.blog-card-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; line-height: 1.5; }

/* ---------- grille photo pour /galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75em 0;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
/* plus de rognage ici (point F, 21/09/2026) : .article-body img, .gallery-grid img plus haut dans
   ce fichier gère déjà le ratio naturel + les classes img-portrait/img-inline-logo. */
.gallery-grid { align-items: start; }

/* ---------- rangée de liens "ancien site" dans le footer des pages migrées ---------- */
.footer-links--old-site { margin-top: 0.6rem; }

/* Bandeau de chiffres dans une page (ex. /about) — 21/09/2026 : les marges et l'interligne des
   paragraphes d'article écartaient le chiffre de son libellé ; on les neutralise ici. */
.article-body .stats-grid { margin: 2.4rem 0 0.8rem; align-items: start; }
.article-body .stats-grid .stat-num { margin: 0; line-height: 1.1; }
.article-body .stats-grid .stat-label { margin: 0.4rem 0 0; line-height: 1.45; }
.article-body .stats-grid + p { margin-top: 0.6rem; }

/* ---------- sélecteur de langue EN · ES · FR — coordination 22/09/2026 ---------- */
/* NOTE : la page de vente (index.html) charge blog.css en plus de style.css — toute règle qui doit
   s'appliquer à la page de vente vit ici, style.css n'est jamais modifié pour ce chantier. */
.lang-switch {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  white-space: nowrap;
}
.lang-switch a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: none; /* écrase .nav-mobile a (style.css) dans .lang-switch--mobile */
  padding: 0;
  text-transform: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch span[aria-current] { color: var(--ink); font-weight: 700; }

/* (a) bandeau "Yoga · Pilates · Movement" des pages de vente : masqué tant que le bandeau reste
   sur une seule ligne centrée (<900px, comme le reste de la nav desktop) — sur mobile le
   sélecteur vit dans le menu déroulant (voir .lang-switch--mobile). */
.lang-switch--strip { display: none; }
@media (min-width: 900px) {
  .signature-strip { position: relative; }
  .lang-switch--strip {
    display: inline-flex;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: 0.16em;
  }
}

/* menu mobile déroulant des pages de vente : dernière ligne */
.lang-switch--mobile {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* (b) en-tête des gabarits article/page/blog/404 et des pages "légales" copiées (privacy/terms/
   reviews + équivalents ES) : dans .nav-links, masqué avec le reste en dessous de 900px (règle
   déjà présente sur .nav-links dans style.css — rien à répéter ici). */
.lang-switch--header { margin-right: 0.15rem; }

/* (c) pied de page, toujours visible (desktop et mobile) */
.lang-switch--footer { margin-top: 0.6rem; }
