/*
=========================================================
=== Discovery Backend Style — Charte YOV2 (Sylvie Lefranc) ===
=========================================================
Remplace le style.css par défaut Atlas. Palette, typographie,
rayons et espacements issus du kit design "La méthode Sylvie
Lefranc" (design_handoff_kit_sylvie_lefranc / YOV2_CHARTE.pdf).
Palette fermée à 5 couleurs — ne pas en introduire d'autres.
*/

/* Bootstrap Icons (conservé — glyphes menu/fichiers/FAQ/404, hérite currentColor) */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

/* Playfair Display — titres, chiffres, citations, signature */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* Poppins — corps de texte, surtitres, boutons */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&display=swap");


/* Variables — charte YOV2 (5 couleurs exhaustives) */

:root {
    --brun: #422319;       /* texte courant, fonds sombres */
    --terracotta: #844134; /* accent principal : boutons, liens, surtitres, chiffres */
    --rose: #DCA295;       /* filets, bordures, pastilles, accents sur fond sombre */
    --creme: #FBEEE7;      /* fond de page, fonds de cartes secondaires */
    --blanc: #FFFFFF;      /* fond des cartes de composants */

    /* alias rétrocompatibles avec les anciennes variables du thème */
    --primary-color: var(--terracotta);
    --secondary-color: var(--brun);
    --tertiary-color: var(--rose);
    --light-grey: var(--creme);
    --font-color: var(--brun);
    --font-white: var(--blanc);
    --body-font: "Poppins", sans-serif;
    --title-font: "Playfair Display", serif;
    --footer-menu-background: var(--brun);
    --footer-info-background: var(--brun);

    --radius: 3px;
    --radius-card: 4px;
    --border-rose: 1px solid rgba(220, 162, 149, 0.6);
    --border-rose-light: 1px solid rgba(220, 162, 149, 0.5);
}


/* ====== Global Styles ====== */

html, body {
    font-family: var(--body-font);
    font-weight: 300;
    color: var(--brun);
    background: var(--creme);
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    text-wrap: pretty;
}

a {
    color: var(--terracotta);
    text-decoration: none;
}

a:hover {
    color: var(--brun);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: var(--title-font);
    font-weight: 600;
    font-style: normal;
    color: var(--brun);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem; /* ~40px — équivalent "H3 bloc" du kit, réservé aux titres de page */
    line-height: 1.1;
}

h2 {
    font-size: 2rem; /* 32px — "H2 section" */
    line-height: 1.2;
}

h3 {
    font-size: 1.375rem; /* 22px — proche "H4 carte" */
    line-height: 1.2;
}

h4 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.2;
}

li::marker {
  color: var(--rose);
}

/* Transitions — 220ms ease (boutons/liens), 200ms ease (champs) */
a, button, .cta {
    transition: background 220ms ease, color 220ms ease, border-color 200ms ease;
}


/* ====== Composants texte réutilisables (charte 01) ====== */

/* Surtitre — micro-label en tête de section/carte */
.eyebrow {
    display: block;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

/* Micro-label — libellé plus discret (fiches, cartes) */
.microlabel {
    display: block;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* Citation en italique */
.quote {
    border-left: 2px solid var(--terracotta);
    padding: 26px 26px 26px 30px;
    font-family: var(--title-font);
    font-style: italic;
    font-size: 24px;
    line-height: 1.5;
    color: var(--brun);
}

.quote .quote-attribution {
    display: block;
    margin-top: 14px;
    font-family: var(--body-font);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--terracotta);
}

/* Liste à coche */
.list-check {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 17px;
    line-height: 1.6;
}

.list-check li::before {
    content: "✓";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 999px;
    background: var(--creme);
    border: 1px solid var(--rose);
    color: var(--terracotta);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Liste à coche sur fond sombre (ex: bloc offre) */
.list-check.on-dark li {
    color: var(--creme);
}

.list-check.on-dark li::before {
    background: transparent;
    border-color: var(--rose);
    color: var(--rose);
}

/* Liste numérotée */
.list-numbered {
    list-style: none;
    margin: 0;
    padding-top: 24px;
    border-top: var(--border-rose-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-numbered li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 17px;
    line-height: 1.6;
}

.list-numbered li::before {
    counter-increment: list-numbered;
    content: counter(list-numbered);
    font-family: var(--title-font);
    font-size: 32px;
    line-height: 1;
    color: var(--rose);
}

.list-numbered {
    counter-reset: list-numbered;
}

/* Pastilles */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-block;
    font-family: var(--body-font);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 7px 15px;
    background: transparent;
    color: var(--brun);
    border: 1px solid rgba(66, 35, 25, 0.25);
}

.pill-new {
    background: var(--creme);
    color: var(--terracotta);
    border-color: var(--rose);
}

.pill-limited {
    background: var(--terracotta);
    color: var(--creme);
    border-color: transparent;
}

.pill-bestseller {
    background: var(--rose);
    color: var(--brun);
    border-color: transparent;
}

/* Encadrés */
.box-expert {
    background: var(--creme);
    border-radius: var(--radius);
    padding: 26px;
}

.box-guarantee {
    border: 1px solid var(--rose);
    border-radius: var(--radius);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.box-guarantee .box-guarantee-number {
    font-family: var(--title-font);
    font-size: 36px;
    color: var(--terracotta);
    line-height: 1;
}

.box-guarantee .box-guarantee-text {
    font-size: 16px;
    line-height: 1.6;
}

.box-guarantee .box-guarantee-text strong {
    font-family: var(--body-font);
    font-weight: 500;
}


/* ====== Header ====== */
/* Header sombre — fond brun, logo typographique "Sylvie Lefranc / Yoga du visage" */

.header-wrap {
    background: var(--brun);
    border-bottom: 1px solid rgba(220, 162, 149, 0.35);
}

.header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.header .branding {
    display: block;
    width: auto;
    font-family: var(--title-font);
    color: var(--creme);
}

.header .branding img {
    width: 100%;
}

/* Logo typographique */
.header .branding.logo-type {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    line-height: 1;
}

.header .branding .logo-name {
    font-size: 1.375rem;
    white-space: nowrap;
    color: var(--creme);
}

.header .branding .logo-name .logo-first {
    font-weight: 400;
}

.header .branding .logo-name .logo-last {
    font-weight: 700;
}

.header .branding .logo-rule {
    display: block;
    width: 100%;
    height: 1px;
    margin: 8px 0 6px;
    background: rgba(251, 238, 231, 0.5);
}

.header .branding .logo-tagline {
    display: block;
    font-style: italic;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--rose);
}

.header .menu {
    display: block;
    width: auto;
}

.header .menu ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .menu ul li {
    display: inline-block;
    margin: 0;
    padding: 0 1rem;
}

.header .menu ul li:last-child {
    padding-right: 0;
}

.header .menu ul li a {
    color: var(--creme);
    text-decoration: none;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.06em;
    position: relative;
    text-transform: uppercase;
}

.header .menu ul li a:hover {
    color: var(--rose);
    text-decoration: none;
}

.header .menu ul li a:after {
    display: block;
    position: absolute;
    content: '';
    width: 0;
    height: 1px;
    left: 0;
    top: calc(100% + 0.5rem);
    background: var(--rose);
    transition: width 220ms ease;
}

.header .menu ul li a:hover:after,
.formations .header .menu ul li.formations a:after,
.authors .header .menu ul li.authors a:after,
.gifts .header .menu ul li.gifts a:after,
.faq .header .menu ul li.faq a:after {
    width: 85%;
}

.header .menu ul li a .bi {
    color: var(--rose);
}

.header .menu-toggle {
    display: none;
}

/* ====== Contents ====== */

/* Boutons */

.cta {
    display: inline-block;
    margin: 0;
    padding: 17px 34px;
    background: var(--terracotta);
    color: var(--creme);
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    min-height: 56px;
    box-sizing: border-box;
}

.cta:hover {
    color: var(--creme);
    text-decoration: none;
    background: var(--brun);
}

/* Variante secondaire — à utiliser en ajoutant .cta-secondary à côté de .cta si besoin */
.cta-secondary {
    background: transparent;
    color: var(--terracotta);
    border: 1px solid var(--terracotta);
}

.cta-secondary:hover {
    background: var(--terracotta);
    color: var(--creme);
}

/* Variante lien — CTA texte avec filet */
.cta-link {
    display: inline-block;
    padding: 4px 0;
    background: transparent;
    color: var(--terracotta);
    border: none;
    border-bottom: 1px solid var(--rose);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
}

.cta-link:hover {
    background: transparent;
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
    text-decoration: none;
}

.author-display .cta,
.join-cta .cta,
.upgrade-cta .cta {
    margin-top: 1rem;
}

.author-display {
    background: var(--blanc);
    border: var(--border-rose);
    border-radius: var(--radius-card);
    margin: 2rem 0;
    padding: 1.5rem;
}

.author-display .author-img {
    display: block;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--rose);
    border-radius: var(--radius-card);
    aspect-ratio: 1/1;
}

/* Image de la catégorie sur sa propre page — bannière plein cadre avec
   titre superposé (remplace l'ancien format avatar rond en colonne).
   Nécessite le HTML mis à jour de backend-layout-category
   (layout-backend-layout-category-banner.html).

   Hauteur pilotée par le CONTENU, pas par l'image :
   - .cat-banner-media (l'image + le dégradé) est en position:absolute,
     donc ne compte pour rien dans la hauteur de .cat-banner.
   - .cat-banner-content reste en flux normal : c'est lui qui détermine
     la hauteur réelle du bandeau (il grandit avec une description
     longue, reste compact s'il n'y a que le titre).
   - min-height sur .cat-banner sert de plancher (~200px) pour les cas
     avec peu de contenu (pas d'image, pas de description).
   Fonctionne à toutes les tailles d'écran, plus besoin de variante
   mobile empilée séparée : le bandeau ne peut plus déborder puisqu'il
   épouse toujours la hauteur réelle du texte. */
.cat-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-card);
    margin: 0 0 2rem !important;
    padding: 0 !important;
    background: transparent !important;
}

.cat-banner-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--brun); /* fallback tant qu'aucune image n'est assignée en Salesforce */
}

.cat-banner-media .cat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    aspect-ratio: auto;
}

.cat-banner-media .cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    /* dégradé plus couvrant : breadcrumb + titre + description tiennent
       tous dans la zone assombrie, quelle que soit la longueur du texte */
    background: linear-gradient(to top, rgba(66, 35, 25, 0.95), rgba(66, 35, 25, 0.75) 45%, rgba(66, 35, 25, 0.15) 85%, rgba(66, 35, 25, 0));
    pointer-events: none;
}

.cat-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 1.25rem 0 1.5rem;
    box-sizing: border-box;
}

/* Quand une image est réellement présente (:has), on pousse le texte
   plus bas pour laisser voir davantage la photo au-dessus — seulement
   sur desktop : sur un écran étroit on garde le padding compact, sinon
   la bannière deviendrait démesurément haute. Sans image, le padding
   de base ci-dessus s'applique (bandeau compact, plancher 200px). */
@media screen and (min-width: 1025px) {
    .cat-banner:has(.cat-img img) .cat-banner-content {
        padding: 15rem 0 5rem;
    }
}

.cat-banner-content .breadcrumb-item,
.cat-banner-content .breadcrumb-item a {
    color: rgba(251, 238, 231, 0.75);
}

.cat-banner-content .breadcrumb-item.active {
    color: var(--creme);
}

.cat-banner-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(251, 238, 231, 0.5);
}

.cat-banner-content .category-name,
.cat-banner-content h1 {
    color: var(--creme);
    margin: 0 0 0.35rem;
}

.cat-banner-content .fst-italic {
    display: block;
    color: var(--rose);
    font-family: var(--title-font);
    font-style: italic;
    font-weight: 400;
}

.cat-short-description {
    padding: 1.5rem 0 0;
}

.cat-banner-content .cat-short-description {
    padding-top: 0.5rem;
    color: rgba(251, 238, 231, 0.9);
    font-size: 19px;
    line-height: 1.65;
}

.cat-banner-content .cat-short-description p {
    margin: 0;
}

/* Contenu collé depuis Google Docs/Gmail/Word dans les champs de
   description (Salesforce) : ces éditeurs enveloppent le texte collé
   dans des <span style="color:#000000;font-family:Arial;font-size:11pt...">
   qui écrasent notre CSS via l'attribut style inline (couleur, police,
   ET taille). Un !important dans notre feuille suffit à reprendre la
   main (l'inline n'a pas lui-même de !important) — à condition de
   cibler aussi les descendants, pas seulement le conteneur du
   backend-component. color/font-family/font-size en `inherit` plutôt
   qu'une valeur fixe, pour que ça reste correct quel que soit le
   contexte (fond clair/sombre, et pour font-size : ça respecte aussi
   un éventuel ajustement responsive fait sur le conteneur, ex.
   .step-description en desktop). On ne touche pas font-weight/font-style
   pour ne pas effacer un gras/italique volontairement appliqué dans le
   texte collé. */
[data-category-component-type="categoryshortdescription"],
[data-category-component-type="categoryshortdescription"] *,
[data-category-component-type="categorylongdescription"],
[data-category-component-type="categorylongdescription"] *,
[data-step-component-type="stepdescription"],
[data-step-component-type="stepdescription"] *,
[data-step-component-type="steplowerdescription"],
[data-step-component-type="steplowerdescription"] *,
[data-author-component-type="authorshortdescription"],
[data-author-component-type="authorshortdescription"] *,
[data-author-component-type="authordescription"],
[data-author-component-type="authordescription"] * {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

/* Breadcrumb en contexte normal (fond crème, hors bannière) */
.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(66, 35, 25, 0.65);
}

.breadcrumb-item.active {
    color: var(--brun);
}

/* Fallback : image de la catégorie ailleurs qu'en bannière (si le layout
   n'est pas encore mis à jour) — reste un rectangle classique. */
.cat-img {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--rose);
    border-radius: var(--radius-card);
    aspect-ratio: 4/3;
}

.author-display .author-img img,
.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.join-cta,
.upgrade-cta {
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid var(--rose);
    border-radius: var(--radius-card);
    background: var(--blanc);
    text-align: center;
}

.sub-categories {
    margin: 2rem auto;
    padding: 2rem 0 0 0;
    border-top: var(--border-rose-light);
    border-bottom: var(--border-rose-light);
}

/* Cartes grille (étapes/catégories/auteurs affichés en grille) —
   fond blanc, bordure rosée, radius. Padding symétrique sur les 4
   côtés : la colonne Bootstrap (.col-sm-3) ne pose nativement du
   padding qu'à gauche/droite (calc(var(--bs-gutter-x) * 0.5)) via le
   gutter de grille — on ajoute le même montant en haut/bas pour ne
   pas avoir un cadrage asymétrique.
   Cartes en hauteur égale + CTA aligné en bas : nombre de lignes du
   titre et ratio de l'image d'origine varient d'une étape à l'autre,
   donc .step-item passe en flex column (flex:1 sur la colonne
   Bootstrap, qui est déjà en display:flex par défaut) et l'image a un
   ratio fixe, pour que toutes les cartes d'une même ligne s'alignent
   proprement.
   NB: sur ce site, le rendu réel des sous-catégories utilise
   .children-list .category-item (pas .sub-categories .cat-item,
   qui vient de la doc générique Atlas) — les deux sont ciblés. */
.steps-grid .row,
.sub-categories .row,
.authors-grid .row {
    align-items: stretch !important;
}

.sub-categories .cat-item,
.steps-grid .step-item,
.authors-grid .author-item {
    display: flex;
    flex-direction: column;
    background: var(--blanc);
    border: var(--border-rose);
    border-radius: var(--radius-card);
    padding-top: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-bottom: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.sub-categories .cat-item .cat-img,
.steps-grid .step-item .step-img,
.authors-grid .author-item .author-img {
    aspect-ratio: 16/9;
    border-radius: var(--radius);
}

.sub-categories .cat-item .step-listing-description,
.sub-categories .cat-item .category-listing-description,
.steps-grid .step-item .step-listing-description,
.authors-grid .author-item .step-listing-description {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-top: 12px;
}

.sub-categories .cat-item .step-cats,
.steps-grid .step-item .step-cats,
.authors-grid .author-item .step-cats {
    padding-top: 12px;
}

/* Pousse le bouton en bas de la carte quel que soit le nombre de
   lignes du titre au-dessus */
.sub-categories .cat-item .step-link,
.steps-grid .step-item .step-link,
.authors-grid .author-item .step-link {
    margin-top: auto;
    padding-top: 1rem;
}

/* Rendu réel des sous-catégories (children-list) — mise en page en
   ligne (image / texte / CTA côte à côte), même traitement que les
   cartes liste ci-dessous plutôt que le format "image qui déborde". */
.children-list .category-item {
    background: var(--blanc);
    border: var(--border-rose);
    border-radius: var(--radius-card);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.children-list .category-item:last-child {
    margin-bottom: 0;
}

.sub-categories .cat-img,
.steps-grid .step-img,
.authors-grid .author-img {
    display: block;
    margin-bottom: 0;
    overflow: hidden;
}

.sub-categories .cat-img img,
.steps-grid .step-img img,
.authors-grid .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.steps-list .step-img,
.authors-list .author-img,
.children-list .category-img {
    overflow: hidden;
}

.sub-categories .cat-img img,
.steps-grid .step-img img,
.steps-list .step-img img,
.authors-grid .author-img img,
.authors-list .author-img img,
.category-img img {
    border-radius: var(--radius);
    transition: transform 300ms ease;
    transform-style: preserve-3d;
}

.sub-categories .cat-img:hover img,
.steps-grid .step-img:hover img,
.steps-list .step-img:hover img,
.authors-grid .author-img:hover img,
.authors-list .author-img:hover img,
.category-img:hover img {
    transform: scale(1.06);
}

.sub-categories .cat-title h3,
.steps-grid .step-title h3,
.authors-grid .author-title h3,
.category-title h3 {
    font-size: 1.375rem;
    color: var(--brun);
}

.steps-list .step-title h3,
.authors-list .author-title h3 {
    font-size: 1.4rem;
    color: var(--brun);
}

.sub-categories .cat-item .cta,
.steps-grid .step-item .cta,
.authors-grid .author-item .cta,
.category-link .cta {
    margin-top: 1rem;
}

.steps-list .step-item .cta,
.authors-list .author-item .cta {
    width: 100%;
    text-align: center;
}

.steps-list .step-item,
.authors-list .author-item {
    padding: 1rem;
    background: var(--blanc);
    border: var(--border-rose);
    border-radius: var(--radius-card);
    margin-bottom: 1.5rem;
}

.step-item audio {
    width: 100%;
}

.steps-list .step-item:last-child,
.authors-list .author-item:last-child {
    margin-bottom: 0;
}

.author-intro .author-img {
    display: block;
    width: 360px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--rose);
    border-radius: var(--radius-card);
    aspect-ratio: 1/1;
}

.author-intro .author-img img,
.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-intro .author-long-name {
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
    font-style: italic;
    font-weight: 400;
}

.step-video {
    padding: 1.5rem 0;
}

/* Description de l'étape (sous le titre, au-dessus de la vidéo) plus
   grande — au moins sur desktop, où l'espace le permet plus facilement
   qu'en mobile. */
@media screen and (min-width: 1025px) {
    .step-description {
        font-size: 24px;
        line-height: 1.7;
    }
}

/* Léger radius sur le player vidéo (Vidyard/iframe) — le radius +
   overflow:hidden sur le conteneur suffit à rogner visuellement
   l'iframe, même si son contenu interne n'est pas stylable. */
.step-video .video-container {
    border-radius: var(--radius-card);
    overflow: hidden;
}

.step-files {
    padding: 1rem 0;
    margin: 1rem auto;
    border-top: var(--border-rose-light);
    border-bottom: var(--border-rose-light);
}

.step-files .file-pdf,
.step-files .file-audio {
    padding: .75rem 1rem;
    background: var(--blanc);
    border: var(--border-rose);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-files .file-pdf {
    margin-bottom: .5rem;
}

.step-files .file-icon {
    font-size: 2rem;
    color: var(--terracotta);
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.step-files .file-text {
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.04em;
    display: inline-block;
    vertical-align: middle;
    margin-left: .75rem;
    line-height: 1;
}

.step-files .file-player {
    line-height: 0;
}

.step-text {
    padding-top: 2rem;
}

.faq-block {
    border-bottom: 1px solid rgba(220, 162, 149, 0.6);
    background: transparent;
}

.faq-block .question-title {
    display: block;
    font-family: var(--title-font);
    font-size: 20px;
    font-weight: 400;
    color: var(--brun);
    background: transparent;
    cursor: pointer;
    padding: 18px 2rem 18px 0;
    position: relative;
}

.faq-block .question-title .bi {
    color: var(--terracotta);
}

.faq-block .question-title .title-arrow {
    color: var(--terracotta);
    display: block;
    position: absolute;
    right: 0;
    top: 18px;
    transition: transform 220ms ease;
}

.faq-block.active .question-title .title-arrow {
    transform: rotate(180deg);
}

.faq-block .answer {
    display: none;
    padding: 0 0 20px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(66, 35, 25, 0.78);
}

/* Utilitaire Bootstrap utilisé tel quel par le layout backend-layout-category
   (bloc photo/nom de catégorie) — sans cette règle il garde le gris Bootstrap
   par défaut au lieu du crème de la charte. */
.bg-light {
    background-color: var(--creme) !important;
}

/* Masque "Les formations de cette catégorie" (#ih6q) et la grille
   d'étapes (#ize73) sur les catégories "hub" qui ont des sous-catégories
   (ex: /mon-programme) — leur seul contenu utile est la liste des
   sous-catégories, pas une section d'étapes vide/redondante.
   Ciblé via :has() sur la présence de sous-catégories plutôt que sur
   l'URL ou un id de catégorie précis : reste correct automatiquement
   si de nouvelles semaines/catégories sont ajoutées ou renommées,
   sans avoir à retoucher cette règle. Les catégories "feuilles" (sans
   sous-catégorie, ex: Introduction, Semaine 1...) gardent ces blocs. */
#idwgi:has(.children-list .category-item) ~ #ih6q,
#idwgi:has(.children-list .category-item) ~ #ize73 {
    display: none;
}

.no-content-available {
    padding: 3rem !important;
    background: var(--blanc);
    border: var(--border-rose);
    text-align: center;
    border-radius: var(--radius-card);
}

.no-content-available p {
    font-weight: 300;
    margin: 0;
    font-style: italic;
    color: rgba(66, 35, 25, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ====== Footer ====== */

.footer-menu {
    padding: 1.5rem 0;
    background: var(--footer-menu-background);
    border-bottom: 1px solid rgba(220, 162, 149, 0.35);
}

.footer-menu-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
}

.footer-menu-wrap a {
    color: var(--creme);
    opacity: .8;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-menu-wrap a:hover {
    opacity: 1;
    color: var(--rose);
    text-decoration: none !important;
}

.footer-info {
    color: var(--creme);
    padding: 2rem 0;
    background: var(--footer-info-background);
}

.footer-info .copyright {
    margin-bottom: 1.5rem;
    font-family: var(--title-font);
}

.footer-info .disclaimer {
    font-weight: 300;
    font-size: 15px;
    color: rgba(251, 238, 231, 0.72);
}


/* ====== Responsive ====== */


@media screen and (max-width: 1024px) {

    .header {
        z-index: 9999;
    }

    .header .branding {
        z-index: 999;
    }

    .header .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: all ease-in 0.3s;
        -webkit-transition: all ease-in 0.3s;
        -ms-transition: all ease-in 0.3s;
        -o-transition: all ease-in 0.3s;
        cursor: pointer;
        z-index: 999;
    }

    .header .menu-toggle .hamburger {
        display: inline-block;
        height: 22px;
        margin-left: 0;
        width: 35px;
        position: relative;
        vertical-align: middle;
    }

    .header .menu-toggle .hamburger span,
    .header .menu-toggle .hamburger span:after,
    .header .menu-toggle .hamburger span:before {
        background-color: var(--creme);
        content: '';
        display: block;
        height: 3px;
        transition: all ease-in 0.2s;
        width: 100%;
    }

    .header .menu-toggle .hamburger span:before {
        position: absolute;
        margin-top: 10px;
    }

    .header .menu-toggle .hamburger span:after {
        position: absolute;
        margin-top: 20px;
    }

    .header .menu-toggle.active span,
    .header .menu-toggle.active .hamburger span:before,
    .header .menu-toggle.active .hamburger span:after {
        background-color: transparent;
    }

    .header .menu-toggle.active span:before {
        background-color: var(--rose) !important;
        margin-top: 10px;
        transform: rotate(45deg);
    }

    .header .menu-toggle.active span:after {
        background-color: var(--rose) !important;
        margin-top: 10px !important;
        transform: rotate(-45deg);
    }

    .header .main-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        position: fixed;
        right: calc(-100%);
        top: 0;
        width: 100%;
        min-height: 100%;
        padding: 0;
        margin: 0;
        text-align: left;
        background: rgba(66, 35, 25, 0.98);
        transition: all ease-in 0.5s;
        z-index: -1;
    }

    .header .main-menu.active {
        right: 0;
    }

    .header .menu ul {
        padding: 2rem 0;
        border-top: var(--border-rose-light);
        border-bottom: var(--border-rose-light);
    }
    .header .menu ul li {
        display: block;
        padding: 1.5rem !important;
    }

    h1 { font-size: 2rem; }

    .cta {
        width: 100%;
        text-align: center;
        padding: 20px 24px;
        box-sizing: border-box;
    }

}