/* MAKOLLI SA V6 — compatibilité Divi 4 / Divi 5.
   Chaque section du site est une section Divi qui porte les classes mk-sec… ; une rangée et une colonne pleine largeur
   contiennent un module Texte ou Code. Ces règles retirent les marges et largeurs par défaut de Divi
   pour que la mise en page « mk- » s'applique telle quelle. Rien ici ne modifie le thème parent. */

/* En-tête et pied de page Divi remplacés par ceux du thème enfant */
body.mk-site #main-header,body.mk-site #top-header,body.mk-site #main-footer,
body.mk-site .et-l--header,body.mk-site .et-l--footer{display:none!important}
body.mk-site #page-container{padding-top:0!important;margin-top:0!important;overflow:visible!important}
body.mk-site #et-main-area,body.mk-site #main-content{background:transparent}
body.mk-site #main-content .container{width:100%;max-width:none;padding-top:0}
body.mk-site #main-content .container::before{display:none}
body.mk-site .et_pb_post .entry-content,body.mk-site article.page{padding:0;margin:0}

/* Sections, rangées, colonnes, modules */
body.mk-site .et_pb_section.mk-sec{padding:var(--sec) 0;background-color:var(--bg)}
body.mk-site .et_pb_section.mk-sec--tight{padding:var(--sec-t) 0}
body.mk-site .et_pb_section.mk-sec--flush{padding:0}
body.mk-site .et_pb_section.mk-sec--head{padding:clamp(28px,3vw,44px) 0 var(--sec-t)}
body.mk-site .et_pb_section.mk-sec .et_pb_row{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
body.mk-site .et_pb_section.mk-sec .et_pb_column{width:100%!important;margin:0!important;padding:0!important;float:none}
body.mk-site .et_pb_section.mk-sec .et_pb_module{margin:0!important;padding:0!important}
body.mk-site .et_pb_section.mk-sec .et_pb_text_inner>*:last-child{margin-bottom:0}
body.mk-site .et_pb_section.mk-sec .et_pb_code_inner{position:static}

/* Divi applique ses propres réglages typographiques aux balises : on rend la main au système mk- */
body.mk-site .et_pb_section.mk-sec h1,body.mk-site .et_pb_section.mk-sec h2,body.mk-site .et_pb_section.mk-sec h3,body.mk-site .et_pb_section.mk-sec h4{padding-bottom:0;color:inherit;font-weight:400;line-height:inherit}
body.mk-site .et_pb_section.mk-sec h2.mk-h3,body.mk-site .et_pb_section.mk-sec .mk-h3{line-height:1.25}
body.mk-site .et_pb_section.mk-sec p{padding-bottom:0}
body.mk-site .et_pb_section.mk-sec ul,body.mk-site .et_pb_section.mk-sec ol{padding:0;line-height:inherit}
body.mk-site .et_pb_section.mk-sec .mk-prose ul{list-style:disc;padding-left:20px}
body.mk-site .et_pb_section.mk-sec a{color:inherit}
body.mk-site .et_pb_section.mk-sec .mk-btn--gold{color:var(--ink)}
body.mk-site .et_pb_section.mk-sec .mk-btn--ink{color:var(--on)}
body.mk-site .et_pb_section.mk-sec input,body.mk-site .et_pb_section.mk-sec select,body.mk-site .et_pb_section.mk-sec textarea{font-family:var(--f-t)}
body.mk-site{font-family:var(--f-t);font-size:17px;line-height:1.65;color:var(--tx)}

/* Menus WordPress (le thème enfant les affiche sous forme de liens simples) */
.mk-nav a[aria-current="page"],.mk-drawer a[aria-current="page"]{color:var(--on)}

/* Liste d'articles (module Blog Divi sur la page /blog/) */
body.mk-site .mk-blog-grid{max-width:var(--max);margin:0 auto!important;padding:0 var(--pad)!important}
body.mk-site .mk-blog-grid .et_pb_post{border:0;background:transparent;padding:0;margin-bottom:40px}
body.mk-site .mk-blog-grid .entry-title{font:400 clamp(19px,1.5vw,22px)/1.3 var(--f-d)!important;padding:12px 0 6px}
body.mk-site .mk-blog-grid .entry-title a{color:var(--tx);text-decoration:none}
body.mk-site .mk-blog-grid .post-meta{font-size:13px;color:var(--tx-3)}
body.mk-site .mk-blog-grid .et_pb_image_container{margin:0}

/* V6.1 — un seul H1 sur les articles Divi : l'en-tête d'article de Divi est masqué en secours */
body.mk-site.single-post.mk-builder .et_post_meta_wrapper,body.mk-site.single-post.mk-builder #left-area>article>.et_post_meta_wrapper{display:none!important}
body.mk-site.mk-builder #sidebar{display:none!important}
body.mk-site.mk-builder #left-area{width:100%!important;padding:0!important;float:none}

/* V6.1 — FAQ en modules natifs : rangée deux colonnes (titre | bascules) */
body.mk-site .et_pb_section.mk-sec .et_pb_row.mk-dv-faq{display:grid!important;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(32px,6vw,104px);
  width:auto!important;max-width:var(--max)!important;margin:0 auto!important;padding:0 var(--pad)!important;align-items:start}
body.mk-site .et_pb_row.mk-dv-faq::after{display:none}
body.mk-site .et_pb_row.mk-dv-faq>.et_pb_column{width:auto!important;margin:0!important}
body.mk-site .mk-dv-toggle.et_pb_toggle{border:0;border-bottom:1px solid var(--line-s);background:transparent!important;padding:0!important;margin:0!important}
body.mk-site .mk-dv-toggle.et_pb_toggle:first-child{border-top:1px solid var(--line-s)}
body.mk-site .mk-dv-toggle .et_pb_toggle_title{font:400 clamp(18px,1.4vw,21px)/1.35 var(--f-d)!important;color:var(--tx)!important;padding:20px 44px 20px 0!important;position:relative}
body.mk-site .mk-dv-toggle .et_pb_toggle_title::before{content:"+"!important;font:300 24px/1 var(--f-t)!important;color:var(--tx)!important;right:4px!important;left:auto!important}
body.mk-site .mk-dv-toggle.et_pb_toggle_open .et_pb_toggle_title::before{content:"−"!important}
body.mk-site .mk-dv-toggle .et_pb_toggle_content{color:var(--tx-2);padding:0 44px 22px 0!important;font-size:17px;line-height:1.65}
body.mk-site .mk-faq-head .mk-ph{margin-top:28px;aspect-ratio:4/5;max-width:340px}
@media (max-width:900px){body.mk-site .et_pb_section.mk-sec .et_pb_row.mk-dv-faq{grid-template-columns:minmax(0,1fr)}body.mk-site .mk-faq-head .mk-ph{display:none}}
