/* ==========================================================================
   Pages éditoriales (prestations, guides, zones, formation, contact)
   dans le langage visuel du thème : noir / blanc, Inter Tight très gras,
   accents Playfair italique, filets gris, boutons carrés.
   ========================================================================== */

.page-hero .page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.page-hero .button { border-color: #fff; color: #fff; }
.page-hero .button--dark { background: #fff; color: #000; }
.page-hero .button--dark:hover { background: #e6e3de; color: #000; }
.page-hero .button:hover { background: #fff; color: #000; }
.page-hero__meta { margin-top: 18px !important; font-size: 12px; letter-spacing: .04em; color: #8f8b85 !important; }

.crumbs { width: min(100%, var(--page-width)); margin: 0 auto; padding: 18px clamp(24px, 5vw, 64px) 0; font-size: 11px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* Faits clés (durée, tenue, pour qui, prix) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid #aaa7a1; border-bottom: 1px solid #aaa7a1; }
.facts div { padding: 22px 18px 22px 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }

/* Mise en page article + colonne */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 7vw, 110px); align-items: start; }
.article-layout--toc { grid-template-columns: 240px minmax(0, 760px); justify-content: center; }
.article-layout > *, .split > *, .cta-band__inner > * { min-width: 0; }  /* un tableau large ne doit pas élargir la grille */
.aside-sticky { position: sticky; top: 24px; display: grid; gap: 16px; }
.aside-box { padding: 24px; border: 1px solid var(--ink); }
.aside-box h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.aside-box p { margin: 0 0 14px; color: #45413c; font-size: 13px; }
.aside-box .button { width: 100%; margin-top: 8px; }
.aside-box a.aside-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }

.toc { position: sticky; top: 24px; font-size: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 10px; }
.toc li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; }
.toc li::before { content: counter(t, decimal-leading-zero); font-weight: 800; }
.toc a:hover { text-decoration: underline; }

.tldr { margin-bottom: 40px; padding: 26px 28px; background: #000; color: #fff; }
.tldr .eyebrow { color: #a9a59f; }
.tldr p:last-child { margin: 0; font-size: 17px; line-height: 1.5; }

/* Texte long (Markdown) */
.prose { color: #2a2724; font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 2.2em 0 .6em; font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.prose strong { font-weight: 800; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 20px; line-height: 1.45; }
.prose table { display: block; width: 100%; overflow-x: auto; margin: 1.6em 0; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.updated { margin-top: 2.4em; color: var(--muted); font-size: 12px; }

/* Grilles de cartes (guides, zones, prestations liées) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid #aaa7a1; }
.card-link { display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 28px 24px 26px 0; border-bottom: 1px solid #aaa7a1; transition: padding .3s var(--ease-out); }
.card-link:hover { padding-left: 12px; }
.card-link h2, .card-link h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; }
.card-link p { margin: 0; color: #45413c; font-size: 13px; line-height: 1.5; }
.card-link .text-link { margin-top: auto; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pill-list a { display: inline-block; padding: 9px 14px; border: 1px solid var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; transition: background .2s, color .2s; }
.pill-list a:hover { background: var(--ink); color: #fff; }

/* Bandeau sombre d'appel à l'action */
.cta-band { background: #000; color: #fff; }
.cta-band__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { margin: 0; font-size: clamp(30px, 4vw, 56px); font-weight: 800; letter-spacing: -.06em; line-height: .95; }
.cta-band h2 em { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; font-style: italic; }
.cta-band p { color: #c3c0bb; max-width: 520px; }
.cta-band__actions { display: grid; gap: 10px; justify-items: start; }
.cta-band .button { border-color: #fff; color: #fff; }
.cta-band .button--dark { background: #fff; color: #000; }
.cta-band .button:hover { background: #fff; color: #000; }
.cta-band .text-link { color: #fff; margin-top: 6px; }

/* Formulaire de demande de rendez-vous */
.lead-form { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ink); background: #fff; }
.lead-form h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.05em; }
.lead-form > p { margin: 0 0 20px; color: #45413c; font-size: 13px; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lead-form small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 13px 12px; border: 1px solid #aaa7a1; border-radius: 0; background: #fff; color: var(--ink); font: 500 15px/1.3 'Inter Tight', sans-serif; letter-spacing: 0; text-transform: none; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.lead-form__full { grid-column: 1 / -1; }
.lead-form__hp { position: absolute; left: -9999px; }
.lead-form .lead-form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #45413c; }
.lead-form__consent input { width: auto; margin-top: 2px; }
.lead-form .button { width: 100%; }
.lead-form__msg { min-height: 1.4em; margin: 12px 0 0 !important; font-size: 13px; font-weight: 700; }

/* Vidéos (formation, prestations) */
.video-hero { overflow: hidden; aspect-ratio: 4 / 5; background: #111; }
.video-hero video, .video-hero img { width: 100%; height: 100%; object-fit: cover; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #111; }
.video-grid figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.facts--3 { grid-template-columns: repeat(3, 1fr); }
.facts--type { grid-template-columns: 2fr 1fr 1fr; }

/* Pied de page : zones desservies */
.footer-zones { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 18px clamp(24px, 5vw, 64px); border-top: 1px solid rgba(255,255,255,.14); font-size: 11px; color: #a9a59f; }
.footer-zones a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a { color: inherit; }
.footer-legal a + a { margin-left: 18px; }

@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .article-layout, .article-layout--toc, .cta-band__inner, .split, .split--even, .facts--type { grid-template-columns: 1fr; }
  .facts--type div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .aside-sticky, .toc { position: static; }
}
@media (max-width: 560px) { .lead-form__grid { grid-template-columns: 1fr; } }
