/* themes/corps : diploma page (inc_pageDiplome.php) */
.dpf{
--dpf-navy:#00233a;
--dpf-teal:#0d5c6b;
--dpf-pink:#f0145a;
--dpf-bg-card:#fff;
--dpf-text:#00233a;
color:var(--dpf-text);
max-width:1280px;
margin:0 auto;
}
.dpf-sr{
position:absolute!important;
width:1px;
height:1px;
overflow:hidden;
clip:rect(0 0 0 0);
white-space:nowrap;
}

/* ---------- Header ---------- */
.dpf-head{
display:flex;
justify-content:space-between;
align-items:flex-start;
gap:24px;
margin-bottom:24px;
}
.dpf-head-main{
display:flex;
align-items:flex-start;
gap:14px;
}
.dpf-pictos{
display:flex;
flex-direction:column;
gap:6px;
flex:0 0 auto;
}
.dpf-pictos img{
width:80px;
height:80px;
object-fit:contain;
border-radius:50%;
background:#fff;
padding:3px;
box-sizing:border-box;
}
.dpf-head-titre h1{
margin:0 0 8px 0;
font-size:1.9em;
line-height:1.1;
font-weight:800;
color:var(--dpf-navy);
}
.dpf-badges{
list-style:none;
margin:0;
padding:0;
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
}
.dpf-badge{
display:inline-block;
padding:2px 10px;
border-radius:1px 10px 1px 10px;
color:#fff;
font-size:.85em;
font-weight:800;
text-transform:uppercase;
}
.dpf-head-side{
display:flex;
flex-direction:column;
align-items:flex-end;
gap:14px;
flex:0 0 auto;
}
.dpf-btn-file{
display:inline-flex;
align-items:center;
gap:6px;
padding:4px 14px;
border-radius:999px;
background:var(--dpf-teal);
color:#fff!important;
font-size:.8em;
font-weight:700;
text-decoration:none!important;
}
.dpf-btn-file:after{
content:'';
width:10px;
height:12px;
border:1.5px solid currentColor;
border-radius:1px 4px 1px 1px;
}
.dpf-btn-file:hover,
.dpf-btn-file:focus-visible{
background:var(--dpf-navy);
}
.dpf-logos{
list-style:none;
margin:0;
padding:0;
display:flex;
flex-wrap:wrap;
justify-content:flex-end;
align-items:center;
gap:16px;
}
.dpf-logos img{
max-height:44px;
max-width:120px;
}

/* ---------- Body ---------- */
.dpf-body{
display:grid;
grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
gap:40px;
align-items:start;
}
.dpf-aside{
display:flex;
flex-direction:column;
gap:24px;
}
.dpf-photo img{
display:block;
width:100%;
height:auto;
/* Pan coupé + coins arrondis, mêmes proportions que l'image de l'accueil
   (« L'accompagnement au cœur de la pédagogie », 1274×929 : biais 76px, rayon ~14px) */
-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1274 929' preserveAspectRatio='none'%3E%3Cpath d='M14 75.2 L1260 0.8 Q1274 0 1274 14 L1274 838 Q1274 852 1260 852.8 L14 928.2 Q0 929 0 915 L0 90 Q0 76 14 75.2 Z'/%3E%3C/svg%3E");
mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1274 929' preserveAspectRatio='none'%3E%3Cpath d='M14 75.2 L1260 0.8 Q1274 0 1274 14 L1274 838 Q1274 852 1260 852.8 L14 928.2 Q0 929 0 915 L0 90 Q0 76 14 75.2 Z'/%3E%3C/svg%3E");
-webkit-mask-size:100% 100%;
mask-size:100% 100%;
-webkit-mask-repeat:no-repeat;
mask-repeat:no-repeat;
}
.dpf-galerie{
list-style:none;
margin:0;
padding:0;
display:grid;
grid-template-columns:repeat(3, minmax(0, 1fr));
gap:12px;
}
.dpf-galerie img{
display:block;
width:100%;
aspect-ratio:1;
object-fit:cover;
border-radius:4px;
}

/* Testimonials */
.dpf-temos{
display:flex;
align-items:center;
justify-content:center;
gap:16px;
width:100%;
}
.dpf-temos-list{
list-style:none;
margin:0;
padding:0;
flex:0 1 100%;
max-width:80%;
}
.dpf-temos blockquote{
border-radius:8px;
position:relative;
margin:0;
padding:14px 16px;
background:var(--dpf-teal);
color:#fff;
font-size:.85em;
line-height:1.4;
}
.dpf-temos blockquote:after{
content:'';
position:absolute;
right:24px;
bottom:-16px;
border-top:16px solid var(--dpf-teal);
border-left:16px solid transparent;
}
.dpf-temos blockquote p{
margin:0 0 10px 0;
color:white;
}
.dpf-temos blockquote footer{
font-weight:800;
color:white;
}
.dpf-temos-nav{
width:32px;
height:64px;
border:none;
background:none;
cursor:pointer;
position:relative;
flex:0 0 40px;
transition:all 0.3s;
}
.dpf-temos-nav:before{
content:'';
position:absolute;
top:50%;
left:50%;
width:32px;
height:32px;
border-left:2px solid var(--dpf-teal);
border-bottom:2px solid var(--dpf-teal);
transform:translate(-25%,-50%) rotate(45deg) skew(10deg,10deg);
}
.dpf-temos-next:before{
transform:translate(-75%,-50%) rotate(-135deg) skew(10deg,10deg);
}
.dpf-temos-nav:focus-visible{
outline:2px solid var(--dpf-pink);
}
.dpf-temos-nav:hover{
transform:translateX(-4px);    
}
.dpf-temos-next:hover{
transform:translateX(4px);    
}
/* Right column */
.dpf-intro{
color:var(--dpf-teal);
font-weight:700;
margin-bottom:12px;
}
.dpf-intro .bouton a{
background:var(--dpf-teal);
color:white;    
font-weight:800;
border:none;
}
.dpf-intro .bouton a[target="_blank"]{
padding-right:32px;
position:relative;
}
.dpf-intro .bouton a[target="_blank"]::after{
content:'';
position:absolute;
width:12px;
height:12px;
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.32 12.32'%3E%3Cline x1='1.07' y1='11.25' x2='11.82' y2='0.5' fill='none' stroke='%23fff' stroke-miterlimit='10'/%3E%3Cpolyline points='.5 .5 11.82 .5 11.82 11.82' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-size: cover;
right:14px;
top:9px;
}
.dpf-intro .bouton a:hover{
background:var(--dpf-pink);    
}

.dpf-texte{
margin-bottom:16px;
}
.dpf-texte ul > li:before{
content:'';
position:absolute;
top:4px;
left:0px;	
width:16px;
height:16px;
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Ccircle cx='7.5' cy='7.5' r='7.5' fill='%23e61d73'/%3E%3Cline x1='7.5' y1='2.93' x2='7.5' y2='11.93' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='3' y1='7.43' x2='12' y2='7.43' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");	background-repeat: no-repeat;
background-size: cover;
display:block;
}


.dpf-files{
margin-bottom:32px;
}
.dpf-champs .accordeon{
background:var(--dpf-bg-card);
border-radius:24px;
margin-bottom:12px;
padding:10px 18px 10px 14px;
}
.dpf-champs .accordeon .accordeon-toggle{
margin:0;
min-height:28px;
display:flex;
align-items:center;
padding:0 40px 0 34px;
font-size:1.1em;
font-weight:800;
line-height:1.2;
color:var(--dpf-navy)!important;
cursor:pointer;
/* Field picto (see the list below) */
background-repeat:no-repeat;
background-position:left center;
background-size:24px 24px;
}
/* Navy chevron (site default is blue) */
.dpf-champs .accordeon .accordeon-toggle::after{
background-image:url("data:image/svg+xml,%3Csvg viewBox='-20 -20 552 552' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2300233a' d='m256 0c-141.163 0-256 114.837-256 256s114.837 256 256 256 256-114.837 256-256-114.837-256-256-256zm79.083 271.083-106.667 106.666c-4.16 4.16-9.621 6.251-15.083 6.251-5.461 0-10.923-2.091-15.083-6.251-8.341-8.341-8.341-21.824 0-30.165l91.585-91.584-91.584-91.584c-8.341-8.341-8.341-21.824 0-30.165s21.824-8.341 30.165 0l106.667 106.667c8.341 8.341 8.341 21.823 0 30.165z'/%3E%3C/svg%3E");
width:32px;
height:32px;
right:-10px;
}
.dpf-champs .accordeon .accordeon-toggle.open::after,
.dpf-champs .accordeon .accordeon-toggle:hover::after{
background-image:url("data:image/svg+xml,%3Csvg viewBox='-20 -20 552 552' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f0145a' d='m256 0c-141.163 0-256 114.837-256 256s114.837 256 256 256 256-114.837 256-256-114.837-256-256-256zm79.083 271.083-106.667 106.666c-4.16 4.16-9.621 6.251-15.083 6.251-5.461 0-10.923-2.091-15.083-6.251-8.341-8.341-8.341-21.824 0-30.165l91.585-91.584-91.584-91.584c-8.341-8.341-8.341-21.824 0-30.165s21.824-8.341 30.165 0l106.667 106.667c8.341 8.341 8.341 21.823 0 30.165z'/%3E%3C/svg%3E");
}
.dpf-champs .accordeon .accordeon-content{
padding:0 10px 4px 34px;
}
/* Pictos : /images/pictos-diplomes/<field>.svg */
.dpf-champs .dpf-acc--prerequis{background-image:url(/images/pictos-diplomes/prerequis.svg);}
.dpf-champs .dpf-acc--objectifs{background-image:url(/images/pictos-diplomes/objectifs.svg);}
.dpf-champs .dpf-acc--methodes{background-image:url(/images/pictos-diplomes/methodes.svg);}
.dpf-champs .dpf-acc--intervenants{background-image:url(/images/pictos-diplomes/intervenants.svg);}
.dpf-champs .dpf-acc--debouches{background-image:url(/images/pictos-diplomes/debouches.svg);}
.dpf-champs .dpf-acc--inscription{background-image:url(/images/pictos-diplomes/inscription.svg);}
.dpf-champs .dpf-acc--tarifs{background-image:url(/images/pictos-diplomes/tarifs.svg);}
.dpf-champs .dpf-acc--financements{background-image:url(/images/pictos-diplomes/financements.svg);}
.dpf-champs .dpf-acc--apprentissage{background-image:url(/images/pictos-diplomes/apprentissage.svg);}
.dpf-champs .dpf-acc--contact{background-image:url(/images/pictos-diplomes/contact.svg);}
.dpf-champs .dpf-acc--contenu{background-image:url(/images/pictos-diplomes/prerequis.svg);}
.dpf-champs .dpf-acc--etapres{background-image:url(/images/pictos-diplomes/debouches.svg);}
.dpf-champs .dpf-acc--profil{background-image:url(/images/pictos-diplomes/profil.svg);}
.dpf-champs .dpf-acc--admission{background-image:url(/images/pictos-diplomes/inscription.svg);}
.dpf-champs .dpf-acc--chiffres{background-image:url(/images/pictos-diplomes/chiffres-cles.svg);}

/* Chiffres clés : label / value rows */
.dpf-chiffres{
margin:0 0 6px;
}
.dpf-chiffre{
display:flex;
justify-content:space-between;
align-items:baseline;
gap:16px;
padding:8px 0;
border-bottom:1px solid rgba(0,35,58,.12);
}
.dpf-chiffre:last-child{
border-bottom:0;
}
.dpf-chiffre dt{
margin:0;
}
.dpf-chiffre dd{
margin:0;
font-weight:800;
font-size:1.15em;
color:var(--dpf-navy);
white-space:nowrap;
text-align:right;
}
/* Trailing "(…)" of a value : under the figure, smaller, regular weight */
/* With a note : the value column takes the note width (up to half the row), the label wraps instead */
.dpf-chiffre dd:has(.dpf-chiffre-note){
flex-shrink:0;
max-width:50%;
}
.dpf-chiffre-note{
display:block;
margin-top:2px;
font-size:.8rem;
font-weight:400;
line-height:1.25;
white-space:normal;
}
/* Mention under the figures ("Source : enquête établissement…", admin field cc_source) */
.dpf-chiffres-source{
margin:4px 0 0 0;
padding-top:8px;
border-top:1px solid rgba(0,35,58,.12);
font-size:.8rem;
font-style:italic;
line-height:1.35;
opacity:.8;
}
/* Responsive : fixed value column (30 %) so every row lines up the same way */
@media (max-width:760px){
.dpf-chiffre dd,
.dpf-chiffre dd:has(.dpf-chiffre-note){
flex:0 0 30%;
max-width:none;
white-space:normal;
overflow-wrap:break-word;
}
.dpf-chiffre dt{
flex:1 1 auto;
min-width:0;
}
}

/* ---------- Call to action ---------- */
.dpf-cta{
margin-top:40px;
text-align:center;
}
.dpf-cta-btn{
display:inline-block;
padding:8px 28px;
border:none;
border-radius:999px;
background:var(--dpf-pink);
color:#fff!important;
font:inherit;
font-size:1.4em;
font-weight:600;
text-decoration:none!important;
cursor:pointer;
position:relative;
}
.dpf-cta-btn:hover,
.dpf-cta-btn:focus-visible{
background:var(--dpf-navy);
}
.dpf-cta-btn::before{
content:'';
left:-48px;
position:absolute;
display:block;
width:64px;
height:48px;
background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 78.65 60.66'%3E%3Cpath d='M21.16 9.79C29.75 6 39.87 1.84 39.87 1.84a5 5 0 0 1 6.5 2.64l.34.81a5 5 0 0 1-2.64 6.5L41 13.14a86.54 86.54 0 0 0-8.14 4.12c-1.92 1.15-1.2 2.090 1.59 2.09H72.14a5.08 5.08 0 0 1 5.07 5.07v.42a5.09 5.09 0 0 1-5.07 5.08H47.66A5.08 5.08 0 0 1 52.73 35v.42a5.08 5.08 0 0 1-5.07 5.07H44.78a4.83 4.83 0 1 1 0 9.640H39.66a4.45 4.45 0 0 1 4.63 4.54 4.85 4.85 0 0 1-5.07 4.55H28.31C7.34 59.22 1.44 47.91 1.44 37S6.54 16.18 21.16 9.79Z' fill='%23fff' stroke='%2300223b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.89px'/%3E%3C/svg%3E");
background-repeat:no-repeat;
background-size:contain;
top:50%;
transform:translateY(-50%);
}
/* Back and forth loop on hover / keyboard focus */
.dpf-cta-btn::before,
.dpf-cta-btn:focus-visible::before{
animation:dpfCtaPoint .8s ease-in-out infinite;
}
@keyframes dpfCtaPoint{
0%, 100%{ transform:translate(0, -50%); }
50%{ transform:translate(10px, -50%); }
}
/* No motion for users who asked for it */
@media (prefers-reduced-motion:reduce){
.dpf-cta-btn:hover::before,
.dpf-cta-btn:focus-visible::before{
animation:none;
transform:translate(10px, -50%);
}
}

.dpf-form{
max-width:560px;
margin:24px auto 0 auto;
padding:24px 32px;
background:#fff;
border-radius:16px;
text-align:left;
}
.dpf-form-titre{
margin-top:0;
}
.dpf-form-titre strong{
color:var(--dpf-teal);
}

/* ---------- Responsive ---------- */
/* Marges latérales (20px, comme le texte des autres pages) dès que l'écran est moins large que le contenu */
@media (max-width:1320px){
.dpf{padding-left:20px;padding-right:20px;}
}
@media (max-width:960px){
.dpf-body{gap:28px;}
}
@media (max-width:760px){
.dpf-head{flex-direction:column;gap:14px;}
.dpf-head-side{align-items:flex-start;}
.dpf-logos{justify-content:flex-start;}
.dpf-body{grid-template-columns:1fr;gap:24px;}
.dpf-head-titre h1{font-size:1.5em;}
.dpf-pictos img{width:64px;height:64px;}
.dpf-temos-list{max-width:none;}
.dpf-form{padding:20px 16px;}
}
@media (max-width:600px){
.dpf-champs .accordeon{padding:10px 12px 10px 10px;}
.dpf-champs .accordeon .accordeon-toggle{font-size:1em;padding-right:36px;}
.dpf-champs .accordeon .accordeon-content{padding:0 4px 4px 34px;}
.dpf-chiffre{gap:10px;}
.dpf-temos{gap:4px;}
.dpf-temos-nav{flex-basis:28px;width:28px;}
.dpf-temos-nav:before{width:22px;height:22px;}
/* Bouton : place pour la main à gauche, texte plus petit */
.dpf-cta{padding-left:44px;}
.dpf-cta-btn{font-size:1.1em;padding:8px 20px;}
.dpf-cta-btn::before{left:-44px;width:52px;height:40px;}
}

/* Fiche diplôme ≤760px (bloc sous le titre) : plus d'air sous le titre, bouton fiche pleine largeur, logos centrés et agrandis */
@media (max-width:760px){
.dpf-head-side{align-self:stretch;align-items:stretch;gap:18px;margin-top:14px;}
.dpf-btn-file{justify-content:center;padding:9px 16px;font-size:.9em;}
.dpf-logos{justify-content:center;gap:28px;}
.dpf-logos img{max-height:64px;max-width:170px;}
}

/* Formulaire « Cette formation m'intéresse » : ancre après envoi (le menu fixe ne recouvre pas le bloc) */
.dpf-form,
.dpf-cta--merci{
scroll-margin-top:230px;
}
@media (max-width:960px){
.dpf-form,
.dpf-cta--merci{scroll-margin-top:140px;}
}
/* Message de remerciement après envoi, à la place du bouton (même carte blanche que le formulaire) */
.dpf-cta.dpf-cta--merci{
padding-left:0;
}
.dpf-cta--merci .formulaire.merci{
max-width:560px;
margin:0 auto;
padding:24px 32px;
background:#fff;
border-radius:16px;
box-sizing:border-box;
}
.dpf-cta--merci .formulaire.merci h2{
margin:0 0 10px 0;
}
