/*
Theme Name: Mon-Hamster Refonte
Description: Refonte éditoriale de Mon-Hamster, thème enfant de ColorMag. Accueil, guides, articles et réglages dédiés.
Author: Thomas
Template: colormag
Version: 0.1.1
Tested up to: 7.1
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: mon-hamster-refonte
*/
@font-face{font-family:'MH Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url('assets/fonts/dm-sans.woff2') format('woff2')}
@font-face{font-family:'MH Rounded';font-style:normal;font-weight:200 1000;font-display:swap;src:url('assets/fonts/nunito.woff2') format('woff2')}
body.mh-refonte{margin:0;background:#faf8f3}
#mh-site img{max-width:100%;height:auto}
#mh-site :where(button,a,input,textarea,select,summary):focus-visible{outline:3px solid var(--mh-brown-dark);outline-offset:4px}
#mh-site button,#mh-site summary{cursor:pointer}
#mh-site .mh-logo-full{aspect-ratio:auto;overflow:visible}
#mh-site .mh-logo-small{aspect-ratio:auto;overflow:visible}
#mh-site .mh-menu{display:flex;align-items:center;gap:20px;padding:0;list-style:none}
#mh-site .mh-menu li{position:relative;list-style:none;margin:0}
#mh-site .mh-menu .sub-menu{display:none;position:absolute;left:0;top:100%;padding:10px;background:var(--mh-paper);border:1px solid var(--mh-border);border-radius:12px;min-width:220px;z-index:10;box-shadow:0 10px 25px #363b3012}
#mh-site .mh-menu li:hover>.sub-menu,#mh-site .mh-menu li:focus-within>.sub-menu{display:block}
#mh-site .mh-menu .sub-menu a{padding:5px 10px;white-space:normal}
#mh-site .mh-menu .sub-menu .sub-menu{left:100%;top:0}
#mh-site .mh-menu .current-menu-item>a{color:var(--mh-brown-dark);text-decoration:underline;text-underline-offset:6px}
#mh-site .mh-header-row .mh-nav{min-width:0}
#mh-site .mh-nav{font-size:12px;gap:0}
#mh-site .mh-hero-photo{height:350px}
#mh-site .mh-editorial-single{grid-template-columns:1fr}
#mh-site .mh-editorial-single .mh-editorial-text{max-width:850px}
#mh-site .mh-editorial-text p+p{margin-top:1em}
#mh-site .mh-video-reserved iframe{display:block;width:100%;height:100%;border:0;aspect-ratio:16/9}
#mh-site .mh-video-playing{padding:0;overflow:hidden}
#mh-site .mh-head-no-image{grid-template-columns:1fr}
#mh-site .mh-article-hero img{display:block;width:100%;max-height:350px;object-fit:cover;border-radius:56px 20px 56px 20px}
#mh-site .mh-campbell-grid{grid-template-areas:'body side'}
#mh-site .mh-side{min-width:0}
#mh-site .mh-side>*{min-width:0;max-width:100%}
#mh-site .mh-widget :where(input,select,textarea,button){min-width:0;max-width:100%;font:inherit;box-sizing:border-box}
#mh-site .mh-widget .wp-block-search__inside-wrapper{display:flex;flex-wrap:wrap;gap:8px}
#mh-site .mh-widget .wp-block-search__input{flex:1 1 100px;width:100%;padding:8px;border:1px solid var(--mh-border);border-radius:8px}
#mh-site .mh-widget .wp-block-search__button{margin:0;padding:8px 12px;border:0;border-radius:8px;color:#fffdfa;background:var(--mh-brown-dark)}
#mh-site .mh-campbell-body .entry-content{color:#4c5145;font-size:18px;line-height:1.85}
#mh-site .entry-content :where(p,ul,ol,figure,table,blockquote,pre,details){margin:0 0 1.3em}
#mh-site .entry-content :where(h2,h3,h4){font-family:'MH Rounded',system-ui,sans-serif;line-height:1.25;margin:1.7em 0 .7em;scroll-margin-top:40px;color:var(--mh-ink)}
#mh-site .entry-content h2{font-size:29px}
#mh-site .entry-content h3{font-size:23px}
#mh-site .entry-content h4{font-size:20px}
#mh-site .entry-content :where(ul,ol){padding-left:1.4em}
#mh-site .entry-content li{margin:.4em 0}
#mh-site .entry-content a{color:var(--mh-brown-dark);text-decoration:underline;text-underline-offset:3px}
#mh-site .entry-content img{max-width:100%;height:auto;border-radius:14px}
#mh-site .entry-content figure{max-width:100%}
#mh-site .entry-content iframe{max-width:100%;aspect-ratio:16/9;height:auto}
#mh-site .entry-content .wp-caption{border:0;max-width:100%}
#mh-site .entry-content :where(figcaption,.wp-caption-text){font-size:13px;color:var(--mh-muted);margin-top:8px}
#mh-site .entry-content .aligncenter{display:block;margin-left:auto;margin-right:auto}
#mh-site .entry-content .alignleft{float:left;margin-right:22px}
#mh-site .entry-content .alignright{float:right;margin-left:22px}
#mh-site .entry-content::after{content:'';display:block;clear:both}
#mh-site .entry-content blockquote{padding:22px 25px;background:var(--mh-sage-soft);border-left:4px solid var(--mh-sage);border-radius:0 16px 16px 0}
#mh-site .entry-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:15px}
#mh-site .entry-content :where(th,td){padding:12px 16px;text-align:left;border-bottom:1px solid var(--mh-border)}
#mh-site .entry-content th{background:var(--mh-sage-soft);color:var(--mh-sage-ink)}
#mh-site .entry-content pre{max-width:100%;overflow-x:auto;padding:20px;background:var(--mh-sage-soft)}
#mh-site .mh-toc a{overflow-wrap:anywhere}
#mh-site .mh-toc-level-3{padding-left:12px!important;font-size:12px}
#mh-site .mh-widget{padding:20px;border:1px solid var(--mh-border);border-radius:18px;background:var(--mh-cream);font-size:14px}
#mh-site .mh-widget h2{font-size:20px;margin-bottom:12px}
#mh-site .mh-widget ul{padding-left:18px}
#mh-site .mh-widget a{color:var(--mh-brown-dark)}
#mh-site .mh-ad{margin:20px 0 28px;max-width:100%;overflow:hidden;clear:both}
#mh-site .mh-ad>span{display:block;font-size:11px;color:var(--mh-muted);margin-bottom:8px}
#mh-site .mh-listing{padding-top:45px;padding-bottom:60px}
#mh-site .mh-listing h1{font-size:clamp(32px,4vw,48px);margin:15px 0 22px}
#mh-site .mh-listing-description{max-width:800px;margin-bottom:30px}
#mh-site .mh-listing-description p{margin-bottom:15px}
#mh-site .mh-listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:35px}
#mh-site .mh-list-card{border:1px solid var(--mh-border);border-radius:20px;overflow:hidden;background:var(--mh-paper);min-width:0}
#mh-site .mh-list-card>div{padding:23px}
#mh-site .mh-list-card h2{font-size:23px;line-height:1.3}
#mh-site .mh-list-image img{display:block;width:100%;height:180px;object-fit:cover}
#mh-site .mh-list-excerpt{font-size:14px;color:var(--mh-muted);margin:15px 0}
#mh-site .mh-empty{margin-top:25px;padding:25px;background:var(--mh-paper);border-radius:20px}
#mh-site .mh-empty form{margin-top:20px}
#mh-site .mh-empty input{width:100%;min-width:0;flex:1;padding:12px;border:1px solid var(--mh-border);border-radius:12px;background:var(--mh-paper);font:inherit}
#mh-site .mh-pagination,#mh-site .pagination{margin:35px 0;display:flex;gap:10px;flex-wrap:wrap}
#mh-site .nav-links{display:flex;gap:10px;flex-wrap:wrap}
#mh-site .page-numbers,#mh-site .post-page-numbers{padding:9px 14px;border:1px solid var(--mh-border);border-radius:10px;font-size:14px}
#mh-site .page-numbers.current{background:var(--mh-sage-soft)}
#mh-site .mh-comments{padding-top:30px;margin-top:35px;border-top:1px solid var(--mh-border);font-size:15px}
#mh-site .mh-comments h2,#mh-site .mh-comments h3{font-size:25px;margin-bottom:20px}
#mh-site .mh-comments .comment-list{list-style:none;padding:0}
#mh-site .mh-comments .children{padding-left:20px}
#mh-site .mh-comments .comment-body{padding:20px 0;border-bottom:1px solid var(--mh-border)}
#mh-site .mh-comments .comment-author{display:flex;gap:12px;align-items:center}
#mh-site .mh-comments .avatar{border-radius:50%}
#mh-site .mh-comments .comment-metadata{font-size:12px;color:var(--mh-muted)}
#mh-site .mh-comments .comment-content p{margin-top:15px}
#mh-site .mh-comments label{display:block;margin:18px 0 5px}
#mh-site .mh-comments :where(input[type=text],input[type=email],input[type=url],textarea),#mh-site .post-password-form input[type=password]{display:block;width:100%;padding:12px;border:1px solid var(--mh-border);border-radius:10px;font:inherit;background:var(--mh-paper);box-sizing:border-box}
#mh-site .mh-comments textarea{min-height:140px}
#mh-site .mh-comments .comment-form-cookies-consent{display:flex;align-items:start;gap:10px;margin:18px 0}
#mh-site .mh-comments .comment-form-cookies-consent label{margin:0}
#mh-site input[type=submit]{padding:12px 22px;border:0;border-radius:100px;font:inherit;background:var(--mh-brown-dark);color:#fffdfa;cursor:pointer;margin-top:15px}
#mh-site .mh-footer-links{padding:0;list-style:none}
#mh-site .mh-footer-links li{list-style:none}
#mh-site .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:981px){body.admin-bar #mh-site .mh-side{top:56px}}
@media(max-width:1150px) and (min-width:841px){#mh-site .mh-menu{gap:12px}#mh-site .mh-logo-full{width:150px}#mh-site .mh-header-row{gap:15px}}
@media(max-width:980px){#mh-site .mh-campbell-grid{grid-template-areas:'side' 'body'}#mh-site .mh-listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:840px){
 #mh-site .mh-menu{display:block;width:100%}
 #mh-site .mh-menu .sub-menu{display:block;position:static;min-width:0;border:0;box-shadow:none;background:transparent;padding:0 0 5px 15px}
 #mh-site .mh-menu .sub-menu a{font-size:13px;border:0;padding:6px 0}
 #mh-site:not(.mh-has-js) .mh-nav{display:flex}
 #mh-site:not(.mh-has-js) .mh-menu-button{display:none}
}
#mh-site:not(.mh-has-js) #mh-search-panel[hidden]{display:block!important}
#mh-site:not(.mh-has-js) #mh-search-toggle{display:none}
@media(max-width:640px){
 #mh-site .mh-hero-photo{height:240px}
 #mh-site .mh-listing-grid{grid-template-columns:1fr}
 #mh-site .mh-campbell-body .entry-content{font-size:17px;line-height:1.85}
 #mh-site .entry-content h2{font-size:26px}
 #mh-site .entry-content h3{font-size:22px}
 #mh-site .entry-content .alignleft,#mh-site .entry-content .alignright{float:none;margin-left:auto;margin-right:auto}
 #mh-site .mh-article-hero img{max-height:270px;border-radius:32px 15px 32px 15px}
 #mh-site .mh-search-row .mh-button{flex-shrink:0}
}
@media(prefers-reduced-motion:reduce){#mh-site *{transition:none!important;scroll-behavior:auto!important}}

/* Header navigation: a separate row handles long existing WordPress menus. */
#mh-site .mh-header .mh-header-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px 24px;min-height:0;padding-top:20px;padding-bottom:0}
#mh-site .mh-header .mh-brand-desktop{grid-column:1;grid-row:1;display:inline-flex}
#mh-site .mh-header .mh-brand-mobile{display:none}
#mh-site .mh-header .mh-logo-full{width:168px}
#mh-site .mh-header .mh-header-actions{grid-column:3;grid-row:1;margin:0;gap:10px}
#mh-site .mh-header .mh-quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;font-size:13px;line-height:1.2;border-radius:14px}
#mh-site .mh-header .mh-menu-button{display:none}
#mh-site .mh-header .mh-nav{grid-column:1/-1;grid-row:2;width:100%;margin:0;padding:10px 0 14px;border-top:1px solid var(--mh-border);display:block;min-width:0}
#mh-site .mh-header .mh-menu{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 6px;width:100%;margin:0;padding:0;list-style:none;min-width:0}
#mh-site .mh-header .mh-menu>li{max-width:100%;min-width:0}
#mh-site .mh-header .mh-menu a{display:flex;align-items:center;min-height:42px;padding:10px 12px;border:0;border-radius:11px;font-size:13px;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-decoration:none;color:var(--mh-ink)}
#mh-site .mh-header .mh-menu a:hover,#mh-site .mh-header .mh-menu .current-menu-item>a,#mh-site .mh-header .mh-menu .current-menu-ancestor>a{color:var(--mh-brown-dark);background:var(--mh-sage-soft);text-decoration:none}
#mh-site .mh-header .mh-has-submenu>a{padding-right:43px}
#mh-site .mh-header .mh-submenu-toggle{display:inline-flex;position:absolute;right:3px;top:5px;align-items:center;justify-content:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:9px;color:var(--mh-brown-dark);background:transparent}
#mh-site .mh-header .mh-submenu-toggle:hover{background:var(--mh-sage)}
#mh-site .mh-chevron{width:8px;height:8px;border-right:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s}
#mh-site .mh-submenu-open>.mh-submenu-toggle .mh-chevron{transform:translateY(2px) rotate(225deg)}
#mh-site .mh-header .mh-menu .sub-menu{display:none;position:absolute;top:100%;left:0;right:auto;width:280px;max-width:calc(100vw - 40px);min-width:0;margin:0;padding:8px;background:var(--mh-paper);border:1px solid var(--mh-border);border-radius:15px;box-shadow:0 12px 30px #363b3015;z-index:10}
#mh-site .mh-header .mh-menu .sub-menu li{min-width:0}
#mh-site .mh-header .mh-menu .sub-menu a{font-size:13px;min-height:44px}
#mh-site .mh-header .mh-menu .sub-menu .sub-menu{position:static;left:auto;right:auto;top:auto;width:auto;max-width:100%;margin:0 6px 5px 12px;padding:0 0 0 8px;border:0;border-left:2px solid var(--mh-sage);border-radius:0;box-shadow:none;background:transparent}
#mh-site.mh-has-js .mh-header .mh-menu li:hover>.sub-menu,#mh-site.mh-has-js .mh-header .mh-menu li:focus-within>.sub-menu{display:none}
#mh-site.mh-has-js .mh-header .mh-menu li.mh-submenu-open>.sub-menu{display:block}
#mh-site:not(.mh-has-js) .mh-header .mh-menu li:hover>.sub-menu,#mh-site:not(.mh-has-js) .mh-header .mh-menu li:focus-within>.sub-menu{display:block}
#mh-site .mh-burger-lines{position:relative;display:block;width:20px;height:16px;flex-shrink:0}
#mh-site .mh-burger-lines>span{position:absolute;left:0;display:block;width:20px;height:2px;background:currentColor;border-radius:2px;transition:transform .18s,opacity .18s,top .18s}
#mh-site .mh-burger-lines>span:nth-child(1){top:0}
#mh-site .mh-burger-lines>span:nth-child(2){top:7px}
#mh-site .mh-burger-lines>span:nth-child(3){top:14px}
#mh-site[data-menu-open='true'] .mh-burger-lines>span:nth-child(1){top:7px;transform:rotate(45deg)}
#mh-site[data-menu-open='true'] .mh-burger-lines>span:nth-child(2){opacity:0}
#mh-site[data-menu-open='true'] .mh-burger-lines>span:nth-child(3){top:7px;transform:rotate(-45deg)}
@media(max-width:980px){
 #mh-site .mh-header .mh-header-row{grid-template-columns:minmax(0,1fr) auto;gap:0;padding-top:14px;padding-bottom:14px}
 #mh-site .mh-header .mh-brand-desktop{display:none}
 #mh-site .mh-header .mh-brand-mobile{display:inline-flex;grid-column:1;grid-row:1;min-width:0}
 #mh-site .mh-header .mh-header-actions{grid-column:2;grid-row:1;gap:7px}
 #mh-site .mh-header .mh-menu-button{display:inline-flex;background:var(--mh-sage-soft);border-color:#dce3cd}
 #mh-site .mh-header .mh-nav{display:none;grid-column:1/-1;grid-row:2;margin-top:14px;padding:10px 0 0;max-height:70vh;overflow-y:auto;overscroll-behavior:contain}
 #mh-site[data-menu-open='true'] .mh-header .mh-nav{display:block}
 #mh-site .mh-header .mh-menu{display:block}
 #mh-site .mh-header .mh-menu a{min-height:50px;padding:13px 12px;font-size:15px;border-radius:11px}
 #mh-site .mh-header .mh-menu>li+li{border-top:1px solid var(--mh-border)}
 #mh-site .mh-header .mh-has-submenu>a{padding-right:54px}
 #mh-site .mh-header .mh-submenu-toggle{right:5px;top:3px;width:44px;height:44px}
 #mh-site .mh-header .mh-menu .sub-menu{position:static;left:auto;right:auto;top:auto;width:auto;max-width:100%;margin:0 0 8px 12px;padding:0 0 0 10px;border:0;border-left:2px solid var(--mh-sage);border-radius:0;box-shadow:none;background:transparent}
 #mh-site .mh-header .mh-menu .sub-menu a{font-size:14px;min-height:48px}
 #mh-site:not(.mh-has-js) .mh-header .mh-nav,#mh-site:not(.mh-has-js) .mh-header .mh-menu .sub-menu{display:block}
 #mh-site:not(.mh-has-js) .mh-header .mh-menu-button{display:none}
}
@media(max-width:480px){
 #mh-site .mh-header .mh-search-button{width:44px;padding:10px}
 #mh-site .mh-header .mh-search-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #mh-site .mh-header .mh-menu-button{padding:10px 12px}
 #mh-site .mh-header .mh-brand-name{font-size:16px}
}
