/*
Theme Name: mentorinova
Author: Mentorinova
Version: 1.1.0
Template: astra
Text Domain: mentorinova
*/

body.mn-blog-page { background:#0D0D0D; color:#F8F8F8; }
.mn-blog-page #content { background:#0D0D0D; }
.mn-blog-page #content > .ast-container { display:block; max-width:1280px; padding:0 32px; }
.mn-blog-page #primary { float:none; width:100%; padding:0; margin:0; border:0; }
.mn-blog-page .ast-archive-description { display:none; }
.mn-blog { --mn-gold:#D4AF37; --mn-muted:#b9b9b9; padding-bottom:40px; font-family:Poppins,Arial,sans-serif; }
.mn-blog *, .mn-blog *::before, .mn-blog *::after { box-sizing:border-box; }
.mn-blog h1,.mn-blog h2,.mn-blog h3 { color:#F8F8F8; font-family:Montserrat,Arial,sans-serif; }
.mn-blog a { text-decoration:none; }
.mn-blog a:focus-visible,.mn-blog button:focus-visible,.mn-blog input:focus-visible { outline:2px solid var(--mn-gold); outline-offset:5px; }
.mn-hero { display:grid; grid-template-columns:1.1fr 1fr; align-items:center; min-height:560px; gap:24px; padding:60px 0 48px; border-bottom:1px solid #ffffff12; }
.mn-eyebrow { margin:0 0 18px; color:var(--mn-gold); letter-spacing:.16em; font-size:11px; font-weight:700; }
.mn-hero h1 { margin:0 0 24px; font-size:clamp(38px,4.2vw,60px); line-height:1.08; letter-spacing:-.045em; font-weight:800; }
.mn-hero h1 span { color:var(--mn-gold); }
.mn-intro { max-width:490px; color:var(--mn-muted); font-size:15px; line-height:1.85; margin-bottom:28px; }
.mn-blog .mn-button { display:inline-flex; align-items:center; justify-content:center; gap:18px; border:1px solid var(--mn-gold); border-radius:100px; background:var(--mn-gold); color:#0D0D0D; font-size:13px; line-height:1.5; font-weight:700; padding:14px 23px; transition:background .2s; }
.mn-blog .mn-button:hover { background:#e9cb68; color:#0D0D0D; }
.mn-topics { display:flex; flex-wrap:wrap; gap:10px 20px; color:#cecece; font-size:11px; margin-top:30px; }
.mn-topics span::before { content:'•'; color:var(--mn-gold); margin-right:8px; }
.mn-hero-art { position:relative; min-height:400px; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; border-radius:24px; background:radial-gradient(ellipse at center,#d4af371b,transparent 70%); }
.mn-hero-art > img { width:100%; height:440px; display:block; object-fit:cover; border-radius:24px; }
.mn-orbit { width:260px; aspect-ratio:1; border:1px solid #d4af3755; border-radius:50%; display:grid; place-items:center; box-shadow:0 0 90px #d4af3715,inset 0 0 60px #d4af3712; }
.mn-orbit span { font-family:Montserrat,Arial,sans-serif; font-size:100px; font-weight:800; color:var(--mn-gold); letter-spacing:-.08em; padding-right:.08em; }
.mn-hero-art > p { color:#d4af37; font-size:13px; letter-spacing:.1em; margin:25px 0 0; }
.mn-page-title { padding-top:50px; }
.mn-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(270px,1fr); gap:30px; padding-top:40px; scroll-margin-top:100px; }
.mn-section-heading { margin-bottom:24px; }
.mn-section-heading .mn-eyebrow { margin-bottom:8px; }
.mn-section-heading h2 { font-size:26px; margin:0; font-weight:700; }
.mn-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:25px; }
.mn-card { min-width:0; display:flex; flex-direction:column; border:1px solid #ffffff0d; background:#181818; border-radius:15px; overflow:hidden; transition:border-color .2s,transform .2s; }
.mn-card:hover { border-color:#d4af3760; transform:translateY(-3px); }
.mn-card-image { display:block; aspect-ratio:16/9; overflow:hidden; background:#222; }
.mn-card-image img { width:100%; height:100%; object-fit:cover; display:block; }
.mn-image-placeholder { height:100%; display:grid; place-items:center; color:#d4af37; font-size:13px; letter-spacing:.1em; background:radial-gradient(ellipse at top right,#d4af3725,transparent); }
.mn-card-body { display:flex; flex-direction:column; flex:1; padding:21px; }
.mn-meta { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; line-height:1.5; font-size:10px; }
.mn-meta a { color:var(--mn-gold); font-weight:600; }
.mn-meta time { color:#999; }
.mn-card h3 { font-size:19px; line-height:1.4; margin:0 0 12px; font-weight:700; overflow-wrap:anywhere; }
.mn-card h3 a { color:#F8F8F8; }
.mn-card h3 a:hover { color:var(--mn-gold); }
.mn-excerpt { font-size:13px; line-height:1.8; color:var(--mn-muted); margin:0 0 20px; }
.mn-blog .mn-read { display:flex; gap:10px; align-items:center; margin-top:auto; color:#F8F8F8; font-size:12px; font-weight:700; }
.mn-read > span[aria-hidden] { color:var(--mn-gold); font-size:20px; }
.mn-sidebar { display:flex; flex-direction:column; gap:22px; min-width:0; }
.mn-panel { border:1px solid #ffffff0d; background:#181818; border-radius:15px; padding:25px; }
.mn-panel h2 { font-size:19px; font-weight:700; line-height:1.4; margin:0 0 19px; }
.mn-search { display:flex; gap:0; }
.mn-blog .mn-search input[type=search] { min-width:0; width:100%; height:47px; padding:12px; border:1px solid #333; border-radius:7px 0 0 7px; background:#101010; color:#fff; font-family:inherit; font-size:12px; }
.mn-search input::placeholder { color:#aaa; opacity:1; }
.mn-blog .mn-search button { flex-shrink:0; width:47px; height:47px; padding:0; display:grid; place-items:center; background:var(--mn-gold); color:#111; border:0; border-radius:0 7px 7px 0; cursor:pointer; }
.mn-blog .mn-categories { list-style:none; margin:0; padding:0; }
.mn-categories li + li { border-top:1px solid #ffffff0b; }
.mn-categories a { display:flex; justify-content:space-between; gap:12px; align-items:center; color:#ddd; padding:13px 0; font-size:12px; line-height:1.6; }
.mn-categories a:hover { color:var(--mn-gold); }
.mn-categories small { color:var(--mn-gold); background:#d4af3712; min-width:27px; text-align:center; padding:2px 5px; border-radius:5px; }
.mn-recent { display:grid; gap:20px; }
.mn-recent a { display:flex; align-items:flex-start; gap:13px; color:#F8F8F8; }
.mn-recent img { width:64px; height:64px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.mn-recent small { display:block; font-size:10px; color:#aaa; margin-bottom:5px; }
.mn-recent strong { display:block; font-size:12px; line-height:1.55; font-weight:600; }
.mn-recent a:hover strong { color:var(--mn-gold); }
.mn-contact { border-color:#d4af3740; background:linear-gradient(145deg,#292316,#171717 65%); }
.mn-contact > p:not(.mn-eyebrow) { color:var(--mn-muted); font-size:13px; line-height:1.8; }
.mn-contact .mn-button { width:100%; font-size:11px; padding:13px; gap:9px; }
.mn-blog-page .ast-pagination { padding:10px 0 50px; }
.mn-blog-page .ast-pagination .page-numbers { background:#181818; border:1px solid #333; color:#F8F8F8; border-radius:7px; }
.mn-blog-page .ast-pagination .page-numbers.current,.mn-blog-page .ast-pagination a:hover { background:#D4AF37; border-color:#D4AF37; color:#0D0D0D; }
@media(max-width:1000px) {
 .mn-layout { grid-template-columns:minmax(0,1fr) 270px; gap:22px; }
 .mn-panel { padding:20px; }
 .mn-card-body { padding:16px; }
 .mn-card h3 { font-size:17px; }
 .mn-hero-art > img { height:380px; }
}
@media(max-width:800px) {
 .mn-blog-page #content > .ast-container { padding:0 22px; }
 .mn-layout { grid-template-columns:1fr; }
 .mn-hero { grid-template-columns:1fr; padding-top:40px; gap:25px; }
 .mn-hero-art { min-height:260px; }
 .mn-hero-art > img { height:auto; max-height:400px; object-fit:cover; }
 .mn-orbit { width:190px; }
 .mn-orbit span { font-size:80px; }
 .mn-sidebar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px; }
}
@media(max-width:540px) {
 .mn-blog-page #content > .ast-container { padding:0 18px; }
 .mn-grid,.mn-sidebar { grid-template-columns:1fr; }
 .mn-card-body { padding:22px; }
 .mn-card h3 { font-size:21px; }
 .mn-hero h1 { font-size:40px; }
 .mn-topics { gap:10px 13px; }
}
@media(prefers-reduced-motion:reduce) { .mn-card,.mn-blog .mn-button { transition:none; } .mn-card:hover { transform:none; } }
/* Masquer le bandeau Astra uniquement sur notre blog */
body.mn-blog-page .ast-archive-entry-banner {
    display: none !important;
}

/* Placer le menu au-dessus de notre bannière */
body.mn-blog-page #masthead {
    position: relative !important;
    background: #0D0D0D !important;
}

body.mn-blog-page #masthead .main-header-bar,
body.mn-blog-page #masthead .ast-primary-header-bar {
    background: #0D0D0D !important;
}
/* Recherche : menu noir, au-dessus du contenu */
body.search #masthead {
    position: relative !important;
    background: #0D0D0D !important;
}

body.search #masthead .main-header-bar,
body.search #masthead .ast-primary-header-bar {
    background: #0D0D0D !important;
}

/* Recherche : remplacer le bandeau blanc par du noir */
body.search .ast-archive-entry-banner {
    background: #0D0D0D !important;
    background-image: none !important;
    min-height: auto !important;
    padding: 40px 24px !important;
    margin: 0 !important;
}

body.search .ast-archive-entry-banner::before,
body.search .ast-archive-entry-banner::after {
    display: none !important;
}

body.search .ast-archive-entry-banner h1 {
    color: #D4AF37 !important;
    font-size: clamp(26px, 4vw, 42px);
}

body.search .ast-archive-entry-banner p {
    color: #F8F8F8 !important;
}
/* MENTORINOVA — ARTICLES INDIVIDUELS
   Ajouter à la fin de style.css du thème enfant, sans remplacer le reste.
   Version 1.0 — styles limités à body.single-post.
*/

/* Cadre noir entouré d'une lueur or, comme la référence. */
body.single-post {
    background-color: #0D0D0D !important;
    background-image:
        radial-gradient(ellipse at 15% 5%, rgba(212,175,55,.32), transparent 48%),
        radial-gradient(ellipse at 90% 30%, rgba(212,175,55,.20), transparent 50%) !important;
    background-attachment: fixed;
    color: #F8F8F8;
}
body.single-post #page {
    width: calc(100% - 48px);
    max-width: 1240px;
    margin: 32px auto;
    background: #0D0D0D;
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 16px;
    box-shadow: 0 0 90px rgba(212,175,55,.10);
}
body.single-post #masthead {
    position: relative !important;
    background: #0D0D0D !important;
    border-radius: 16px 16px 0 0;
}
body.single-post #masthead .main-header-bar,
body.single-post #masthead .ast-primary-header-bar {
    background: #0D0D0D !important;
    border-radius: 16px 16px 0 0;
}
body.single-post #content { background: #0D0D0D !important; }
body.single-post #content > .ast-container {
    display: block !important;
    width: 100% !important;
    max-width: 1100px !important;
    padding: 0 32px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
}
body.single-post #primary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
body.single-post #secondary { display: none !important; }
body.single-post .ast-article-single {
    background: transparent !important;
    border: 0 !important;
    padding: 64px 0 48px !important;
    margin: 0 !important;
}

/* Date/auteur, titre centré, puis grande image. */
body.single-post .ast-article-single .entry-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 46px !important;
    padding: 0 !important;
}
body.single-post .entry-header .entry-meta {
    order: 1;
    width: auto;
    max-width: 100%;
    margin: 0 auto 22px !important;
    padding: 8px 15px;
    background: #16150F;
    border: 1px solid rgba(212,175,55,.25);
    border-radius: 24px;
    color: #BFBBAE !important;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}
body.single-post .entry-meta a { color: #D4AF37 !important; }
body.single-post .entry-meta .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
}
body.single-post .entry-header .entry-title {
    order: 2;
    max-width: 880px;
    margin: 0 auto 34px !important;
    color: #F8F8F8 !important;
    font-family: Montserrat, Arial, sans-serif;
    font-size: clamp(28px, 3.6vw, 48px) !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.035em;
    text-align: center !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
body.single-post .entry-header .post-thumb {
    order: 3;
    width: 100%;
    max-width: 920px;
    margin: 0 auto !important;
    padding: 0 !important;
}
body.single-post .post-thumb img.wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,.35);
}

/* Colonne de lecture centrée ; texte aligné à gauche comme la référence. */
body.single-post .ast-article-single .entry-content {
    --wp--style--global--content-size: 720px;
    --wp--style--global--wide-size: 720px;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #C9C9C9;
    text-align: left;
    overflow-wrap: break-word;
}
body.single-post .entry-content > :where(p, h2, h3, h4, figure, blockquote, div) {
    max-width: 100%;
}
body.single-post .entry-content p { margin-bottom: 1.5em; }
body.single-post .entry-content strong { color: #F8F8F8; }
body.single-post .entry-content :is(h2, h3, h4) {
    font-family: Montserrat, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.8em;
    margin-bottom: .8em;
}
body.single-post .entry-content h2 { color: #D4AF37; font-size: clamp(23px, 2.3vw, 30px); }
body.single-post .entry-content h3 { color: #F8F8F8; font-size: 22px; }
body.single-post .entry-content h4 { color: #F8F8F8; font-size: 19px; }
body.single-post .entry-content a:not(.wp-element-button):not(.wp-block-button__link) {
    color: #D4AF37;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.single-post .entry-content :is(ul, ol) { padding-left: 1.4em; margin: 0 0 1.5em; }
body.single-post .entry-content li { margin-bottom: .5em; }
body.single-post .entry-content li::marker { color: #D4AF37; }
body.single-post .entry-content blockquote {
    margin: 30px 0;
    padding: 22px;
    border-left: 3px solid #D4AF37;
    background: #18160F;
    color: #E6E2D5;
}
body.single-post .entry-content blockquote p:last-child { margin-bottom: 0; }
body.single-post .entry-content :is(.alignwide, .alignfull) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.single-post .entry-content :is(img, video) { max-width: 100%; height: auto; border-radius: 10px; }
body.single-post .entry-content iframe { max-width: 100%; }
body.single-post .entry-content .wp-block-table { overflow-x: auto; }
body.single-post .entry-content table { border-color: #393325; font-size: 14px; }
body.single-post .entry-content :is(th, td) { border-color: #393325; padding: 12px; }
body.single-post .entry-content th { background: #211D11; color: #D4AF37; }
body.single-post .entry-content pre { overflow-x: auto; padding: 20px; background: #191919; color: #EEE; }
body.single-post .entry-content .wp-block-button__link {
    background: #D4AF37;
    color: #0D0D0D;
    border-radius: 30px;
    font-weight: 700;
}

/* Bas de l'article dans la même largeur de lecture. */
body.single-post :is(.post-navigation, .comments-area) {
    max-width: 720px;
    margin: 30px auto !important;
    padding: 24px 0 !important;
    background: transparent !important;
    color: #C9C9C9;
    border-color: #393325;
}
body.single-post .post-navigation a { color: #D4AF37; }
body.single-post .comments-area :is(h2, h3) { color: #F8F8F8; }
body.single-post .comments-area :is(input:not([type=submit]):not([type=checkbox]), textarea) {
    background: #181818;
    color: #F8F8F8;
    border: 1px solid #454030;
}
body.single-post .comments-area input[type=submit] { background: #D4AF37; color: #0D0D0D; }
body.single-post #content :is(a, button, input, textarea):focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    body.single-post #page { width: calc(100% - 20px); margin: 10px auto; border-radius: 12px; }
    body.single-post #content > .ast-container { padding: 0 20px !important; }
    body.single-post .ast-article-single { padding: 36px 0 28px !important; }
    body.single-post .ast-article-single .entry-header { margin-bottom: 30px !important; }
    body.single-post .entry-header .entry-title { font-size: clamp(27px, 5.5vw, 38px) !important; margin-bottom: 25px !important; }
    body.single-post .ast-article-single .entry-content { font-size: 16px; line-height: 1.8; }
}
/* MENTORINOVA — MENU ET FOOTER GLOBAUX — VERSION 1.2
   Ajouter à la FIN de style.css, sans supprimer les styles du blog.
*/
#mn-global-header, #mn-global-footer {
    --mn-ui-gold: #D4AF37;
    --mn-ui-white: #F8F8F8;
    --mn-ui-muted: #B8B8B8;
    box-sizing: border-box;
    color: var(--mn-ui-white);
    font-family: Poppins, Arial, sans-serif;
    line-height: 1.6;
    text-align: left;
}
#mn-global-header *, #mn-global-footer * { box-sizing: border-box; }
#mn-global-header [hidden] { display: none !important; }
#mn-global-header a, #mn-global-footer a { text-decoration: none; }
#mn-global-header :is(a,button):focus-visible,
#mn-global-footer a:focus-visible { outline: 2px solid #D4AF37; outline-offset: 5px; border-radius: 5px; }
#mn-global-header {
    position: sticky;
    top: var(--mn-admin-offset, 0px);
    width: 100%;
    z-index: 100;
    background: #0D0D0D;
    border-bottom: 1px solid rgba(212,175,55,.16);
}
/* Éviter qu'un conteneur Astra empêche le menu de rester collant. */
body.mn-navigation-active { overflow-x: clip; }
body.mn-navigation-active #page { overflow: visible !important; }
body.admin-bar #mn-global-header { --mn-admin-offset: 32px; }
#mn-global-header.mn-is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.38); }
@media (max-width: 782px) {
    body.admin-bar #mn-global-header { --mn-admin-offset: 46px; }
}
#mn-global-header .mn-header-inner {
    width: 100%; max-width: 1340px; margin: 0 auto;
    min-height: 92px; padding: 18px 30px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
:is(#mn-global-header,#mn-global-footer) .mn-brand { display: inline-flex; align-items: center; flex-shrink: 0; color: #F8F8F8; }
:is(#mn-global-header,#mn-global-footer) .mn-brand-logo { display: block; width: auto; height: auto; max-width: 205px; max-height: 58px; object-fit: contain; }
:is(#mn-global-header,#mn-global-footer) .mn-brand-word { font-family: Montserrat,Arial,sans-serif; font-size: 20px; font-weight: 800; letter-spacing: .035em; line-height: 1.2; white-space: nowrap; }
:is(#mn-global-header,#mn-global-footer) .mn-brand-word > span { color: #D4AF37; }
#mn-global-header .mn-main-nav { display: flex; align-items: center; gap: 24px; }
#mn-global-header .mn-menu { display: flex; align-items: center; gap: 19px; list-style: none; margin: 0; padding: 0; }
#mn-global-header .mn-menu li { list-style: none; position: relative; margin: 0; padding: 0; }
#mn-global-header .mn-menu a { display: inline-block; color: #EAEAEA; font-size: 12px; font-weight: 500; padding: 12px 0; white-space: nowrap; transition: color .18s; }
#mn-global-header .mn-menu a:hover,
#mn-global-header .mn-menu a[aria-current],
#mn-global-header .mn-menu > .current-menu-item > a,
#mn-global-header .mn-menu > .current-menu-ancestor > a { color: #D4AF37; }
#mn-global-header .mn-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 38px; padding: 0; margin: 0; border: none; border-radius: 5px; background: transparent; color: #D4AF37; vertical-align: middle; cursor: pointer; }
#mn-global-header .mn-submenu-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
#mn-global-header .mn-menu .sub-menu { margin: 0; padding: 10px 16px; background: #171717; border: 1px solid #D4AF3740; border-radius: 12px; list-style: none; }
#mn-global-header.mn-nav-ready .mn-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 270px; box-shadow: 0 20px 40px #0006; z-index: 3; }
#mn-global-header .mn-menu .sub-menu a { display: block; white-space: normal; padding: 12px 8px; line-height: 1.5; }
#mn-global-header.mn-nav-ready .sub-menu .sub-menu { top: 0; left: 100%; }
#mn-global-header .sub-menu .mn-has-submenu { padding-right: 28px; }
#mn-global-header .sub-menu .mn-submenu-toggle { position: absolute; right: 0; top: 3px; }
:is(#mn-global-header,#mn-global-footer) .mn-nav-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 16px;
    padding: 13px 19px; background: #D4AF37; color: #0D0D0D;
    border: 1px solid #D4AF37; border-radius: 100px;
    font-size: 12px; font-weight: 700; line-height: 1.6;
    white-space: nowrap; transition: background .18s;
}
:is(#mn-global-header,#mn-global-footer) .mn-nav-cta:hover { background: #EACB65; border-color: #EACB65; color: #0D0D0D; }
#mn-global-header .mn-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #D4AF3755; color: #F8F8F8; background: #171717; border-radius: 8px; padding: 10px 14px; font: 600 13px/1.5 Poppins,Arial,sans-serif; cursor: pointer; }

#mn-global-footer { width: 100%; background: #0D0D0D; border-top: 1px solid rgba(212,175,55,.2); }
#mn-global-footer .mn-footer-inner { max-width: 1280px; padding: 0 38px; margin: 0 auto; }
#mn-global-footer .mn-footer-invite { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 60px 0 48px; border-bottom: 1px solid #FFFFFF12; background: radial-gradient(ellipse at 75% 45%,#D4AF3710,transparent 60%); }
#mn-global-footer .mn-footer-kicker { color: #D4AF37; font-size: 10px; font-weight: 600; letter-spacing: .17em; margin: 0 0 14px; }
#mn-global-footer .mn-footer-invite h2 { color: #F8F8F8; font-family: Montserrat,Arial,sans-serif; font-size: clamp(28px,3vw,40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 0; }
#mn-global-footer .mn-footer-invite h2 > span { color: #D4AF37; }
#mn-global-footer .mn-footer-invite .mn-nav-cta { padding: 15px 25px; font-size: 13px; }
#mn-global-footer .mn-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.15fr; gap: 34px; padding: 48px 0; }
#mn-global-footer .mn-footer-grid > * { min-width: 0; }
#mn-global-footer .mn-footer-grid h2 { margin: 3px 0 18px; font-family: Montserrat,Arial,sans-serif; font-weight: 600; font-size: 14px; color: #F8F8F8; line-height: 1.5; }
#mn-global-footer .mn-footer-grid p { color: #B8B8B8; font-size: 12px; line-height: 1.85; margin: 17px 0 0; }
#mn-global-footer .mn-footer-grid ul { list-style: none; padding: 0; margin: 0; }
#mn-global-footer .mn-footer-grid li { list-style: none; padding: 0; margin: 0 0 12px; }
#mn-global-footer .mn-footer-grid li a { color: #B8B8B8; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
#mn-global-footer .mn-footer-grid a:hover { color: #D4AF37; }
#mn-global-footer .mn-footer-grid a.mn-whatsapp-link { color: #D4AF37; }
#mn-global-footer .mn-footer-grid .mn-social-heading { color: #F8F8F8; font-size: 12px; font-weight: 600; margin: 22px 0 10px; }
#mn-global-footer .mn-socials { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 310px; gap: 8px; margin-top: 0; }
#mn-global-footer .mn-socials a { display: flex; align-items: center; gap: 8px; min-height: 42px; color: #F8F8F8; padding: 9px 10px; border: 1px solid #D4AF3738; border-radius: 9px; font-size: 12px; background: #15140F; }
#mn-global-footer .mn-socials svg { color: #D4AF37; flex-shrink: 0; }
#mn-global-footer .mn-socials a:hover { border-color: #D4AF37; }
#mn-global-footer .mn-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid #FFFFFF12; padding: 23px 0; }
#mn-global-footer .mn-footer-bottom p { margin: 0; color: #AAA; font-size: 11px; }
#mn-global-footer .mn-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
#mn-global-footer .mn-footer-bottom a { font-size: 11px; color: #AAA; }
#mn-global-footer .mn-footer-bottom a:hover { color: #D4AF37; }
body.single-post #mn-global-header { border-radius: 16px 16px 0 0; }
body.single-post #mn-global-footer { border-radius: 0 0 16px 16px; }

/* Ordinateurs compacts et tablettes : navigation toujours visible. */
@media (min-width: 768px) and (max-width: 1200px) {
    #mn-global-header .mn-header-inner { flex-wrap: wrap; gap: 10px 20px; padding: 18px 24px 12px; }
    #mn-global-header .mn-main-nav { display: flex; width: 100%; justify-content: space-between; gap: 14px; }
    #mn-global-header .mn-menu { gap: 14px; }
    #mn-global-header .mn-menu a { font-size: 12px; }
    #mn-global-header .mn-nav-cta { font-size: 11px; padding: 11px 14px; gap: 10px; }
    #mn-global-footer .mn-footer-grid { grid-template-columns: 1.3fr 1fr; gap: 34px; }
}
/* Le bouton Menu est réservé aux petits écrans. */
@media (max-width: 767px) {
    #mn-global-header .mn-header-inner { min-height: 80px; padding: 16px 24px; flex-wrap: wrap; gap: 0 20px; }
    #mn-global-header .mn-main-nav { width: 100%; flex-basis: 100%; display: flex; align-items: stretch; flex-direction: column; gap: 20px; padding: 20px 0 10px; max-height: calc(100vh - var(--mn-admin-offset, 0px) - 94px); max-height: calc(100dvh - var(--mn-admin-offset, 0px) - 94px); overflow-y: auto; overscroll-behavior: contain; }
    #mn-global-header .mn-menu { display: block; width: 100%; }
    #mn-global-header .mn-menu > li { border-top: 1px solid #FFFFFF12; }
    #mn-global-header .mn-menu a { font-size: 15px; padding: 14px 8px; }
    #mn-global-header .mn-has-submenu > a { padding-right: 48px; }
    #mn-global-header .mn-submenu-toggle { position: absolute; right: 0; top: 5px; width: 44px; height: 44px; }
    #mn-global-header.mn-nav-ready .mn-menu .sub-menu,
    #mn-global-header.mn-nav-ready .sub-menu .sub-menu { position: static; min-width: 0; width: 100%; box-shadow: none; margin: 0 0 12px; padding: 4px 12px; }
    #mn-global-header .mn-menu .sub-menu a { font-size: 13px; }
    #mn-global-header .mn-nav-cta { align-self: flex-start; font-size: 13px; }
    #mn-global-header .sub-menu .mn-has-submenu { padding-right: 0; }
    #mn-global-footer .mn-footer-grid { grid-template-columns: 1.3fr 1fr; gap: 34px; }
}
@media (max-width: 600px) {
    #mn-global-header .mn-header-inner { padding: 15px 18px; gap: 0 10px; min-height: 74px; }
    :is(#mn-global-header,#mn-global-footer) .mn-brand-word { font-size: 17px; }
    :is(#mn-global-header,#mn-global-footer) .mn-brand-logo { max-width: 175px; max-height: 46px; }
    #mn-global-header .mn-menu-toggle { padding: 8px 10px; gap: 8px; }
    #mn-global-footer .mn-footer-inner { padding: 0 24px; }
    #mn-global-footer .mn-footer-invite { flex-direction: column; align-items: flex-start; padding: 38px 0; gap: 25px; }
    #mn-global-footer .mn-footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
    #mn-global-footer .mn-footer-grid h2 { margin-bottom: 13px; font-size: 16px; }
    #mn-global-footer .mn-footer-grid li a,#mn-global-footer .mn-footer-grid p { font-size: 14px; }
    #mn-global-footer .mn-socials a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #mn-global-header .mn-menu a, :is(#mn-global-header,#mn-global-footer) .mn-nav-cta { transition: none; }
}
/* MENTORINOVA — LIA, WIDGET IA — VERSION 1.0
   Ajouter à la fin de style.css du thème enfant.
*/
#mn-lia-widget {
    --lia-gold: #D4AF37;
    --lia-view-height: 100dvh;
    position: fixed !important;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    width: auto;
    max-width: calc(100vw - 32px);
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #F8F8F8;
    text-align: left;
}
#mn-lia-widget *, #mn-lia-widget *::before, #mn-lia-widget *::after { box-sizing: border-box; }
#mn-lia-widget [hidden] { display: none !important; }
#mn-lia-widget :is(button, textarea, a) { font-family: inherit; }
#mn-lia-widget button { cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; }
#mn-lia-widget button:disabled { opacity: .5; cursor: not-allowed; }
#mn-lia-widget :is(a, button, textarea):focus-visible { outline: 2px solid #F1D986; outline-offset: 3px; }
#mn-lia-widget .lia-launcher {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; max-width: 100%; padding: 10px 20px 10px 12px;
    background: #D4AF37; color: #0D0D0D;
    border: 1px solid #E4C75F; border-radius: 50px;
    font-size: 13px; font-weight: 700; line-height: 1.4;
    box-shadow: 0 8px 35px #0005, 0 0 25px #D4AF3720;
}
#mn-lia-widget .lia-launcher:hover { background: #E5C458; }
#mn-lia-widget .lia-launcher-icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #0D0D0D; color: #D4AF37; }
#mn-lia-widget .lia-panel {
    display: flex; flex-direction: column;
    width: 390px; max-width: calc(100vw - 32px);
    height: 610px;
    max-height: calc(100vh - 140px);
    max-height: calc(var(--lia-view-height) - 140px);
    min-height: 200px;
    background: #111111; border: 1px solid #D4AF3755; border-radius: 20px;
    box-shadow: 0 22px 70px #0009; overflow: hidden;
}
#mn-lia-widget .lia-header { display: flex; align-items: center; gap: 12px; padding: 17px 18px; flex-shrink: 0; background: linear-gradient(120deg,#252012,#141414); border-bottom: 1px solid #D4AF3728; }
#mn-lia-widget .lia-avatar { width: 43px; height: 43px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid #D4AF37; border-radius: 50%; color: #D4AF37; font-size: 24px; font-weight: 700; }
#mn-lia-widget .lia-heading { flex: 1; min-width: 0; }
#mn-lia-widget .lia-heading h2 { color: #F8F8F8; font-family: Montserrat,Arial,sans-serif; font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 3px; }
#mn-lia-widget .lia-heading p { color: #C3B481; font-size: 11px; line-height: 1.5; margin: 0; }
#mn-lia-widget .lia-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #FFFFFF15; background: #FFFFFF05; color: #DDD; border-radius: 50%; font-size: 25px; font-weight: 400; line-height: 1; }
#mn-lia-widget .lia-messages { display: flex; flex-direction: column; gap: 13px; min-height: 70px; flex: 1; padding: 20px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #706132 #171717; }
#mn-lia-widget .lia-bubble { max-width: 92%; padding: 12px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.75; }
#mn-lia-widget .lia-assistant { align-self: flex-start; border: 1px solid #FFFFFF12; background: #1E1E1E; color: #E7E7E7; border-bottom-left-radius: 4px; }
#mn-lia-widget .lia-user { align-self: flex-end; background: #D4AF37; color: #0D0D0D; border-bottom-right-radius: 4px; }
#mn-lia-widget .lia-pending { color: #D4AF37; font-size: 12px; }
#mn-lia-widget .lia-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 14px; flex-shrink: 0; }
#mn-lia-widget .lia-shortcuts :is(button,a) { display: inline-block; color: #E5CB7A; border: 1px solid #D4AF373D; border-radius: 20px; background: #D4AF3709; padding: 7px 10px; font-size: 11px; font-weight: 500; line-height: 1.5; text-decoration: none; }
#mn-lia-widget .lia-shortcuts :is(button,a):hover { background: #D4AF371C; }
#mn-lia-widget .lia-feedback { padding: 0 16px; color: #E6C57B; margin: 0; font-size: 12px; line-height: 1.6; }
#mn-lia-widget .lia-feedback:not(:empty) { padding-bottom: 10px; }
#mn-lia-widget .lia-compose { display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-top: 1px solid #FFFFFF12; margin: 0; flex-shrink: 0; background: #141414; }
#mn-lia-widget .lia-compose textarea { flex: 1; width: 100%; min-width: 0; height: 50px; min-height: 50px; max-height: 100px; padding: 12px; margin: 0; background: #202020; color: #F8F8F8; border: 1px solid #FFFFFF14; border-radius: 10px; resize: vertical; font-size: 14px; line-height: 1.6; }
#mn-lia-widget .lia-compose textarea::placeholder { color: #AAA; opacity: 1; }
#mn-lia-widget .lia-send { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: #D4AF37; color: #0D0D0D; }
#mn-lia-widget .lia-bottom { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 14px 12px; flex-shrink: 0; background: #141414; color: #AAAAAA; font-size: 9px; line-height: 1.5; text-align: center; }
#mn-lia-widget .lia-reset { background: none; border: 0; padding: 3px; color: #CBB36A; font-size: 10px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
#mn-lia-widget .lia-bottom-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
#mn-lia-widget .lia-bottom-actions a { color: #D4AF37; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 540px) {
    #mn-lia-widget { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); gap: 10px; }
    #mn-lia-widget .lia-launcher { min-height: 52px; padding: 8px 15px 8px 10px; font-size: 12px; }
    #mn-lia-widget .lia-panel { width: min(390px,calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100vh - 110px); max-height: calc(var(--lia-view-height) - 110px); border-radius: 16px; }
    #mn-lia-widget .lia-compose textarea { font-size: 16px; }
}
@media(max-height: 560px) {
    #mn-lia-widget .lia-shortcuts { display: none; }
    #mn-lia-widget .lia-header { padding: 10px 14px; }
    #mn-lia-widget .lia-bottom > span { display: none; }
}
/* LIA — PLEIN ECRAN MOBILE
   Ajouter à la FIN de style.css, après les styles Lia existants.
   Le bouton de fermeture existant permet de revenir au site.
*/
@media (max-width: 767px) {
    html:has(#mn-lia-panel:not([hidden])),
    body:has(#mn-lia-panel:not([hidden])) {
        overflow: hidden !important;
        overscroll-behavior: none;
    }
    #mn-lia-widget:has(#mn-lia-panel:not([hidden])) {
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 100vh;
        height: var(--lia-view-height, 100dvh);
        gap: 0;
        z-index: 1000000;
    }
    #mn-lia-widget:has(#mn-lia-panel:not([hidden])) .lia-launcher {
        display: none !important;
    }
    #mn-lia-widget #mn-lia-panel {
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    #mn-lia-widget .lia-header {
        padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
    }
    #mn-lia-widget .lia-close {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    #mn-lia-widget .lia-messages {
        min-height: 0;
        padding: 20px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
        -webkit-overflow-scrolling: touch;
    }
    #mn-lia-widget .lia-bubble { font-size: 14px; max-width: 88%; }
    #mn-lia-widget .lia-compose {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }
    #mn-lia-widget .lia-compose textarea {
        font-size: 16px;
        resize: none;
        border-radius: 22px;
    }
    #mn-lia-widget .lia-send { border-radius: 50%; }
    #mn-lia-widget .lia-bottom {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}
/* LIA — INDICATEUR D'ECRITURE
   Ajouter à la fin de style.css, après les autres styles de Lia.
   Le texte d'attente reste accessible aux lecteurs d'écran.
*/
#mn-lia-widget .lia-bubble.lia-pending {
    position: relative;
    width: 66px;
    min-width: 66px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
}
#mn-lia-widget .lia-bubble.lia-pending::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 13px 0 0 #D4AF3760, 26px 0 0 #D4AF3760;
    animation: mn-lia-writing 1.2s infinite ease-in-out;
}
@keyframes mn-lia-writing {
    0%, 100% {
        background: #D4AF37;
        box-shadow: 13px 0 0 #D4AF3760, 26px 0 0 #D4AF3760;
    }
    33% {
        background: #D4AF3760;
        box-shadow: 13px 0 0 #D4AF37, 26px 0 0 #D4AF3760;
    }
    66% {
        background: #D4AF3760;
        box-shadow: 13px 0 0 #D4AF3760, 26px 0 0 #D4AF37;
    }
}
@media (prefers-reduced-motion: reduce) {
    #mn-lia-widget .lia-bubble.lia-pending::before {
        animation: none;
        box-shadow: 13px 0 0 #D4AF37, 26px 0 0 #D4AF37;
    }
}
