/*
=========================================================
======= Discovery Front Style — REL / SDN backend =======
=========================================================
DA : encre navy + papier crème + accent "cachet" oxblood.
Vocabulaire : sceau circulaire pour toutes les actions icônes.
Anciens noms de variables conservés en alias (compat blocs existants).
=========================================================
*/

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Google Font Body */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Titres : Georgia (police système). Gelasio est chargée en repli — c'est un
   clone métriquement compatible pour les machines sans Georgia (Android). */
@import url("https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400..700;1,400..700&display=swap");


/* ====== Tokens ====== */

:root {
    /* Encre & papier */
    --ink: #0E1F3F;
    --ink-deep: #16233C;
    --slate: #5A6C8F;
    --paper: #F8F1DF;
    --paper-deep: #E8DCC0;
    --rule: #E2DDD2;
    --surface: #FFFFFF;
    --surface-alt: #F6F4F0;
    --empty-bg: #EDECE8;
    --empty-rule: #D6D3CC;

    /* Accent unique — tampon encreur, à doser */
    --seal: #9E2B25;
    --seal-dark: #7E1F1A;

    /* Typo */
    --font-color: #2B3138;
    --font-muted: #5F6874;
    --font-white: #FFFFFF;
    --body-font: "Raleway", sans-serif;
    --title-font: Georgia, "Gelasio", "Times New Roman", serif;

    /* Alias de compatibilité (ne pas supprimer) */
    --primary-color: var(--ink);
    --secondary-color: var(--paper);
    --tertiary-color: var(--slate);
    --light-grey: var(--surface-alt);
    --footer-menu-background: var(--paper);
    --footer-info-background: var(--ink-deep);

    /* Rythme */
    --card-gap: .75rem;
    --radius-s: 4px;
    --radius-m: 8px;
    --radius-l: 14px;
    --shadow-s: 0 1px 2px rgba(14, 31, 63, .06);
    --shadow-m: 0 6px 22px -10px rgba(14, 31, 63, .28);
}


/* ====== Global Styles ====== */

html {
    /* Base montee : audience senior, et lecture plus confortable partout. */
    font-size: 18px;
    /* base légèrement montée : audience senior */
    scroll-behavior: smooth;
}

html,
body {
    font-family: var(--body-font);
    color: var(--font-color);
    background: var(--surface);
    margin: 0;
    padding: 0;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--paper-deep);
    color: var(--ink);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--ink);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--seal);
    text-decoration: underline;
}

strong,
b {
    font-weight: 700;
    color: var(--ink);
}

li::marker {
    color: var(--slate);
}

ul,
ol {
    padding-left: 1.3rem;
}

li {
    margin-bottom: .35rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--rule);
    opacity: 1;
    margin: 2rem 0;
}


/* ====== Typographie ====== */

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--title-font);
    font-style: normal;
    text-wrap: balance;
}

h1 {
    color: var(--ink);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: .75rem;
}

h2 {
    color: var(--ink);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: .75rem;
}

/* Le filet d'encre : marque de section, pas décoration */
h2::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    background: var(--seal);
    margin-bottom: .85rem;
}

h3 {
    color: var(--slate);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

h4 {
    color: var(--font-color);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 700;
}

blockquote {
    position: relative;
    margin: 2rem 0;
    padding: .5rem 0 .5rem 3rem;
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ink);
}

blockquote::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -.35rem;
    font-family: var(--title-font);
    font-size: 4rem;
    line-height: 1;
    color: var(--seal);
    opacity: .5;
}

blockquote p:last-child {
    margin-bottom: 0;
}


/* Transitions */
a,
button,
.cta,
.step-img img,
.author-img img,
.cat-img img {
    transition: all .2s ease-in;
}

/* Focus clavier — jamais supprimé */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.cta:focus-visible,
.question-title:focus-visible {
    outline: 3px solid var(--slate);
    outline-offset: 3px;
    border-radius: 2px;
}


/* ====== Spinner de chargement ====== */

.discovery-loader-spinner {
    border: 3px solid var(--paper-deep) !important;
    border-top: 3px solid var(--seal) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.spinner-border {
    color: var(--slate);
}


/* ====== Header ====== */

.header-wrap {
    background: var(--paper);
    border-bottom: 1px solid var(--paper-deep);
}

/* Header blanc : variante .white, et pages publiques listées par slug du body.
   Ajouter ici le slug des nouvelles pages concernées. */
.header-wrap.white,
.home .header-wrap,
.mes-videos-free .header-wrap,
.forum .header-wrap,
.ressources-gratuites .header-wrap,
.acceder-au-programme .header-wrap {
    background-color: white !important;
}




/* Header collant : désactivé. `position: sticky` crée un contexte
   d'empilement dans lequel l'overlay du widget de recherche Falcon vient se
   peindre par-dessus son propre champ. Pour le réactiver une fois le widget
   corrigé, décommenter ce bloc.

.header-wrap {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-wrap.is-scrolled {
    box-shadow: 0 3px 14px -8px rgba(14, 31, 63, .45);
}
*/

.header {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    padding: .9rem 0;
}

.header .branding {
    display: block;
    flex: 0 0 auto;
    width: 165px;
}

.header .branding img {
    width: 100%;
    display: block;
}

.header .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    min-width: 0;
}

.header .menu .main-menu {
    flex: 0 0 auto;
}

/* Dimensionnement du conteneur uniquement : il se comprime pour laisser
   le menu tenir sur une ligne, sans rien imposer à son contenu. */
.header .search-block {
    flex: 0 1 auto;
    min-width: 0;
}

.header .menu ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .menu ul li {
    display: inline-block;
    margin: 0;
    padding: 0 .75rem;
}

.header .menu ul li:last-child {
    padding-right: 0;
}

.header .menu ul li a {
    color: var(--ink);
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
}

.header .menu ul li a:hover {
    color: var(--seal);
    text-decoration: none;
}

.header .menu ul li a:after {
    display: block;
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    left: 0;
    top: calc(100% + .85rem);
    background: var(--seal);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease-out;
}

.bcb-visible.menu-logged-out{
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    min-width: 0;
}

/* État actif : le body porte le slug de la page (.mes-videos, .mes-cadeaux...),
   les <li> du menu portent le nom de rubrique du preset (.formations, .gifts...).
   Ajouter ici les couples slug / rubrique des nouvelles pages. */
.header .menu ul li a:hover:after,
.mes-videos-free .header .menu ul li.videos a:after,
.forum .header .menu ul li.forum a:after,
.webinaire .header .menu ul li.webinaire a:after,
.acceder-au-programme .header .menu ul li.menu-cta a:after,
.mes-videos .header .menu ul li.formations a:after,
.mes-cadeaux .header .menu ul li.gifts a:after,
.mes-preferences .header .menu ul li.preferences a:after,
.dr-vincent-reliquet .header .menu ul li.about a:after,
.formations .header .menu ul li.formations a:after,
.authors .header .menu ul li.authors a:after,
.about .header .menu ul li.about a:after,
.gifts .header .menu ul li.gifts a:after,
.preferences .header .menu ul li.preferences a:after,
.faq .header .menu ul li.faq a:after {
    transform: scaleX(1);
}

.header .menu ul li a .bi {
    color: var(--slate);
    transition: color .2s ease-in;
}

.header .menu ul li a:hover .bi {
    color: var(--seal);
}

/* CTA du menu (version non connectee) : compact, sans soulignement,
   et il ne se comprime pas quand la place manque. */
.header .menu ul li.menu-cta {
    padding-right: 0;
}

.header .menu ul li.menu-cta a {
    /* .header .menu ul li a impose sa couleur au-dessus de .cta :
       on la reprend ici, sinon le libelle sort navy sur navy. */
    color: var(--paper);
    padding: .5rem 1.05rem;
    font-size: .72rem;
    letter-spacing: .07em;
    white-space: nowrap;
}

.header .menu ul li.menu-cta a:hover {
    color: var(--paper);
    background: var(--seal);
    text-decoration: none;
}

.header .menu ul li.menu-cta a .bi {
    color: inherit;
    margin-right: .15rem;
}

.header .menu ul li.menu-cta a:hover .bi {
    color: inherit;
}

.header .menu ul li.menu-cta a:after {
    display: none;
}

.header .menu-toggle {
    display: none;
}

/* Recherche — AUCUN style ici, volontairement.
   Le widget Falcon superpose une couche de texte fantôme calée au pixel sur
   son champ : toucher à sa police, son padding ou sa bordure désaligne les
   deux et fait apparaître le placeholder en double. */


/* ====== Login ====== */

.discoverylogin-modal {
    z-index: 999999999999;
}

.discoverylogin-modal h3 {
    color: var(--ink);
}

.discoverylogin-modal h3 span {
    color: var(--seal);
}

.header .menu ul li backendlogin {
    display: block;
    font-size: .85rem;
    line-height: initial;
    color: var(--ink);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .06em;
    position: relative;
}

.header .menu ul li backendlogin:after {
    content: " Se connecter";
    font-size: .78rem;
}

.header .menu ul li backendlogin:hover {
    color: var(--seal);
}

.header .menu ul li backendlogin:before {
    display: block;
    position: absolute;
    content: '';
    width: 100%;
    height: 2px;
    left: 0;
    top: calc(100% + .85rem);
    background: var(--seal);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease-out;
}

.header .menu ul li backendlogin:hover:before {
    transform: scaleX(1);
}

/* Bouton de connexion en page (page « login error ») : le module ne rend
   qu'une icône <i>, on l'habille en CTA et on ajoute le libellé en ::after. */
.discovery-login-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .7rem 1.7rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body-font);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
    border: 0;
    border-radius: var(--radius-s);
    box-shadow: 0 2px 0 rgba(14, 31, 63, .35);
    cursor: pointer;
    transition: all .2s ease-in;
}

.discovery-login-cta::after {
    content: "Se connecter";
}

.discovery-login-cta .bi {
    color: inherit;
    font-size: 1.05rem;
    line-height: 1;
}

/* Le déclencheur est l'icône : son ::after (libre, le glyphe est en ::before)
   est étendu à tout le bouton pour que le clic sur le libellé l'atteigne. */
.discovery-login-cta [data-discoverylogin-trigger]::after {
    content: "";
    position: absolute;
    inset: 0;
}

.discovery-login-cta:hover {
    background: var(--seal);
    color: var(--paper);
    box-shadow: 0 2px 0 var(--seal-dark);
    transform: translateY(-1px);
}

.discovery-login-cta:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 rgba(14, 31, 63, .35);
}



/* ====== Fil d'Ariane ====== */

.breadcrumb {
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 0;
    --bs-breadcrumb-divider-color: var(--slate);
}

.breadcrumb a {
    color: var(--slate);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--seal);
}

.breadcrumb-item.active {
    color: var(--font-muted);
}


/* ====== Composants ====== */

/* Bouton — bloc d'encre, léger relief typographique */
.cta {
    display: inline-block;
    margin: 0;
    padding: .7rem 1.7rem;
    background: var(--ink);
    color: var(--paper);
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.3;
    border: 0;
    border-radius: var(--radius-s);
    box-shadow: 0 2px 0 rgba(14, 31, 63, .35);
    cursor: pointer;
}

.cta:hover {
    color: var(--paper);
    text-decoration: none;
    background: var(--seal);
    box-shadow: 0 2px 0 var(--seal-dark);
    transform: translateY(-1px);
}

.cta:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 rgba(14, 31, 63, .35);
}

/* Cas .cta cumulé avec .btn Bootstrap (bouton d'adhésion Falcon) */
.cta.btn,
.btn.cta {
    --bs-btn-color: var(--paper);
    --bs-btn-bg: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--paper);
    --bs-btn-hover-bg: var(--seal);
    --bs-btn-hover-border-color: var(--seal);
    --bs-btn-active-color: var(--paper);
    --bs-btn-active-bg: var(--seal-dark);
    --bs-btn-active-border-color: var(--seal-dark);
    --bs-btn-padding-y: .7rem;
    --bs-btn-padding-x: 1.7rem;
    --bs-btn-font-size: .8rem;
    --bs-btn-font-weight: 700;
    --bs-btn-border-radius: var(--radius-s);
}

.join-cta .cta.btn,
.upgrade-cta .cta.btn {
    --bs-btn-bg: var(--seal);
    --bs-btn-border-color: var(--seal);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-padding-y: .95rem;
    --bs-btn-padding-x: 2.4rem;
    --bs-btn-font-size: .92rem;
}

/* Bandeau d'information (remplace bg-light sur les bandes catégorie/auteur) */
.info-band {
    background: var(--paper);
    border-top: 1px solid var(--paper-deep);
    border-bottom: 1px solid var(--paper-deep);
    padding: 2.5rem 0;
    margin: 0 0 2.5rem 0;
}

.info-band h1,
.author-display h1 {
    margin-bottom: .5rem;
}

.cat-info .fst-italic,
.author-long-name {
    color: var(--slate);
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 700;
}

/* Intro accueil */
.home-intro h1 span {
    display: block;
    margin-top: .6rem;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: var(--slate);
    letter-spacing: 0;
}

/* Bandeau auteur pleine largeur */
.author-display {
    background: var(--paper);
    border-top: 1px solid var(--paper-deep);
    border-bottom: 1px solid var(--paper-deep);
    margin: 0 0 2.5rem 0;
    padding: 2.75rem 0;
    border-radius: 0;
}

.author-display h1 {
    color: var(--ink);
}

.author-display .cta,
.join-cta .cta,
.upgrade-cta .cta {
    margin-top: 1.25rem;
}

/* Portraits — médaillon encre sur passe-partout crème */
.author-display .author-img,
.author-intro .author-img {
    display: block;
    width: 280px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid var(--ink);
    border-radius: 50%;
    aspect-ratio: 1/1;
    box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px rgba(90, 108, 143, .4);
}

.author-intro .author-img {
    width: 340px;
}

.author-display .author-img img,
.author-intro .author-img img,
.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-intro .author-long-name {
    margin-bottom: 1.5rem;
}

.cat-img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-m);
    border: 1px solid var(--rule);
}


/* Bloc d'adhésion / upgrade — le tampon du praticien */
.join-cta,
.upgrade-cta {
    position: relative;
    margin: 3rem auto;
    padding: 2.25rem 1.75rem;
    background: var(--paper);
    border: 1px solid var(--paper-deep);
    border-radius: var(--radius-l);
    text-align: center;
    overflow: hidden;
}

.join-cta::before,
.upgrade-cta::before {
    content: "";
    position: absolute;
    top: -22px;
    right: 22px;
    width: 118px;
    height: 118px;
    border: 9px double var(--seal);
    border-radius: 50%;
    transform: rotate(-14deg);
    opacity: .2;
    pointer-events: none;
}

.join-cta p,
.upgrade-cta p {
    margin-bottom: .35rem;
}

.join-cta p:first-child,
.upgrade-cta p:first-child {
    font-family: var(--title-font);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--ink);
}

.join-cta .cta,
.upgrade-cta .cta {
    padding: .95rem 2.4rem;
    font-size: .92rem;
    background: var(--seal);
    box-shadow: 0 2px 0 var(--seal-dark);
}

.join-cta .cta:hover,
.upgrade-cta .cta:hover {
    background: var(--ink);
    box-shadow: 0 2px 0 #06101f;
}


/* ====== Grilles & listes (catégories, vidéos, auteurs) ====== */

.sub-categories {
    margin: 3rem auto;
    padding: 2.5rem 0 0 0;
    border-top: 1px solid var(--rule);
}

/* Écart entre fiches.
   Dans le module, la fiche EST la colonne (.step-item porte .col-*). On ne
   peut donc pas compter sur la gouttière Bootstrap : le padding de la fiche
   l'écraserait. L'écart vient de --card-gap, posé en padding sur la fiche
   elle-même ; le fond et la bordure sont portés par un pseudo-élément en
   retrait de ce même écart (voir plus bas). Marche dans les deux cas :
   fiche = colonne, ou fiche imbriquée dans une colonne. */
.sub-categories .row,
.steps-grid .row,
.authors-grid .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: calc(-1 * var(--card-gap));
    margin-right: calc(-1 * var(--card-gap));
}

.sub-categories .row > *,
.steps-grid .row > *,
.authors-grid .row > * {
    padding-left: 0;
    padding-right: 0;
}

/* Une seule fiche ne doit pas se retrouver centrée au milieu du vide */
.steps-grid .row.justify-content-center {
    justify-content: start !important;
}

/* --- Module Children (grille de sous-catégories) --------------------------
   Balisage réel du module, relevé dans le DOM rendu :
     .children-grid > .row > .col-* .category-item
        .category-img > a > img.img-fluid
        .category-listing-description
           .category-title > h3
           .category-long-name > p
           .category-link > a.cta
   Ancré sur .category-item, produit par le module. Ne pas scoper sur
   [mode="grid"] : l'attribut disparaît à l'hydratation.
   -------------------------------------------------------------------------- */

.children-grid .row,
.row:has(> .category-item) {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    margin-left: calc(-1 * var(--card-gap));
    margin-right: calc(-1 * var(--card-gap));
    justify-content: start !important;
    align-items: stretch !important;
}

.category-item {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding: 0 var(--card-gap) 1.4rem var(--card-gap);
}

.category-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: var(--card-gap);
    right: var(--card-gap);
    background: var(--surface);
    border-radius: var(--radius-m);
    box-shadow: 0 0 0 1px var(--rule), var(--shadow-s);
    transition: box-shadow .2s ease-in;
}

.category-item:hover::before {
    box-shadow: 0 0 0 1px var(--paper-deep), var(--shadow-m);
}

/* Visuel : plein bord haut, recadré en 16/9 */
.category-item .category-img {
    display: block;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--ink);
}

.category-item .category-img a {
    display: block;
    height: 100%;
}

.category-item .category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-style: preserve-3d;
    transition: transform .3s ease-in;
}

.category-item .category-img:hover img {
    transform: scale(1.06);
}

/* Texte : le padding intérieur est porté par le bloc de description */
.category-item .category-listing-description {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0 1.15rem;
}

.category-item .category-title h3 {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: .5rem;
}

.category-item .category-long-name p {
    font-size: .95rem;
    color: var(--font-muted);
    margin-bottom: 1.15rem;
}

.category-item .category-link {
    margin-top: auto;
}

.category-item .category-link .cta {
    padding-top: .6rem;
    padding-bottom: .6rem;
}


/* Fiches */
/* Fiches vidéo / auteur (le module Children a son propre bloc plus haut) */
.sub-categories .cat-item,
.steps-grid .step-item,
.authors-grid .author-item {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin-bottom: 1.5rem;
    padding: 0 var(--card-gap) 1.4rem var(--card-gap);
    background: none;
    border: 0;
}

/* Le chrome de la fiche : fond, bordure et ombre, en retrait de l'écart */
.sub-categories .cat-item::before,
.steps-grid .step-item::before,
.authors-grid .author-item::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: var(--card-gap);
    right: var(--card-gap);
    background: var(--surface);
    border-radius: var(--radius-m);
    box-shadow: 0 0 0 1px var(--rule), var(--shadow-s);
    transition: box-shadow .2s ease-in;
}

.sub-categories .cat-item:hover::before,
.steps-grid .step-item:hover::before,
.authors-grid .author-item:hover::before {
    box-shadow: 0 0 0 1px var(--paper-deep), var(--shadow-m);
}

/* Marges intérieures sans toucher à la structure du module */
.cat-item > *:not(.cat-img),
.steps-grid .step-item > *:not(.step-img),
.authors-grid .author-item > *:not(.author-img) {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
}

.cat-item .cat-img,
.steps-grid .step-img,
.authors-grid .author-img {
    margin: 0 0 1.15rem 0;
    border: 0;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--ink);
}

.authors-grid .author-img {
    aspect-ratio: 1/1;
    max-width: 190px;
    margin: 1.4rem auto 1.15rem;
    border-radius: 50%;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 6px var(--paper);
}

.steps-list .step-img,
.authors-list .author-img {
    overflow: hidden;
    border-radius: var(--radius-s);
}

.cat-item .cat-img img,
.steps-grid .step-img img,
.steps-list .step-img img,
.authors-grid .author-img img,
.authors-list .author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-style: preserve-3d;
}

.cat-item .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 {
    transform: scale(1.06);
}

/* Le sceau de lecture — signature de l'interface */
.steps-grid .step-img,
.steps-list .step-img {
    position: relative;
}

.steps-grid .step-img::before,
.steps-list .step-img::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border-radius: 50%;
    background: rgba(248, 241, 223, .94);
    box-shadow: 0 0 0 2px rgba(14, 31, 63, .3), 0 2px 10px rgba(14, 31, 63, .25);
    transition: background .2s ease-in, transform .2s ease-in;
    pointer-events: none;
    z-index: 2;
}

.steps-grid .step-img::after,
.steps-list .step-img::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -10px 0 0 -5px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--ink);
    transition: border-color .2s ease-in;
    pointer-events: none;
    z-index: 3;
}

.steps-grid .step-img:hover::before,
.steps-list .step-img:hover::before {
    background: var(--seal);
    box-shadow: 0 0 0 2px rgba(248, 241, 223, .9), 0 3px 14px rgba(14, 31, 63, .3);
    transform: scale(1.08);
}

.steps-grid .step-img:hover::after,
.steps-list .step-img:hover::after {
    border-left-color: var(--paper);
}

/* Pas de pastille de lecture sur les cadeaux : le module Gifts réutilise le
   gabarit des vidéos (.steps-list .step-img) mais ses visuels sont des
   couvertures, pas des lectures. Cible body.mes-cadeaux (slug de la page)
   et, en repli, tout conteneur dont la classe contient "gift". */
.mes-cadeaux .step-img::before,
.mes-cadeaux .step-img::after,
.mes-cadeaux .step-img:hover::before,
.mes-cadeaux .step-img:hover::after,
[class*="gift"] .step-img::before,
[class*="gift"] .step-img::after,
[class*="gift"] .step-img:hover::before,
[class*="gift"] .step-img:hover::after {
    display: none;
    content: none;
}

/* Titres de fiches */
.cat-item .cat-title h3,
.steps-grid .step-title h3,
.authors-grid .author-title h3 {
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .5rem;
}

.steps-list .step-title h3,
.authors-list .author-title h3 {
    font-size: 1.35rem;
    font-style: normal;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .5rem;
}

.cat-item .cta,
.steps-grid .step-item .cta,
.authors-grid .author-item .cta {
    margin-top: auto;
    align-self: flex-start;
    padding-top: .6rem;
    padding-bottom: .6rem;
}

/* Description d'une sous-catégorie */
.cat-item .cat-title + div,
.cat-item p {
    font-size: .95rem;
    color: var(--font-muted);
}

.cat-item p:last-of-type {
    margin-bottom: 1.15rem;
}

/* Le module sort .step-listing-description autour du titre et du CTA :
   sans colonne flex ici, le margin-top:auto du bouton n'a rien pour pousser. */
.step-item .step-listing-description {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.step-item .step-link {
    margin-top: auto;
}

/* Listes horizontales */
.steps-list .step-item,
.authors-list .author-item {
    padding: 1.1rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-s);
    transition: border-color .2s ease-in, box-shadow .2s ease-in;
}

.steps-list .step-item:hover,
.authors-list .author-item:hover {
    border-color: var(--paper-deep);
    box-shadow: var(--shadow-m);
}

.steps-list .step-item .cta,
.authors-list .author-item .cta {
    width: 100%;
    text-align: center;
}

.mes-cadeaux .steps-list .step-item .cta,
[class*="gift"] .steps-list .step-item .cta {
    width: auto;
}

.steps-grid .step-item .step-cats,
.steps-list .step-item .step-cats {
    display: none;
}

.step-item audio {
    width: 100%;
    margin-top: .75rem;
}

.steps-list .step-item:last-child,
.authors-list .author-item:last-child {
    margin-bottom: 0;
}


/* ====== Page vidéo ====== */

.step-intro .step-title h1 {
    margin-bottom: .5rem;
}

.step-long-name {
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 700;
    color: var(--slate);
}

.step-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--font-muted);
    max-width: 68ch;
}

.step-video {
    padding: 1.75rem 0 0 0;
}

.step-video iframe,
.step-video video,
.step-video .vidyard-player-container {
    width: 100%;
    display: block;
    border: 0;
    border-radius: var(--radius-m);
    background: var(--ink);
    box-shadow: var(--shadow-m);
}

/* Ligne d'actions sous la vidéo (j'aime / enregistrer) */
.step-video > .d-flex {
    margin-top: 1.1rem;
    align-items: center;
    justify-content: flex-start !important;
    gap: .6rem;
}

.step-video > .d-flex button,
.step-video > .d-flex a,
.step-video > .d-flex .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1.1rem;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--paper-deep);
    border-radius: 999px;
    font-family: var(--body-font);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
}

.step-video > .d-flex button:hover,
.step-video > .d-flex a:hover,
.step-video > .d-flex .btn:hover {
    background: var(--paper);
    border-color: var(--seal);
    color: var(--seal);
    text-decoration: none;
}

.step-video > .d-flex .bi {
    font-size: 1.05rem;
    line-height: 1;
}

.step-video > .d-flex .active,
.step-video > .d-flex button.active,
.step-video > .d-flex a.active {
    background: var(--seal);
    border-color: var(--seal);
    color: var(--font-white);
}

/* ====== Playlist « Autres vidéos de cette catégorie » ====== */
/*
   Bloc posé sous le lecteur : .category-steps > .lesson-aside-head +
   .lesson-playlist > module Category Steps en mode liste.
   Le gabarit liste standard (grosses fiches, CTA pleine largeur) est ici
   ramené à des lignes compactes, avec défilement interne pour ne pas
   repousser les documents et les commentaires hors de l'écran.
   Ces règles viennent après celles de .steps-list : à spécificité égale,
   c'est l'ordre qui tranche — ne pas les remonter dans le fichier.
*/

.category-steps {
    margin: 2rem 0;
    background: var(--surface-alt);
    border: 1px solid var(--rule);
    border-radius: var(--radius-l);
    overflow: hidden;
}

.lesson-aside-head {
    padding: .9rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-deep);
}

.lesson-aside-head p,
.lesson-aside-head h2,
.lesson-aside-head h3 {
    margin: 0;
    font-family: var(--title-font);
    font-size: 1.1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--ink);
}

.lesson-aside-head h2::before {
    display: none;
}

.lesson-playlist {
    max-height: 30rem;
    padding: .5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--slate) transparent;
}

.lesson-playlist::-webkit-scrollbar {
    width: 9px;
}

.lesson-playlist::-webkit-scrollbar-thumb {
    background: var(--slate);
    border: 3px solid var(--surface-alt);
    border-radius: 99px;
}

/* Lignes compactes */
.lesson-playlist .step-item {
    margin-bottom: .25rem;
    padding: .55rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius-s);
    box-shadow: none;
    transition: background .15s ease-in;
}

.lesson-playlist .step-item:hover {
    background: var(--surface);
    border: 0;
    box-shadow: var(--shadow-s);
}

.lesson-playlist .step-item + .step-item {
    border-top: 1px solid var(--rule);
}

.lesson-playlist .step-item:hover + .step-item,
.lesson-playlist .step-item:hover {
    border-top-color: transparent;
}

/* Vignette resserrée : le gabarit liste sort une colonne à 33% */
.lesson-playlist .step-item .row > *:first-child {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
}

.lesson-playlist .step-item .row > *:last-child {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
}

.lesson-playlist .step-img {
    border-radius: var(--radius-s);
    aspect-ratio: 16/9;
    background: var(--ink);
}

.lesson-playlist .step-img::before {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    box-shadow: 0 0 0 2px rgba(14, 31, 63, .25);
}

.lesson-playlist .step-img::after {
    margin: -7px 0 0 -3px;
    border-width: 7px 0 7px 11px;
}

.lesson-playlist .step-title h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: .2rem;
}

.lesson-playlist .step-item p {
    font-size: .88rem;
    color: var(--font-muted);
    margin-bottom: .5rem;
}

.lesson-playlist .step-item .cta {
    width: auto;
    padding: .4rem 1rem;
    font-size: .72rem;
    box-shadow: 0 1px 0 rgba(14, 31, 63, .3);
}

/* Séance en cours, si le module marque la ligne active */
.lesson-playlist .step-item.active,
.lesson-playlist .step-item.current {
    background: var(--paper);
    box-shadow: 0 0 0 1px var(--paper-deep);
}

.lesson-playlist .step-item.active .step-title h3,
.lesson-playlist .step-item.current .step-title h3 {
    color: var(--seal);
}


/* Documents joints */
.step-files {
    padding: 1.5rem 0;
    margin: 1.75rem auto;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.step-files .file-pdf,
.step-files .file-audio {
    padding: .8rem 1rem;
    background: var(--surface-alt);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color .2s ease-in, background .2s ease-in;
}

.step-files .file-pdf:hover,
.step-files .file-audio:hover {
    background: var(--surface);
    border-color: var(--paper-deep);
}

.step-files .file-pdf {
    margin-bottom: .6rem;
}

/* Sceau d'icône fichier */
.step-files .file-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    vertical-align: middle;
}

.step-files .file-text {
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
    margin-left: .85rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    color: var(--ink);
}

.step-files .file-player {
    line-height: 0;
}

.step-files audio {
    height: 40px;
}

.step-text {
    padding-top: 2.25rem;
    font-size: 1.05rem;
}

.step-text h2,
.step-text h3 {
    margin-top: 2rem;
}


/* ====== Espace commentaires ====== */
/*
   Le module Comments n'expose aucune classe : on l'identifie comme le seul
   module backend contenant un <textarea>. Deux façons de l'attraper :
     - .step-comments  : à poser sur la div qui contient le module dans le
       builder. Recommandé — pas de dépendance à :has().
     - [data-backend-component]:has(textarea) : repli automatique, sans rien
       toucher au builder (nécessite Safari 15.4+).
*/

:is(.step-comments, [data-backend-component]:has(textarea)) {
    display: block;
    margin: 2.75rem 0 0 0;
    padding: 1.75rem;
    background: var(--surface-alt);
    border: 1px solid var(--rule);
    border-radius: var(--radius-l);
}

/* Ligne « Ajouter un commentaire à … » : le paragraphe ou le label qui
   précède immédiatement le champ, quelle que soit sa position dans le module. */
:is(.step-comments, [data-backend-component]:has(textarea)) p:has(+ textarea),
:is(.step-comments, [data-backend-component]:has(textarea)) label:has(+ textarea),
:is(.step-comments, [data-backend-component]:has(textarea)) > p:first-child,
:is(.step-comments, [data-backend-component]:has(textarea)) > label:first-child {
    font-family: var(--title-font);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: .9rem;
}

/* Le titre de la page, dans « Ajouter un commentaire à … », en italique.
   Le module l'enveloppe dans un élément en ligne : on couvre les cas
   plausibles plutôt que d'en supposer un seul. */
:is(.step-comments, [data-backend-component]:has(textarea)) p:has(+ textarea) :is(strong, b, em, i, span),
:is(.step-comments, [data-backend-component]:has(textarea)) label:has(+ textarea) :is(strong, b, em, i, span),
:is(.step-comments, [data-backend-component]:has(textarea)) > p:first-child :is(strong, b, em, i, span) {
    font-weight: 700;
    font-style: italic;
}

/* Champ de saisie */
:is(.step-comments, [data-backend-component]) textarea {
    display: block;
    width: 100%;
    min-height: 130px;
    padding: .9rem 1.05rem;
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--font-color);
    background: var(--surface);
    border: 1px solid var(--paper-deep);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-s);
    resize: vertical;
}

:is(.step-comments, [data-backend-component]) textarea::placeholder {
    color: var(--font-muted);
    opacity: .75;
}

:is(.step-comments, [data-backend-component]) textarea:focus {
    outline: none;
    border-color: var(--slate);
    box-shadow: 0 0 0 3px rgba(90, 108, 143, .18);
}

/* Case « Publier en anonyme » */
:is(.step-comments, [data-backend-component]:has(textarea)) input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0 .5rem 0 0;
    accent-color: var(--ink);
    vertical-align: -3px;
    cursor: pointer;
}

:is(.step-comments, [data-backend-component]:has(textarea)) input[type="checkbox"] + label,
:is(.step-comments, [data-backend-component]:has(textarea)) label:has(input[type="checkbox"]) {
    font-size: .92rem;
    color: var(--font-muted);
    cursor: pointer;
}

/* Bouton d'envoi — même bloc d'encre que les autres CTA */
:is(.step-comments, [data-backend-component]:has(textarea)) button,
:is(.step-comments, [data-backend-component]:has(textarea)) input[type="submit"],
:is(.step-comments, [data-backend-component]:has(textarea)) .btn {
    margin-top: 1rem;
    padding: .7rem 1.7rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--body-font);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
    border: 0;
    border-radius: var(--radius-s);
    box-shadow: 0 2px 0 rgba(14, 31, 63, .35);
    cursor: pointer;
    --bs-btn-color: var(--paper);
    --bs-btn-bg: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--paper);
    --bs-btn-hover-bg: var(--seal);
    --bs-btn-hover-border-color: var(--seal);
}

:is(.step-comments, [data-backend-component]:has(textarea)) button:hover,
:is(.step-comments, [data-backend-component]:has(textarea)) input[type="submit"]:hover,
:is(.step-comments, [data-backend-component]:has(textarea)) .btn:hover {
    background: var(--seal);
    box-shadow: 0 2px 0 var(--seal-dark);
    transform: translateY(-1px);
}

:is(.step-comments, [data-backend-component]:has(textarea)) button:disabled,
:is(.step-comments, [data-backend-component]:has(textarea)) .btn:disabled {
    background: var(--slate);
    box-shadow: none;
    opacity: .55;
    transform: none;
    cursor: not-allowed;
}

/* Fil des commentaires publiés (si le module les rend en liste) */
:is(.step-comments, [data-backend-component]:has(textarea)) ul {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

/* Le module sort li.step-comments__item avec son propre padding de 20px et un
   border-bottom gris, via un sélecteur scopé Vue ([data-v-...]) plus
   spécifique que `ul > li`. On reprend la main sur la classe réelle — sans
   inclure l'attribut scopé, qui change à chaque build du module. */
:is(.step-comments, [data-backend-component]:has(textarea)) ul > li,
:is(.step-comments, [data-backend-component]:has(textarea)) li.step-comments__item {
    position: relative;
    margin: 0 0 .75rem 0;
    padding: 1rem 1.15rem;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-radius: var(--radius-m);
}

:is(.step-comments, [data-backend-component]:has(textarea)) ul > li:last-child,
:is(.step-comments, [data-backend-component]:has(textarea)) li.step-comments__item:last-child {
    margin-bottom: 0;
}

:is(.step-comments, [data-backend-component]:has(textarea)) ul > li p:last-child,
:is(.step-comments, [data-backend-component]:has(textarea)) li.step-comments__item p:last-child {
    margin-bottom: 0;
}

/* Métadonnées d'un commentaire : auteur, date */
:is(.step-comments, [data-backend-component]:has(textarea)) ul > li small,
:is(.step-comments, [data-backend-component]:has(textarea)) ul > li time {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--slate);
}


/* ====== FAQ ====== */

.faq-block {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    overflow: hidden;
    margin-bottom: .7rem;
    transition: border-color .2s ease-in;
}

.faq-block.active {
    border-color: var(--paper-deep);
}

.faq-block .question-title {
    display: block;
    position: relative;
    padding: 1rem 3.6rem 1rem 1.15rem;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    font-family: var(--title-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}

.faq-block .question-title:hover {
    background: var(--paper);
}

.faq-block.active .question-title {
    background: var(--paper);
    border-bottom: 1px solid var(--paper-deep);
}

.faq-block .question-title .bi {
    color: var(--slate);
}

/* Sceau du chevron */
.faq-block .question-title .title-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: .9rem;
    transition: transform .25s ease-in, background .2s ease-in, color .2s ease-in;
}

.faq-block .question-title:hover .title-arrow {
    background: var(--seal);
    color: var(--font-white);
}

.faq-block.active .question-title .title-arrow {
    transform: translateY(-50%) rotate(180deg);
    background: var(--ink);
    color: var(--paper);
}

.faq-block .answer {
    display: none;
    border: 0;
    border-radius: 0;
    padding: 1.25rem 1.15rem;
    background: var(--surface);
}

.faq-block .answer p:last-child {
    margin-bottom: 0;
}

.faq-block.block-1 .answer {
    display: block;
}


/* ====== États vides ====== */

.no-content-available {
    padding: 3rem !important;
    background: var(--empty-bg);
    border: 1px dashed var(--empty-rule);
    border-radius: var(--radius-l);
    text-align: center;
}

.no-content-available p {
    margin: 0;
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
    font-size: .9rem;
    letter-spacing: .06em;
    color: var(--font-muted);
}

/* Dans l'espace commentaires, le panneau est déjà gris : le bloc vide passe
   en blanc, sinon les deux gris se confondent et la zone ne se lit plus. */
:is(.step-comments, [data-backend-component]:has(textarea)) .no-content-available {
    background: var(--surface);
}

/* Utilitaire posé par le script : module vide */
.is-empty-hidden {
    display: none !important;
}


/* ====== Page « Accéder au programme » ====== */
/*
   Page statique publique. Tout est scope sous .offer-page pour ne rien
   imposer au site membre. Aucun JavaScript : les accordeons sont des
   <details> natifs.
*/

.offer-page {
    background: var(--surface);
}

.offer-page .section {
    padding: 4rem 0;
}

.offer-page .section-tint {
    background: var(--paper);
    border-top: 1px solid var(--paper-deep);
    border-bottom: 1px solid var(--paper-deep);
}

.offer-page .section-ink {
    background: var(--ink);
    color: var(--paper);
}

.offer-page .section-ink h2,
.offer-page .section-ink h3 {
    color: var(--paper);
}

.offer-page .eyebrow {
    display: block;
    margin-bottom: .6rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--seal);
}

.offer-page .section-ink .eyebrow {
    color: #E8A0A0;
}

/* Le filet d'encre des H2 est un bloc aligne a gauche : il doit suivre
   l'alignement du conteneur quand la section est centree. */
.offer-page .text-center h2::before,
.offer-page .section-ink.text-center h2::before {
    margin-left: auto;
    margin-right: auto;
}

/* Sur fond encre, un CTA navy est invisible : il passe en rouge tampon. */
.offer-page .section-ink .cta {
    background: var(--seal);
    color: var(--font-white);
    box-shadow: 0 2px 0 var(--seal-dark);
}

.offer-page .section-ink .cta:hover {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 2px 0 var(--paper-deep);
}

.offer-page .lead {
    font-size: 1.15rem;
    color: var(--font-muted);
    max-width: 62ch;
}

.offer-page .section-ink .lead {
    color: rgba(248, 241, 223, .82);
}

/* --- En-tête --- */
.offer-hero {
    padding: 3.5rem 0 4rem;
    background:
        radial-gradient(60% 50% at 10% 0%, rgba(158, 43, 37, .07), transparent 62%),
        radial-gradient(55% 45% at 95% 12%, rgba(90, 108, 143, .12), transparent 62%),
        var(--paper);
    border-bottom: 1px solid var(--paper-deep);
}

.offer-hero h1 {
    font-size: 2.6rem;
}

/* Visuel du hero : PNG detoure, donc ni ombre ni coins arrondis */
.offer-hero-visual img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
}

/* Liste de bénéfices à coches */
.offer-list {
    list-style: none;
    margin: 0 0 1.75rem 0;
    padding: 0;
}

.offer-list li {
    position: relative;
    padding: .7rem 0 .7rem 2.1rem;
    border-bottom: 1px solid var(--paper-deep);
    font-size: 1rem;
}

.offer-list li:last-child {
    border-bottom: 0;
}

.offer-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(158, 43, 37, .1);
    color: var(--seal);
    font-size: .7rem;
    line-height: 1;
}

.offer-page .section-ink .offer-list li {
    border-bottom-color: rgba(248, 241, 223, .18);
}

.offer-page .section-ink .offer-list li::before {
    background: rgba(248, 241, 223, .14);
    color: #E8A0A0;
}

/* Carte auteur */
.offer-author {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    max-width: 780px;
    margin: 2rem 0 0;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-m);
    color: var(--font-color);
}

.offer-author img {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ink);
}

.offer-author p {
    margin: 0;
    font-size: .96rem;
    line-height: 1.6;
}

/* --- Les trois blocs d'offre --- */
.offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 2.5rem;
}

@media screen and (min-width: 992px) {
    .offer-grid {
        grid-template-columns: .85fr 1fr 1fr;
    }
}

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 1.6rem 1.6rem;
    background: var(--surface);
    border-radius: var(--radius-l);
    box-shadow: 0 0 0 1px var(--rule), var(--shadow-s);
}

.offer-card-featured {
    box-shadow: 0 0 0 2px var(--seal), var(--shadow-m);
}

/* Le bloc repère « à l'unité » : volontairement atone */
.offer-card-decoy {
    background: var(--empty-bg);
    box-shadow: 0 0 0 1px var(--empty-rule);
}

.offer-card-decoy .offer-price,
.offer-card-decoy .offer-name {
    color: var(--slate);
}

.offer-ribbon {
    position: absolute;
    top: -.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .35rem 1.1rem;
    background: var(--seal);
    color: var(--font-white);
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.offer-ribbon-quiet {
    background: var(--slate);
}

.offer-name {
    font-family: var(--title-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .15rem;
}

.offer-tag {
    font-size: .9rem;
    color: var(--font-muted);
    margin-bottom: 1.1rem;
}

.offer-price {
    font-family: var(--body-font);
    font-weight: 800;
    font-size: 2.7rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-feature-settings: "lnum" 1;
}

.offer-price .per {
    font-size: .38em;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--font-muted);
    margin-left: .3rem;
}

.offer-was {
    display: block;
    margin-top: .35rem;
    font-size: .92rem;
    color: var(--font-muted);
}

.offer-was s {
    text-decoration-color: var(--seal);
    text-decoration-thickness: 2px;
}

/* Le coût par vidéo : c'est la comparaison qui porte la démonstration */
.offer-pervideo {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    margin: 1.15rem 0;
    padding: .85rem 1rem;
    background: var(--paper);
    border-radius: var(--radius-m);
}

.offer-card-decoy .offer-pervideo {
    background: rgba(90, 108, 143, .1);
}

.offer-card-featured .offer-pervideo {
    background: rgba(158, 43, 37, .08);
}

.offer-pervideo-num {
    font-family: var(--body-font);
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--ink);
    font-feature-settings: "lnum" 1;
}

.offer-card-featured .offer-pervideo-num {
    color: var(--seal);
}

.offer-pervideo-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--font-muted);
}

.offer-save {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .3rem .8rem;
    background: rgba(158, 43, 37, .1);
    color: var(--seal);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.offer-card ul {
    list-style: none;
    margin: 0 0 1.4rem 0;
    padding: 0;
    font-size: .95rem;
}

.offer-card ul li {
    position: relative;
    padding: .5rem 0 .5rem 1.6rem;
    border-bottom: 1px solid var(--rule);
}

.offer-card ul li:last-child {
    border-bottom: 0;
}

.offer-card ul li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .55rem;
    color: var(--seal);
    font-size: .8rem;
}

.offer-card-decoy ul li::before {
    content: "\F62A";
    color: var(--slate);
}

/* Emplacement du bouton order-page, pose a la main dans le builder */
.offer-cta-slot {
    margin-top: auto;
}

.offer-cta-slot .cta,
.offer-cta-slot .btn-order-page-button {
    display: block;
    width: 100%;
    text-align: center;
}

.offer-foot {
    margin: .75rem 0 0 0;
    font-size: .78rem;
    color: var(--font-muted);
    text-align: center;
}

/* Dans le hero, la mention suit le bouton, aligne a gauche. Passe par la
   feuille de style et non par un style inline : GrapesJS ne conserve pas
   les styles inline a l'import. */
.offer-hero .offer-foot {
    text-align: left;
}

.offer-unavailable {
    margin: auto 0 0 0;
    padding: .8rem 0 0 0;
    font-size: .82rem;
    font-style: italic;
    color: var(--slate);
    text-align: center;
}

.offer-legal {
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: .8rem;
    line-height: 1.6;
    color: var(--font-muted);
}

.offer-legal p {
    margin-bottom: .5rem;
}

/* --- Accordéons natifs (conditions, FAQ) --- */
.offer-details {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    margin-bottom: .7rem;
    overflow: hidden;
}

.offer-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--title-font);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
}

.offer-details > summary::-webkit-details-marker {
    display: none;
}

.offer-details > summary::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: .8rem;
    transition: transform .22s ease-in, background .2s ease-in, color .2s ease-in;
}

.offer-details > summary:hover::after {
    background: var(--seal);
    color: var(--font-white);
}

.offer-details[open] > summary {
    background: var(--paper);
    border-bottom: 1px solid var(--paper-deep);
}

.offer-details[open] > summary::after {
    transform: rotate(180deg);
    background: var(--ink);
    color: var(--paper);
}

.offer-details .offer-details-body {
    padding: 1.25rem 1.15rem;
    font-size: .96rem;
}

.offer-details .offer-details-body p:last-child {
    margin-bottom: 0;
}

/* Variante sur fond encre (bloc conditions) */
.section-ink .offer-details {
    background: rgba(248, 241, 223, .07);
    border-color: rgba(248, 241, 223, .18);
}

.section-ink .offer-details > summary {
    color: var(--paper);
    font-size: .98rem;
}

.section-ink .offer-details > summary::after {
    background: rgba(248, 241, 223, .14);
    color: var(--paper);
}

.section-ink .offer-details[open] > summary {
    background: rgba(248, 241, 223, .1);
    border-bottom-color: rgba(248, 241, 223, .18);
}

.section-ink .offer-details .offer-details-body {
    color: rgba(248, 241, 223, .88);
}

.section-ink .offer-details .offer-details-body a {
    color: #E8A0A0;
    text-decoration: underline;
}

/* --- Avis Trustpilot --- */
.offer-trust {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-l);
    box-shadow: 0 0 0 1px var(--rule), var(--shadow-s);
}

@media screen and (max-width: 767px) {
    .offer-trust {
        padding: .75rem;
    }
}


/* --- Garanties --- */
.offer-guarantee {
    height: 100%;
    padding: 1.9rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-m);
    box-shadow: 0 0 0 1px var(--rule), var(--shadow-s);
    text-align: center;
}

.offer-guarantee-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.3rem;
}

.offer-guarantee h3 {
    font-size: .92rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .6rem;
}

.offer-guarantee p {
    font-size: .94rem;
    color: var(--font-muted);
    margin: 0;
}

@media screen and (max-width: 767px) {

    .offer-hero {
        padding: 2.5rem 0 3rem;
    }

    .offer-hero h1 {
        font-size: 1.95rem;
    }

    .offer-page .section {
        padding: 3rem 0;
    }

    .offer-price {
        font-size: 2.3rem;
    }

    .offer-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ====== Footer ====== */

.footer-menu {
    padding: 1.5rem 0;
    background: var(--paper);
    border-top: 1px solid var(--paper-deep);
}

.footer-menu-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.75rem;
}

.footer-menu-wrap a {
    color: var(--ink);
    opacity: .7;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.footer-menu-wrap a:hover {
    opacity: 1;
    color: var(--seal);
    text-decoration: none !important;
}

.footer-info {
    color: var(--font-white);
    padding: 2.5rem 0;
    background: var(--ink-deep);
    text-align: center;
}

.footer-info .copyright {
    margin-bottom: 1.25rem;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .9;
}

.footer-info .disclaimer {
    max-width: 78ch;
    margin: 0 auto;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.6;
    opacity: .68;
}

.footer-info .disclaimer p {
    margin-bottom: 0;
}

.footer-info a {
    color: var(--paper);
    text-decoration: underline;
}

.footer-info a:hover {
    color: var(--font-white);
}


/* ====== Responsive ====== */

@media screen and (max-width: 1199px) {

    .header {
        z-index: 9999;
    }

    .header .branding {
        z-index: 999;
        width: 150px;
    }

    .header .menu-toggle {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: all ease-in .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(--ink);
        content: '';
        display: block;
        height: 3px;
        border-radius: 2px;
        transition: all ease-in .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(--seal) !important;
        margin-top: 10px;
        transform: rotate(45deg);
    }

    .header .menu-toggle.active span:after {
        background-color: var(--seal) !important;
        margin-top: 10px !important;
        transform: rotate(-45deg);
    }

    .header .main-menu {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: row;
        padding-top: 5.5rem;
        position: fixed;
        right: calc(-100%);
        top: 0;
        width: 100%;
        min-height: 100%;
        margin: 0;
        text-align: left;
        background: var(--paper);
        transition: right ease-in-out .4s;
        z-index: -1;
    }

    .header .main-menu.active {
        right: 0;
    }

    .header .menu ul {
        width: 100%;
        padding: 1.5rem 0 0 0;
        border-top: 1px solid var(--paper-deep);
    }

    .header .menu ul li {
        display: block;
        padding: 1.15rem 1.5rem !important;
        text-align: center;
    }

    .header .menu ul li a {
        font-size: 1rem;
    }

    /* « Se connecter » (module backendlogin) : même taille que les autres
       entrées du menu mobile. Le libellé est en ::after avec sa propre
       taille desktop (.78rem), il faut donc le reprendre aussi. */
    .header .menu ul li backendlogin,
    .header .menu ul li backendlogin:after {
        font-size: 1rem;
    }

    .header .menu ul li a:after {
        display: none;
    }

    .header .menu ul li.menu-cta {
        padding-top: 1.75rem !important;
    }

    .header .menu ul li.menu-cta a {
        display: inline-block;
        padding: .8rem 1.6rem;
        font-size: .82rem;
    }

    /* on dégage la place du burger sur le conteneur, pas sur le widget */
    .header .menu {
        padding-right: 3rem;
    }
}

@media screen and (max-width: 767px) {

    html {
        font-size: 16px;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.45rem;
    }

    .author-display,
    .info-band {
        padding: 2rem 0;
        text-align: center;
    }

    .author-display .author-img,
    .author-intro .author-img {
        width: 210px;
        margin-bottom: 1.5rem;
    }

    .cat-img {
        margin-bottom: 1.5rem;
    }

    .step-description,
    .footer-info .disclaimer {
        max-width: none;
    }

    /* Le tampon encombre en petite largeur */
    .join-cta::before,
    .upgrade-cta::before {
        display: none;
    }

    .join-cta,
    .upgrade-cta {
        padding: 1.75rem 1.15rem;
    }

    .join-cta .cta,
    .upgrade-cta .cta {
        width: 100%;
        padding: .9rem 1rem;
    }

    .step-files .file-pdf,
    .step-files .file-audio {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-files .file-text {
        margin-left: .6rem;
    }

    .step-files .file-player,
    .step-files audio {
        width: 100%;
    }

    /* Le module impose un min-width de 800px à la boîte de dialogue :
       sur mobile elle déborde de l'écran. On rend la main à Bootstrap. */
    .modal-dialog {
        min-width: auto !important;
    }
}


/* ====== Accessibilité — mouvement réduit ====== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .cat-item .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,
    .cta:hover {
        transform: none;
    }
}