/* ===========================================================
   Blog Micro-Certif — styles des blocs de mise en page
   À déposer dans /css/blog-contenu.css
   Utilisé par l'éditeur ET par la page publique des articles.
   =========================================================== */
:root{
  --mc-bleu:#2B6296;
  --mc-bleu-clair:#489EF0;
  --mc-orange:#ff8c00;
  --mc-vert:#28a745;
  --mc-rouge:#dc3545;
}

/* Texte */
.mc-lead{font-size:1.2em;line-height:1.6;color:#444;font-weight:500}
.mc-small{font-size:.85em;color:#777}
.mc-accent{color:var(--mc-bleu);font-weight:600}
mark{background:#fff3a3;padding:0 .2em;border-radius:3px}

/* Encadrés */
.mc-callout{border-left:5px solid var(--mc-bleu-clair);background:#eef6fe;padding:1rem 1.25rem;border-radius:0 10px 10px 0;margin:1.5rem 0}
.mc-callout > :first-child{margin-top:0}
.mc-callout > :last-child{margin-bottom:0}
.mc-callout-succes{border-color:var(--mc-vert);background:#eaf7ee}
.mc-callout-attention{border-color:var(--mc-orange);background:#fff5e6}
.mc-callout-important{border-color:var(--mc-rouge);background:#fdecee}

/* Colonnes */
.mc-cols{display:grid;gap:1.5rem;margin:1.5rem 0}
.mc-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mc-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mc-col{background:#f7f9fc;border-radius:10px;padding:1rem 1.25rem}
.mc-col > :first-child{margin-top:0}
.mc-col > :last-child{margin-bottom:0}
@media (max-width:700px){.mc-cols-2,.mc-cols-3{grid-template-columns:1fr}}

/* Chiffres clés */
.mc-stat{text-align:center;background:#fff;border:2px solid #e6edf5;border-radius:12px;padding:1.2rem .8rem}
.mc-stat p{margin:0}
.mc-stat-num{font-size:2.2em;font-weight:700;color:var(--mc-orange);line-height:1.2}
.mc-stat-label{font-size:.9em;color:#555;margin-top:.3rem!important}

/* Citation */
.mc-quote{border:0;margin:2rem 0;padding:1.5rem 1.75rem;background:linear-gradient(135deg,#eef6fe,#fff);border-radius:12px;position:relative;font-size:1.15em;font-style:italic;color:#2b3a4a}
.mc-quote::before{content:"\201C";position:absolute;top:-.15em;left:.25em;font-size:4em;color:var(--mc-bleu-clair);opacity:.35;font-style:normal;line-height:1}
.mc-quote p{margin:.3em 0}
.mc-quote-auteur{font-size:.8em;font-style:normal;color:var(--mc-bleu);font-weight:600;text-align:right}

/* Bouton */
.mc-btn-wrap{text-align:center;margin:1.75rem 0}
a.mc-btn{display:inline-block;background:linear-gradient(90deg,var(--mc-orange),#ff6f00);color:#fff!important;text-decoration:none!important;font-weight:600;padding:.8em 1.8em;border-radius:8px}
a.mc-btn:hover{filter:brightness(1.05)}

/* Listes */
ul.mc-check{list-style:none;padding-left:0}
ul.mc-check li{position:relative;padding-left:1.8em;margin:.45em 0}
ul.mc-check li::before{content:"\2713";position:absolute;left:0;top:0;color:#fff;background:var(--mc-vert);width:1.25em;height:1.25em;border-radius:50%;font-size:.8em;display:flex;align-items:center;justify-content:center;margin-top:.35em}
ol.mc-steps{list-style:none;counter-reset:etape;padding-left:0}
ol.mc-steps li{counter-increment:etape;position:relative;padding:.2em 0 .2em 2.8em;margin:.8em 0;min-height:2em}
ol.mc-steps li::before{content:counter(etape);position:absolute;left:0;top:0;width:2em;height:2em;border-radius:50%;background:var(--mc-bleu);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}

/* Résumé */
.mc-resume{border:2px dashed var(--mc-bleu-clair);border-radius:12px;padding:1rem 1.25rem;margin:1.75rem 0}
.mc-resume-titre{font-weight:700;color:var(--mc-bleu);text-transform:uppercase;letter-spacing:.05em;font-size:.85em;margin:0 0 .5rem}

/* Séparateur */
hr.mc-sep{border:0;height:4px;width:90px;margin:2.5rem auto;border-radius:4px;background:linear-gradient(90deg,var(--mc-bleu),var(--mc-orange))}

/* Images */
img{max-width:100%;height:auto}
img.mc-img-full{display:block;width:100%;border-radius:10px}
img.mc-img-center{display:block;margin:1rem auto}
img.mc-img-left{float:left;max-width:45%;margin:.3rem 1.5rem 1rem 0}
img.mc-img-right{float:right;max-width:45%;margin:.3rem 0 1rem 1.5rem}
img.mc-img-shadow{border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
figure.image{display:table;margin:1.5rem auto}
figure.image img{display:block}
figure.image figcaption{display:table-caption;caption-side:bottom;text-align:center;font-size:.85em;color:#777;padding-top:.5rem}
@media (max-width:600px){img.mc-img-left,img.mc-img-right{float:none;max-width:100%;margin:1rem 0}}

/* Tableaux */
table.mc-table,table.mc-table-plain{border-collapse:collapse;width:100%;margin:1.5rem 0;font-size:.95em}
table.mc-table th,table.mc-table td{border:1px solid #dfe5ec;padding:.6em .8em;text-align:left;vertical-align:top}
table.mc-table th,table.mc-table thead td{background:var(--mc-bleu);color:#fff;font-weight:600}
table.mc-table-zebra tbody tr:nth-child(even){background:#f5f8fb}
table.mc-table-plain td,table.mc-table-plain th{padding:.5em .8em;border:0}

/* Vidéos intégrées */
iframe{max-width:100%}

/* Accordéons (détails repliables) */
details{border:1px solid #dfe5ec;border-radius:8px;padding:.6rem 1rem;margin:1rem 0}
details summary{font-weight:600;cursor:pointer;color:var(--mc-bleu)}

/* Code */
pre{background:#f5f7fa;border:1px solid #e3e8ef;border-radius:8px;padding:1rem;overflow-x:auto;font-size:.9em;line-height:1.5}
pre code{background:none;border:0;padding:0;color:inherit}

/* ===========================================================
   Compatibilité avec la page publique (blog/article.php)
   Ses règles .article-body p / blockquote / img / a sont plus
   fortes que celles des blocs : on les neutralise ici.
   =========================================================== */
.article-body .mc-lead{font-size:1.2em;line-height:1.6;color:#444;font-weight:500}
.article-body .mc-small{font-size:.85em;color:#777}

.article-body .mc-callout > :first-child,
.article-body .mc-col > :first-child,
.article-body .mc-resume > :first-child{margin-top:0}
.article-body .mc-callout > :last-child,
.article-body .mc-col > :last-child,
.article-body .mc-resume > :last-child{margin-bottom:0}

.article-body .mc-stat p{margin:0}
.article-body .mc-stat-num{font-size:2.2em;font-weight:700;color:var(--mc-orange);line-height:1.2}
.article-body .mc-stat-label{font-size:.9em;color:#555;margin-top:.3rem}

.article-body blockquote.mc-quote{border-left:0;background:linear-gradient(135deg,#eef6fe,#fff);padding:1.5rem 1.75rem;margin:2rem 0;border-radius:12px;box-shadow:none}
.article-body blockquote.mc-quote::before{content:"\201C";top:-.15em;left:.25em;font-size:4em;opacity:.35;font-family:Georgia,serif;line-height:1}
.article-body .mc-quote p{margin:.3em 0;font-size:inherit;color:#2b3a4a}
.article-body .mc-quote .mc-quote-auteur{font-size:.8em;font-style:normal;color:var(--mc-bleu);font-weight:600;text-align:right}

.article-body .mc-btn-wrap{text-align:center;margin:1.75rem 0}
.article-body a.mc-btn,
.article-body a.mc-btn:hover{color:#fff;border-bottom:0;padding:.8em 1.8em;border-radius:8px;font-weight:600}

.article-body ul.mc-check,
.article-body ol.mc-steps{margin-left:0;padding-left:0;line-height:1.6}

.article-body .mc-resume-titre{font-size:.85em;font-weight:700;color:var(--mc-bleu);margin:0 0 .5rem}

.article-body img.mc-img-full{width:100%}
.article-body img.mc-img-center{margin:1rem auto}
.article-body img.mc-img-left{margin:.3rem 1.5rem 1rem 0}
.article-body img.mc-img-right{margin:.3rem 0 1rem 1.5rem}
.article-body figure.image img{margin:0}
@media (max-width:600px){
  .article-body img.mc-img-left,
  .article-body img.mc-img-right{margin:1rem 0}
}
.article-body::after{content:"";display:table;clear:both} /* images flottantes en fin d'article */
