/*
Theme Name: NETTOYAGE GALE
Description: Présentation des interventions et journal de NETTOYAGE GALE
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: stop-gale
*/
:root {
    --sg-ink: #2a1a20;
    --sg-copy: #514249;
    --sg-muted: #695960;
    --sg-teal: #6c263b;
    --sg-teal-dark: #50172a;
    --sg-action: #6c263b;
    --sg-action-hover: #50172a;
    --sg-border: #d4c4b8;
    --sg-pale: #eadfce;
    --sg-cream: #fcf8f0;
    --sg-white: #fffdfa;
    --sg-width: 78rem;
    --sg-radius: .25rem;
    --ng-display: Georgia, 'Times New Roman', serif;
    --ng-gutter: clamp(1rem, 4vw, 3.75rem);
    --ng-space: clamp(3.25rem, 8vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body {
    margin: 0;
    background: var(--sg-cream);
    color: var(--sg-ink);
    font: 1rem/1.65 system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sg-teal); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--sg-teal-dark); }
:focus-visible { outline: 3px solid #976713; outline-offset: .25rem; }
p { margin: 0 0 1rem; }
figure { margin: 0; }
summary { cursor: pointer; }
h1, h2, h3, h4 {
    font-family: var(--ng-display);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -.035em;
    margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.55rem); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.45rem); }
h3 { font-size: clamp(1.28rem, 2.1vw, 1.7rem); }
.sg-wrap { width: min(var(--sg-width), calc(100% - var(--ng-gutter) * 2)); margin-inline: auto; }
.sg-section { padding-block: var(--ng-space); }
.sg-section-soft { background: var(--sg-pale); }
.sg-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.sg-overline { margin-bottom: .9rem; color: var(--sg-teal); font-size: .76rem; letter-spacing: .14em; font-weight: 750; text-transform: uppercase; }
.sg-lead { font-size: clamp(1rem, 1.55vw, 1.18rem); color: var(--sg-copy); }
.sg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.35rem; }
.sg-text-link { font-size: .95rem; font-weight: 700; }
.sg-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    min-height: 2.95rem;
    padding: .62rem 1rem;
    border: 1px solid var(--sg-teal);
    border-radius: var(--sg-radius);
    color: #fff8ee;
    background: var(--sg-teal);
    font: 650 .9rem/1.3 system-ui, sans-serif;
    text-decoration: none;
}
.ng-arrow { position: relative; display: inline-block; width: .7rem; height: .7rem; flex: none; }
.ng-arrow::before { content: ''; position: absolute; inset: .04rem .04rem auto auto; width: .47rem; height: .47rem; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.ng-arrow::after { content: ''; position: absolute; top: .34rem; left: -.01rem; width: .75rem; border-top: 1.5px solid currentColor; transform: rotate(-45deg); }
.sg-button:hover { color: white; background: var(--sg-teal-dark); border-color: var(--sg-teal-dark); }
.sg-button-outline { color: var(--sg-teal); background: transparent; }
.sg-button-sm { min-height: 2.6rem; padding: .55rem .8rem; }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.sg-skip:focus {
    position: fixed;
    clip-path: none;
    inset: .65rem auto auto .65rem;
    width: auto;
    height: auto;
    z-index: 30;
    background: var(--sg-white);
    padding: .55rem 1rem;
}

.sg-site-top { position: sticky; top: 0; z-index: 12; }
.admin-bar .sg-site-top { top: 32px; }
.sg-header { background: var(--sg-cream); border-bottom: 1px solid var(--sg-border); }
.sg-header-inner { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 4.75rem; gap: 1rem; }
.sg-brand, .sg-footer .ng-wordmark { text-decoration: none; white-space: nowrap; }
.ng-wordmark { display: inline-flex; align-items: center; gap: .58rem; color: var(--sg-ink); font: 400 clamp(1.03rem, 2vw, 1.6rem)/1 var(--ng-display); letter-spacing: -.045em; }
.ng-wordmark strong { color: var(--sg-teal); font-style: italic; font-weight: 400; }
.ng-wordmark img { flex: none; width: 2.2rem; height: 2.2rem; }
.sg-desktop-nav, .sg-desktop-nav > ul, .sg-header-actions { display: flex; align-items: center; gap: clamp(.65rem, 2vw, 1.65rem); }
.sg-desktop-nav ul { margin: 0; padding: 0; list-style: none; }
.sg-desktop-nav a, .sg-desktop-nav summary, .sg-tel { color: var(--sg-ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.sg-desktop-nav a:hover, .sg-tel:hover { color: var(--sg-teal); text-decoration: underline; }
.sg-tel, .sg-mobile-nav summary { white-space: nowrap; }
.sg-nav-dropdown, .sg-desktop-nav .menu-item-has-children { position: relative; }
.sg-nav-dropdown ul, .sg-desktop-nav .sub-menu, .sg-mobile-nav nav {
    padding: .5rem;
    background: var(--sg-white);
    border: 1px solid var(--sg-border);
    box-shadow: 0 .6rem 1rem #2a1a2010;
}
.sg-nav-dropdown ul, .sg-desktop-nav .sub-menu { position: absolute; left: 0; top: calc(100% + .5rem); min-width: 17rem; }
.sg-desktop-nav .sub-menu { display: none; top: 100%; }
.sg-desktop-nav .menu-item-has-children:hover .sub-menu, .sg-desktop-nav .menu-item-has-children:focus-within .sub-menu { display: block; }
.sg-nav-dropdown li > a, .sg-desktop-nav .sub-menu a, .sg-mobile-nav nav a { display: block; padding: .5rem .6rem; }
.sg-mobile-nav { display: none; }
.sg-mobile-nav nav { position: absolute; inset: 100% 0 auto; max-height: 70dvh; overflow-y: auto; }
.sg-mobile-nav nav ul { list-style: none; margin: 0; padding: 0; }

.ng-home-masthead { padding-top: clamp(3rem, 8vw, 6.8rem); }
.ng-masthead-copy { text-align: center; }
.ng-masthead-copy h1 { max-width: 12.5em; margin: 0 auto 1.35rem; }
.ng-masthead-copy h1 em { display: block; color: var(--sg-teal); }
.ng-masthead-copy .sg-lead { max-width: 36rem; margin: 0 auto 1.6rem; }
.ng-masthead-copy .sg-actions { justify-content: center; }
.ng-call-link { font-variant-numeric: tabular-nums; font-weight: 650; }
.ng-home-photo { position: relative; margin-top: clamp(2.3rem, 5vw, 4.1rem); }
.ng-home-photo img { width: 100%; height: clamp(15rem, 38vw, 33rem); object-fit: cover; object-position: center 48%; }
.ng-home-photo figcaption { position: absolute; right: var(--ng-gutter); bottom: .7rem; padding: .15rem .5rem; background: var(--sg-cream); color: var(--sg-ink); font-size: .72rem; }
.ng-directory { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 8vw, 7rem); }
.ng-directory-title p:not(.sg-overline) { color: var(--sg-copy); margin: 1rem 0; max-width: 28rem; }
.ng-directory-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sg-border); }
.ng-directory-list li { border-bottom: 1px solid var(--sg-border); }
.ng-directory-list a {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.05rem;
    padding: .7rem 0;
    color: var(--sg-ink);
    font: 400 clamp(1.22rem, 2.1vw, 1.8rem)/1.18 var(--ng-display);
    text-decoration: none;
}
.ng-directory-list a:hover, .ng-directory-list a:focus-visible { color: var(--sg-teal); }
.ng-directory-list .ng-arrow { color: var(--sg-teal); margin-inline: .25rem; }
.ng-directory-image img { width: 100%; aspect-ratio: 1.55; height: auto; object-fit: cover; }
.ng-home-content { background: var(--sg-pale); }
.ng-contact-band { padding-block: clamp(2.25rem, 5vw, 4.75rem); color: var(--sg-cream); background: var(--sg-teal); }
.ng-contact-band > .sg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.ng-contact-band p { margin: .6rem 0 0; }
.ng-contact-band .sg-button { color: var(--sg-teal-dark); background: var(--sg-cream); border-color: var(--sg-cream); }
.ng-contact-band .sg-button:hover { background: white; }
.ng-contact-form { flex: 0 1 25rem; min-width: 0; }
.ng-contact-form label { display: block; margin-bottom: .4rem; font-weight: 650; }
.ng-contact-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.ng-contact-form select { min-width: 0; border: 1px solid var(--sg-cream); border-radius: var(--sg-radius); background: var(--sg-cream); color: var(--sg-ink); padding: .45rem; font: inherit; }
.ng-contact-form button { cursor: pointer; }


.sg-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: .85rem 0; padding: 0; color: var(--sg-muted); font-size: .82rem; }
.sg-breadcrumb li + li::before { content: '/'; margin-right: .6rem; }
.sg-page-hero { background: var(--sg-pale); padding-block: clamp(2.7rem, 6.5vw, 6rem); }
.sg-page-hero h1 { font-size: clamp(2.25rem, 5.3vw, 4.7rem); max-width: 18em; }
.sg-page-hero .sg-lead { max-width: 40rem; margin: .9rem 0 1.4rem; }
.sg-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(1.4rem, 7vw, 6rem); align-items: center; }
.sg-page-hero-grid figure img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; }
.sg-page-hero-grid figcaption { font-size: .78rem; color: var(--sg-muted); margin-top: .35rem; }
.sg-article-date { margin: 1.2rem 0 0; color: var(--sg-muted); font-size: .86rem; }
.sg-entry { --sg-width: 49rem; padding-block: clamp(2.2rem, 6vw, 5rem); overflow-wrap: break-word; }
.sg-entry > :first-child { margin-top: 0; }
.sg-entry :is(h2, h3, h4) { margin-block: 1.6em .55em; }
.sg-entry p, .sg-entry li { color: var(--sg-copy); }
.sg-entry li + li { margin-top: .35rem; }
.sg-entry .sg-featured { margin-bottom: 2rem; }
.sg-featured img { width: 100%; }
.sg-entry :is(aside, blockquote, .sg-callout, .sg-summary) { background: var(--sg-pale); border-inline-start: .25rem solid var(--sg-teal); margin: 1.5rem 0; padding: 1rem 1.25rem; }
.sg-entry :is(aside, blockquote) > :last-child { margin-bottom: 0; }
.sg-entry table { width: 100%; border-collapse: collapse; }
.sg-entry :is(th,td) { padding: .55rem; text-align: start; vertical-align: top; border: 1px solid var(--sg-border); }
.sg-entry th { background: var(--sg-pale); }
.sg-entry details { border-bottom: 1px solid var(--sg-border); padding: .75rem 0; margin-bottom: .45rem; }
.sg-entry summary { font-weight: 700; }
.sg-entry details p { margin: .65rem 0 0; }
.sg-checklists fieldset { border: 0; padding: .7rem 0 0; margin: 0; }
.sg-checklists label { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .45rem; }
.sg-checklists input { accent-color: var(--sg-teal); }
.sg-checklists input:checked + span { text-decoration: line-through; }

.ng-journal-layout { display: grid; grid-template-columns: minmax(12rem, .32fr) minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4rem); }
.ng-journal-layout .sg-guides-intro { padding: 0 0 1.5rem; margin: 0; width: 100%; }
.sg-guide-topics { align-self: start; position: sticky; top: 6.4rem; }
.sg-guide-topics h2 { margin-bottom: .9rem; font-size: 1.6rem; }
.sg-guide-topics ul { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--sg-border); }
.sg-guide-topics li { border-bottom: 1px solid var(--sg-border); }
.sg-guide-topics a { display: block; padding: .72rem .65rem; color: var(--sg-ink); font-size: .9rem; text-decoration: none; }
.sg-guide-topics a:hover { text-decoration: underline; }
.sg-guide-topics a[aria-current="page"] { background: var(--sg-teal); color: white; font-weight: 700; }
.sg-guide-results { min-width: 0; }
.sg-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
.sg-guide-results .sg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sg-post-card { position: relative; padding-bottom: 1.2rem; border-bottom: 1px solid var(--sg-border); overflow-wrap: anywhere; }
.sg-post-picture { background: var(--sg-pale); aspect-ratio: 1.8; overflow: hidden; }
.sg-post-picture img { width: 100%; height: 100%; object-fit: cover; }
.sg-post-card-body { padding: .95rem 0 0; }
.sg-post-card-body time { color: var(--sg-muted); font-size: .8rem; }
.sg-post-card-body :is(h2,h3) { margin-top: .2rem; font-size: clamp(1.28rem, 2.05vw, 1.72rem); }
.sg-post-card-body :is(h2,h3) a { color: var(--sg-ink); text-decoration: none; }
.sg-post-card-body :is(h2,h3) a:hover { color: var(--sg-teal); text-decoration: underline; }
.sg-post-card-body p { color: var(--sg-copy); margin: .6rem 0 0; font-size: .93rem; }
.pagination { margin-top: 1.5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 2.6rem; padding: .3rem .7rem; }
.pagination .current { background: var(--sg-teal); color: white; }

body .sg-quote {
    border-radius: var(--sg-radius);
    background: var(--sg-white);
    border-color: var(--sg-border);
    color: var(--sg-ink);
}
body .sg-quote label > :is(input, select, textarea) {
    border-radius: var(--sg-radius);
    border-color: #9d887f;
    background: var(--sg-white);
    color: var(--sg-ink);
}
body .sg-quote :where(input, textarea, select, button, a):focus-visible {
    outline: 3px solid #976713;
    outline-offset: 3px;
}
body .sg-quote__help { color: var(--sg-copy); }
body .sg-quote__notice { background: var(--sg-pale); border-radius: var(--sg-radius); color: var(--sg-ink); }
body .sg-quote__notice--error { background: #f5e0da; color: #672339; }
body .sg-quote__notice--success { background: #ebe1d2; color: #3c282e; }
body .sg-quote button { border-radius: var(--sg-radius); background: var(--sg-teal); color: white; }
body .sg-quote button:hover { background: var(--sg-teal-dark); }
body .sg-quote button:disabled { background: var(--sg-pale); color: var(--sg-copy); }
.sg-footer { padding-block: clamp(2.5rem, 6vw, 5rem) 1.2rem; color: var(--sg-cream); background: var(--sg-ink); }
.sg-footer-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 1.9rem; }
.sg-footer .ng-wordmark, .sg-footer .ng-wordmark strong, .sg-footer a { color: var(--sg-cream); }
.sg-footer .ng-wordmark { margin-bottom: .8rem; }
.sg-footer a:hover { color: #f4cfac; }
.sg-footer .sg-button { background: var(--sg-cream); color: var(--sg-teal-dark); border-color: var(--sg-cream); }
.sg-footer h2 { font: 650 .88rem/1.4 system-ui, sans-serif; letter-spacing: 0; margin: .25rem 0 .7rem; }
.sg-footer :is(p,address,li) { font-size: .87rem; }
.sg-footer address { margin-bottom: .9rem; font-style: normal; overflow-wrap: anywhere; }
.sg-footer ul { list-style: none; margin: 0; padding: 0; }
.sg-footer li + li { margin-top: .45rem; }
.sg-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #806c75; font-size: .8rem; }
.sg-footer-bottom div { display: flex; flex-wrap: wrap; gap: .8rem; }

@media (max-width: 65rem) {
    .sg-desktop-nav { display: none; }
    .sg-mobile-nav { display: block; }
    .sg-mobile-nav summary { font-size: .9rem; font-weight: 700; }
    .sg-header-actions { margin-inline-start: auto; }
}
@media (min-width: 601px) and (max-width: 782px) {
    .admin-bar .sg-site-top { top: 46px; }
}
@media (max-width: 48rem) {
    .ng-directory, .ng-journal-layout, .sg-page-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .sg-guide-topics { position: static; }
    .sg-guide-topics ul { display: flex; gap: .4rem; flex-wrap: wrap; border: 0; }
    .sg-guide-topics li { border: 1px solid var(--sg-border); }
    .sg-guide-topics a { padding: .45rem .65rem; }
    .sg-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .admin-bar .sg-site-top { top: 0; } }
@media (max-width: 34rem) {
    .sg-header-inner { min-height: 4.2rem; gap: .55rem; }
    .sg-header-actions .sg-tel { display: none; }
    .ng-wordmark { gap: .35rem; }
    .ng-wordmark img { width: 1.75rem; height: 1.75rem; }
    .ng-directory-list a { grid-template-columns: 3.7rem minmax(0, 1fr) auto; gap: .6rem; }
    .ng-contact-form { flex: 0 1 auto; width: 100%; }
    .sg-section-head, .ng-contact-band > .sg-wrap { flex-direction: column; align-items: flex-start; }
    .sg-post-grid, .sg-guide-results .sg-post-grid { grid-template-columns: minmax(0, 1fr); }
    .sg-footer-grid { gap: 1.2rem; }
    .sg-entry :is(table, .wp-block-table) { display: block; max-width: 100%; overflow-x: auto; }
}
