/* ═══════════════════════════════════════════════════════════
   Grenouille moi! — Feuille de styles principale
   Polices : Outfit (titres) + Plus Jakarta Sans (corps)
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    /* Vert grenouille #4CAF50 — couleur de marque */
    --brand:        #4CAF50;
    --brand-dark:   #388E3C;
    --brand-darker: #2E7D32;
    --brand-pale:   #E8F5E9;
    --accent:       #1565C0;
    --orange:       #E65100;
    --teal:         #00695C;

    --text:     #1A202C;
    --text-sec: #64748B;
    --bg:       #F5F7FA;
    --surface:  #FFFFFF;
    --border:   #E2E8F0;

    --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.09);

    --r:     12px;
    --r-sm:   8px;
    --r-lg:  20px;
    --r-pill: 100px;
}

[data-theme="dark"] {
    --text:       #F1F5F9;
    --text-sec:   #94A3B8;
    --bg:         #0F172A;
    --surface:    #1E293B;
    --border:     #334155;
    --brand-pale: #1A2E1B;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background .3s, color .3s;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    line-height: 1.2;
    color: var(--text);
}

/* ── Barre de progression de scroll ── */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%;
    height: 3px;
    background: rgba(255,255,255,.65);
    z-index: 1000;
    transition: width .1s linear;
    pointer-events: none;
}

/* ══════════════════════════════════════════
   HEADER — fond #4CAF50, même vert que la grenouille
   ══════════════════════════════════════════ */
header {
    position: sticky;
    top: 3px;
    z-index: 900;
    background: var(--brand);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: .9; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.header-nav a {
    color: rgba(255,255,255,.88);
    font-size: .88rem;
    font-weight: 600;
    transition: color .15s;
}
.header-nav a:hover { color: white; text-decoration: none; }

#theme-toggle {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--r-sm);
    padding: .35rem .65rem;
    font-size: .95rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    transition: background .2s;
}
#theme-toggle:hover { background: rgba(255,255,255,.3); }

/* ══════════════════════════════════════════
   HERO (index uniquement)
   Fond #4CAF50 identique au fond de l'image grenouille
   ══════════════════════════════════════════ */
.hero {
    background: var(--brand);
    padding: 3rem 1.5rem 6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: white;
    margin-bottom: .9rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hero h1 em { font-style: normal; color: rgba(255,255,255,.88); }
.hero-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.8rem;
    max-width: 500px;
}
.hero-search-wrap { max-width: 540px; }
.hero-search-box { display: flex; gap: .5rem; }
.hero-search-box input {
    flex: 1;
    padding: .8rem 1.1rem;
    border-radius: var(--r);
    border: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    background: white;
    color: var(--text);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    outline: none;
}
.hero-search-box input:focus {
    box-shadow: 0 4px 16px rgba(0,0,0,.15), 0 0 0 3px rgba(255,255,255,.4);
}
.hero-search-box button {
    padding: .8rem 1.3rem;
    border-radius: var(--r);
    border: none;
    background: var(--brand-darker);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .1s;
}
.hero-search-box button:hover { background: var(--brand-dark); transform: translateY(-1px); }
.hero-search-hint {
    display: block;
    margin-top: .5rem;
    font-size: .78rem;
    color: rgba(255,255,255,.55);
}
.hero-mascot { flex-shrink: 0; animation: float 4s ease-in-out infinite; }
.hero-mascot img {
    max-height: 280px;
    max-width: 420px;
    width: auto;
    object-fit: contain;
    display: block;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; }

/* ── Stats ── */
.stats-section {
    background: var(--surface);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.stat-card {
    text-align: center;
    padding: 1.75rem 1rem;
    border-radius: var(--r-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}
.stat-label {
    display: block;
    color: var(--text-sec);
    font-size: .85rem;
    font-weight: 500;
    margin-top: .35rem;
}

/* ── Layout sections ── */
.section-wrap { max-width: 1280px; margin: 0 auto; }
.section-header { margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.55rem; font-weight: 700; margin-bottom: .3rem; }
.section-header p { color: var(--text-sec); font-size: .93rem; }

/* ── Action cards ── */
.actions-section { padding: 3rem 1.5rem; background: var(--bg); }
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.action-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.3rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    transition: transform .2s, box-shadow .2s;
    color: inherit;
}
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.action-emoji { font-size: 1.9rem; }
.action-card strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .97rem;
    color: var(--text);
}
.action-card span { font-size: .82rem; color: var(--text-sec); }

/* ══════════════════════════════════════════
   PILLS DE ZONES/QUARTIERS
   Utilisées sur l'index ET les pages de zone
   Toujours des <a href> — crawlables par Google
   ══════════════════════════════════════════ */
.pills-section {
    padding: 3rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Champ de filtre client-side (JS enhancement) */
.pills-search {
    display: block;
    width: 100%;
    max-width: 340px;
    padding: .5rem 1rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .87rem;
    margin-bottom: 1.1rem;
    transition: border-color .2s;
}
.pills-search:focus { outline: none; border-color: var(--brand); }

.pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
}

/* La pill elle-même — toujours un <a href> */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .75rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .82rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}
.cat-pill:hover {
    border-color: var(--brand);
    background: var(--brand-pale);
    text-decoration: none;
}
.cat-pill.active {
    border-color: var(--brand);
    background: var(--brand-pale);
    color: var(--brand-dark);
    font-weight: 600;
}
/* Point coloré — généré côté serveur via zone_color, zéro maintenance */
.cat-pill-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.cat-pill-count {
    font-size: .72rem;
    color: var(--text-sec);
    margin-left: .05rem;
}
.cat-pill.active .cat-pill-count { color: var(--brand-dark); }

/* ══════════════════════════════════════════
   PAGES ZONE ET QUARTIER
   ══════════════════════════════════════════ */
.page-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: .88rem;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
}
.breadcrumb a { color: var(--brand-dark); font-weight: 500; }
.breadcrumb a:hover { color: var(--brand); text-decoration: none; }
.breadcrumb .sep { opacity: .4; }

/* Intro */
.page-intro { margin-bottom: 2rem; }
.page-intro h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .4rem; }
.page-intro p { color: var(--text-sec); font-size: .97rem; }

/* Sections de quartier (sur page zone) */
.quartier-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}
.quartier-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: .6rem;
}
.quartier-section h2 a { color: var(--text); text-decoration: none; }
.quartier-section h2 a:hover { color: var(--brand-dark); }
.quartier-count {
    font-size: .82rem;
    font-weight: 400;
    color: var(--text-sec);
}

/* Tableau de solutions */
.sol-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin-top: .5rem;
}
.sol-table thead th {
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
    padding: .65rem 1rem;
    border-bottom: 2px solid var(--border);
    text-align: left;
    white-space: nowrap;
}
.sol-table tbody td {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.sol-table tbody tr:nth-child(even) td { background: rgba(0,0,0,.015); }
[data-theme="dark"] .sol-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.sol-table tbody tr:hover td { background: var(--brand-pale); }

/* Badges de certification */
.cert-badge {
    display: inline-block;
    color: white;
    font-size: .68rem;
    font-weight: 700;
    padding: .18rem .52rem;
    border-radius: var(--r-pill);
    white-space: nowrap;
    margin: 1px;
    position: relative;
    cursor: default;
}
/* Tooltips CSS sur les badges */
.cert-badge::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #1A202C;
    color: #F1F5F9;
    padding: .25rem .55rem;
    border-radius: 6px;
    font-size: .7rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 50;
}
.cert-badge:hover::after { opacity: 1; }

.cert-secnum   { background: #E65100; }
.cert-hds      { background: #1565C0; }
.cert-iso27001 { background: #2E7D32; }
.cert-iso27701 { background: #00695C; }
.cert-soc      { background: #37474F; }
.cert-pci      { background: #1A237E; }
.cert-other    { background: #546E7A; }

/* Liens sociaux dans les tableaux */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: var(--r-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
    margin: 1px;
}
.social-link:hover {
    background: var(--brand-pale);
    color: var(--brand-dark);
    border-color: var(--brand);
    text-decoration: none;
}

/* Lien retour */
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--brand-dark);
    font-weight: 500;
    font-size: .9rem;
}
.back-link:hover { color: var(--brand); }

/* ══════════════════════════════════════════
   ANNUAIRE : sidebar + cards
   ══════════════════════════════════════════ */
.directory-section {
    padding: 3rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
/* Bouton toggle filtres — visible sur mobile uniquement */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-toggle-btn:hover { border-color: var(--brand); background: var(--brand-pale); color: var(--brand-dark); }
.filter-toggle-btn.has-filters { border-color: var(--brand); background: var(--brand-pale); color: var(--brand-dark); }

.directory-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 880px) {
    .directory-layout { grid-template-columns: 1fr; }
    .dir-sidebar { position: static; display: none; }
    .dir-sidebar.open { display: block; margin-bottom: 1rem; }
    .filter-toggle-btn { display: inline-flex; margin-bottom: 1rem; }
}

/* Sidebar */
.dir-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.3rem;
    position: sticky;
    top: 62px;
}
.filter-group { margin-bottom: 1.2rem; }
.filter-group h3 {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-sec);
    margin-bottom: .7rem;
}
.cascade-label {
    display: block;
    font-size: .75rem;
    color: var(--text-sec);
    font-weight: 500;
    margin-bottom: .2rem;
}
.cascade-select {
    width: 100%;
    padding: .45rem .65rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .83rem;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: border-color .2s;
}
.cascade-select:focus { outline: none; border-color: var(--brand); }
.cascade-select:disabled { opacity: .4; cursor: not-allowed; }

.filter-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

.filter-check-item {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .22rem 0;
}
.filter-check-item input[type="checkbox"] {
    accent-color: var(--brand);
    width: 13px; height: 13px;
    cursor: pointer; flex-shrink: 0;
}
.filter-check-item label {
    font-size: .82rem;
    color: var(--text);
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-check-count { font-size: .72rem; color: var(--text-sec); }

#reset-filters {
    width: 100%;
    padding: .5rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-sec);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .8rem;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
#reset-filters:hover {
    background: var(--brand-pale);
    color: var(--brand-dark);
    border-color: var(--brand);
}

/* Panneau résultats */
.dir-results { min-width: 0; }
.results-toolbar {
    display: flex;
    gap: .75rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.results-search {
    flex: 1;
    min-width: 160px;
    padding: .5rem .9rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .88rem;
}
.results-search:focus { outline: none; border-color: var(--brand); }
#results-count {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-sec);
    white-space: nowrap;
}

/* Barre de pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .88rem;
}
.pagination-bar button {
    padding: .4rem .85rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: .85rem;
    transition: background .15s, border-color .15s;
}
.pagination-bar button:hover:not(:disabled) { border-color: var(--brand); background: var(--bg); }
.pagination-bar button:disabled { opacity: .4; cursor: default; }
#pg-info { color: var(--text-sec); white-space: nowrap; }
.pg-perpage-wrap { display: flex; align-items: center; gap: .4rem; color: var(--text-sec); }
.pg-perpage-wrap select {
    padding: .3rem .6rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: .85rem;
}
.pg-perpage-wrap select:focus { outline: none; border-color: var(--brand); }

/* Grille de cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    gap: 1rem;
}

/* Solution card */
.solution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .2s, box-shadow .2s;
}
.solution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.solution-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .4rem;
}
.solution-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: .98rem;
    color: var(--text);
}
.solution-type-badge {
    font-size: .68rem;
    font-weight: 600;
    color: var(--text-sec);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: .15rem .5rem;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Fil Zone > Catégorie > Spécialité */
.solution-breadcrumb {
    font-size: .73rem;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}
.solution-breadcrumb .bc-zone { color: var(--brand-dark); font-weight: 600; }
.solution-breadcrumb .bc-sep { opacity: .35; }
.solution-desc {
    font-size: .84rem;
    color: var(--text-sec);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.solution-desc.expanded {
    display: block;
    overflow: visible;
}
.desc-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: .78rem;
    color: var(--brand);
    cursor: pointer;
    align-self: flex-start;
    margin-top: -.2rem;
    line-height: 1.4;
}
.desc-toggle:hover { text-decoration: underline; }
.solution-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
}
.solution-certs { display: flex; flex-wrap: wrap; gap: .25rem; }
.solution-links { display: flex; gap: .25rem; }
.solution-ext-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: var(--r-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}
.solution-ext-link:hover {
    background: var(--brand-pale);
    color: var(--brand-dark);
    border-color: var(--brand);
    text-decoration: none;
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-sec);
}
.no-results .nr-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-sec);
    font-size: .9rem;
}

/* ── Footer ── */
footer {
    background: #1A202C;
    color: #CBD5E0;
    text-align: center;
    padding: 1.75rem 1.5rem;
    font-size: .84rem;
    margin-top: auto;
}
[data-theme="dark"] footer { background: #020617; }
footer a { color: #A5D6A7; }

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero-mascot { display: none; }
    .hero-inner  { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .stats-inner { grid-template-columns: 1fr; }
    .hero { padding: 2.5rem 1.1rem 5rem; }
    .hero-search-box { flex-direction: column; }
    .page-main { padding: 1.25rem 1rem; }
}
