/*
Theme Name: MaMéNo Blocs
Theme URI: https://mameno.be/
Author: MaMéNo
Description: Thème WordPress natif en blocs (Full Site Editing) pour MaMéNo. Toutes les pages principales sont modifiables visuellement dans l'éditeur de blocs.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: mameno-blocks
*/

html { scroll-behavior: smooth; }
body { margin: 0; }
.wp-site-blocks { overflow: hidden; }
.mameno-card { border: 1px solid rgba(26,34,8,.12); border-radius: 24px; overflow: hidden; box-shadow: 0 16px 45px rgba(45,37,8,.08); background: #fffef9; }
.mameno-card .wp-block-group { padding: 1.4rem; }
.mameno-soft { border-radius: 28px; }
.mameno-kicker { letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .78rem; }
.mameno-quote { border-left: 5px solid #D25817; padding-left: 1.3rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.25rem,2.3vw,1.8rem); line-height: 1.4; }
.mameno-hero { min-height: 72vh; }
.mameno-hero .wp-block-cover__inner-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mameno-page-hero { border-radius: 0 0 34px 34px; overflow: hidden; }
.mameno-doctor-grid .wp-block-column { border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.08); padding: 1.25rem; }
.mameno-contact-card { border-radius: 26px; padding: clamp(1.5rem,4vw,2.6rem); border: 1px solid rgba(26,34,8,.12); }
.wp-block-post-template.is-layout-grid { gap: 1.5rem; }
.wp-block-post { border-radius: 20px; overflow: hidden; }
.mameno-header-logo { margin: 0; line-height: 0; }
.mameno-header-logo img { display: block; width: 170px; height: auto; max-height: 66px; object-fit: contain; }
@media (max-width: 800px) {
  .mameno-hero { min-height: 62vh; }
  .mameno-header-logo img { width: 132px; max-height: 54px; }

  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.25rem 1.5rem 2rem;
    background: #fffef9;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100%;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding-top: 4.25rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > * {
    width: 100% !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: .35rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100% !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
    text-align: left !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: .7rem 0;
    text-align: left;
    font-size: 1.28rem;
    line-height: 1.25;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
    width: 100%;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
    padding-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .05em;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
    display: none;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100% !important;
    min-width: 0 !important;
    padding: .15rem 0 0 !important;
    gap: .65rem 1.25rem;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
    width: auto;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    width: auto;
    padding: .35rem 0;
    font-size: 1.05rem;
    font-weight: 700;
  }

  /* Menu mobile MaMéNo : alignement gauche + palette verte */
  .wp-block-navigation__responsive-container.is-menu-open {
    background: #758C23 !important;
    color: #DDE8B8 !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .items-justified-right,
  .wp-block-navigation__responsive-container.is-menu-open .is-content-justification-right,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    --navigation-layout-justification-setting: flex-start !important;
    --navigation-layout-justify: flex-start !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
    color: #DDE8B8 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-weight: 700 !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item,
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    width: auto !important;
    color: #EEF4D8 !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
    color: #EEF4D8 !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
    fill: currentColor !important;
  }
}

/* ===== MaMéNo 2026 — direction "vert de vie" ===== */
:root{
  --mameno-life:#78A95B;
  --mameno-life-dark:#5F8F47;
  --mameno-life-soft:#EAF4E3;
  --mameno-cream:#FFF9F2;
  --mameno-blush:#E7B9B0;
  --mameno-ink:#24413B;
  --mameno-line:#DCCFC2;
}

body.home{background:var(--mameno-cream);color:var(--mameno-ink)}
body.home .entry-content{background:var(--mameno-cream)}
body.home .entry-content>.wp-block-group{position:relative}
body.home .entry-content>.wp-block-group:not(.mameno-featured-articles){padding-top:clamp(64px,8vw,96px)!important;padding-bottom:clamp(64px,8vw,96px)!important}
body.home .entry-content>.wp-block-group>h2{font-size:clamp(2.25rem,4.8vw,4.2rem);line-height:1.02;letter-spacing:-.02em;max-width:850px;margin-bottom:1rem;color:var(--mameno-ink)}
body.home .entry-content>.wp-block-group>p{max-width:840px;line-height:1.75}

/* Hero : on garde la vidéo mais on lui donne le rendu de la maquette */
body.home .mameno-hero{min-height:92vh;isolation:isolate}
body.home .mameno-hero .wp-block-cover__background{background:linear-gradient(90deg,rgba(30,51,45,.80) 0%,rgba(30,51,45,.46) 48%,rgba(30,51,45,.18) 100%)!important;opacity:1!important}
body.home .mameno-hero .wp-block-cover__inner-container{display:flex;align-items:flex-end;min-height:92vh;padding-bottom:clamp(48px,8vw,96px)}
body.home .mameno-hero .wp-block-cover__inner-container>.wp-block-group{max-width:760px;margin-left:0!important;margin-right:auto!important;padding:clamp(24px,4vw,38px);border-radius:28px;background:linear-gradient(135deg,rgba(31,62,53,.58),rgba(31,62,53,.22));border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px);box-shadow:0 24px 70px rgba(0,0,0,.22)}
body.home .mameno-hero h1{font-size:clamp(2.8rem,6vw,5.7rem);line-height:.98;letter-spacing:-.035em;margin:.15em 0 .28em;text-wrap:balance}
body.home .mameno-hero p.has-large-font-size{font-size:clamp(1.08rem,1.7vw,1.35rem);line-height:1.6;max-width:690px}
body.home .mameno-hero .wp-block-buttons{gap:12px;margin-top:28px}
body.home .mameno-hero .wp-block-button__link{border-radius:999px!important;padding:.95rem 1.35rem!important;font-weight:700;transition:transform .2s ease,box-shadow .2s ease}
body.home .mameno-hero .wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.18)}

/* 1. Pourquoi MaMéNo : éditorial + questionnaire comme carte vedette */
body.home .entry-content>.wp-block-group:nth-of-type(2){background:
  radial-gradient(circle at 95% 8%,rgba(120,169,91,.16),transparent 28%),
  linear-gradient(180deg,#fffaf5 0%,#fff 100%)}
body.home .entry-content>.wp-block-group:nth-of-type(2)>.wp-block-group{margin-top:34px!important;border:1px solid rgba(120,169,91,.30);border-radius:30px!important;padding:clamp(28px,4vw,44px)!important;background:linear-gradient(135deg,var(--mameno-life-soft),#fffaf5);box-shadow:0 24px 60px rgba(74,104,61,.10)}
body.home .entry-content>.wp-block-group:nth-of-type(2)>.wp-block-group h3{font-size:clamp(1.8rem,3vw,2.7rem);margin-top:0;color:var(--mameno-ink)}

/* 2. Expertises : cartes magazine */
body.home .entry-content>.wp-block-group:nth-of-type(3){background:#F7F4EE}
body.home .entry-content>.wp-block-group:nth-of-type(3) .wp-block-columns{gap:22px}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card{border:1px solid rgba(36,65,59,.10);border-radius:26px;background:#fff;box-shadow:0 16px 42px rgba(50,70,62,.09);transition:transform .25s ease,box-shadow .25s ease}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card:hover{transform:translateY(-7px);box-shadow:0 26px 55px rgba(50,70,62,.15)}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card figure{margin:0;aspect-ratio:4/3;overflow:hidden}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card figure img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card:hover figure img{transform:scale(1.035)}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card h3,
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card p{padding-left:22px;padding-right:22px}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card h3{font-size:1.55rem;margin:22px 0 8px}
body.home .entry-content>.wp-block-group:nth-of-type(3) .mameno-card p{padding-bottom:24px}

/* 3. Équipe : vert clair du logo, pas vert chasseur */
body.home .entry-content>.wp-block-group:nth-of-type(4){background:
  radial-gradient(circle at 4% 20%,rgba(255,255,255,.22),transparent 24%),
  linear-gradient(135deg,var(--mameno-life) 0%,#8DBB6E 100%)!important;color:#fff!important}
body.home .entry-content>.wp-block-group:nth-of-type(4)>h2{color:#fff!important;text-align:center;margin-inline:auto}
body.home .entry-content>.wp-block-group:nth-of-type(4)>p{text-align:center;margin-inline:auto;color:rgba(255,255,255,.92)}
body.home .entry-content>.wp-block-group:nth-of-type(4) .wp-block-columns{gap:18px;margin-top:18px}
body.home .entry-content>.wp-block-group:nth-of-type(4) .mameno-card{background:rgba(255,255,255,.96)!important;border:1px solid rgba(255,255,255,.55);border-radius:22px;box-shadow:0 18px 42px rgba(47,84,36,.16);padding:26px!important;color:var(--mameno-ink)!important}
body.home .entry-content>.wp-block-group:nth-of-type(4) .mameno-card h3{font-size:1.35rem;margin:.1rem 0 .35rem}
body.home .entry-content>.wp-block-group:nth-of-type(4) .mameno-card .mameno-kicker{color:var(--mameno-life-dark)!important}

/* Articles : harmonisation avec la nouvelle palette */
body.home .mameno-featured-articles{background:radial-gradient(circle at 8% 15%,rgba(120,169,91,.13),transparent 34%),linear-gradient(180deg,#fffdf9 0%,#f7f0e9 100%)!important}
body.home .mameno-featured-articles .mameno-featured-title{color:var(--mameno-ink)!important}
body.home .mameno-featured-articles .wp-block-latest-posts li{border-color:var(--mameno-line)!important;box-shadow:0 14px 34px rgba(54,71,62,.09)!important}
body.home .mameno-featured-articles .wp-block-latest-posts__post-title{color:var(--mameno-ink)!important}
body.home .mameno-featured-articles .wp-block-latest-posts li:after{color:var(--mameno-life-dark)!important}

/* Zone locale finale : carte de destination */
body.home .entry-content>.wp-block-group:last-child{background:linear-gradient(135deg,#fff 0%,var(--mameno-life-soft) 100%);border-top:1px solid rgba(120,169,91,.20)}
body.home .entry-content>.wp-block-group:last-child .wp-block-buttons{margin-top:28px;gap:12px}
body.home .entry-content>.wp-block-group:last-child .wp-block-button__link{border-radius:999px!important;padding:.9rem 1.25rem!important}

/* Boutons globaux accueil */
body.home .wp-block-button__link{transition:all .2s ease}
body.home .wp-block-button__link:not(.has-ivory-background-color){background:var(--mameno-life)!important;color:#fff!important}
body.home .wp-block-button__link:hover{filter:saturate(1.05) brightness(.98)}

/* En-tête : vert clair vivant cohérent avec le logo */
body.home header>.wp-block-group{background:rgba(120,169,91,.96)!important;border-bottom-color:rgba(255,255,255,.25)!important;box-shadow:0 6px 26px rgba(49,76,40,.12)}
body.home header .wp-block-navigation-item__content{color:#fff!important}
@media (min-width:801px){
  body.home header .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
  body.page:not(.home) header .wp-block-navigation__submenu-container .wp-block-navigation-item__content{color:#1a2208!important}
}

@media(max-width:900px){
  body.home .mameno-hero{min-height:80vh}
  body.home .mameno-hero .wp-block-cover__inner-container{min-height:80vh;padding-bottom:36px}
  body.home .mameno-hero .wp-block-cover__inner-container>.wp-block-group{padding:24px;border-radius:22px}
  body.home .entry-content>.wp-block-group:nth-of-type(3) .wp-block-columns,
  body.home .entry-content>.wp-block-group:nth-of-type(4) .wp-block-columns{gap:16px}
}

@media(max-width:640px){
  body.home .mameno-hero h1{font-size:clamp(2.35rem,12vw,3.5rem)}
  body.home .mameno-hero .wp-block-buttons{display:grid!important;grid-template-columns:1fr;align-items:stretch}
  body.home .mameno-hero .wp-block-button,
  body.home .mameno-hero .wp-block-button__link{width:100%}
  body.home .entry-content>.wp-block-group>h2{font-size:clamp(2rem,10vw,3rem)}
  body.home .entry-content>.wp-block-group:not(.mameno-featured-articles){padding-top:54px!important;padding-bottom:54px!important}
}

/* ===== Pages intérieures — même spectacle graphique que l'accueil ===== */
body.page:not(.home){background:var(--mameno-cream);color:var(--mameno-ink)}
body.page:not(.home) header>.wp-block-group{background:rgba(120,169,91,.97)!important;border-bottom-color:rgba(255,255,255,.28)!important;box-shadow:0 6px 26px rgba(49,76,40,.12)}
body.page:not(.home) header .wp-block-navigation-item__content{color:#fff!important}
body.page:not(.home) main{padding-bottom:0!important}
body.page:not(.home) .entry-content{background:linear-gradient(180deg,#fffaf4 0%,#fff 48%,#f3f8ef 100%)}
body.page:not(.home) .mameno-page-hero{min-height:clamp(430px,62vh,650px)!important;border-radius:0 0 44px 44px;box-shadow:0 24px 65px rgba(48,69,56,.16);isolation:isolate}
body.page:not(.home) .mameno-page-hero .wp-block-cover__background{background:linear-gradient(90deg,rgba(31,58,49,.78),rgba(31,58,49,.42) 55%,rgba(31,58,49,.18))!important;opacity:1!important}
body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container{display:flex;align-items:flex-end;min-height:inherit;padding-bottom:clamp(34px,6vw,72px)}
body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{margin-left:0!important;margin-right:auto!important;max-width:850px;padding:clamp(22px,4vw,38px);border:1px solid rgba(255,255,255,.25);border-radius:28px;background:linear-gradient(135deg,rgba(44,76,64,.55),rgba(44,76,64,.18));backdrop-filter:blur(8px);box-shadow:0 20px 55px rgba(0,0,0,.18)}
body.page:not(.home) .mameno-page-hero h1{font-size:clamp(2.55rem,5.5vw,5.2rem)!important;line-height:1;letter-spacing:-.035em;text-wrap:balance;margin:.12em 0 .28em}
body.page:not(.home) .mameno-page-hero p.has-large-font-size{font-size:clamp(1.05rem,1.65vw,1.3rem)!important;line-height:1.6;max-width:760px}
body.page:not(.home) .mameno-page-hero .mameno-kicker{color:#eaf4e3!important}

body.page:not(.home) .entry-content>.wp-block-group:not(.mameno-page-hero){position:relative;padding-top:clamp(54px,7vw,84px)!important;padding-bottom:clamp(54px,7vw,84px)!important}
body.page:not(.home) .entry-content h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.06;letter-spacing:-.025em;color:var(--mameno-ink);margin-top:1.35em;margin-bottom:.48em;text-wrap:balance}
body.page:not(.home) .entry-content h3{color:var(--mameno-ink);line-height:1.15}
body.page:not(.home) .entry-content p{line-height:1.75}
body.page:not(.home) .entry-content p.has-large-font-size{font-size:clamp(1.08rem,1.8vw,1.32rem)}
body.page:not(.home) .entry-content a:not(.wp-block-button__link){color:var(--mameno-life-dark);text-decoration-thickness:1px;text-underline-offset:3px}

body.page:not(.home) .mameno-soft,
body.page:not(.home) .entry-content .has-soft-background-color{background:linear-gradient(135deg,var(--mameno-life-soft),#fffaf5)!important;border:1px solid rgba(120,169,91,.28);border-radius:28px!important;box-shadow:0 20px 50px rgba(67,92,58,.08)}
body.page:not(.home) .mameno-quote{border-left-color:var(--mameno-life)!important;background:linear-gradient(90deg,rgba(120,169,91,.10),transparent);border-radius:0 18px 18px 0;padding:20px 24px 20px 28px;margin:32px 0;color:var(--mameno-ink)}
body.page:not(.home) .wp-block-button__link{background:var(--mameno-life)!important;color:#fff!important;border-radius:999px!important;padding:.9rem 1.3rem!important;font-weight:700;box-shadow:0 10px 24px rgba(82,125,63,.16);transition:transform .2s ease,box-shadow .2s ease}
body.page:not(.home) .wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(82,125,63,.23)}
body.page:not(.home) details.wp-block-details{margin:12px 0;border:1px solid rgba(120,169,91,.24);border-radius:18px;background:#fff;padding:0 20px;box-shadow:0 10px 28px rgba(54,76,62,.06);overflow:hidden}
body.page:not(.home) details.wp-block-details summary{padding:18px 0;font-weight:700;color:var(--mameno-ink);cursor:pointer}
body.page:not(.home) details.wp-block-details p{padding:0 0 18px;margin:0}
body.page:not(.home) .wp-block-list{padding-left:1.25rem}
body.page:not(.home) .wp-block-list li{margin:.55rem 0;line-height:1.55}
body.page:not(.home) .wp-block-list li::marker{color:var(--mameno-life)}
body.page:not(.home) .mameno-card{border-color:rgba(120,169,91,.22);box-shadow:0 18px 42px rgba(54,76,62,.09);transition:transform .22s ease,box-shadow .22s ease}
body.page:not(.home) .mameno-card:hover{transform:translateY(-5px);box-shadow:0 25px 55px rgba(54,76,62,.14)}
body.page:not(.home) .entry-content figure img{border-radius:22px}

/* Questionnaire : palette MaMéNo vert de vie */
body.page:not(.home) .mmq{--wine:#5F8F47!important;--rose:#78A95B!important;--amber:#DFA094!important;--green:#78A95B!important;border-color:rgba(120,169,91,.30)!important;background:linear-gradient(145deg,#fffdf9 0%,#f5faef 55%,#fff5f0 100%)!important;box-shadow:0 26px 70px rgba(67,92,58,.13)!important}
body.page:not(.home) .mmq .mmq-kicker{color:var(--mameno-life-dark)!important}

/* Composants pour pages SEO locales */
.mameno-seo-intro{margin-top:-34px!important;z-index:3;border-radius:30px!important;padding:clamp(26px,4vw,44px)!important;background:#fff!important;border:1px solid rgba(120,169,91,.22);box-shadow:0 24px 60px rgba(54,76,62,.12)}
.mameno-seo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:30px 0}
.mameno-seo-card{background:#fff;border:1px solid rgba(120,169,91,.24);border-radius:22px;padding:24px;box-shadow:0 14px 34px rgba(54,76,62,.08)}
.mameno-seo-card h3{font-size:1.35rem;margin-top:0}
.mameno-seo-card p{margin-bottom:0}
.mameno-seo-card:before{content:'✦';display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;margin-bottom:14px;background:var(--mameno-life-soft);color:var(--mameno-life-dark);font-weight:800}
.mameno-local-band{margin:34px 0;padding:clamp(28px,5vw,48px);border-radius:30px;background:linear-gradient(135deg,var(--mameno-life),#91BD73);color:#fff;box-shadow:0 22px 55px rgba(82,125,63,.20)}
.mameno-local-band h2,.mameno-local-band h3,.mameno-local-band p{color:#fff!important}
.mameno-local-band .wp-block-button__link{background:#fff!important;color:var(--mameno-ink)!important}
.mameno-fact-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0}
.mameno-fact{padding:18px;border-radius:18px;background:var(--mameno-life-soft);border:1px solid rgba(120,169,91,.22);text-align:center;font-weight:700;color:var(--mameno-ink)}

@media(max-width:900px){
  .mameno-seo-grid{grid-template-columns:1fr 1fr}
  .mameno-fact-row{grid-template-columns:1fr 1fr}
  body.page:not(.home) .mameno-page-hero{border-radius:0 0 30px 30px}
}
@media(max-width:640px){
  body.page:not(.home) .mameno-page-hero{min-height:520px!important}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{padding:22px;border-radius:22px}
  body.page:not(.home) .mameno-page-hero h1{font-size:clamp(2.25rem,11vw,3.4rem)!important}
  body.page:not(.home) .entry-content>.wp-block-group:not(.mameno-page-hero){padding-top:48px!important;padding-bottom:48px!important}
  .mameno-seo-grid,.mameno-fact-row{grid-template-columns:1fr}
  .mameno-seo-intro{margin-top:-20px!important}
}

/* ===== Responsive multi-écrans renforcé — desktop, laptop, tablette, smartphone ===== */
*,*::before,*::after{box-sizing:border-box}
html{overflow-x:hidden;-webkit-text-size-adjust:100%}
body{overflow-x:clip}
img,video,svg,canvas{max-width:100%;height:auto}
iframe{max-width:100%}
.entry-content,.wp-site-blocks{overflow-wrap:anywhere}
.wp-block-cover__image-background,.mameno-hero video,.mameno-page-hero video{width:100%;height:100%;object-fit:cover}
.wp-block-buttons{flex-wrap:wrap;gap:12px}
.wp-block-button__link{min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
body.page:not(.home) .entry-content>.wp-block-group:not(.alignfull){width:min(100% - clamp(28px,5vw,64px),1200px);margin-inline:auto}
body.page:not(.home) .entry-content>.wp-block-group.alignfull{width:100%}
body.page:not(.home) .wp-block-columns{gap:clamp(18px,3vw,36px)}
body.page:not(.home) .wp-block-column{min-width:0}
body.page:not(.home) h1,body.page:not(.home) h2,body.page:not(.home) h3{overflow-wrap:break-word;hyphens:auto}

@media(min-width:1440px){
  body.page:not(.home) .mameno-page-hero{min-height:min(68vh,720px)!important}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{max-width:900px}
}

@media(max-width:1200px){
  body.page:not(.home) .mameno-page-hero{min-height:clamp(430px,58vh,600px)!important}
  body.page:not(.home) .mameno-page-hero h1{font-size:clamp(2.6rem,6vw,4.6rem)!important}
  .mameno-seo-grid{gap:18px}
  .mameno-fact-row{gap:12px}
}

@media(max-width:1024px){
  body.page:not(.home) header>.wp-block-group{padding-left:18px!important;padding-right:18px!important}
  body.page:not(.home) .mameno-page-hero{min-height:clamp(430px,54vh,560px)!important}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container{padding-inline:20px;padding-bottom:40px}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{max-width:760px}
  body.page:not(.home) .entry-content h2{font-size:clamp(2rem,5vw,3rem)}
}

@media(max-width:800px){
  header .mameno-header-logo img{width:clamp(122px,24vw,155px)!important;max-width:100%}
  .wp-block-navigation__responsive-container.is-menu-open{overflow-y:auto!important;max-height:100dvh}
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{padding-bottom:2rem!important}
  .wp-block-navigation__responsive-container-open,.wp-block-navigation__responsive-container-close{min-width:44px;min-height:44px;display:grid!important;place-items:center}
  body.page:not(.home) .mameno-page-hero{min-height:500px!important;border-radius:0 0 28px 28px}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__background{background:linear-gradient(180deg,rgba(31,58,49,.50),rgba(31,58,49,.76))!important}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container{align-items:flex-end;padding-inline:18px;padding-bottom:30px}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{width:100%;max-width:none;padding:24px}
  body.page:not(.home) .entry-content>.wp-block-group:not(.mameno-page-hero){padding-top:clamp(44px,7vw,60px)!important;padding-bottom:clamp(44px,7vw,60px)!important}
  body.page:not(.home) .wp-block-columns{gap:20px}
  .mameno-seo-grid{grid-template-columns:1fr 1fr}
  .mameno-fact-row{grid-template-columns:1fr 1fr}
}

@media(max-width:600px){
  body.page:not(.home) .entry-content>.wp-block-group:not(.alignfull){width:min(100% - 28px,1200px)}
  body.page:not(.home) .mameno-page-hero{min-height:clamp(470px,72svh,580px)!important;border-radius:0 0 22px 22px}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container{padding-inline:14px;padding-bottom:20px}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{padding:20px 18px;border-radius:20px;backdrop-filter:blur(6px)}
  body.page:not(.home) .mameno-page-hero h1{font-size:clamp(2.05rem,10vw,3rem)!important;line-height:1.04}
  body.page:not(.home) .mameno-page-hero p.has-large-font-size{font-size:clamp(1rem,4.6vw,1.16rem)!important;line-height:1.5}
  body.page:not(.home) .entry-content h2{font-size:clamp(1.8rem,8.5vw,2.55rem)}
  body.page:not(.home) .entry-content h3{font-size:clamp(1.25rem,6vw,1.65rem)}
  .mameno-seo-grid,.mameno-fact-row{grid-template-columns:1fr}
  .mameno-seo-card{padding:20px;border-radius:18px}
  .mameno-local-band{padding:26px 20px;border-radius:22px}
  .mameno-seo-intro{margin-top:-16px!important;padding:22px 18px!important;border-radius:22px!important}
  body.page:not(.home) .wp-block-buttons{display:grid!important;grid-template-columns:1fr;width:100%}
  body.page:not(.home) .wp-block-button,body.page:not(.home) .wp-block-button__link{width:100%}
  body.page:not(.home) .entry-content figure{max-width:100%;margin-inline:auto}
}

@media(max-width:380px){
  body.page:not(.home) .mameno-page-hero h1{font-size:clamp(1.85rem,10vw,2.45rem)!important}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container>.wp-block-group{padding:18px 16px}
  body.page:not(.home) .entry-content>.wp-block-group:not(.alignfull){width:min(100% - 22px,1200px)}
}

@media(max-height:700px) and (min-width:700px){
  body.page:not(.home) .mameno-page-hero{min-height:430px!important}
  body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container{padding-bottom:28px}
}

@media(hover:none),(pointer:coarse){
  body.page:not(.home) .mameno-card:hover,body.page:not(.home) .wp-block-button__link:hover{transform:none}
}

/* ===== Ajustements fluides multi-écrans — septembre 2026 ===== */
:root{
  --mameno-life:#8DBB57;
  --mameno-life-secondary:#9BCB63;
  --mameno-life-dark:#5F8F47;
  --mameno-life-soft:#EEF5E4;
  --mameno-content:min(92vw,1480px);
  --mameno-reading:min(88vw,1120px);
  --mameno-gutter:clamp(16px,3.4vw,64px);
}
.wp-site-blocks{width:100%;max-width:none}
main,.entry-content{width:100%;max-width:none}
body.home .entry-content>.wp-block-group:not(.alignfull),
body.page:not(.home) .entry-content>.wp-block-group:not(.alignfull){
  width:var(--mameno-content)!important;
  max-width:none!important;
  margin-inline:auto!important;
  padding-inline:clamp(18px,2.6vw,42px)!important;
}
body.home .entry-content>.wp-block-group.alignwide,
body.page:not(.home) .entry-content>.wp-block-group.alignwide{
  width:var(--mameno-content)!important;
  max-width:none!important;
}
body.home .entry-content>.wp-block-group.alignfull,
body.page:not(.home) .entry-content>.wp-block-group.alignfull{
  width:100%!important;
  max-width:none!important;
  padding-inline:max(var(--mameno-gutter),calc((100vw - 1480px)/2))!important;
}
body.home .mameno-hero .wp-block-cover__inner-container,
body.page:not(.home) .mameno-page-hero .wp-block-cover__inner-container{
  width:min(calc(100% - 2 * var(--mameno-gutter)),1480px)!important;
  max-width:none!important;
  margin-inline:auto!important;
}
body.page-id-154 .entry-content>.wp-block-group:not(.mameno-page-hero),
body.page-id-155 .entry-content>.wp-block-group:not(.mameno-page-hero),
body.page-id-156 .entry-content>.wp-block-group:not(.mameno-page-hero){
  width:min(calc(100% - 2 * var(--mameno-gutter)),1540px)!important;
  max-width:none!important;
}
body.page-id-154 .entry-content>.wp-block-group:not(.mameno-page-hero).has-background,
body.page-id-155 .entry-content>.wp-block-group:not(.mameno-page-hero).has-background,
body.page-id-156 .entry-content>.wp-block-group:not(.mameno-page-hero).has-background{
  padding-inline:clamp(24px,4vw,70px)!important;
}
body.home header>.wp-block-group,
body.page:not(.home) header>.wp-block-group{
  background:linear-gradient(110deg,#3B6019 0%,#42691F 58%,#4A7227 100%)!important;
}
body.home .entry-content>.wp-block-group:nth-of-type(4),
.mameno-local-band{
  background:linear-gradient(135deg,var(--mameno-life-dark) 0%,var(--mameno-life) 55%,var(--mameno-life-secondary) 100%)!important;
}
body.home .wp-block-button__link:not(.has-ivory-background-color),
body.page:not(.home) .wp-block-button__link{
  background:var(--mameno-life-dark)!important;
}
img,video,picture,iframe,svg,canvas{
  display:block;
  max-width:100%!important;
}
img,video{height:auto}
.wp-block-cover video,.mameno-hero video,.mameno-page-hero video{
  width:100%!important;height:100%!important;object-fit:cover!important
}
.wp-block-columns{flex-wrap:wrap!important}
.wp-block-column{min-width:0!important}
.wp-block-button__link{
  min-height:48px!important;
  padding:.9rem clamp(1.15rem,2vw,1.55rem)!important;
  line-height:1.25!important;
}
@media (min-width:1600px){
  :root{--mameno-content:min(calc(100vw - 80px),1560px)}
  body.home .entry-content>.wp-block-group:not(.mameno-featured-articles),
  body.page:not(.home) .entry-content>.wp-block-group:not(.mameno-page-hero){
    padding-top:clamp(68px,6vw,110px)!important;
    padding-bottom:clamp(68px,6vw,110px)!important;
  }
}
@media (max-width:1100px){
  :root{--mameno-content:calc(100% - 40px)}
  .wp-block-columns>.wp-block-column{
    flex:1 1 calc(50% - 18px)!important;
  }
}
@media (max-width:800px){
  :root{--mameno-content:calc(100% - 28px);--mameno-gutter:14px}
  .wp-block-navigation__responsive-container.is-menu-open{
    background:linear-gradient(160deg,#3B6019 0%,#466D23 100%)!important;
    padding:1rem 1.2rem 1.6rem!important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
    padding-top:3.75rem!important;
  }
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{
    min-height:46px;
    display:flex!important;
    align-items:center;
    padding:.65rem .2rem!important;
  }
}
@media (max-width:700px){
  .wp-block-columns>.wp-block-column{
    flex:1 1 100%!important;
    width:100%!important;
  }
}
@media (max-width:420px){
  :root{--mameno-content:calc(100% - 20px);--mameno-gutter:10px}
  body.home .entry-content>.wp-block-group:not(.alignfull),
  body.page:not(.home) .entry-content>.wp-block-group:not(.alignfull){
    padding-inline:14px!important;
  }
  .wp-block-button,.wp-block-button__link{width:100%!important}
}
