/* Thème « Écogeste » — couche de surcharge chargée APRÈS site.css.
   Identité EcoGeste.ch (kit de marque d'octobre 2026) : bandeau d'en-tête
   vert nuit qui porte le logo clair, bleu-vert pour les liens et boutons,
   vert pousse réservé aux filets et pastilles (trop clair pour du texte),
   fond brume, police Nunito. Ne redéfinit que ce qui change — tout le reste
   vient de site.css. Les fichiers du kit (logos, favicons, manifeste, image
   de partage) sont dans public/img/ecogeste/. */

/* Nunito auto-hébergée (public/fonts) : aucune requête vers un tiers, comme
   les autres thèmes. Police variable (licence SIL OFL 1.1) : un seul fichier
   par sous-ensemble couvre toutes les graisses, d'où font-weight: 200 1000.
   Chemins relatifs à CE fichier, donc indépendants du <base href>. */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('../../fonts/nunito-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url('../../fonts/nunito-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Jetons de marque (marque/tokens.css du kit) */
    --eg-vert-nuit: #12312e;
    --eg-nuit-profonde: #0c2422;
    --eg-bleu-vert: #0f766e;
    --eg-bleu-vert-fonce: #0b5f58;
    --eg-vert-pousse: #65a30d;
    --eg-brume: #f1f8f6;
    --eg-gris: #4b6360;
    --eg-gris-clair: #9fc9c1;
    --eg-menthe: #7dd3c0;
    --eg-bordure: #dce7e4;

    /* Variables de site.css branchées sur les jetons */
    --ink: var(--eg-vert-nuit);          /* texte courant, titres */
    --muted: var(--eg-gris);             /* dates, légendes */
    --accent: var(--eg-bleu-vert);       /* liens, boutons, page courante */
    --accent-dark: var(--eg-bleu-vert-fonce);
    --bg: var(--eg-brume);               /* fond de page */
    --card: #ffffff;
    --line: var(--eg-bordure);
    --radius: 14px;

    /* Bandeaux foncés (en-tête, pied de page). Jeton distinct de --accent :
       le réglage « Couleur d'accent » ne doit pas les recolorer. */
    --band: var(--eg-vert-nuit);
    --band-deep: var(--eg-nuit-profonde);
    --band-ink: #ffffff;
    --band-muted: var(--eg-gris-clair);
    --band-link: var(--eg-menthe);

    --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body { font-family: var(--font); font-weight: 400; }

/* Titres en Nunito 800, menu, boutons et intertitres en 700 */
h1, h2, h3 { font-weight: 800; letter-spacing: -.01em; }
h4, h5, h6, .section-more, .btn-primary, .btn-secondary, .pager a,
.search-form button, .form-field label { font-weight: 700; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

/* ---------- En-tête : bandeau vert nuit, logo clair ---------- */

.site-header {
    background: var(--band);
    border-bottom: 3px solid var(--eg-vert-pousse);
}
/* Gouttière latérale : site.css n'en met pas (il décale le nom de .5rem) ;
   ici logo et menu s'alignent sur le contenu, rien ne touche le bord. */
.site-header .inner { padding: .7rem 1.25rem; }
.site-header .brand { margin-left: 0; }

/* Logo du kit (ecogeste-logo-fond-fonce.svg, réglé dans Paramètres du site) :
   40 à 48 px sur ordinateur, 32 à 36 px sur téléphone. */
.site-header .brand img { height: 44px; }
@media (max-width: 640px) {
    .site-header .brand img { height: 36px; }
}

/* Sans logo : le nom en Nunito 800, blanc */
.brand { color: var(--band-ink); font-weight: 800; }
.brand:hover { color: var(--band-ink); }
.brand-block .tagline {
    color: var(--band-muted);
    border-left-color: rgb(255 255 255 / .25);
}

.nav-item > a {
    color: var(--band-ink);
    font-weight: 700;
    font-size: .95rem;
}
.nav-item > a:hover,
.nav-item:focus-within > a {
    background: rgb(255 255 255 / .12);
    color: var(--band-ink);
}
/* Page courante : pastille bleu-vert, texte blanc (contraste 4,6:1) */
.nav-item > a[aria-current="page"] {
    background: var(--accent);
    color: var(--band-ink);
}

/* Sous-menu (écran large) : panneau blanc, liseré vert pousse */
@media (min-width: 801px) {
    .dropdown {
        border-top: 3px solid var(--eg-vert-pousse);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 12px 30px rgb(12 36 34 / .22);
    }
    .dropdown a { font-weight: 600; }
}

/* Téléphone : bouton et panneau du menu sur le bandeau sombre */
@media (max-width: 800px) {
    .nav-toggle { color: var(--band-ink); }
    .dropdown a { color: var(--band-muted); }
    .dropdown a:hover { color: var(--band-ink); background: rgb(255 255 255 / .08); }
}

/* Champ de recherche posé sur le bandeau */
.nav-search input {
    background: rgb(255 255 255 / .1);
    border-color: rgb(255 255 255 / .25);
    color: var(--band-ink);
}
.nav-search input::placeholder { color: var(--band-muted); }
.nav-search input:focus { border-color: var(--band-link); background: rgb(255 255 255 / .16); }

/* Barre « Appelez-nous » et réseaux sociaux : sur le bandeau sombre */
.top-bar {
    background: var(--band-deep);
    border-bottom: 1px solid rgb(255 255 255 / .1);
}
.top-bar a { color: var(--band-muted); }
.top-bar a:hover { color: var(--band-ink); }
.top-bar strong { color: var(--band-ink); }
.social-link { color: var(--band-muted); }
.social-link:hover { color: var(--band-ink); background: var(--accent); }

/* ---------- Titres de section : vert nuit, pastille vert pousse ---------- */

.section-title { color: var(--ink); letter-spacing: .06em; }
.section-title::before {
    content: '';
    width: .6em;
    height: .6em;
    border-radius: 50%;
    background: var(--eg-vert-pousse);
    flex: none;
}
.section-title::after { background: var(--line); }

/* ---------- Cartes et visuels ---------- */

.card { border: 1px solid var(--line); }
.card:hover { box-shadow: 0 10px 28px rgb(18 49 46 / .12); }
.card h3 a:hover,
.hero h2 a:hover { color: var(--accent); }

/* Vignettes sans image et bandeaux : dégradé nuit profonde → bleu-vert, sur
   lequel le texte blanc reste lisible. background-image seulement : le
   raccourci background remettrait à zéro le cadrage (cover, centré) que
   site.css donne aux vignettes. */
.thumb, .hero-banner, .page-banner {
    background-image: linear-gradient(135deg, var(--eg-nuit-profonde), var(--eg-bleu-vert));
}

/* Tags et sous-rubriques : pastilles bordées, vert pousse au survol */
.tags a:hover { border-color: var(--eg-vert-pousse); color: var(--ink); text-decoration: none; }
.subcats a:hover { background: var(--accent); }

/* Pictogrammes des cartes de présentation et du pied de page */
.card-icon .icon-circle { border-color: var(--eg-vert-pousse); color: var(--accent); }
.footer-info .icon { color: var(--eg-vert-pousse); }

/* ---------- Pied de page : nuit profonde, liens menthe ---------- */

.site-footer {
    background: var(--band-deep);
    color: var(--band-muted);
    border-top: 3px solid var(--eg-vert-pousse);
}
.site-footer a { color: var(--band-link); }
.site-footer a:hover { color: var(--band-ink); }
.site-footer .brand { color: var(--band-ink); font-weight: 800; }
.footer-grid h3,
.footer-info h3 { color: var(--band-ink); font-weight: 700; }
