/*
Theme Name: Wazooo
Template: twentytwentyfive
Description: Thème enfant de Twenty Twenty-Five pour wazooo.fr
Version: 1.0.0
Text Domain: wazooo
*/
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/NotoSans-400.woff2') format('woff2');}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/NotoSans-600.woff2') format('woff2');}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/NotoSans-700.woff2') format('woff2');}
@font-face{font-family:'Noto Serif';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/NotoSerif-400.woff2') format('woff2');}
@font-face{font-family:'Noto Serif';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/NotoSerif-700.woff2') format('woff2');}
@font-face{font-family:'Roboto';font-style:normal;font-weight:300;font-display:swap;src:url('fonts/Roboto-300.woff2') format('woff2');}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/Roboto-400.woff2') format('woff2');}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/Roboto-700.woff2') format('woff2');}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/RobotoCondensed-400.woff2') format('woff2');}


/* Fond : image fixe, adoucie */
body {
  background: #2b2f2a url("/wp-content/uploads/2016/04/vigiles.jpg") center / cover fixed no-repeat;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,28,18,.55), rgba(20,28,18,.35));
}

/* En-tête */
.wz-header { padding-block: 1.25rem; }
.wz-header .wp-block-site-title a { color: #fff; text-decoration: none; }
.wz-header .wp-block-site-tagline { color: #b8e8a4; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0; }
.wz-header .wp-block-navigation a { color: #fff; }

/* Mise en page */
.wz-layout { display: grid; grid-template-columns: 290px minmax(0, 820px); gap: 2rem; align-items: start; justify-content: center; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.wz-layout > :first-child { order: 2; min-width: 0; }
.wz-layout > :last-child { order: 1; }
@media (max-width: 900px) { .wz-layout { grid-template-columns: 1fr; } .wz-layout > :first-child, .wz-layout > :last-child { order: 0; } }

/* Cartes */
.wz-card {
  background: #fff; border-radius: 14px; padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 8px 28px rgba(0,0,0,.18); margin-bottom: 2rem;
}
.wz-card .wp-block-post-featured-image img { border-radius: 10px; }
.wz-card .wp-block-post-title a { text-decoration: none; color: inherit; }
.wz-meta { background: #f1f3f0; margin: 1.5rem calc(-1 * clamp(1.25rem, 3vw, 2.25rem)) calc(-1 * clamp(1.25rem, 3vw, 2.25rem));
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem); border-radius: 0 0 14px 14px; font-size: .85rem; color: #4a524c; }
.wz-meta a { color: inherit; }

/* Partager */
.wz-share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1.25rem 0; font-size: .85rem; }
.wz-share__label { font-weight: 700; margin-right: .25rem; }
.wz-share a { border: 1px solid #d3d8d2; border-radius: 999px; padding: .2rem .75rem; color: #1f2421; text-decoration: none; }
.wz-share a:hover { border-color: #2f7d1b; color: #2f7d1b; }

/* Barre latérale */
.wz-side { margin-bottom: 2rem; }
.wz-side .wp-block-heading { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem; }
.wz-side ul { list-style: none; padding: 0; margin: 0; }
.wz-side li { padding: .2rem 0; }
.wz-side a { text-decoration: none; }
.wz-side a:hover { text-decoration: underline; }
.wz-side select { width: 100%; padding: .5rem; border-radius: 8px; border: 1px solid #ccd2cb; }

/* Précédent / suivant */
.wz-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wz-nav .wp-block-post-navigation-link { background: #fff; border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.wz-nav .post-navigation-link-next { text-align: right; }
.wz-nav a { text-decoration: none; font-weight: 600; }
@media (max-width: 600px) { .wz-nav { grid-template-columns: 1fr; } }

/* Pied de page */
.wz-footer { background: #1b211a; color: #d9dfd6; margin-top: 3rem; padding-block: 3rem 2rem; }
.wz-footer a { color: #d9dfd6; text-decoration: none; }
.wz-footer a:hover { color: #fff; text-decoration: underline; }
.wz-footer h2, .wz-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.wz-footer ul { list-style: none; padding: 0; margin: 0; }
.wz-footer li { padding: .2rem 0; }
.wz-footer .wz-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1rem; font-size: .8rem; opacity: .8; }

/* Menu : lisible sur le fond image */
.wz-header .wp-block-navigation,
.wz-header .wp-block-navigation a,
.wz-header .wp-block-navigation-item__content { color: #fff !important; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.wz-header .wp-block-site-title, .wz-header .wp-block-site-title a { text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.wz-header .wp-block-site-tagline { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.wz-side .link-library-widget, .wz-side .linklistcatname { font-family: inherit; }
.wz-nav .wp-block-post-navigation-link:empty { display: none; }
.wz-nav:has(> :only-child), .wz-nav { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wz-nav .post-navigation-link-previous .post-navigation-link__label, .wz-nav .post-navigation-link-next .post-navigation-link__label { display:block; font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; color:#5b635d; }

/* Lisibilité : taille et graisse */
.wz-card, .wz-card p, .wz-card li { font-size: 1rem; line-height: 1.65; font-weight: 400; color: #2a2f2b; }
.wz-card strong, .wz-card b { font-weight: 800; color: #111; }
.wz-card .wp-block-post-title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 700; margin-bottom: 1rem; }
.wz-card h2:not(.wp-block-post-title) { font-size: 1.35rem; font-weight: 700; margin-top: 1.75rem; }
.wz-card h3 { font-size: 1.15rem; font-weight: 700; }
.wz-card p, .wz-card ul, .wz-card ol { margin-block: .75em; }
.wz-side, .wz-side p, .wz-side li, .wz-side a { font-size: .95rem; }
.wz-side .wp-block-categories label { display: none; }

/* Conteneur commun (en-tête, contenu, pied de page) */
.wz-header > .wp-block-group, .wz-footer > .wp-block-columns, .wz-footer > .wz-legal { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.wz-card img { max-width: 100%; height: auto; }
.wz-card .wp-block-image, .wz-card figure { max-width: 100%; }
.more-link { display: inline-block; background: #2f7d1b; color: #fff !important; border-radius: 999px; padding: .45rem 1.1rem; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none !important; margin-block: .75rem; }
.more-link:hover { background: #1f5a10; }
.wz-card .more-link { width: fit-content; max-width: 100%; display: block; margin-inline: 0; }
.wz-card.wz-side h2.wp-block-heading { font-size: .8rem; margin-top: 1.5rem; }

/* Pas de cadre au clic ; contour discret conservé au clavier */
a:focus:not(:focus-visible), button:focus:not(:focus-visible), .wp-element-button:focus:not(:focus-visible), select:focus:not(:focus-visible) { outline: none !important; box-shadow: none; }
a:focus-visible, button:focus-visible, .more-link:focus-visible { outline: 2px solid #59c133; outline-offset: 3px; }
.wz-header a:focus, .wz-header a:active { outline: none; }

/* Typographie reprise de l'ancien site (Twenty Fifteen) */
body, .wp-site-blocks { font-family: 'Roboto', sans-serif; }
.wz-card, .wz-card p, .wz-card li { font-family: 'Roboto', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.53; color: #616561; }
.wz-card strong, .wz-card b { font-weight: 700; color: #4a4e4a; }
.wz-card .wp-block-post-title, .wz-card .wp-block-post-title a { font-family: 'Roboto', sans-serif; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 300; line-height: 1.03; color: #0c0c0c; margin-bottom: 1.3rem; }
.wz-card h1:not(.wp-block-post-title) { font-size: 33px; }
.wz-card h2:not(.wp-block-post-title) { font-size: 28px; }
.wz-card h3 { font-size: 22px; }
.wz-card h4 { font-size: 19px; }
.wz-card h5 { font-size: 15px; }
.wz-card h6 { font-size: 13px; }
.wz-card h1:not(.wp-block-post-title), .wz-card h2:not(.wp-block-post-title), .wz-card h3, .wz-card h4, .wz-card h5, .wz-card h6 {
  font-family: 'Noto Serif', serif; font-weight: 700; line-height: 1.36; color: #333; margin-block: 1.4em .6em; }
.wz-header .wp-block-site-title, .wz-header .wp-block-site-title a { font-family: 'Roboto', sans-serif; font-size: clamp(2.5rem, 5vw, 3.45rem) !important; font-weight: 300 !important; line-height: 1.1; color: #fff; }
.wz-header .wp-block-site-tagline { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 300; color: #8fe06b; text-transform: uppercase; }
.wz-header .wp-block-navigation a { font-family: 'Noto Sans', sans-serif; font-weight: 600; font-size: 15px; }
.wz-side, .wz-side p, .wz-side li, .wz-side select { font-family: 'Noto Serif', serif; font-size: 13px; font-weight: 400; color: #444; line-height: 1.5; }
.wz-card.wz-side h2.wp-block-heading { font-family: 'Noto Sans', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #4c4c4c; margin-block: 1.5rem .5rem; line-height: 1.5; }
.wz-side li a, .wz-side .linklistcatname { font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 13px; color: #6b6b6b; }
.wz-meta, .wz-meta a, .wz-share, .wz-share a, .more-link { font-family: 'Noto Sans', sans-serif; }
.wz-meta, .wz-meta a { font-size: 13.6px; color: #6f6f6f; font-weight: 400; }
.wz-share a, .more-link { font-weight: 600; }
.wz-nav .wp-block-post-navigation-link a { font-family: 'Roboto Condensed', sans-serif; font-size: 21.6px; font-weight: 400; line-height: 1.33; color: #333; }
.wz-nav .post-navigation-link__label { font-family: 'Noto Sans', sans-serif; font-size: 14px; font-weight: 700; }
.wz-footer, .wz-footer p, .wz-footer li { font-family: 'Roboto', sans-serif; font-weight: 300; }
.wz-footer h3 { font-family: 'Noto Sans', sans-serif; font-weight: 600; }

/* Burger : mobile et tablette uniquement */
@media (min-width: 901px) { .wz-header .wp-block-navigation { display: none; } }
.wz-header .wp-block-navigation__responsive-container-open { color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; padding: .5rem; background: rgba(0,0,0,.25); }
.wz-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open { background: #1b211a !important; color: #fff !important; }
.wp-block-navigation__responsive-container.is-menu-open a { color: #fff !important; font-size: 1.5rem; font-family: 'Roboto', sans-serif; font-weight: 300; text-shadow: none; }

/* Pages d'archive et de recherche : titre dans une carte */
.wz-card.wz-archive-title { padding-block: 1.25rem; }
.wz-archive-title .wp-block-query-title { font-family: 'Roboto', sans-serif; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 300; line-height: 1.15; color: #0c0c0c; margin: 0; }
.wz-archive-title .wp-block-term-description:empty { display: none; }
.wz-archive-title .wp-block-term-description { margin-top: .75rem; }
/* Évite le débordement horizontal sur mobile */
.wz-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) { .wz-layout { grid-template-columns: 290px minmax(0, 820px); } }

/* Correctif débordement : les marges auto du thème empêchent l'ajustement à la colonne */
.wz-layout > * { margin-inline: 0 !important; max-width: none !important; width: auto; min-width: 0; }

/* Burger = barre latérale (comme l'ancien site), mobile et tablette */
@media (min-width: 901px) { .wz-burger { display: none; } }
@media (max-width: 900px) {
  .wz-layout > :last-child { display: none; }
  .wz-burger summary { list-style: none; cursor: pointer; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; background: rgba(0,0,0,.25); font-size: 0; position: relative; }
  .wz-burger summary::-webkit-details-marker { display: none; }
  .wz-burger summary::before { content: ""; position: absolute; left: 12px; right: 12px; top: 15px; height: 2px; background: #fff; box-shadow: 0 8px 0 #fff, 0 16px 0 #fff; }
  .wz-burger[open] { position: fixed; inset: 0; z-index: 99999; background: #fff; overflow-y: auto; padding: 1.25rem 1.5rem 3rem; }
  .wz-burger[open] summary { position: absolute; top: 1.5rem; right: 1.25rem; border: 1px solid #d3d3d3; background: #fff; z-index: 2; }
  .wz-burger[open] summary::before { top: 22px; left: 11px; right: 11px; height: 2px; background: #333; box-shadow: none; transform: rotate(45deg); }
  .wz-burger[open] summary::after { content: ""; position: absolute; top: 22px; left: 11px; right: 11px; height: 2px; background: #333; transform: rotate(-45deg); }
  .wz-burger .wz-burger__title { border-bottom: 1px solid #e3e3e3; padding: .5rem 4rem 1.25rem 0; margin-bottom: 1.5rem; }
  .wz-burger .wz-burger__title a { font-family: 'Roboto', sans-serif; font-size: 3rem; font-weight: 300; color: #444; text-decoration: none; text-shadow: none; }
  .wz-burger .wz-side { box-shadow: none; padding: 0; margin: 0; background: transparent; }
}
.wz-card iframe, .wz-card video, .wz-card embed, .wz-card object { max-width: 100%; }
.wz-card iframe { height: auto; aspect-ratio: 16 / 9; }
.wz-archive-title .wp-block-query-title { font-family: 'Roboto', sans-serif !important; font-weight: 300 !important; }
.wz-side .wp-block-categories label, .wz-side .wp-block-categories-dropdown label { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Marges intérieures resserrées */
.wz-card.wz-archive-title { padding: 1rem 1.5rem; }
.wz-card.wz-archive-title .wp-block-query-title { margin: 0 !important; padding: 0; font-size: clamp(1.25rem, 3.2vw, 1.75rem) !important; line-height: 1.2; }
.wz-card .wp-block-post-title { margin-block: 0 .75rem !important; }
.wz-card .wp-block-post-content > :first-child { margin-top: 0; }
.wz-card .wp-block-post-featured-image { margin-bottom: 1rem; }
.wz-card .wp-block-post-content { margin-block: 0; }
@media (max-width: 600px) {
  .wz-layout { padding-inline: .75rem; }
  .wz-card { padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 12px; }
  .wz-card.wz-archive-title { padding: .8rem 1.1rem; }
  .wz-meta { margin: 1rem -1.1rem -1rem; padding: .75rem 1.1rem; }
  .wz-card, .wz-card p, .wz-card li { font-size: 16px; }
  .wz-card .wp-block-post-title, .wz-card .wp-block-post-title a { font-size: 1.75rem; }
  .wz-header { padding-block: .75rem; }
}

/* Espacements verticaux internes des cartes (écrase l'espacement du thème parent) */
:root .wz-card > .wp-block-post-title { margin-block: 0 .6rem; }
:root .wz-card > .wp-block-post-featured-image, :root .wz-card > .wp-block-post-content, :root .wz-card > .more-link, :root .wz-card > .wz-share { margin-block-start: 0; }
:root .wz-card > .wp-block-post-content { margin-block-end: .5rem; }
:root .wz-card .wp-block-post-content > p:first-child, :root .wz-card .wp-block-post-content > :first-child { margin-top: 0; }
:root .wz-card .wp-block-post-content > p:not(:last-child) { margin-bottom: .6em; }
@media (max-width: 600px) {
  .wz-header > .wp-block-group { padding-inline: .9rem; }
  .wz-header { padding-inline: 0; }
}

/* Recherche discrète */
.wz-header__tools { gap: 1rem; }
.wz-search { margin: 0; }
.wz-search .wp-block-search__inside-wrapper { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35) !important; border-radius: 999px; padding: 2px 4px 2px 14px; width: 190px; transition: background .2s, width .2s; }
.wz-search .wp-block-search__inside-wrapper:focus-within { background: rgba(255,255,255,.95); width: 250px; }
.wz-search .wp-block-search__input { background: transparent; border: 0 !important; color: #fff; font-family: 'Noto Sans', sans-serif; font-size: 14px; padding: .35rem 0; min-width: 0; outline: none; }
.wz-search .wp-block-search__input::placeholder { color: rgba(255,255,255,.75); }
.wz-search .wp-block-search__inside-wrapper:focus-within .wp-block-search__input { color: #1f2421; }
.wz-search .wp-block-search__button { background: transparent; border: 0; color: #fff; padding: .25rem .5rem; margin: 0; cursor: pointer; }
.wz-search .wp-block-search__inside-wrapper:focus-within .wp-block-search__button { color: #2f7d1b; }
.wz-search .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }
/* Mobile : le champ est dans le panneau du burger */
@media (max-width: 900px) {
  .wz-header__tools > .wz-search { display: none; }
  .wz-search--burger { margin: 0 0 1.25rem; }
  .wz-search--burger .wp-block-search__inside-wrapper { width: 100%; background: #f1f3f0; border-color: #d3d8d2 !important; }
  .wz-search--burger .wp-block-search__input { color: #1f2421; }
  .wz-search--burger .wp-block-search__input::placeholder { color: #6b6b6b; }
  .wz-search--burger .wp-block-search__button { color: #2f7d1b; }
}

/* Barre latérale collante sur ordinateur */
@media (min-width: 901px) {
  .wz-layout > :last-child { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; border-radius: 14px; }
  .wz-layout > :last-child .wz-side { margin-bottom: 0; }
}

/* Correctif : plus de barre horizontale sous la barre latérale */
@media (min-width: 901px) {
  .wz-layout > :last-child { max-height: none; overflow: visible; border-radius: 0; }
  .wz-layout > :last-child .wz-side { max-height: calc(100vh - 2rem); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
}
