@charset "UTF-8";
/*
=========================================================
====== Au cœur du sens (ODL-ACS) – style backend ========
====== Charte : Cormorant Garamond / Raleway, #A80E53 ====
=========================================================
*/
/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");
/* Google Font Body */
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300..700;1,300..700&display=swap");
/* Google Font Titles */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");
/* Variables */
:root {
  --primary-color: #A80E53;
  --secondary-color: #7A0A3C;
  --tertiary-color: #575151;
  --light-grey: #F4F1ED;
  --cream: #FAF9F7;
  --line-color: #E7E3DE;
  --font-color: #0D0D0D;
  --font-white: #ffffff;
  --body-font: "Raleway", Arial, sans-serif;
  --title-font: "Cormorant Garamond", Georgia, serif;
  --footer-menu-background: #575151;
  --footer-info-background: #0D0D0D;
}

/* ====== Global Styles ====== */
html, body {
  font-family: var(--body-font);
  color: var(--font-color);
  background: var(--cream);
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

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

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

h1 {
  font-family: var(--title-font);
  color: var(--font-color);
  font-size: 2.6rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.15;
}

h2 {
  font-family: var(--title-font);
  color: var(--primary-color);
  font-size: 1.9rem;
  font-weight: 600;
  font-style: normal;
}

h3 {
  font-family: var(--title-font);
  color: var(--font-color);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: normal;
}

h4 {
  font-family: var(--title-font);
  color: var(--tertiary-color);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
}

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

/* Transitions */
a, button {
  -webkit-transition: all ease-in 0.2s;
  -ms-transition: all ease-in 0.2s;
  -o-transition: all ease-in 0.2s;
  transition: all ease-in 0.2s;
}

/* ====== Header ====== */
.header-wrap {
  background: var(--font-white);
  border-bottom: 1px solid var(--line-color);
}

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

.header .branding {
  display: block;
  width: 260px;
}

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

.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(--font-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  position: relative;
  text-transform: uppercase;
}

.header .menu ul li a:hover {
  color: var(--primary-color);
}

.header .menu ul li a:after {
  display: block;
  position: absolute;
  content: "";
  width: 0;
  height: 2px;
  left: 0;
  top: calc(100% + 1rem);
  background: var(--primary-color);
  -webkit-transition: all ease-in 0.2s;
  -ms-transition: all ease-in 0.2s;
  -o-transition: all ease-in 0.2s;
  transition: all ease-in 0.2s;
}

.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(--primary-color);
}

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

/* Bandeau du programme */
.acs-banner {
  background: var(--cream) url("https://totale-sante-cdn.pubfac.io/uploads/ACS/acs-bandeau-site.jpg") center center/cover no-repeat;
  aspect-ratio: 1920/600;
  max-height: 340px;
  width: 100%;
}

/* ====== Contents ====== */
/* Components */
.cta {
  display: inline-block;
  margin: 0;
  padding: 0.65rem 2rem;
  background: var(--primary-color);
  color: var(--font-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  font-weight: 500;
}

.cta:hover {
  color: var(--font-white);
  text-decoration: none;
  background: var(--secondary-color);
}

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

.author-display {
  background: var(--font-white);
  border: 1px solid var(--line-color);
  margin: 2rem 0;
  padding: 1.5rem;
}

.author-display .author-img,
.cat-img {
  display: block;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  aspect-ratio: 1/1;
}

.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 0;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
  text-align: center;
}

.sub-categories {
  margin: 2rem auto;
  padding: 2rem 0 0 0;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.sub-categories .cat-item,
.steps-grid .step-item,
.authors-grid .author-item {
  margin-bottom: 2rem;
}

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

.steps-list .step-img,
.authors-list .author-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 {
  -webkit-transition: all ease-in 0.3s;
  -ms-transition: all ease-in 0.3s;
  -o-transition: all ease-in 0.3s;
  transition: all ease-in 0.3s;
  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 {
  transform: scale(1.05);
}

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

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

.sub-categories .cat-item .cta,
.steps-grid .step-item .cta,
.authors-grid .author-item .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(--font-white);
  border: 1px solid var(--line-color);
  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: 2px solid var(--primary-color);
  border-radius: 50%;
  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-style: italic;
  font-weight: bold;
}

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

.step-files {
  padding: 1rem 0;
  margin: 1rem auto;
  border-top: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.step-files .file-pdf,
.step-files .file-audio {
  padding: 0.75rem;
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.step-files .file-text {
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75rem;
  line-height: 1;
}

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

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

.faq-block {
  border-top: 1px solid var(--line-color);
  border-right: 1px solid var(--line-color);
  border-left: 1px solid var(--line-color);
  -webkit-border-radius: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--font-white);
}

.faq-block .question-title {
  display: block;
  font-weight: 500;
  background-color: var(--light-grey);
  border-bottom: 1px solid var(--line-color);
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
  cursor: pointer;
  padding: 15px 20px;
  position: relative;
}

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

.faq-block .question-title .title-arrow {
  color: var(--primary-color);
  display: block;
  position: absolute;
  right: 20px;
  top: 15px;
  transition: all ease-in 0.2s;
  -webkit-transition: all ease-in 0.2s;
  -ms-transition: all ease-in 0.2s;
  -o-transition: all ease-in 0.2s;
}

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

.faq-block .answer {
  display: none;
  border-bottom: 1px solid var(--line-color);
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
  padding: 20px;
}

.faq-block.block-1 .answer {
  display: block;
}

.no-content-available {
  padding: 3rem !important;
  background-color: var(--font-white);
  border: 1px solid var(--line-color);
  text-align: center;
  border-radius: 3px;
}

.no-content-available p {
  font-weight: 400;
  margin: 0;
  font-style: italic;
  text-transform: uppercase;
  color: var(--tertiary-color);
}

/* ====== Footer ====== */
.footer-menu {
  padding: 1.5rem 0;
  background: var(--footer-menu-background);
}

.footer-menu-wrap {
  display: flex;
  justify-content: space-between;
}

.footer-menu-wrap a {
  color: var(--font-white);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.footer-menu-wrap a:hover {
  opacity: 1;
  text-decoration: none !important;
}

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

.footer-info .copyright {
  margin-bottom: 1.5rem;
}

.footer-info .disclaimer {
  font-weight: 300;
  opacity: 0.85;
}

/* ====== Responsive ====== */
@media screen and (max-width: 1024px) {
  .header {
    z-index: 9999;
  }
  .header .branding {
    z-index: 999;
    width: 200px;
  }
  .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(--primary-color);
    content: "";
    display: block;
    height: 3px;
    transition: all ease-in 0.2s;
    -webkit-transition: all ease-in 0.2s;
    -ms-transition: all ease-in 0.2s;
    -o-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(--secondary-color) !important;
    margin-top: 10px;
    transform: rotate(45deg);
  }
  .header .menu-toggle.active span:after {
    background-color: var(--secondary-color) !important;
    margin-top: 10px !important;
    transform: rotate(-45deg);
  }
  .header .main-menu {
    display: block;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    flex-direction: row;
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    min-height: 100%;
    padding: 0;
    margin: 0;
    text-align: left;
    background: rgba(250, 249, 247, 0.98);
    transition: all ease-in 0.5s;
    -webkit-transition: all ease-in 0.5s;
    -ms-transition: all ease-in 0.5s;
    -o-transition: all ease-in 0.5s;
    z-index: -1;
  }
  .header .main-menu.active {
    right: 0;
  }
  .header .menu ul {
    padding: 2rem 0;
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
  }
  .header .menu ul li {
    display: block;
    padding: 1.5rem !important;
  }
  h1 {
    font-size: 2rem;
  }
}
/* ====== Ajouts repris du site REL (menu conditionnel, connexion, scripts) ====== */
.header-wrap.is-scrolled {
  box-shadow: 0 3px 14px -8px rgba(13, 13, 13, 0.35);
}

.header .search-block {
  flex: 0 1 auto;
  min-width: 0;
}

.bcb-visible.menu-logged-out {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  min-width: 0;
}

/* Page active : le body porte le slug de la page */
.mes-preferences .header .menu ul li.preferences a:after,
.mes-cadeaux .header .menu ul li.gifts a:after,
.michel-odoul .header .menu ul li.authors a:after {
  width: 85%;
}

/* Connexion (module backendlogin) */
.discoverylogin-modal {
  z-index: 999999999999;
}

.discoverylogin-modal h3 {
  color: var(--font-color);
}

.discoverylogin-modal h3 span,
.discoverylogin-modal .bi {
  color: var(--primary-color);
}

.header .menu ul li backendlogin {
  display: block;
  font-size: 0.9rem;
  line-height: initial;
  color: var(--font-color);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.12em;
  position: relative;
  cursor: pointer;
}

.header .menu ul li backendlogin .bi {
  color: var(--primary-color);
}

.header .menu ul li backendlogin:after {
  content: " Se connecter";
}

.header .menu ul li backendlogin:hover {
  color: var(--primary-color);
}

.discovery-login-cta [data-discoverylogin-trigger]::after,
.acs-login backendlogin [data-discoverylogin-trigger]::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Bouton de connexion de la page d'accueil */
.acs-login {
  text-align: center;
}

.acs-login backendlogin {
  display: inline-block;
  position: relative;
  padding: 0.65rem 2rem;
  background: var(--primary-color);
  color: var(--font-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 3px;
  font-weight: 500;
  cursor: pointer;
}

.acs-login backendlogin:after {
  content: " Accéder à mes vidéos";
}

.acs-login backendlogin:hover {
  background: var(--secondary-color);
}

/* Utilitaire posé par le script : module vide */
.is-empty-hidden {
  display: none !important;
}

/* Page Problèmes techniques (accordéons natifs) */
.tech-hero {
  background: var(--light-grey);
  border-bottom: 1px solid var(--line-color);
}

.tech-hero-inner {
  padding: 4rem 0;
  text-align: center;
}

.tech-eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.tech-lead {
  font-size: 1.1rem;
  color: var(--tertiary-color);
  margin: 0;
}

.tech-faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.tech-item {
  border: 1px solid var(--line-color);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--font-white);
}

.tech-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--title-font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--font-color);
  line-height: 1.35;
}

.tech-item > summary::-webkit-details-marker {
  display: none;
}

.tech-item > summary::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--light-grey);
  color: var(--primary-color);
  font-size: 0.85rem;
  transition: transform 0.25s ease-in;
}

.tech-item[open] > summary {
  background: var(--light-grey);
  border-bottom: 1px solid var(--line-color);
}

.tech-item[open] > summary::after {
  transform: rotate(180deg);
  background: var(--primary-color);
  color: var(--font-white);
}

.tech-answer {
  padding: 1.4rem;
  line-height: 1.7;
}

.tech-answer p:last-child {
  margin-bottom: 0;
}

.tech-answer code {
  background: var(--light-grey);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
}

@media screen and (max-width: 1024px) {
  .header .menu ul li backendlogin {
    font-size: 1rem;
  }
}
@media screen and (max-width: 767px) {
  .tech-hero-inner {
    padding: 2.75rem 0;
  }
  .tech-faq {
    padding: 2.75rem 0 3.5rem;
  }
  .tech-item > summary {
    font-size: 1.15rem;
  }
}
/* ====== Correctifs mobile (30/11) : débordement horizontal + pied de page ====== */
html, body {
  overflow-x: clip;
}

@media screen and (max-width: 991px) {
  .footer-menu-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    text-align: center;
  }
}
@media screen and (max-width: 575px) {
  .footer-menu-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }
  .footer-info {
    text-align: center;
  }
}
/* ====== Listes et grilles de vidéos (30/11) : pastilles, boutons, colonnes tablette ====== */
.step-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.5rem 0;
}

.step-cats .cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: var(--light-grey);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--tertiary-color);
}

.step-cats .cat-tag[class*=cat-etape] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--font-white);
}

.step-item .cta {
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  .steps-list .step-item .row > .col-sm-3:first-child {
    flex: 0 0 35%;
    max-width: 35%;
  }
  .steps-list .step-item .row > .col-sm-6 {
    flex: 0 0 65%;
    max-width: 65%;
  }
  .steps-list .step-item .row > .col-sm-3:last-child {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 1rem;
  }
  .steps-grid .row > .step-item.col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media screen and (max-width: 575px) {
  .steps-list .step-item .row > [class*=col-sm-] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .steps-list .step-item .step-img {
    margin-bottom: 1rem;
  }
  .steps-grid .row > .step-item.col-sm-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* ====== Refonte visuelle (30/11) : style des pages d'acquisition « Au cœur du sens » ====== */
:root {
  --papier: #FAF9F7;
  --brume: #D7D6D4;
  --texte: #262626;
  --bord-h: #870B43;
  --footer-menu-background: #0D0D0D;
  --footer-info-background: #0D0D0D;
}

body {
  color: var(--texte);
  background: var(--papier);
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  color: var(--font-color);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
}

/* Boutons */
.cta,
.acs-login backendlogin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--primary-color);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.cta:hover {
  background: var(--bord-h);
  border-color: var(--bord-h);
}

.cta[disabled],
button.cta:disabled {
  background: transparent;
  border-color: var(--brume);
  color: var(--tertiary-color);
  opacity: 1;
  cursor: default;
}

/* En-tête */
.header .menu ul li a,
.header .menu ul li backendlogin {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Fil d'Ariane */
.breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item a {
  color: var(--tertiary-color);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

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

/* Encadré « aucun contenu » */
.no-content-available {
  padding: 2.5rem 1.5rem !important;
  border: 1px dashed var(--brume);
  border-radius: 18px;
  background: var(--font-white);
}

.no-content-available p {
  font-family: var(--title-font);
  font-size: 1.35rem;
  font-weight: 500;
  font-style: italic;
  text-transform: none;
  color: var(--tertiary-color);
}

/* ---- Pages d'étape (catégories) ---- */
#ifkzi.bg-light {
  background: transparent !important;
}

#ifkzi {
  margin: 0 !important;
  padding: 0 0 1rem !important;
}

#ifkzi > .container > .row {
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--brume);
  border-radius: 24px;
  background: var(--font-white);
}

.cat-img,
.author-display .author-img {
  width: 100%;
  border: 0;
  border-radius: 16px;
  aspect-ratio: 16/10;
}

.cat-info h1,
.category-name {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.category-short-description p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tertiary-color);
}

/* Sous-rubriques */
.children-list {
  display: grid;
  gap: 14px;
  margin: 1.5rem 0 0;
}

.category-item {
  padding: 14px 18px;
  border: 1px solid var(--brume);
  border-radius: 18px;
  background: var(--font-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.category-item:not(.disabled):hover {
  border-color: var(--primary-color);
  box-shadow: 0 18px 36px -28px rgba(13, 13, 13, 0.45);
}

.category-item .category-img {
  overflow: hidden;
  border-radius: 12px;
}

.category-item .category-title h3 {
  margin: 0;
  font-size: 1.6rem;
}

.category-item .category-long-name p:empty {
  display: none;
}

.category-item .category-link {
  text-align: right;
}

.category-item.disabled {
  opacity: 1;
  pointer-events: none;
  background: var(--papier);
}

.category-item.disabled .category-img img {
  filter: grayscale(1);
  opacity: 0.55;
}

.category-item.disabled .category-title h3 {
  color: var(--tertiary-color);
}

.category-item.disabled .category-link .cta {
  font-size: 0;
}

.category-item.disabled .category-link .cta::after {
  content: "Bientôt disponible";
  font-size: 0.88rem;
}

/* Rubrique sans vidéo directe : on masque le titre et l'encadré vide */
#ijt0:has(.category-item) #ih6q:has(+ #ize73 .no-content-available),
#ijt0:has(.category-item) #ize73:has(.no-content-available) {
  display: none;
}

/* ---- Listes et grilles de vidéos ---- */
.steps-list .step-item,
.authors-list .author-item {
  padding: 14px 18px;
  border: 1px solid var(--brume);
  border-radius: 18px;
  background: var(--font-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.steps-list .step-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 18px 36px -28px rgba(13, 13, 13, 0.45);
}

.steps-list .step-img,
.steps-grid .step-img {
  border-radius: 12px;
}

.steps-list .step-title h3,
.steps-grid .step-title h3 {
  margin: 0 0 0.25rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

.step-long-name p:empty {
  display: none;
}

.steps-grid .step-item {
  display: flex;
  flex-direction: column;
}

.steps-grid .step-item .step-listing-description {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.steps-grid .step-item .step-link {
  margin-top: auto;
}

/* ---- Page vidéo ---- */
.step-intro .step-title h1,
.step-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.step-description p {
  margin: 0;
  font-family: var(--title-font);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--tertiary-color);
}

.step-long-name:empty,
.step-long-name p:empty {
  display: none;
}

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

.step-video .vidyard-player-container,
.step-video iframe,
.step-video > div > div:first-child {
  overflow: hidden;
  border-radius: 18px;
}

.step-video iframe {
  box-shadow: 0 30px 60px -40px rgba(13, 13, 13, 0.55);
}

.step-files {
  border: 0;
}

.step-files .file-pdf,
.step-files .file-audio {
  padding: 14px 18px;
  border: 1px solid var(--brume);
  border-radius: 14px;
  background: var(--font-white);
}

.step-text {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
}

#ip947 {
  margin-top: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--brume);
}

/* ---- FAQ ---- */
.faq-block {
  margin-bottom: 12px;
  border: 1px solid var(--brume);
  border-radius: 16px;
}

.faq-block .question-title {
  padding: 18px 56px 18px 22px;
  border-bottom: 0;
  border-radius: 0;
  background: var(--font-white);
  font-family: var(--title-font);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.3;
}

.faq-block .question-title .title-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.faq-block.active .question-title {
  background: var(--light-grey);
}

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

.faq-block .answer {
  border-top: 1px solid var(--brume);
  border-bottom: 0;
  padding: 18px 22px 20px;
  line-height: 1.7;
}

/* ---- Pied de page ---- */
.footer-menu {
  border-bottom: 1px solid rgba(250, 249, 247, 0.12);
}

.footer-menu-wrap a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(250, 249, 247, 0.72);
  opacity: 1;
}

.footer-menu-wrap a:hover {
  color: var(--font-white);
}

.footer-info {
  color: rgba(250, 249, 247, 0.72);
  font-size: 0.9rem;
}

.footer-info em {
  color: var(--font-white);
}

/* Grille "Autres vidéos" (pages vidéo) */
.steps-grid .row {
  justify-content: flex-start !important;
  align-items: stretch !important;
}

.steps-grid .step-item {
  padding: 14px 14px 18px;
  border: 8px solid var(--papier);
  border-radius: 26px;
  background: var(--font-white);
  box-shadow: inset 0 0 0 1px var(--brume);
  transition: box-shadow 0.2s;
}

.steps-grid .step-item:hover {
  box-shadow: inset 0 0 0 1px var(--primary-color), 0 18px 36px -28px rgba(13, 13, 13, 0.45);
}

.steps-grid .step-img {
  overflow: hidden;
  margin-bottom: 10px;
}

.steps-grid .step-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.steps-grid .step-title h3 {
  font-size: 1.4rem;
}

/* FAQ en cartes */
body.faq #i1e5 {
  max-width: 860px;
}

body.faq #irnx {
  margin-bottom: 2rem !important;
  text-align: center;
}

body.faq #irnx h1::after {
  content: "Tout ce qu’il faut savoir pour profiter de votre programme.";
  display: block;
  margin-top: 0.75rem;
  font-family: var(--body-font, Raleway), sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tertiary-color);
}

body.faq [id^=iacsf] {
  margin: 0 0 14px !important;
  padding: 22px 26px !important;
  border: 1px solid var(--brume);
  border-radius: 18px;
  background: var(--font-white);
}

body.faq [id^=iacsf] h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
}

body.faq [id^=iacsf] p {
  margin: 0;
  line-height: 1.7;
  color: var(--texte);
}

body.faq #iacsf5 {
  margin-top: 28px !important;
  background: var(--papier);
  border-style: dashed;
  text-align: center;
}

body.faq #iacsf5 a {
  font-weight: 600;
  color: var(--primary-color);
}

/* Mobile : rubriques et listes */
@media (max-width: 767px) {
  #ifkzi .category-name, #ifkzi .cat-info h1 {
    margin-top: 18px;
  }
  .category-item {
    padding: 12px 14px 16px;
  }
  .category-item .category-title h3 {
    margin-top: 12px;
    font-size: 1.45rem;
  }
  .category-item .category-link {
    text-align: left;
    margin-top: 10px;
  }
  .steps-list .step-item .cta, .category-item .cta {
    width: 100%;
  }
}
/* ====== Pages d'étape, v2 (30/11) : en-tête sans vignette, parties numérotées ====== */
#ifkzi > .container > .row {
  display: block;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
  background: var(--font-white);
}

#ifkzi #intra {
  display: none;
}

#ifkzi #i87rv {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

#ifkzi .category-name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.02;
}

#ifkzi #i1q9t {
  margin-bottom: 1rem !important;
}

#ifkzi #i691u:empty, #ifkzi #i691u:has(> :only-child:empty) {
  display: none;
}

#ifkzi .category-short-description p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
}

#idwgi:has(.category-item)::before {
  content: "Au programme";
  display: block;
  margin: 2.5rem 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tertiary-color);
}

.children-list {
  counter-reset: acspart;
  gap: 12px;
  margin-top: 0;
}

.category-item {
  counter-increment: acspart;
  padding: 20px 24px;
}

.category-item .row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0;
}

.category-item .row > [class*=col-] {
  width: auto;
  max-width: none;
  padding: 0;
  flex: none;
}

.category-item .row > .col-sm-3:first-child {
  display: none;
}

.category-item .row::before {
  content: counter(acspart, decimal-leading-zero);
  font-family: var(--title-font);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary-color);
  opacity: 0.35;
  min-width: 2.2ch;
}

.category-item .category-title h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.15;
}

.category-item .category-long-name:has(p:empty) {
  display: none;
}

.category-item .cta {
  white-space: nowrap;
}

.category-item.disabled .row::before {
  color: var(--tertiary-color);
}

.category-item.disabled .category-title h3::after {
  content: "Se débloque au fil de votre abonnement";
  display: block;
  margin-top: 6px;
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tertiary-color);
}

/* Étape avec parties : la liste des vidéos est dans chaque partie, on ne la répète pas */
#ijt0:has(.category-item) #ih6q, #ijt0:has(.category-item) #ize73 {
  display: none !important;
}

/* Pastilles inutiles sur la page de la rubrique elle-même */
body.category .steps-list .step-cats {
  display: none;
}

@media (max-width: 767px) {
  .category-item {
    padding: 16px 18px;
  }
  .category-item .row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 16px;
  }
  .category-item .row::before {
    font-size: 2rem;
  }
  .category-item .category-title h3 {
    margin-top: 0;
  }
  .category-item .row > .col-sm-3:last-child {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .category-item .cta {
    width: 100%;
  }
}
/* ====== Menu mobile (30/11) : liste propre sous le logo, recherche en haut ====== */
@media screen and (max-width: 1024px) {
  .header .main-menu {
    align-items: flex-start;
    padding: 104px 24px 40px;
    background: var(--papier);
    overflow-y: auto;
  }
  .header .main-menu > .backend-conditional-block {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .header .main-menu .bcb-visible {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .header .main-menu .bcb-visible.menu-logged-out .search-block {
    order: -1;
    display: block !important;
    margin: 0 0 18px !important;
  }
  .header .main-menu .search-block .btn-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid var(--brume);
    border-radius: 999px;
    background: var(--font-white);
    color: var(--tertiary-color);
    font-size: 0.95rem;
    text-align: left;
  }
  .header .main-menu .search-block .btn-search::after {
    content: "Rechercher une vidéo";
  }
  .header .menu ul {
    padding: 0;
    margin: 0;
    border: 0;
  }
  .header .menu ul li {
    display: block;
    padding: 0 !important;
    border-bottom: 1px solid var(--brume);
  }
  .header .menu ul li:first-child {
    border-top: 1px solid var(--brume);
  }
  .header .menu ul li a, .header .menu ul li backendlogin {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 6px;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
  }
  .header .menu ul li a:after {
    display: none;
  }
  .header .menu ul li a .bi, .header .menu ul li backendlogin .bi {
    font-size: 1.15rem;
  }
  .header .main-menu:has(.modal.show) {
    z-index: 1000;
  }
  .header .main-menu:has(.modal.show) > .backend-conditional-block ul {
    visibility: hidden;
  }
  .header .main-menu:has(.modal.show) .search-block .btn-search {
    visibility: hidden;
  }
}
/* ====== Correctifs (30/11, revue) ====== */
/* Rubrique dont les vidéos ne sont pas encore ouvertes */
body.category .no-content-available p {
  font-size: 0;
}

body.category .no-content-available p::before {
  content: "Ces vidéos se débloquent au fil de votre abonnement";
  display: block;
  font-size: 1.35rem;
}

body.category .no-content-available p::after {
  content: "Nous vous prévenons par email dès qu’une nouvelle vidéo est disponible.";
  display: block;
  margin-top: 0.5rem;
  font-family: var(--body-font);
  font-style: normal;
  font-size: 0.95rem;
}

/* Bloc « Autres vidéos » vide (page cadeau, vidéo seule dans sa rubrique) */
#ip947:not(:has(.step-item)) {
  display: none;
}

/* Espace entre l'icône et le texte des boutons */
.cta .bi {
  margin-right: 6px;
}