/* themes/corps : TinyMCE "diplomes" widget (inc_widgetDiplomes.php) */
.dpl-secteurs,
.dpl-formations{
--dpl-navy:#00233a;
--dpl-teal:#0097b2;
--dpl-border:#c9d2d8;
--dpl-text:#00233a;
}
/* The widget sits in a flex .complet (next to the .txt) : full width, below the text */
.page .complet:has(> .dpl-formations),
.page .complet:has(> .dpl-secteurs){
flex-wrap:wrap;
}
.dpl-formations,
.dpl-secteurs{
flex:0 0 100%;
width:100%;
box-sizing:border-box;
padding:0 20px 40px 20px;
}
/* .article_intro sets order:1 on the .txt (to sit before the image) : keep the widget after it */
.page .complet > .dpl-formations,
.page .complet > .dpl-secteurs{
order:3;
}
.dpl-sr{
position:absolute!important;
width:1px;
height:1px;
overflow:hidden;
clip:rect(0 0 0 0);
white-space:nowrap;
}
.dpl-picto img{
display:block;
width:100%;
height:100%;
object-fit:contain;
}

/* ---------- Secteurs (accordion) ---------- */
.dpl-secteurs{
display:flex;
flex-direction:column;
gap:18px;
max-width:620px;
}
.dpl-secteur{
position:relative;
margin-left:24px;
border:1px solid var(--dpl-border);
border-radius:12px;
background:#fff;
}
.dpl-secteur-head{
display:flex;
align-items:center;
gap:14px;
width:100%;
min-height:64px;
padding:8px 14px 8px 40px;
border:none;
background:none;
font:inherit;
color:var(--dpl-text);
text-align:left;
cursor:pointer;
}
.dpl-secteur-head .dpl-picto{
position:absolute;
left:-32px;
top:0px;
width:64px;
height:64px;
border-radius:50%;
background:#fff;
}
.dpl-secteur-nom{
flex:1;
font-weight:800;
font-size:1.15em;
line-height:1.15;
transition:color .2s;
}
.dpl-chevron{
flex:0 0 28px;
width:28px;
height:28px;
border-radius:50%;
background:var(--dpl-navy);
position:relative;
transition:background .2s;
}
.dpl-chevron:after{
content:'';
position:absolute;
top:50%;
left:50%;
width:7px;
height:7px;
border-right:2px solid #fff;
border-bottom:2px solid #fff;
transform:translate(-65%,-50%) rotate(-45deg);
transition:transform .2s;
}
.dpl-secteur:hover .dpl-secteur-nom,
.dpl-secteur.is-open .dpl-secteur-nom{
color:var(--dpl-teal);    
}
.dpl-secteur:hover .dpl-chevron,
.dpl-secteur.is-open .dpl-chevron{
background:var(--dpl-teal);
}
.dpl-secteur:hover .dpl-chevron:after{
transform:translate(-50%,-70%) rotate(45deg);
}
.dpl-secteur.is-open .dpl-chevron:after{
transform:translate(-50%,-70%) rotate(45deg);
}
.dpl-secteur-head:focus-visible{
outline:2px solid var(--dpl-teal);
outline-offset:2px;
border-radius:12px;
}
.dpl-secteur-list{
list-style:none;
margin:0;
padding:0 16px 16px 40px;
/* dpSlide() animates height (content) and padding separately : must stay content-box */
box-sizing:content-box;
transition:height .3s ease, padding .3s ease;
}
.dpl-secteur-list li{
position:relative;
padding:4px 0 4px 12px;
font-size:.85em;
font-weight:700;
}
.dpl-secteur-list li:before{
content:'';
position:absolute;
left:0;
top:.75em;
border-left:6px solid var(--dpl-navy);
border-top:4px solid transparent;
border-bottom:4px solid transparent;
}
.dpl-secteur-list a{
color:var(--dpl-text);
text-decoration:none;
}
.dpl-secteur-list a:hover,
.dpl-secteur-list a:focus-visible{
text-decoration:underline;
}

/* ---------- Formations (grid) ---------- */
.dpl-filtres{
display:flex;
flex-wrap:wrap;
align-items:center;
justify-content:center;
gap:10px 16px;
margin-bottom:28px;
}
.dpl-filtre-types{
display:flex;
flex-wrap:wrap;
gap:8px 18px;
margin:0;
padding:0;
border:none;
}
.dpl-filtre-types label{
display:inline-flex;
align-items:center;
gap:6px;
font-weight:700;
font-size:.85em;
color:var(--dpl-text);
cursor:pointer;
white-space:nowrap;
}
.dpl-filtre-type{
-webkit-appearance:none;
appearance:none;
width:18px;
height:18px;
margin:0;
border:1.5px solid var(--dpl-navy);
border-radius:4px;
background:#fff;
cursor:pointer;
position:relative;
flex:0 0 18px;
}
.dpl-filtre-type:checked{
background:var(--dpl-navy);
}
.dpl-filtre-type:checked:after{
content:'';
position:absolute;
left:5px;
top:1px;
width:5px;
height:10px;
border-right:2px solid #fff;
border-bottom:2px solid #fff;
transform:rotate(45deg);
}
.dpl-filtre-type:focus-visible,
.dpl-filtre-select:focus-visible{
outline:2px solid var(--dpl-teal);
outline-offset:2px;
}
.dpl-filtre-select{
min-width:170px;
padding:5px 36px 5px 16px;
border:1px solid var(--dpl-navy);
border-radius:999px;
background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath d='M0 0h14L7 10z' fill='%2300233a'/%3E%3C/svg%3E") no-repeat right 12px center;
color:var(--dpl-text);
font:inherit;
font-weight:700;
font-size:.85em;
-webkit-appearance:none;
appearance:none;
cursor:pointer;
}
.dpl-cards{
list-style:none;
margin:0;
padding:0;
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:12px;
}
/* Fixed card width so partial rows stay centered */
.dpl-card{
flex:0 0 calc((100% - 3 * 12px) / 4);
}
.dpl-card[hidden]{
display:none;
}
.dpl-card *{
color:white!important;
}
.dpl-card a{
display:flex;
align-items:flex-start;
gap:8px;
height:100%;
min-height:110px;
box-sizing:border-box;
padding:12px 12px 14px 10px;
border-radius:8px;
background:var(--dpl-navy);
color:#fff;
text-decoration:none!important;
transition:all 0.3s;
}
.dpl-card a:focus-visible{
outline:3px solid var(--dpl-teal);
outline-offset:2px;
}
.dpl-card a:hover{
background:#215f70;
transform:translateY(-6px);    
}
.dpl-card .dpl-picto{
flex:0 0 48px;
width:48px;
height:48px;
border-radius:50%;
background:#fff;
padding:2px;
box-sizing:border-box;
}
.dpl-card-body{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:6px;
min-width:0;
padding-top:2px;
}
.dpl-card-titre{
font-weight:400;
font-size:1em;
line-height:1.3;
}
.dpl-card a:hover .dpl-card-titre,
.dpl-card a:focus-visible .dpl-card-titre{
text-decoration:underline;
}
.dpl-badges{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
margin-top:2px;
}
.dpl-badge{
display:inline-block;
padding:2px 8px;
border-radius:1px 8px 1px 8px;
color:#fff;
font-size:.7em;
font-weight:800;
text-transform:uppercase;
letter-spacing:.02em;
}
.dpl-card-niveau{
font-size:.9em;
font-weight:800;
margin-top:2px;
}
.dpl-empty{
text-align:center;
font-style:italic;
}
/* ---------- Accueil (home filter box) ---------- */
.dpl-accueil{
--dpl-navy:#00233a;
--dpl-teal:#0097b2;
--dpl-text:#00233a;
box-sizing:border-box;
width:100%;
max-width:420px;
padding:26px 18px 22px 18px;
border-radius:14px;
background:rgb(0 35 58 / .9);
color:#fff;
display:flex;
flex-direction:column;
gap:12px;
}
.dpl-accueil-titre{
margin:0;
text-align:center;
font-weight:700;
font-size:1em;
color:#fff;
}
.dpl-accueil .dpl-filtre-types{
justify-content:space-between;
gap:8px 12px;
}
.dpl-accueil .dpl-filtre-types label{
color:#fff;
font-size:.85em;
}
/* White boxes on the dark background, navy tick */
.dpl-accueil .dpl-filtre-type{
border-color:#fff;
border-radius:3px;
}
.dpl-accueil .dpl-filtre-type:checked{
background:#fff;
}
.dpl-accueil .dpl-filtre-type:checked:after{
border-color:var(--dpl-navy);
}
.dpl-accueil .dpl-filtre-select{
width:100%;
min-width:0;
border-color:#fff;
}
.dpl-accueil-btn{
align-self:center;
margin-top:4px;
padding:6px 18px;
border:none;
border-radius:999px;
background:var(--rose, #e71d73);
color:#fff;
font:inherit;
font-weight:700;
font-size:.85em;
cursor:pointer;
transition:background .2s, transform .2s;
}
.dpl-accueil-btn:hover{
background:var(--dpl-teal);
transform:translateY(-2px);
}
.dpl-accueil-btn:focus-visible,
.dpl-accueil .dpl-filtre-type:focus-visible,
.dpl-accueil .dpl-filtre-select:focus-visible{
outline:2px solid #fff;
outline-offset:2px;
}

@media (max-width:1000px){
.dpl-card{flex-basis:calc((100% - 12px) / 2);}
}
@media (max-width:560px){
.dpl-card{flex-basis:100%;}
.dpl-secteur-nom{font-size:1em;}
}
@media (prefers-reduced-motion:reduce){
.dpl-chevron:after{transition:none;}
.dpl-secteur-list{transition:none;}
}

/* Mobile (nov. 2026) */
@media (max-width:600px){
.dpl-secteurs{padding-bottom:20px;}
/* Filtres : les 2 listes pleine largeur, alignées */
.dpl-filtres .dpl-filtre-select{flex:1 1 100%;}
}
/* Liste des formations dans l'intro : le conteneur a déjà la marge de 20px (même seuil que l'intro resserrée, css.css) */
@media (max-width:639px){
.page .complet.article_intro > .dpl-formations{padding-left:0;padding-right:0;}
}

/* ---------- Chiffres clés (data-mode="chiffres") ----------
   Accordions = the "Chiffres clés" accordion of the diploma page (pageDiplome.css .dpf-champs / .dpf-chiffres) */
.dpl-chiffres{
--dpf-navy:#00233a;
--dpf-pink:#f0145a;
--dpf-text:#00233a;
--dpf-bg-card:var(--gris, #EDF0F1); /* the page background is white : grey cards */
flex:0 0 100%;
width:100%;
max-width:1280px;
margin:0 auto;
box-sizing:border-box;
padding:10px 20px 40px 20px;
display:grid;
grid-template-columns:repeat(2, minmax(0, 1fr));
gap:36px 40px;
align-items:start;
color:var(--dpf-text);
}
.page .complet:has(> .dpl-chiffres){
flex-wrap:wrap;
}
.page .complet > .dpl-chiffres{
order:3;
}
.dpl-cc-titre{
margin:0 0 14px 0;
padding-bottom:8px;
border-bottom:2px solid var(--dpf-pink);
font-size:1.5em;
color:var(--dpf-navy);
}
/* Accordions always left-aligned, even in a block that centers its text (.gauche/.droite .bloc .none) */
.dpl-chiffres .accordeon{
text-align:left;
}
/* Figures : same weight as the diploma page, a bit smaller (diploma page : 1.15em) */
.dpl-chiffres .dpf-chiffre dd{
font-size:1em;
}
/* "Voir la formation" : site .bouton, centered under the figures */
.dpl-chiffres .bouton.dpl-cc-lien{
display:block;
margin:10px 0 4px 0;
text-align:center;
}
/* .accordeon .accordeon-content * sets the text color : keep the button text white */
.dpl-chiffres .accordeon-content .bouton a,
.dpl-chiffres .accordeon-content .bouton a *{
color:#fff;
}
@media (max-width:960px){
.dpl-chiffres{grid-template-columns:minmax(0, 1fr);gap:28px;}
}
@media (max-width:600px){
.dpl-chiffres{padding:0 20px 20px 20px;}
.dpl-cc-titre{font-size:1.3em;}
}
