/*
 * SIGADT-CI — classes de mise en page des contenus éditoriaux (préfixe « mp- »), communes aux deux habillages.
 * Utilisables dans l'éditeur du back-office : chapô, chiffres clés, cartes, fiches, barres, frises, chronologie, portraits…
 * Exemple : <div class="mp-chiffres"><div class="mp-chiffre"><strong>31</strong><span>régions</span></div></div>
 */
:root{--mp-orange:#F77F00;--mp-orange-fonce:#C96400;--mp-vert:#009E60;--mp-vert-fonce:#00754A;--mp-bleu:#0F6CBD;--mp-encre:#0F2A3F;
  --mp-texte:#33414D;--mp-doux:#5F6E7D;--mp-bord:#E3E7E1;--mp-fond:#F6F7F4;--mp-creme:#FFF6EC;--mp-vert-clair:#E7F5EE}

/* Chapô et notes */
p.mp-chapo{font-size:1.14em;line-height:1.65;color:var(--mp-encre);margin:0 0 1.6em;max-width:68em}
p.mp-note{margin:1em 0 0;padding:14px 18px;border-radius:12px;background:var(--mp-vert-clair);color:var(--mp-texte);font-size:.95em}
p.mp-source{margin:.6em 0 0;font-size:.82em;color:var(--mp-doux)}
p.mp-maj{margin:2.4em 0 0;padding-top:14px;border-top:1px solid var(--mp-bord);font-size:.85em;color:var(--mp-doux)}

/* Titres de section */
h2.mp-titre{display:flex;align-items:center;gap:14px;font-size:1.45em;line-height:1.25;color:var(--mp-encre);margin:2.2em 0 1em;padding:0;border:0}
h2.mp-titre::before{content:"";flex:none;width:8px;height:1.15em;border-radius:4px;background:linear-gradient(var(--mp-orange) 0 50%,var(--mp-vert) 50%)}
h2.mp-titre::after{content:"";flex:1;height:1px;background:var(--mp-bord)}
h3.mp-sous-titre{font-size:1.05em;color:var(--mp-encre);margin:1.6em 0 .8em;padding:0;border:0}

/* Chiffres clés */
.mp-chiffres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 1em}
.mp-chiffre{background:var(--mp-fond);border:1px solid var(--mp-bord);border-radius:14px;padding:16px 18px;border-top:3px solid var(--mp-orange)}
.mp-chiffre:nth-child(even){border-top-color:var(--mp-vert)}
.mp-chiffre strong{display:block;font-size:1.55em;line-height:1.15;color:var(--mp-encre);font-weight:800;letter-spacing:-.01em}
.mp-chiffre span{display:block;margin-top:4px;font-size:.85em;color:var(--mp-doux)}

/* Deux colonnes (texte + figure) */
.mp-deux{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:start}
.mp-deux-large{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

/* Encarts, cartes, fiches */
.mp-encart{background:#fff;border:1px solid var(--mp-bord);border-radius:14px;padding:16px 20px;margin:0 0 14px}
.mp-encart h3,.mp-carte h3{font-size:.8em;letter-spacing:.1em;text-transform:uppercase;color:var(--mp-orange-fonce);margin:0 0 10px;padding:0;border:0}
.mp-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.mp-cartes-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mp-cartes-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.mp-carte{background:#fff;border:1px solid var(--mp-bord);border-radius:14px;padding:16px 18px;box-shadow:0 1px 2px rgba(15,42,63,.04)}
.mp-carte p{margin:0}
.mp-accent-orange{border-top:3px solid var(--mp-orange)}
.mp-accent-vert{border-top:3px solid var(--mp-vert)}
.mp-accent-bleu{border-top:3px solid var(--mp-bleu)}
.mp-accent-sombre{border-top:3px solid var(--mp-encre)}
dl.mp-fiche{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0}
.mp-fiche dt{color:var(--mp-doux);font-size:.9em}
.mp-fiche dd{margin:0;font-weight:600;color:var(--mp-encre);text-align:right}
ul.mp-liste{list-style:none;margin:0;padding:0}
.mp-liste li{position:relative;padding-left:18px;margin:6px 0}
.mp-liste li::before{content:"";position:absolute;left:0;top:.6em;width:7px;height:7px;border-radius:50%;background:var(--mp-vert)}

/* Barres proportionnelles (largeur : classes mp-w-5 … mp-w-100) */
ul.mp-barres{list-style:none;margin:0;padding:0}
.mp-barres li{display:grid;grid-template-columns:150px 1fr 70px;align-items:center;gap:12px;margin:8px 0}
.mp-barres small{color:var(--mp-doux);font-size:.8em;margin-left:4px}
.mp-barres b{text-align:right;color:var(--mp-encre);font-size:.92em}
.mp-barre{display:block;height:10px;border-radius:6px;background:var(--mp-fond);overflow:hidden;margin:6px 0}
.mp-barre>span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,var(--mp-orange),#F9A23F);font-size:0;line-height:0;color:transparent}
.mp-accent-vert .mp-barre>span{background:linear-gradient(90deg,var(--mp-vert),#3DBE8B)}
.mp-accent-bleu .mp-barre>span{background:linear-gradient(90deg,var(--mp-bleu),#4F9BE0)}
.mp-accent-sombre .mp-barre>span{background:linear-gradient(90deg,var(--mp-encre),#3D5A73)}
.mp-w-5{width:5%}.mp-w-10{width:10%}.mp-w-15{width:15%}.mp-w-20{width:20%}.mp-w-25{width:25%}.mp-w-30{width:30%}.mp-w-35{width:35%}
.mp-w-40{width:40%}.mp-w-45{width:45%}.mp-w-50{width:50%}.mp-w-55{width:55%}.mp-w-60{width:60%}.mp-w-65{width:65%}.mp-w-70{width:70%}
.mp-w-75{width:75%}.mp-w-80{width:80%}.mp-w-85{width:85%}.mp-w-90{width:90%}.mp-w-95{width:95%}.mp-w-100{width:100%}
.mp-groupe h3{display:flex;justify-content:space-between;align-items:baseline}
.mp-groupe h3 b{font-size:1.6em;letter-spacing:0;color:var(--mp-encre)}
.mp-groupe p{margin:8px 0 2px;font-weight:600;color:var(--mp-encre);font-size:.95em}
.mp-groupe small{color:var(--mp-doux);font-size:.82em}

/* Pôles et pastilles */
.mp-pole{border-left:4px solid var(--mp-orange)}
.mp-pole:nth-child(even){border-left-color:var(--mp-vert)}
.mp-pole h3{font-size:1.1em;letter-spacing:0;text-transform:none;color:var(--mp-encre);margin-bottom:4px}
.mp-pole p{color:var(--mp-doux);font-size:.92em}
.mp-hierarchie{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.mp-hierarchie>div{background:var(--mp-fond);border-radius:14px;padding:16px 18px}
.mp-hierarchie h3{display:flex;align-items:center;gap:10px;font-size:1em;color:var(--mp-encre);margin:0 0 10px;padding:0;border:0}
.mp-hierarchie h3 span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--mp-encre);color:#fff;font-size:.95em}
.mp-hierarchie p{margin:0;color:var(--mp-doux);font-size:.92em}
p.mp-pastilles{display:flex;flex-wrap:wrap;gap:6px}
.mp-pastilles span{background:#fff;border:1px solid var(--mp-bord);border-radius:999px;padding:3px 11px;font-size:.88em;color:var(--mp-encre);font-weight:600}

/* Frise horizontale (évolutions) */
ol.mp-frise{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:0;position:relative}
ol.mp-frise::before{content:"";position:absolute;left:0;right:0;top:17px;height:3px;background:linear-gradient(90deg,var(--mp-orange),var(--mp-vert));border-radius:2px}
.mp-frise li{position:relative;padding:44px 10px 0 0;margin:0}
.mp-frise li::before{content:"";position:absolute;top:10px;left:0;width:17px;height:17px;border-radius:50%;background:#fff;border:3px solid var(--mp-orange);box-sizing:border-box}
.mp-frise li:last-child::before{border-color:var(--mp-vert);background:var(--mp-vert)}
.mp-frise b{display:block;font-size:1.15em;color:var(--mp-encre)}
.mp-frise span{display:block;font-size:.85em;color:var(--mp-doux);line-height:1.45;margin-top:2px}

/* Chronologie verticale */
ol.mp-chronologie{list-style:none;margin:0;padding:0 0 0 22px;border-left:3px solid var(--mp-bord)}
.mp-chronologie li{position:relative;margin:0 0 12px;padding-left:12px;display:grid;grid-template-columns:96px 1fr;gap:10px}
.mp-chronologie li::before{content:"";position:absolute;left:-31px;top:.45em;width:13px;height:13px;border-radius:50%;background:#fff;border:3px solid var(--mp-vert);box-sizing:border-box}
.mp-chronologie li b{color:var(--mp-orange-fonce)}
.mp-chronologie li span{color:var(--mp-texte)}
.mp-chronologie li.mp-periode{display:block;margin:22px 0 10px;padding:0;font-size:.78em;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--mp-encre)}
.mp-chronologie li.mp-periode:first-child{margin-top:0}
.mp-chronologie li.mp-periode::before{left:-34px;width:19px;height:19px;top:-.1em;border:0;background:var(--mp-orange)}

/* Portraits */
.mp-portraits{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:14px}
.mp-portraits figure{margin:0;text-align:center}
.mp-portraits img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:12px;margin:0 0 8px;display:block;box-shadow:0 4px 14px rgba(15,42,63,.12)}
.mp-portraits figcaption b{display:block;font-size:.88em;color:var(--mp-encre);line-height:1.3}
.mp-portraits figcaption span{display:block;font-size:.8em;color:var(--mp-doux)}

/* Figures (cartes, illustrations) */
.mp-figure{margin:0;background:var(--mp-fond);border:1px solid var(--mp-bord);border-radius:14px;padding:12px}
.mp-figure img{width:100%;height:auto;border-radius:10px;margin:0;display:block;background:#fff}
.mp-figure figcaption{font-size:.82em;color:var(--mp-doux);margin-top:10px;line-height:1.5}

@media (max-width:900px){
  .mp-deux,.mp-deux-large{grid-template-columns:1fr}
  .mp-cartes-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mp-hierarchie{grid-template-columns:1fr}
  ol.mp-frise{grid-template-columns:1fr;padding-left:22px}
  ol.mp-frise::before{left:7px;right:auto;top:0;bottom:0;width:3px;height:auto}
  .mp-frise li{padding:0 0 14px 18px}
  .mp-frise li::before{left:-22px;top:2px}
}
@media (max-width:560px){
  .mp-cartes-2,.mp-cartes-4{grid-template-columns:1fr}
  .mp-barres li{grid-template-columns:110px 1fr 60px}
  .mp-chronologie li{grid-template-columns:1fr;gap:0}
}
.mp-cartes-5{grid-template-columns:repeat(5,minmax(0,1fr))}
dl.mp-fiche-pile{display:block}
.mp-fiche-pile dt{margin-top:10px;font-size:.78em;text-transform:uppercase;letter-spacing:.06em}
.mp-fiche-pile dt:first-child{margin-top:0}
.mp-fiche-pile dd{text-align:left;font-size:1.02em;line-height:1.35}
.mp-portraits-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;max-width:900px}
@media (max-width:1100px){.mp-cartes-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.mp-cartes-5{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-portraits-5{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.mp-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-cartes-5{grid-template-columns:1fr}.mp-portraits-5{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Organigramme (niveaux emboîtés) */
.mp-organigramme{display:flex;flex-direction:column;align-items:center;gap:0;margin:0 0 1em}
.mp-noeud{background:var(--mp-encre);color:#fff;border-radius:12px;padding:12px 20px;text-align:center;font-weight:700;max-width:640px;line-height:1.35}
.mp-noeud small{display:block;font-weight:500;opacity:.8;font-size:.82em;margin-top:2px}
.mp-noeud-orange{background:var(--mp-orange)}
.mp-noeud-vert{background:var(--mp-vert)}
.mp-lien{width:3px;height:22px;background:var(--mp-bord)}
.mp-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;width:100%;position:relative;padding-top:18px}
.mp-branches::before{content:"";position:absolute;top:0;left:12%;right:12%;height:3px;background:var(--mp-bord);border-radius:2px}
.mp-branche{position:relative;background:#fff;border:1px solid var(--mp-bord);border-top:3px solid var(--mp-orange);border-radius:12px;padding:14px 16px;font-weight:600;color:var(--mp-encre);text-align:center;line-height:1.35}
.mp-branche::before{content:"";position:absolute;top:-21px;left:50%;width:3px;height:18px;background:var(--mp-bord)}
.mp-branche:nth-child(2){border-top-color:var(--mp-vert)}
.mp-branche:nth-child(3){border-top-color:var(--mp-bleu)}
.mp-branche small{display:block;font-weight:500;color:var(--mp-doux);font-size:.82em;margin-top:4px}
.mp-branche.mp-actif{background:var(--mp-creme);box-shadow:0 0 0 2px var(--mp-orange) inset}

/* Étapes numérotées (piliers, plans…) */
ol.mp-etapes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;counter-reset:etape}
ol.mp-etapes li{counter-increment:etape;position:relative;background:#fff;border:1px solid var(--mp-bord);border-radius:14px;padding:16px 16px 16px 62px;margin:0;color:var(--mp-encre);font-weight:600;line-height:1.4;min-height:64px;display:flex;flex-direction:column;justify-content:center}
ol.mp-etapes li::before{content:counter(etape);position:absolute;left:14px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--mp-creme);color:var(--mp-orange-fonce);font-weight:800}
ol.mp-etapes li:nth-child(even)::before{background:var(--mp-vert-clair);color:var(--mp-vert-fonce)}
ol.mp-etapes li small{font-weight:500;color:var(--mp-doux);font-size:.85em}

/* Citation mise en avant */
blockquote.mp-citation{margin:1.6em 0;padding:24px 28px 24px 70px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--mp-encre),#123B33);color:#fff;font-size:1.12em;line-height:1.6;position:relative}
blockquote.mp-citation::before{content:"“";position:absolute;left:22px;top:6px;font-size:4em;line-height:1;color:var(--mp-orange);font-family:Georgia,serif}
blockquote.mp-citation p{margin:0}

/* Icône de carte (emoji ou symbole) */
.mp-icone{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--mp-creme);font-size:1.4em;margin:0 0 12px}
.mp-carte:nth-child(even) .mp-icone{background:var(--mp-vert-clair)}
.mp-carte h4{font-size:1.02em;color:var(--mp-encre);margin:0 0 6px;padding:0;border:0}
.mp-carte a{color:inherit;text-decoration:none}
.mp-carte a:hover{color:var(--mp-orange-fonce)}
.mp-question h4{font-size:1.3em}

/* Normes : valeur de référence en évidence */
ul.mp-normes{list-style:none;margin:0;padding:0}
ul.mp-normes li{display:flex;gap:12px;align-items:baseline;padding:9px 0;border-bottom:1px dashed var(--mp-bord);margin:0}
ul.mp-normes li:last-child{border-bottom:0}
ul.mp-normes b{flex:none;min-width:84px;font-size:1.05em;color:var(--mp-orange-fonce)}
ul.mp-normes span{color:var(--mp-texte)}

/* Questions fréquentes (dépliables) */
.mp-faq{display:flex;flex-direction:column;gap:10px}
.mp-faq details{background:#fff;border:1px solid var(--mp-bord);border-radius:14px;overflow:hidden}
.mp-faq summary{cursor:pointer;list-style:none;padding:16px 52px 16px 20px;font-weight:700;color:var(--mp-encre);position:relative}
.mp-faq summary::-webkit-details-marker{display:none}
.mp-faq summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--mp-creme);color:var(--mp-orange-fonce);font-weight:700}
.mp-faq details[open] summary::after{content:"–";background:var(--mp-orange);color:#fff}
.mp-faq details[open] summary{border-bottom:1px solid var(--mp-bord)}
.mp-faq details>div{padding:14px 20px 6px}
.mp-faq details p{margin:0 0 10px}
.mp-lien{font-size:0;line-height:0;color:transparent}
.mp-cartes-3{grid-template-columns:repeat(3,minmax(0,1fr))}
ol.mp-etapes{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.mp-cartes-3,ol.mp-etapes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.mp-cartes-3,ol.mp-etapes{grid-template-columns:1fr}}
