/* ==========================================================================
   DRC Digital Directory — feuille de style unique, sans étape de compilation.
   Les couleurs se changent dans :root.
   ========================================================================== */

:root {
    /* Charte DRC Digital Services Directory */
    --brand-navy: #2d3c90;       /* bleu marine — couleur principale */
    --brand-navy-700: #222e70;
    --brand-green: #4fb059;      /* vert « DRC » */
    --brand-green-light: #88c489;
    --brand-green-dark: #0c4923; /* vert profond (fonds) */
    --brand-cyan: #0cb4e0;
    --brand-yellow: #ffe00a;
    --brand-gray: #ededed;

    --ink: #1e2a6b;
    --ink-2: #2d3c90;
    --text: #263049;
    --muted: #5e6680;
    --line: #e3e6ef;
    --line-2: #cdd2e1;
    --bg: #f6f7fa;
    --surface: #ffffff;
    --sky: var(--brand-navy);          /* actions principales */
    --sky-600: var(--brand-navy-700);
    --sky-50: #e9ebf6;
    --cyan-50: #e2f6fc;
    --cyan-700: #08809f;
    --sun: var(--brand-yellow);
    --sun-50: #fffad1;
    --red: #c8102e;
    --red-50: #fdecee;
    --green: #2e8a3a;
    --green-50: #e9f6eb;
    --amber: #9a5b00;
    --amber-50: #fff4e0;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(30, 42, 107, .06), 0 8px 24px rgba(30, 42, 107, .07);
    --shadow-lg: 0 12px 40px rgba(30, 42, 107, .16);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .72em 1.2em; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sky); color: #fff; }
.btn-primary:hover { background: var(--sky-600); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f0d200; }
.btn-green { background: var(--brand-green); color: #fff; }
.btn-green:hover { background: #3f9a49; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #a50d26; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #247030; }
.btn-sm { padding: .5em .9em; font-size: .85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--sky-600); cursor: pointer; }

/* ---------- En-tête ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font-weight: 800; letter-spacing: -0.02em; }
.brand-logo { height: 46px; width: auto; }
.site-footer .brand-logo { height: 58px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; position: relative; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 64%, var(--sun) 64%, var(--sun) 71%, var(--red) 71%, var(--red) 76%, var(--sun) 76%, var(--sun) 83%, transparent 83%); }
.brand-mark span { position: relative; color: #fff; font-size: .8rem; font-weight: 800; }
.brand-text { line-height: 1.05; font-size: 1.02rem; white-space: nowrap; }
.brand-text small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

.main-nav { display: none; gap: 4px; margin-left: 12px; }
.main-nav a { color: var(--text); font-weight: 600; font-size: .94rem; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { background: var(--bg); color: var(--ink); }
.header-actions { margin-left: auto; display: none; gap: 10px; align-items: center; }
.menu-toggle { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--surface); padding: 12px 16px 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 12px; width: 100%; }
@media (min-width: 1180px) {
    .main-nav, .header-actions { display: flex; }
    .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; }
    .main-nav a { padding: 8px 10px; font-size: .92rem; }
}

/* ---------- Héros ---------- */
.hero { background: var(--brand-navy); color: #dfe4f6; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(620px 320px at 88% 0%, rgba(12,180,224,.35), transparent 70%),
        radial-gradient(520px 280px at 0% 110%, rgba(79,176,89,.30), transparent 70%);
}
.hero::after {
    content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
    width: 520px; height: 520px;
    background: url("../images/icon-512.png") center / contain no-repeat;
    opacity: .16; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
@media (max-width: 719px) { .hero::after { opacity: .08; width: 340px; height: 340px; right: -120px; } .hero-stats { gap: 20px; } .hero .container { padding-top: 44px; padding-bottom: 52px; } }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { font-size: 1.08rem; max-width: 640px; color: #d3d9f0; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7fe08a; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-yellow); box-shadow: 0 0 0 3px rgba(255,224,10,.25); }

.search-panel {
    background: var(--surface); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg);
    display: grid; gap: 8px; max-width: 820px;
}
.search-panel .field-inline { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--bg); color: var(--muted); }
.search-panel input, .search-panel select { border: 0; background: transparent; font: inherit; color: var(--ink); padding: 14px 0; width: 100%; outline: none; }
.search-panel .btn { padding: 14px 22px; border-radius: 12px; }
@media (min-width: 720px) { .search-panel { grid-template-columns: 1fr 230px auto; } }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.hero-stats div { color: #fff; font-weight: 800; font-size: 1.6rem; line-height: 1; }
.hero-stats span { display: block; font-size: .8rem; font-weight: 600; color: #b9c2e6; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0; }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 28px; }
.page-head p { color: var(--muted); margin: 0; max-width: 680px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-pad-lg { padding: 28px; }

/* ---------- Catégories ---------- */
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 132px; }
.cat-card:hover { border-color: var(--brand-green); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-50); color: var(--cyan-700); }
.cat-icon .icon { width: 22px; height: 22px; }
.cat-card strong { font-size: .97rem; line-height: 1.3; }
.cat-card small { color: var(--muted); font-weight: 600; margin-top: auto; }
.cat-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Fiches entreprises ---------- */
.company-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; position: relative; }
.company-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.company-card.featured { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun) inset; }
.company-top { display: flex; gap: 14px; align-items: center; }
.company-top h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.company-top .meta { font-size: .85rem; color: var(--muted); }
.company-card .tagline { color: var(--text); font-size: .93rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.company-card .foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; font-size: .82rem; color: var(--muted); align-items: center; }

.logo-box { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-box .initials { font-weight: 700; color: var(--brand-navy); font-size: 1.05rem; background: var(--sky-50); width: 100%; height: 100%; display: grid; place-items: center; }
.logo-box.lg { width: 96px; height: 96px; border-radius: 18px; }
.logo-box.lg .initials { font-size: 1.8rem; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill-verified { background: var(--green-50); color: #237a2f; border-color: #bfe3c4; }
.pill-featured { background: var(--sun-50); color: #6b5a00; border-color: #f2e27a; }
.pill-green { background: var(--green-50); color: var(--green); border-color: #bfe6d0; }
.pill-amber { background: var(--amber-50); color: var(--amber); border-color: #f5d9a8; }
.pill-red { background: var(--red-50); color: var(--red); border-color: #f5c2ca; }

/* ---------- Annuaire ---------- */
.directory-layout { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 960px) { .directory-layout { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 960px) { .filters { position: sticky; top: 88px; } }
.filters h3 { font-size: .95rem; margin-bottom: 12px; }
.filters .form-group { margin-bottom: 14px; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--muted); font-size: .92rem; }
.results-bar strong { color: var(--ink); }
.empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .icon { width: 36px; height: 36px; color: var(--muted); margin: 0 auto 12px; display: block; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 18px; }

/* ---------- Page entreprise ---------- */
.profile-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 32px 0; }
.profile-id { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-id h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 6px; }
.profile-id .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-layout { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 960px) { .profile-layout { grid-template-columns: 1fr 340px; align-items: start; } }
.prose { white-space: normal; }
.prose p { color: var(--text); }
.service-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; word-break: break-word; }
.contact-list .icon { color: var(--cyan-700); margin-top: 3px; }
.contact-actions { display: grid; gap: 8px; }
.preview-banner { background: var(--amber-50); color: var(--amber); border-bottom: 1px solid #f5d9a8; padding: 10px 0; font-weight: 600; font-size: .9rem; }

/* ---------- Étapes, avantages ---------- */
.step { position: relative; padding-top: 6px; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-navy); color: var(--brand-yellow); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step p, .benefit p { color: var(--muted); margin: 0; }
.benefit .cat-icon { margin-bottom: 14px; }

.initiative { display: grid; gap: 24px; align-items: center; background: var(--brand-green-dark); color: #cfe6d3; border-radius: 22px; padding: 32px; position: relative; overflow: hidden; }
.initiative h2 { color: #fff; }
.initiative::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 240px; height: 240px; background: url("../images/icon-512.png") center / contain no-repeat; opacity: .14; }
@media (min-width: 860px) { .initiative { grid-template-columns: 1.4fr 1fr; padding: 44px; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--sky-600); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Formulaires ---------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label, .label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.label-hint { font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input {
    width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(45,60,144,.15); }
.input.is-invalid { border-color: var(--red); }
.help { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.error-text { font-size: .83rem; color: var(--red); margin-top: 5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; color: var(--text); }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand-green); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; padding: 0; }

/* ---------- Alertes ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .93rem; font-weight: 600; border: 1px solid; }
.alert-success { background: var(--green-50); color: var(--green); border-color: #bfe6d0; }
.alert-error { background: var(--red-50); color: var(--red); border-color: #f5c2ca; }
.alert-info { background: var(--sky-50); color: var(--sky-600); border-color: #cfe3ff; }
.alert-warning { background: var(--amber-50); color: var(--amber); border-color: #f5d9a8; }
.alert ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

/* ---------- Authentification ---------- */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px 64px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* ---------- Espace / administration ---------- */
.panel-layout { display: grid; gap: 24px; padding: 28px 0 64px; }
@media (min-width: 960px) { .panel-layout { grid-template-columns: 240px 1fr; align-items: start; } }
.panel-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 960px) { .panel-nav { flex-direction: column; position: sticky; top: 88px; } }
.panel-nav a, .panel-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; white-space: nowrap; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.panel-nav a:hover, .panel-nav button:hover { background: var(--bg); }
.panel-nav a.active { background: var(--sky-50); color: var(--sky-600); }
.panel-nav .badge-count { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 8px; }
.panel-nav .sep { border-top: 1px solid var(--line); margin: 6px 0; }
.panel-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-title h1 { font-size: 1.6rem; margin: 0; }

.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0,1fr)); margin-bottom: 24px; }
@media (min-width: 860px) { .stat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none !important; color: inherit; }
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat .lbl { font-size: .83rem; color: var(--muted); font-weight: 600; }
.stat.attention { border-color: var(--sun); background: var(--sun-50); }

.progress { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-green), var(--brand-cyan)); border-radius: 999px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .cell-company { display: flex; align-items: center; gap: 12px; }
.table .cell-company .logo-box { width: 40px; height: 40px; border-radius: 10px; }
.table .muted { color: var(--muted); font-size: .85rem; }
.table tr.unread td { font-weight: 700; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .87rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a span { opacity: .7; margin-left: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar .input { max-width: 280px; }

.dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); word-break: break-word; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dd { margin-bottom: 8px; } }

.stack { display: grid; gap: 16px; }
.actions-inline { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.pagination a:hover { border-color: var(--sky); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { color: var(--line-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-info { display: grid; gap: 18px; align-content: start; }
.contact-info .item { display: flex; gap: 14px; }
.contact-info .item .cat-icon { flex: none; }
.contact-info .item strong { display: block; color: var(--ink); }
.contact-info .item span, .contact-info .item a { color: var(--muted); font-size: .95rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand-navy); color: #c3cae9; padding: 52px 0 28px; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: var(--brand-green-light); font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.socials a { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; font-size: .82rem; }

/* ---------- Pages de texte ---------- */
.text-page { max-width: 780px; padding: 40px 0 72px; }
.text-page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.text-page p, .text-page li { color: var(--text); }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mb-2 { margin-bottom: 16px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.small { font-size: .87rem; }

/* ---------- Revendication ---------- */
.claim-box { background: var(--sun-50); border: 1px solid #f6e0a0; border-radius: var(--radius-sm); padding: 16px; }
.claim-box p { margin: 6px 0 12px; }

/* ---------- Solutions ---------- */
.solution-card { display: flex; flex-direction: column; gap: 10px; }
.solution-card h3 { margin: 0; }
.solution-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.solution-company { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); font-size: .88rem; text-decoration: none !important; }
.solution-company .logo-box { width: 32px; height: 32px; border-radius: 8px; }
.solution-company .icon { color: var(--brand-green); }

/* ---------- Statistiques ---------- */
.day-chart { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 140px; align-items: end; margin-top: 8px; }
.day-bar { height: 100%; display: flex; align-items: flex-end; background: var(--bg); border-radius: 4px; }
.day-bar span { display: block; width: 100%; background: var(--brand-cyan); border-radius: 4px; }
.day-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.bar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 4px; }
.bar-label strong { color: var(--ink); }
.bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar span { display: block; height: 100%; background: var(--brand-navy); border-radius: 999px; min-width: 2px; }
.bar.alt span { background: var(--brand-green); }
.badge-preview { background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 24px; display: grid; place-items: center; }
.check-grid { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; padding: 4px; }
@media (min-width: 640px) { .check-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Agenda ---------- */
.event-card { flex-direction: row; align-items: flex-start; gap: 16px; }
.event-date { flex: none; width: 58px; border-radius: 12px; background: var(--brand-navy); color: #fff; text-align: center; padding: 8px 0; line-height: 1.1; }
.event-date .d { display: block; font-size: 1.35rem; font-weight: 800; }
.event-date .m { display: block; font-size: .75rem; font-weight: 700; color: var(--sun); text-transform: uppercase; }

/* ---------- Observatoire ---------- */
.month-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; margin-top: 10px; }
.month-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.month-col .v { font-size: .75rem; font-weight: 700; color: var(--ink); height: 1em; }
.month-col .bar-v { width: 100%; height: 140px; display: flex; align-items: flex-end; background: var(--bg); border-radius: 6px; }
.month-col .bar-v span { display: block; width: 100%; background: linear-gradient(180deg, var(--brand-cyan), var(--brand-navy)); border-radius: 6px; }
.month-col .l { font-size: .68rem; color: var(--muted); white-space: nowrap; transform: rotate(-35deg); transform-origin: top right; margin-top: 6px; height: 34px; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .85em; word-break: break-all; }

/* ==========================================================================
   Améliorations : navigation, recherche, partage, mobile
   ========================================================================== */

/* Menu « Écosystème » */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; color: var(--text); font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; gap: 4px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more summary.active, .nav-more[open] summary { background: var(--bg); color: var(--ink); }
.nav-more .chevron { width: .9em; height: .9em; transform: rotate(90deg); transition: transform .15s; }
.nav-more[open] .chevron { transform: rotate(-90deg); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; z-index: 40; }
.nav-menu a { display: flex !important; gap: 12px; align-items: flex-start; padding: 10px 12px !important; border-radius: 10px; }
.nav-menu a .icon { color: var(--cyan-700); margin-top: 3px; }
.nav-menu strong { display: block; color: var(--ink); font-size: .92rem; }
.nav-menu small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }

/* Puces de filtre */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sky-50); color: var(--brand-navy); font-weight: 600; font-size: .84rem; text-decoration: none !important; border: 1px solid #d5daef; }
.chip .icon { width: .9em; height: .9em; }
.chip:hover { background: #dde1f2; }
.chip-reset { background: transparent; border-color: transparent; color: var(--muted); }
.chip-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.chip-light:hover { background: rgba(255,255,255,.22); }
.hero-chips { margin: 16px 0 0; color: #c9d0ee; }

/* Barre de résultats */
.results-bar { flex-wrap: wrap; }
.sort-form { margin: 0; }
.input-sm { padding: 7px 34px 7px 12px; font-size: .86rem; border-radius: 999px; width: auto; }

/* Filtres repliables */
details.filters { padding: 0; }
details.filters > form { padding: 18px; }
.filters-summary { display: none; }
@media (max-width: 959px) {
    .filters-summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
    .filters-summary::-webkit-details-marker { display: none; }
    .filters-summary span { display: inline-flex; gap: 8px; align-items: center; }
    .filters-summary .badge-count { background: var(--brand-green); color: #fff; border-radius: 999px; font-size: .75rem; padding: 1px 9px; }
    .filters[open] .filters-summary { border-bottom: 1px solid var(--line); }
    .filters-title { display: none; }
}

/* Suggestions de recherche */
.suggest { position: relative; }
.suggest-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; padding: 6px; max-height: 380px; overflow-y: auto; text-align: left; }
.suggest-item { display: grid; grid-template-columns: 82px 1fr; gap: 0 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none !important; align-items: center; }
.suggest-item small { grid-row: span 2; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cyan-700); }
.suggest-item span { font-weight: 600; font-size: .92rem; }
.suggest-item em { font-style: normal; font-size: .8rem; color: var(--muted); }
.suggest-item:hover, .suggest-item.active { background: var(--sky-50); }
.search-panel .suggest-list { top: calc(100% + 14px); left: -8px; right: -8px; }

/* Cartes de fiches */
.company-card { overflow: hidden; }
.company-id h3 { display: flex; align-items: center; gap: 6px; }
.verified-dot { color: var(--brand-green); display: inline-flex; }
.verified-dot .icon { width: 1.05em; height: 1.05em; }
.ribbon { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; background: var(--brand-yellow); color: var(--ink); font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ribbon .icon { width: .9em; height: .9em; }
.company-card.featured .company-top { padding-right: 84px; }
.cat-card.is-empty { opacity: .7; }
.cat-card.is-empty .cat-icon { background: var(--bg); color: var(--muted); }

/* Fiche : partage, signalement, contact */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill-link { text-decoration: none !important; }
.pill-link:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.report-box { border-top: 1px solid var(--line); padding-top: 14px; }
.report-box summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 6px; list-style: none; }
.report-box summary::-webkit-details-marker { display: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { margin: 0; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem; cursor: pointer; color: var(--text); }
.segmented input:checked + span { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(45,60,144,.25); }

/* Barre de contact fixe sur mobile */
.mobile-contact-bar { display: none; }
@media (max-width: 959px) {
    .mobile-contact-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30,42,107,.08); }
    .mobile-contact-bar .btn { padding: 11px 8px; font-size: .88rem; }
    body:has(.mobile-contact-bar) { padding-bottom: 76px; }

}

/* Bandeau compact (provinces, besoins) */
.hero-compact .container { padding-top: 40px; padding-bottom: 44px; }
.hero-compact h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.hero-compact::after { width: 380px; height: 380px; opacity: .12; }
.breadcrumb-light, .breadcrumb-light a { color: #c9d0ee; }

.link-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.link-list li { display: grid; }
.link-list span { color: var(--muted); font-size: .8rem; }

/* Deux appels à l'action côte à côte */
.split-cta { display: grid; gap: 16px; }
@media (min-width: 860px) { .split-cta { grid-template-columns: 1fr 1fr; } }
.split-cta-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.split-cta-item:first-child { background: var(--sun-50); border-color: #f2e27a; }
.split-cta-item h3 { font-size: 1.15rem; }
.split-cta-item p { color: var(--muted); }
.split-cta-item .cat-icon { flex: none; width: 48px; height: 48px; }
