/*
Theme Name: Revision Child
Template: revision
Version: 1.0
*/



.mb-download-page{
    max-width:1200px;
    margin:40px auto;
}

.mb-header{
    text-align:center;
    margin-bottom:30px;
}

.mb-header h1{
    font-size:46px;
    margin-bottom:10px;
}

.mb-header p{
    color:#64748b;
}

.mb-preview{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.mb-preview iframe{
    width:100%;
    height:800px;
    border:none;
}

.mb-download-box{
    text-align:center;
    margin:30px 0;
}

.mb-download-btn{
    display:inline-block;
    padding:18px 45px;
    border-radius:15px;
    background:#2563eb;
    color:white;
    text-decoration:none;
    font-size:20px;
    font-weight:700;
}

.mb-download-btn:hover{
    opacity:.9;
}

.mb-ad-top,
.mb-ad-bottom{
    min-height:120px;
    margin:25px 0;
    border:2px dashed #ddd;
    border-radius:15px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.mb-error{
    text-align:center;
    padding:50px;
    font-size:22px;
}

@media(max-width:768px){

.mb-preview iframe{
    height:500px;
}

.mb-header h1{
    font-size:32px;
}

body{
border:10px solid red !important;
}

}


.auto-toc{
    background:#f8f9fa;
    border:1px solid #ddd;
    padding:20px;
    border-radius:8px;
    margin-bottom:25px;
}

.auto-toc h3{
    margin:0 0 15px;
    font-size:24px;
}

.auto-toc ul{
    margin:0;
    padding-left:20px;
}

.auto-toc li{
    margin:8px 0;
}

.auto-toc a{
    text-decoration:none;
}

html{
    scroll-behavior:smooth;
}



.auto-toc{
    border:1px solid #ddd;
    background:#fafafa;
    border-radius:8px;
    margin:20px 0;
    overflow:hidden;
}

.toc-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 20px;
    font-weight:700;
}

#toc-toggle{
    cursor:pointer;
    border:none;
    padding:6px 12px;
    border-radius:4px;
}

#toc-content{
    padding:0 20px 20px;
}

#toc-content ul{
    margin:0;
    padding-left:20px;
}

html{
    scroll-behavior:smooth;
}



/* =========================
   ARTICLE CONTAINER
========================= */
.single-post .site-main article{
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
}

/* =========================
   TITRE PRINCIPAL (H1)
========================= */
.single-post .entry-title{
    font-size: 36px;
    font-weight: 700;
    line-height: 1.5;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-left: 5px solid #0d6efd;
    border-radius: 6px;
    background: #fff;
}

/* =========================
   META (AUTEUR + DATE)
========================= */
.single-post .entry-meta{
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
}

/* =========================
   CATÉGORIES / TAGS
========================= */
.single-post .tag-links a,
.single-post .cat-links a{
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ddd;
}

/* =========================
   CONTENU ARTICLE
========================= */
.single-post .entry-content{
    font-size: 19px;
    line-height: 1.9;
}

.single-post .entry-content p{
    margin-bottom: 20px;
}

/* =========================
   TITRES H2
========================= */
.single-post .entry-content h2{
    font-size: 30px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 12px 18px;
    border-left: 5px solid #0d6efd;
    background: #f7f9fc;
    border-radius: 6px;
}

/* =========================
   TITRES H3
========================= */
.single-post .entry-content h3{
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #0d6efd;
}

/* =========================
   LISTES
========================= */
.single-post .entry-content ul,
.single-post .entry-content ol{
    margin: 20px 0;
    padding-left: 30px;
}

/* =========================
   TABLEAUX
========================= */
.single-post table{
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.single-post table th,
.single-post table td{
    border: 1px solid #ddd;
    padding: 10px;
}

/* =========================
   IMAGES
========================= */
.single-post .entry-content img{
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================
   TABLE DES MATIÈRES
   Easy Table of Contents
========================= */
#ez-toc-container{
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

#ez-toc-container .ez-toc-title{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

#ez-toc-container ul li{
    margin: 8px 0;
}

/* =========================
   MOBILE
========================= */
@media (max-width:768px){

    .single-post .entry-title{
        font-size: 26px;
    }

    .single-post .entry-content{
        font-size: 10px;
    }

    .single-post .entry-content h2{
        font-size: 20px;
    }

    .single-post .entry-content h3{
        font-size: 16px;
    }
}



.toc-mini-btn{
    float:right;
    width:28px;
    height:28px;
    border-radius:6px;
    background:#0d6efd;
    color:#fff !important;
    text-decoration:none !important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:700;
    margin-left:8px;
    transition:.2s;
}

.toc-mini-btn:hover{
    background:#0b5ed7;
    color:#fff !important;
}







.toc-mini-btn:hover{
    background:#0b5ed7;
    color:#fff !important;
    transform:translateY(-2px);
}

.single-post .entry-content h1 .toc-mini-btn,
.single-post .entry-content h2 .toc-mini-btn,
.single-post .entry-content h3 .toc-mini-btn,
.single-post .entry-content h4 .toc-mini-btn,
.single-post .entry-content h5 .toc-mini-btn,
.single-post .entry-content h6 .toc-mini-btn{
    vertical-align:middle;
}



#sommaire-header{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:8px 8px 0 0;
    padding:15px 20px;
}


#sommaire{
    scroll-margin-top:30px;
}


.mathsbio-related{
    margin-top:40px;
}

.mathsbio-related h3{
    margin-bottom:20px;
    font-size:24px;
}


.mathsbio-related-grid{
    display:flex;
    gap:20px;
    overflow-x:auto;
    scroll-behavior:smooth;
    padding-bottom:10px;
}

.mathsbio-related-grid::-webkit-scrollbar{
    height:6px;
}

.mathsbio-related-grid::-webkit-scrollbar-thumb{
    background:#d1d5db;
    border-radius:20px;
}


.mathsbio-related-card{
    flex:0 0 calc(33.333% - 14px);
    background:#fff;
    border:1px solid #eee;
    border-radius:10px;
    overflow:hidden;
    text-decoration:none;
}

.mathsbio-related-card img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
}

.mathsbio-related-card span{
    display:block;
    padding:10px;
    font-size:14px;
    line-height:1.4;
    font-weight:600;
    color:#222;
}

@media(max-width:768px){

    .mathsbio-related-card{
        flex:0 0 80%;
    }

}

.mathsbio-related-card:hover{
    transform:translateY(-3px);
}

.mathsbio-related-card img{
    width:100%;
    height:160px;
    object-fit:cover;
    display:block;
}

.mathsbio-related-card span{
    display:block;
    padding:12px;
    color:#222;
    font-weight:600;
}

@media(max-width:768px){

    .mathsbio-related-grid{
        grid-template-columns:1fr;
    }

}