/* Pages intérieures (générées par scripts/build_pages.py). S'ajoute à styles.css et sections.css. */

.inner .top { background: rgba(14, 13, 15, 0.86); backdrop-filter: blur(10px); }
.top-nav a[aria-current="page"] { opacity: 1; color: var(--yellow); }
.inner .block { padding-inline: var(--gutter); }
.inner .block-head .display { font-size: clamp(26px, 3.2vw, 52px); }

/* ---------- En-tête de page : la photo du sujet, fondue dans le noir ---------- */

.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 62vh, 640px); padding: 150px var(--gutter) clamp(40px, 7vh, 80px); overflow: hidden; background: var(--deep); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(24, 23, 25, 0.55) 55%, rgba(24, 23, 25, 0.2)); }
.page-hero-body { position: relative; z-index: 1; max-width: 900px; }
.page-hero .display { font-size: clamp(36px, 5.6vw, 92px); }
.page-hero .lede { max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 28px 0 0; }

/* ---------- Texte ---------- */

.prose { margin: 14px 0 0; max-width: 62ch; color: var(--mute); font-size: clamp(15px, 1.15vw, 18px); line-height: 1.65; }
.prose--wide { max-width: 80ch; margin-top: 30px; color: var(--ink); }
.kicker--gap { margin-top: 34px; }
.note { margin: 26px 0 0; max-width: 80ch; font-size: 13px; color: var(--mute); }

.checks { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; max-width: 70ch; }
.checks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 2px; background: var(--yellow); transform: skewX(-20deg); }

/* ---------- Deux colonnes : image ou encadré d'un côté, texte de l'autre ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; scroll-margin-top: 110px; }
.split + .split { margin-top: clamp(56px, 9vh, 110px); }
.split:nth-of-type(even) > figure { order: 2; }
.split--top { align-items: start; }
.split figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split .display { font-size: clamp(30px, 3.6vw, 60px); }
.gain-line { margin: 18px 0 0; font-size: 15px; }
.gain-line b { display: inline-block; margin-right: 12px; font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.portrait { aspect-ratio: auto !important; overflow: visible !important; background: none !important; }
.portrait img { aspect-ratio: 4 / 5; }
.portrait figcaption { padding-top: 14px; font-size: 13px; color: var(--mute); }
.portrait figcaption b { display: block; font-weight: 900; font-style: italic; font-size: 20px; text-transform: uppercase; color: var(--ink); }

/* ---------- Cartes de texte, étapes, étiquettes ---------- */

.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat li { padding: clamp(20px, 2.4vw, 34px); background: var(--bg); }
.block--deep .feat li { background: var(--deep); }
.feat h3 { margin: 0 0 10px; font-weight: 900; font-style: italic; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.15; text-transform: uppercase; }
.feat h3 a { color: inherit; text-decoration: none; }
.feat h3 a:hover, .feat h3 a:focus-visible { color: var(--yellow); }
.feat p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.steps li { counter-increment: step; padding-top: 16px; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 10px; font-weight: 900; font-style: italic; font-size: 26px; color: var(--yellow); }
.steps h3 { margin: 0 0 6px; font-weight: 900; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mute); }
.steps li:not(:has(h3)) p { color: var(--ink); font-weight: 600; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chips--links li { padding: 0; }
.chips--links a { display: block; padding: 8px 14px; color: inherit; text-decoration: none; font-weight: 900; font-style: italic; text-transform: uppercase; }
.chips--links a:hover, .chips--links a:focus-visible { color: var(--yellow); }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 40px 18px 0; position: relative; cursor: pointer; list-style: none; font-weight: 900; font-size: clamp(15px, 1.2vw, 18px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--yellow); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; max-width: 70ch; color: var(--mute); line-height: 1.6; }

/* ---------- Réalisations, filtres ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vh, 44px); }
.filters button { padding: 10px 16px; border: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.filters button:hover, .filters button:focus-visible { border-color: var(--yellow); outline: none; }
.filters button.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }

.real-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(22px, 2.4vw, 36px) clamp(12px, 1.4vw, 22px); }
.real figure { margin: 0 0 14px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--deep); }
.real img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.real:hover img { transform: scale(1.05); }
.real h3 { margin: 12px 0 2px; font-weight: 900; font-style: italic; font-size: 18px; line-height: 1.15; text-transform: uppercase; }
.real p { margin: 0; font-size: 13px; color: var(--mute); }
.real .real-centre { margin-bottom: 4px; font-weight: 900; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }

/* ---------- Centres ---------- */

.centre-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(26px, 3vw, 46px) clamp(14px, 1.6vw, 26px); }
/* Chaque carte partage les lignes de la grille (photo, nom, adresse, téléphone, horaires, boutons) : d'une carte à
   l'autre, les mêmes informations tombent à la même hauteur, quelle que soit la longueur de l'adresse. */
.centre-cards { row-gap: 0; }
.centre-card { display: grid; grid-template-rows: subgrid; grid-row: span 6; align-content: start; margin-bottom: clamp(30px, 3vw, 50px); }
.centre-card h3 small { display: block; font-size: 0.5em; font-style: normal; letter-spacing: 0.16em; color: var(--yellow); margin-bottom: 2px; }
.centre-card .card-actions { align-self: end; }
.centre-card .card-actions .btn { white-space: nowrap; }
.centre-card figure { position: relative; margin: 0 0 16px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep); }
.centre-card img { width: 100%; height: 100%; object-fit: cover; }
.centre-card figure .build-tag, .shop--full figure .build-tag { position: absolute; left: 12px; top: 12px; z-index: 2; }
/* Dans la boutique la vignette est en relief : l'étiquette doit passer devant le produit. */
.shop--full figure .build-tag { transform: translateZ(90px) skewX(-8deg); }
.centre-card h3 { margin: 0 0 8px; font-weight: 900; font-style: italic; font-size: clamp(20px, 1.7vw, 26px); text-transform: uppercase; }
.centre-card h3 a { color: inherit; text-decoration: none; }
.centre-card h3 a:hover, .centre-card h3 a:focus-visible { color: var(--yellow); }
.centre-card p, .info-card p { margin: 0 0 4px; font-size: 14px; color: var(--mute); }
.centre-card p a, .info-card p a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hours { font-size: 13px !important; }
.card-actions, .card-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px !important; }
.info-card { padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line); background: var(--deep); }
.block--deep .info-card { background: var(--bg); }
.info-card h2 { margin: 0 0 14px; font-weight: 900; font-style: italic; font-size: clamp(20px, 1.7vw, 26px); text-transform: uppercase; }
.pick { display: grid; gap: 8px; margin-bottom: 18px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.pick select, .form-mock input, .form-mock textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; font-size: 15px; }
.pick select:focus-visible, .form-mock input:focus-visible, .form-mock textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.pick select option { background: var(--deep); }
.ask-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Boutique complète, franchise, vidéos ---------- */

.shop--full { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(22px, 2.4vw, 36px) clamp(10px, 1.2vw, 18px); }
.shop-cat { margin: 12px 0 0; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.shop--full h3 { margin-top: 4px; }
.price { margin: 6px 0 0; font-weight: 900; font-style: italic; font-size: 20px; color: var(--yellow); font-variant-numeric: tabular-nums; }

.pack { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--yellow); background: var(--bg); }
.pack h3 { margin: 6px 0 0; font-weight: 900; font-style: italic; font-size: clamp(22px, 2vw, 30px); text-transform: uppercase; }
.pack-price { margin: 14px 0 0; color: var(--mute); }
.pack-price b { margin-right: 8px; font-weight: 900; font-style: italic; font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--yellow); }

.form-mock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 900px; }
.form-mock label { display: grid; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.form-mock .wide, .form-mock .btn, .form-mock .note { grid-column: 1 / -1; }
.form-mock .btn { justify-self: start; }
.form-mock .tick { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: none; color: var(--ink); }
.form-mock .tick input { width: 18px; height: 18px; accent-color: var(--yellow); }

.stats--page { list-style: none; margin: clamp(40px, 7vh, 80px) 0 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats--page li { padding: clamp(22px, 3vh, 40px) clamp(16px, 2vw, 30px); background: var(--bg); }
.stats--page span { display: block; margin-top: 8px; font-weight: 900; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

.videos { list-style: none; margin: clamp(22px, 3vh, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.videos a { display: block; color: inherit; text-decoration: none; }
.videos figure { position: relative; margin: 0 0 12px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.videos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.videos a:hover img, .videos a:focus-visible img { transform: scale(1.06); }
.videos figure::after { content: "▶"; position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--bg); font-size: 13px; padding-left: 3px; }
.videos h3 { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.4; }
.videos-meta { margin: 14px 0 0; font-size: 13px; color: var(--mute); }

/* ---------- Bandeau final ---------- */

.cta-band { padding: clamp(70px, 12vh, 140px) var(--gutter); background: var(--deep); border-top: 1px solid var(--line); }
.cta-band .display { font-size: clamp(30px, 4.4vw, 72px); max-width: 18ch; }

@media (max-width: 1100px) {
  .feat--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split:nth-of-type(even) > figure { order: 0; }
  .feat, .feat--3, .feat--4, .form-mock, .gallery { grid-template-columns: 1fr; }
  .stats--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .real img, .videos img { transition: none; }
}

/* ---------- Téléphone : pages intérieures ---------- */
@media (max-width: 600px) {
  /* La boutique sur deux colonnes : une seule faisait défiler vingt écrans. */
  .shop--full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .shop--full h3 { font-size: 12px; }
  .shop--full .shop-add { padding: 0 10px; letter-spacing: 0.1em; }
  /* Les grands titres : assez petits pour que le plus long mot (« Reprogrammation ») tienne sur une ligne. */
  .page-hero .display { font-size: min(8.4vw, 36px); }
  .inner .block-head .display { font-size: min(7.4vw, 30px); }
}
