/* Bulles de Savoir - Pages modules (articles de la catégorie Modules) */
/* ===== Pages modules (Elementor) ===== */
.vert{--m:#8ccaae;--m2:#ccede1}
.rose{--m:#d7947f;--m2:#f6e3dc}
.bds-module-hero{padding:48px 0 40px!important;border-bottom:1px solid var(--bds-vert-clair);background-color:var(--bds-fond);
  background-image:radial-gradient(circle at 92% -10%, rgba(140,202,174,.16) 0 220px, transparent 221px),radial-gradient(circle at 3% 110%, rgba(140,202,174,.12) 0 130px, transparent 131px),radial-gradient(circle at 70% 120%, rgba(215,148,127,.10) 0 150px, transparent 151px)}
.bds-module-hero.rose{background-image:radial-gradient(circle at 92% -10%, rgba(215,148,127,.16) 0 220px, transparent 221px),radial-gradient(circle at 3% 110%, rgba(215,148,127,.10) 0 130px, transparent 131px),radial-gradient(circle at 70% 120%, rgba(140,202,174,.12) 0 150px, transparent 151px)}
.bds-hero-texte{flex:1 1 520px!important}
.bds-badge .elementor-heading-title{display:inline-block;background:var(--m);color:var(--bds-bleu);padding:7px 18px;border-radius:99px;font:800 .82rem 'Nunito',sans-serif;letter-spacing:.12em;text-transform:uppercase}
.bds-hero-titre .elementor-heading-title{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.2;max-width:640px;color:var(--bds-bleu)}
.bds-hero-sous p{margin:0;font-family:'Nunito',sans-serif;font-size:1.05rem;color:var(--bds-gris)}
.bds-hero-infos{flex:0 0 auto!important;gap:8px!important}
.bds-anneau .elementor-heading-title{width:66px;height:66px;border-radius:50%;border:4px solid var(--m);background:#fff;display:flex;align-items:center;justify-content:center;font:800 1.5rem 'Nunito',sans-serif;color:var(--bds-bleu)}
.bds-infos p{margin:0;text-align:center;font-size:.85rem;font-weight:700;line-height:1.7;color:var(--bds-gris)}

.bds-module-contenu{padding:40px 0 24px!important;gap:16px!important}
.bds-section-titre .elementor-heading-title{font:800 .75rem 'Nunito',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--bds-gris)}

/* Episodes : video a gauche, liste a droite */
.bds-episodes .e-n-tabs{--n-tabs-heading-width:32%;--n-tabs-gap:20px}
.bds-episodes .e-n-tabs-heading{gap:8px!important}
.bds-episodes .e-n-tab-title{background:#fff!important;border:1.5px solid #e3ece8!important;border-radius:12px!important;padding:12px 14px!important;justify-content:flex-start!important;text-align:left!important;
  font:700 .9rem/1.35 'Nunito',sans-serif!important;color:var(--bds-bleu)!important;transition:all .2s}
.bds-episodes .e-n-tab-title:hover{border-color:var(--m)!important}
.bds-episodes .e-n-tab-title[aria-selected="true"]{background:var(--bds-bleu)!important;border-color:var(--bds-bleu)!important;color:#fff!important}
.bds-episodes .e-n-tab-title-text{color:inherit!important}
.bds-episodes .e-n-tabs-content > .e-con{padding:0!important;border:0!important}
.bds-episodes .elementor-wrapper{border-radius:16px;overflow:hidden}

/* Cartes fiche PDF et quiz */
.bds-cartes{gap:16px!important;margin-top:12px}
.bds-carte{flex:1 1 280px!important;background:#fff;border:1.5px solid var(--m,#d7947f)!important;border-radius:16px;padding:18px 22px!important;gap:4px!important}
.bds-carte.pdf{--m:#d7947f}
.bds-carte h3{font:800 1.05rem 'Nunito',sans-serif!important;color:var(--bds-bleu)!important;margin:0}
.bds-carte p{margin:0 0 8px;font-size:.88rem;color:var(--bds-gris)}
.bds-bouton .elementor-button{background:var(--m,#8ccaae)!important;color:var(--bds-bleu)!important;border-radius:99px!important;font:800 .9rem 'Nunito',sans-serif!important;padding:10px 22px!important}
.bds-bouton .elementor-button:hover{filter:brightness(.93)}

/* Quiz et navigation */
.bds-module-quiz{padding:56px 0!important;background:linear-gradient(180deg,var(--bds-fond),#eef7f3)}
.bds-module-quiz.rose{background:linear-gradient(180deg,var(--bds-fond),#fbf1ed)}
.bds-module-nav{padding:32px 0 56px!important}
.bds-bouton-sec .elementor-button{background:#fff!important;border:1.5px solid var(--bds-vert-clair)!important;color:var(--bds-bleu)!important;border-radius:99px!important;font:800 .9rem 'Nunito',sans-serif!important;padding:12px 24px!important;white-space:normal}
.bds-bouton-sec .elementor-button:hover{border-color:var(--bds-vert)!important}

@media (max-width:767px){
  .bds-module-hero{padding:32px 0 28px!important}
  .bds-hero-infos{flex-direction:row!important;gap:14px!important}
  .bds-infos p{text-align:left}
}

/* Modules : mise en page ordinateur (episodes a droite, infos du bandeau a droite) */
@media (min-width:768px){
  .bds-module-hero > .e-con-inner{flex-wrap:nowrap!important;gap:40px!important}
  .bds-hero-texte{width:auto!important;min-width:0}
  .bds-hero-infos{width:auto!important}
  .bds-episodes .e-n-tabs{display:flex!important;flex-direction:row-reverse!important;align-items:flex-start!important;gap:20px!important}
  .bds-episodes .e-n-tabs-heading{display:flex!important;flex-direction:column!important;flex:0 0 32%!important;width:32%!important}
  .bds-episodes .e-n-tabs-heading .e-n-tab-title{width:100%!important}
  .bds-episodes .e-n-tabs-content{flex:1 1 auto!important;min-width:0}
}

/* Modules : mobile */
@media (max-width:767px){
  .bds-module-contenu, .bds-module-quiz, .bds-module-nav{padding-left:16px!important;padding-right:16px!important}
  .bds-episodes .e-n-tab-title{width:100%!important}
  .bds-episodes .e-n-tabs-heading{display:flex;flex-direction:column;gap:8px}
}

/* Modules : tablette (marges latérales) */
@media (min-width:768px) and (max-width:1200px){
  .bds-module-hero, .bds-module-contenu, .bds-module-quiz, .bds-module-nav{padding-left:24px!important;padding-right:24px!important}
}
/* Modules : mobile, la vidéo au-dessus de la liste des épisodes */
@media (max-width:767px){
  .bds-episodes .e-n-tabs{display:flex!important;flex-direction:column!important}
  .bds-episodes .e-n-tabs-content > .e-con{order:-1!important;margin-bottom:8px}
  .bds-module-hero{padding-left:16px!important;padding-right:16px!important}
}

/* ===== Page module v2 : module en cours à gauche, tous les modules à droite ===== */
.bds-module-corps{padding:40px 24px 16px!important}
.bds-module-corps > .e-con-inner{flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-start!important;gap:32px!important}
.bds-module-principal{flex:1 1 0!important;min-width:0;gap:16px!important}
.bds-module-cote{flex:0 0 32%!important;width:32%!important;position:sticky;top:110px}
@media (min-width:1025px){
  .bds-module-corps .bds-episodes .e-n-tabs-heading{display:none!important}
  .bds-module-corps .bds-episodes .e-n-tabs-content{width:100%!important}
}
@media (max-width:1024px){
  .bds-module-corps > .e-con-inner{flex-direction:column!important}
  .bds-module-cote{flex-basis:auto!important;width:100%!important;position:static}
  .bds-cote-episodes{display:none!important}
}
@media (max-width:767px){ .bds-module-corps{padding:24px 16px 8px!important} }

/* Colonne « Tous les modules » */
.bds-cote{background:#fff;border:1px solid var(--bds-vert-clair);border-radius:18px;padding:18px 14px}
.bds-cote-titre{font:800 .75rem 'Nunito',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--bds-gris);margin:0 8px 12px}
.bds-cote ol{list-style:none;margin:0;padding:0}
.bds-cote-liste > li + li{margin-top:4px}
.bds-cote-liste > li > a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;color:var(--bds-bleu)!important;text-decoration:none!important;font:700 .95rem/1.3 'Nunito',sans-serif}
.bds-cote-liste > li > a:hover{background:var(--bds-fond)}
.bds-cote-num{flex:0 0 34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--m2);font-weight:800}
.bds-cote-liste > li.en-cours > a{background:var(--m2)}
.bds-cote-liste > li.en-cours .bds-cote-num{background:var(--m)}
.bds-cote-episodes{margin:8px 0 6px 26px!important;padding-left:10px!important;border-left:2px solid var(--m2)}
.bds-cote-episodes li + li{margin-top:2px}
.bds-cote-episodes button{all:unset;box-sizing:border-box;display:flex;justify-content:space-between;align-items:baseline;gap:10px;width:100%;padding:8px 10px;border-radius:10px;cursor:pointer;font:600 .9rem/1.35 'Nunito',sans-serif;color:var(--bds-bleu)}
.bds-cote-episodes button:hover{background:var(--bds-fond)}
.bds-cote-episodes button:focus-visible, .bds-cote-liste > li > a:focus-visible{outline:2px solid var(--bds-bleu);outline-offset:2px}
.bds-cote-episodes li.actif button{background:var(--bds-bleu);color:#fff}
.bds-cote-duree{font:400 .75rem/1.6 'Nunito',sans-serif;opacity:.7;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Bandeaux Fiche PDF et Quiz */
.bds-bandeau{flex-direction:row!important;align-items:center!important;gap:16px!important;background:#fff;border:1.5px solid var(--m,#8ccaae)!important;border-radius:16px;padding:14px 18px!important}
.bds-bandeau.pdf{--m:#d7947f;--m2:#f6e3dc}
.bds-bandeau-icone{flex:0 0 auto!important;width:auto!important}
.bds-bandeau-icone .elementor-icon{width:48px;height:48px;display:inline-flex!important;align-items:center;justify-content:center;border-radius:50%;background:var(--m2);color:var(--bds-bleu)!important;font-size:20px!important}
.bds-bandeau-icone .elementor-icon svg{width:20px;height:20px;fill:var(--bds-bleu)}
.bds-bandeau-texte{flex:1 1 auto!important;min-width:0;gap:2px!important}
.bds-bandeau h3{font:800 1.05rem 'Nunito',sans-serif!important;color:var(--bds-bleu)!important;margin:0}
.bds-bandeau-texte p{margin:0;font-size:.88rem;color:var(--bds-gris)}
.bds-bandeau .bds-bouton{flex:0 0 auto!important;width:auto!important}
.bds-bandeau.inactif{border-style:dashed!important}
.bds-bandeau.inactif .bds-bandeau-icone, .bds-bandeau.inactif h3{opacity:.6}
@media (max-width:767px){
  .bds-bandeau{flex-wrap:wrap!important}
  .bds-bandeau-texte{flex-basis:calc(100% - 64px)!important}
  .bds-bandeau .bds-bouton{width:100%!important}
  .bds-bandeau .bds-bouton .elementor-button{width:100%}
}

/* Quiz : replié jusqu'au clic sur « Commencer le quiz » (toujours visible dans l'éditeur) */
.bds-quiz-zone{display:none!important}
.bds-quiz-zone.ouvert, body.elementor-editor-active .bds-quiz-zone{display:flex!important}

/* ===== Page module v2 : titre de l'épisode, épisodes vus, enchaînement, bandeaux côte à côte ===== */
.bds-ep-titre{margin:0 0 -6px;line-height:1.3}
.bds-ep-num{display:block;font:800 .72rem 'Nunito',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--bds-gris);margin-bottom:4px}
.bds-ep-nom{font:700 1.35rem 'Playfair Display',serif;color:var(--bds-bleu)}
.bds-cote-nb{display:block;margin-top:2px;font:600 .75rem 'Nunito',sans-serif;color:var(--bds-gris)}
.bds-cote-episodes button{display:grid!important;grid-template-columns:16px 1fr auto;column-gap:8px;align-items:baseline}
.bds-cote-vu{width:15px;height:15px;border-radius:50%;border:1.5px solid var(--m,#8ccaae);align-self:center;display:inline-flex;align-items:center;justify-content:center;font-size:9px;line-height:1}
.bds-cote-episodes li.vu .bds-cote-vu{background:var(--m,#8ccaae);color:var(--bds-bleu)}
.bds-cote-episodes li.vu .bds-cote-vu::after{content:'✓';font-weight:800}
.bds-cote-episodes li.actif .bds-cote-vu{border-color:#fff}
.bds-episodes .e-n-tab-title.bds-vu .e-n-tab-title-text::before{content:'✓ '}
.bds-ep-suite{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:16px;text-align:center;background:rgba(26,47,112,.92);color:#fff;border-radius:inherit}
.bds-ep-suite p{margin:0;color:#fff}
.bds-ep-suite-titre{font:800 .75rem 'Nunito',sans-serif;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.bds-ep-suite-nom{font:700 1.4rem 'Playfair Display',serif}
.bds-ep-suite-compte{font-size:.9rem;opacity:.85}
.bds-ep-suite-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px!important}
.bds-ep-suite .go, .bds-ep-suite .non{all:unset;cursor:pointer;padding:9px 20px;border-radius:99px;font:800 .9rem 'Nunito',sans-serif}
.bds-ep-suite .go{background:var(--bds-vert);color:var(--bds-bleu)!important}
.bds-ep-suite .non{border:1.5px solid rgba(255,255,255,.7);color:#fff!important}
.bds-ep-suite .go:focus-visible, .bds-ep-suite .non:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:767px){
  .bds-ep-nom{font-size:1.15rem}
  .bds-ep-suite{gap:2px;padding:8px}
  .bds-ep-suite-nom{font-size:1rem}
  .bds-ep-suite .go, .bds-ep-suite .non{padding:6px 14px;font-size:.8rem}
}
/* Bandeaux Fiche et Quiz côte à côte sur ordinateur */
@media (min-width:1025px){
  .bds-module-principal{display:grid!important;grid-template-columns:1fr 1fr}
  .bds-module-principal > *{grid-column:1 / -1}
  .bds-module-principal > .bds-bandeau{grid-column:auto;flex-wrap:wrap!important;align-items:flex-start!important;padding:16px!important;gap:12px 14px!important}
  .bds-module-principal > .bds-bandeau .bds-bouton{flex-basis:100%!important;margin-left:62px}
  .bds-module-principal > .bds-bandeau .bds-bandeau-texte{flex-basis:calc(100% - 62px)!important}
}

/* Anneau de progression du bandeau (épisodes vus / total) */
.bds-anneau .elementor-heading-title.progres{position:relative;width:64px;height:64px;border:0;background:none;flex-direction:column;line-height:1}
.bds-anneau .progres svg{position:absolute;inset:0;width:64px;height:64px;transform:rotate(-90deg)}
.bds-anneau .progres circle{fill:#fff;stroke-width:5}
.bds-anneau .progres .fond{stroke:var(--m2)}
.bds-anneau .progres .arc{fill:none;stroke:var(--m);stroke-linecap:round;transition:stroke-dashoffset .6s}
.bds-anneau .progres span{position:relative;font:900 1.2rem 'Nunito',sans-serif;color:var(--bds-bleu)}
.bds-anneau .progres small{position:relative;font:700 .6rem 'Nunito',sans-serif;color:var(--bds-gris)}

/* Modules : boutons Module précédent (à gauche) et Module suivant (à droite) */
.bds-module-nav > .e-con-inner{justify-content:space-between!important;flex-wrap:wrap!important;gap:12px!important}
.bds-module-nav .bds-nav-suiv{margin-left:auto}
.bds-module-nav .elementor-widget-button{width:auto!important;max-width:calc(50% - 6px)}
@media (max-width:767px){ .bds-module-nav > .e-con-inner{flex-direction:column!important} .bds-module-nav .elementor-widget-button{max-width:100%;width:100%!important} .bds-module-nav .elementor-button{width:100%} }


/* ===== Pictos des fiches du programme (13/10/2026, snippet n° 8) ===== */
/* Le rond est dessiné derrière le picto (dégradé), pour ne jamais rogner l'image */
.bds-cote-num.avec-picto{font-size:0;background:radial-gradient(circle closest-side,var(--m2) 98%,transparent 100%)!important;border-radius:0}
.bds-cote-liste > li.en-cours .bds-cote-num.avec-picto{background:radial-gradient(circle closest-side,#fff 98%,transparent 100%)!important}
.bds-cote-num.avec-picto::before{content:'';width:24px;height:24px;background:#5aa888;-webkit-mask:var(--symbole) center/contain no-repeat;mask:var(--symbole) center/contain no-repeat}
.bds-cote-liste > li.rose .bds-cote-num.avec-picto::before{background:#c97a62}
.bds-cote-episodes li.avec-picto button{grid-template-columns:16px 22px 1fr auto!important}
.bds-picto-ep{width:22px;height:22px;object-fit:contain;align-self:center;padding:2px;background:radial-gradient(circle closest-side,#fff 98%,transparent 100%)}
.bds-ep-titre.avec-picto{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center}
.bds-ep-titre.avec-picto .bds-picto-titre{grid-row:1 / span 2;width:58px;height:58px;padding:11px;object-fit:contain;background:radial-gradient(circle closest-side,var(--m2,#e6f5ee) 98%,transparent 100%)}
.bds-ep-titre.avec-picto .bds-ep-num{margin-bottom:0;align-self:end}
.bds-ep-titre.avec-picto .bds-ep-nom{align-self:start}
@media (max-width:767px){ .bds-ep-titre.avec-picto .bds-picto-titre{width:46px;height:46px;padding:9px} }

/* ===== Symbole de chaque module (fiches du programme) en arrière-plan du bandeau, dans ses couleurs d'origine ===== */
.bds-module-hero{position:relative;overflow:hidden}
.bds-module-hero > .e-con-inner{position:relative;z-index:1}
.bds-module-hero::after{content:'';position:absolute;top:50%;right:16%;width:340px;height:300px;transform:translateY(-50%);background:var(--symbole) center/contain no-repeat;pointer-events:none;z-index:0}
.postid-211 .bds-module-hero{--symbole:url(../pictos/symboles/module-1.png)}
.postid-212 .bds-module-hero{--symbole:url(../pictos/symboles/module-2.png)}
.postid-213 .bds-module-hero{--symbole:url(../pictos/symboles/module-3.png)}
.postid-214 .bds-module-hero{--symbole:url(../pictos/symboles/module-4.png)}
@media (max-width:767px){ .bds-module-hero::after{right:-40px;width:220px;height:200px} }

/* ===== Retours des tests (19/10/2026) ===== */
/* Bandeau du module plus bas, pour voir la vidéo en entier sans faire défiler */
.bds-module-hero{padding-top:26px!important;padding-bottom:22px!important}
.bds-module-corps{padding-top:24px!important}
.bds-hero-infos{gap:4px!important}
/* Symbole du module dans une bulle de sa couleur (les symboles sont blancs, peu visibles sur le fond clair) */
.bds-module-hero::after{right:14%;width:170px;height:170px;border-radius:50%;background:var(--symbole) center/64% no-repeat,#8ccaae;box-shadow:0 10px 30px rgba(26,47,112,.12)}
.bds-module-hero.rose::after{background:var(--symbole) center/64% no-repeat,#d7947f}
@media (max-width:1024px){ .bds-module-hero::after{right:-30px;width:130px;height:130px;opacity:.85} }
@media (max-width:767px){ .bds-module-hero::after{top:auto;bottom:-34px;right:-34px;transform:none;width:120px;height:120px} }

/* Colonne : numéro du module, comme sur les vidéos (#MODULE 2) */
.bds-cote-mod{display:block;font:800 .68rem 'Nunito',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#56685f;margin-bottom:1px}
/* Colonne : « Épisode 01 » au-dessus du titre, vert pour les experts, corail pour les témoignages */
.bds-cote-ep{min-width:0}
.bds-cote-epnum{display:block;font:800 .64rem 'Nunito',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#56685f}
.bds-cote-eptitre{display:block}
.bds-cote-episodes li.expert{--m:#8ccaae}
.bds-cote-episodes li.temoignage{--m:#d7947f}
.bds-cote-episodes li button{box-shadow:inset 3px 0 0 var(--m)}
.bds-cote-episodes li.actif .bds-cote-epnum{color:rgba(255,255,255,.85)}
.bds-cote-legende{display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 2px 36px;font:700 .72rem 'Nunito',sans-serif;color:var(--bds-gris)}
.bds-cote-legende span::before{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;background:#8ccaae;vertical-align:0}
.bds-cote-legende .temoignage::before{background:#d7947f}
/* Titre au-dessus de la vidéo : témoignage en corail */
.bds-ep-titre.temoignage.avec-picto .bds-picto-titre{background:radial-gradient(circle closest-side,#f6e3dc 98%,transparent 100%)}
/* Safari sur iPhone : la vidéo restait décalée à droite. Elle ne dépasse plus jamais la largeur de sa colonne */
.bds-module-principal, .bds-episodes, .bds-episodes .e-n-tabs, .bds-episodes .e-n-tabs-content > .e-con, .bds-episodes .elementor-widget-video, .bds-episodes .elementor-wrapper{max-width:100%!important;min-width:0!important}
.bds-episodes .e-n-tabs-content > .e-con, .bds-episodes .elementor-widget-video, .bds-episodes .elementor-wrapper{width:100%!important}
.bds-episodes iframe{max-width:100%!important}
/* Ordinateur (20/10/2026) : la bulle du symbole est accrochée juste à gauche des infos (compteur, épisodes), elle ne les recouvre plus */
@media (min-width:1025px){
  .bds-module-hero::after{display:none}
  .bds-hero-infos{position:relative}
  .bds-hero-infos::before{content:'';position:absolute;top:50%;left:auto;bottom:auto;right:calc(100% + 36px);inset-inline-start:auto;width:150px;height:150px;transform:translateY(-50%);border-radius:50%;background:var(--symbole) center/64% no-repeat,#8ccaae;box-shadow:0 10px 30px rgba(26,47,112,.12);pointer-events:none}
  .bds-module-hero.rose .bds-hero-infos::before{background:var(--symbole) center/64% no-repeat,#d7947f}
}
