:root {
    --bg: #0a0f14;
    --panel: #101821;
    --panel-2: #172331;
    --text: #eef3f7;
    --muted: #94a3b8;
    --accent: #8dc63f;
    --accent-2: #38bdf8;
    --warn: #f97316;
    --ok: #22c55e;
    --danger: #ef4444;
}
* { box-sizing: border-box; }
/* Fond global blanc (extérieur des bulles) */
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif; background: #ffffff; color: var(--panel); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
main.container { padding-bottom: 48px; padding-top: 18px; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); color: var(--text); padding: 18px 0; }
.topbar .brand { font-size: 1.4rem; font-weight: 700; letter-spacing: .05em; }
.topbar .brand a { color: var(--text); }
.topbar .brand a:hover { color: var(--accent); }
.topbar nav { display: flex; gap: 14px 18px; flex-wrap: wrap; align-items: center; }
.topbar nav > a:not(.btn) { color: rgba(238,243,247,.92); font-weight: 600; font-size: .95rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.topbar nav > a:not(.btn):hover { color: var(--accent); border-bottom-color: var(--accent); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero { background: linear-gradient(135deg, #05080c, #101821); color: var(--text); border-radius: 24px; padding: 32px; margin: 24px 0; box-shadow: 0 18px 35px rgba(0,0,0,.15); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
    background: var(--panel) !important;
    color: var(--text);
    border-radius: 24px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 18px 35px rgba(0,0,0,.14);
}
.card > h1, .card > h2:first-child { margin-top: 0; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.2; }
.hero p { margin: 0 0 8px; max-width: 70ch; }
main input[type="text"], main input[type="email"], main input[type="password"], main textarea, main select {
    font: inherit;
    color: var(--text) !important;
    background: var(--panel-2) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 14px;
}
main input::placeholder, main textarea::placeholder { color: rgba(148,163,184,.95); }
main select option { background: var(--panel); color: var(--text); }
.lang-select {
    background: #172331 !important; color: #eef3f7 !important;
    border: 1px solid rgba(255,255,255,.2) !important;
}
.lang-select option { background: #101821; color: #eef3f7; }
.panel-dark { background: var(--panel); color: var(--text); border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,.08); }
.btn { display: inline-block; padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.btn-primary { background: var(--accent); color: #08110a; }
.btn-secondary { background: var(--accent); color: #08110a; border: 0; }
.btn-muted { background: var(--accent); color: #08110a; border: 0; }
button, input[type="submit"] { font: inherit; }
button:not(.btn), input[type="submit"]:not(.btn) {
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: var(--text);
}
button:not(.btn):hover, input[type="submit"]:not(.btn):hover { border-color: rgba(255,255,255,.18); }
.btn, button, input[type="submit"] { transition: transform .05s ease, filter .2s ease; }
.btn:active, button:active, input[type="submit"]:active { transform: translateY(1px); }
.btn-primary:hover { filter: brightness(1.03) saturate(1.02); }
.badge { display: inline-block; padding: 7px 10px; border-radius: 999px; background: rgba(141,198,63,.12); color: var(--accent); font-size: .86rem; }
/* Typo hors bulles (sur fond blanc) */
.muted { color: rgba(16,24,33,.72); }
.footer { margin-top: 30px; padding: 30px 0; background: #111827; color: #e5e7eb; }
.footer a { color: #bae6fd; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #e0f2fe; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.radar { position: relative; width: 220px; height: 220px; margin: 10px auto; border-radius: 50%; border: 1px solid rgba(141,198,63,.4); }
.radar::before, .radar::after { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(141,198,63,.22); border-radius: 50%; }
.radar::after { inset: 54px; }
.beam { position: absolute; left: 50%; top: 50%; width: 2px; height: 100px; transform-origin: bottom center; background: linear-gradient(to top, rgba(141,198,63,0), rgba(141,198,63,1)); animation: spin 3s linear infinite; }
@keyframes spin { from { transform: translateX(-50%) translateY(-100%) rotate(0); } to { transform: translateX(-50%) translateY(-100%) rotate(360deg); } }
.seo-good { color: var(--ok); font-weight: 700; }
.seo-warn { color: var(--warn); font-weight: 700; }
.seo-bad { color: var(--danger); font-weight: 700; }
.fish-item {
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 18px;
    padding: 14px;
    background: var(--panel-2) !important;
    color: var(--text);
}
.price-card {
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 24px;
    padding: 20px;
    background: var(--panel) !important;
    color: var(--text);
}
.legal-doc h2 { margin-top: 18px; font-size: 1.15rem; }
.legal-section { margin-top: 14px; }
.legal-body { color: rgba(238,243,247,.92); line-height: 1.55; }
.legal-updated { margin-top: 18px; font-size: .92rem; }

/* Liens : texte sombre sur blanc, accent vert au hover */
main a:not(.btn) { color: var(--panel); }
main a:not(.btn):hover { color: var(--accent); }

/* Typo dans les bulles sombres : texte clair + muted clair */
.hero, .panel-dark, .card, .fish-item, .price-card, .topbar { color: var(--text); }
.hero .muted, .panel-dark .muted, .card .muted, .fish-item .muted, .price-card .muted, .topbar .muted { color: var(--muted); }
.hero a:not(.btn), .panel-dark a:not(.btn), .card a:not(.btn), .fish-item a:not(.btn), .price-card a:not(.btn), .topbar a:not(.btn) { color: rgba(238,243,247,.92); }
.hero a:not(.btn):hover, .panel-dark a:not(.btn):hover, .card a:not(.btn):hover, .fish-item a:not(.btn):hover, .price-card a:not(.btn):hover, .topbar a:not(.btn):hover { color: var(--accent); }

/* Dashboard membre: alignement bas des boutons + hauteurs homogènes */
main .grid.grid-3 > article.card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
main .grid.grid-3 > article.card > .btn,
main .grid.grid-3 > article.card > a.btn,
main .grid.grid-3 > article.card > form:last-child {
    margin-top: auto;
    align-self: flex-start;
}

/* Bandeau essai gratuit (inline gradient) : forcer le muted en clair */
div[style*="linear-gradient(135deg, #05080c, #101821)"] .muted {
    color: var(--muted) !important;
}
[style*="background:#fff"], [style*="background: #fff"],
[style*="background:#ffffff"], [style*="background: #ffffff"],
[style*="background-color:#fff"], [style*="background-color: #fff"],
[style*="background-color:#ffffff"], [style*="background-color: #ffffff"] {
    background: var(--panel) !important;
    color: var(--text) !important;
    border-color: rgba(255,255,255,.10) !important;
}
@media (max-width: 720px) {
    .hero { padding: 22px; }
    .row { flex-direction: column; align-items: flex-start; }
    .topbar nav { gap: 10px 14px; }
}

/* Expert block (mobile-first, high-contrast CTA) */
.expert-box {
    position: relative;
    border-radius: 18px;
    padding: 16px;
    border: 1px solid rgba(56,189,248,.32);
    background:
        radial-gradient(1200px 300px at 20% -20%, rgba(56,189,248,.18), transparent 55%),
        radial-gradient(900px 260px at 110% 20%, rgba(141,198,63,.16), transparent 55%),
        var(--panel);
    box-shadow: 0 18px 35px rgba(0,0,0,.16);
    overflow: hidden;
}
.expert-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    letter-spacing: .02em;
}
.expert-title { margin-top: 10px; font-size: 1.08rem; line-height: 1.25; }
.expert-meta { margin-top: 6px; }
.expert-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.expert-actions .btn { width: 100%; text-align: center; }
.btn-route {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #071018;
    border: 0;
    font-weight: 900;
}
@media (min-width: 720px) {
    .expert-actions { grid-template-columns: repeat(3, max-content); justify-content: start; }
    .expert-actions .btn { width: auto; }
}

/* ——— Administration : fil d’Ariane, tableau de bord, formulaires longs ——— */
.admin-breadcrumb {
    font-size: .88rem;
    color: rgba(16,24,33,.78);
    margin: 0 0 8px;
    padding: 10px 14px;
    background: rgba(16,24,33,.04);
    border-radius: 12px;
    border: 1px solid rgba(16,24,33,.08);
}
.admin-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
}
.admin-breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.admin-breadcrumb a {
    color: rgba(16,24,33,.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.admin-breadcrumb a:hover { color: var(--accent); }
.admin-breadcrumb [aria-current="page"] {
    color: rgba(16,24,33,.55);
    font-weight: 600;
}
.admin-breadcrumb-sep {
    color: rgba(16,24,33,.38);
    user-select: none;
    padding: 0 2px;
}
.btn-manage {
    background: var(--ok) !important;
    color: #052e16 !important;
    border: 0;
}
.btn-warning {
    background: #fbbf24 !important;
    color: #3b2500 !important;
    border: 0;
}
.btn-warning:hover { filter: brightness(1.03) saturate(1.05); }
.btn-view {
    background: var(--accent-2) !important;
    color: #071822 !important;
    border: 0;
}
.btn-manage:hover, .btn-view:hover { filter: brightness(1.06) saturate(1.05); }
.btn-muted-outline {
    background: transparent !important;
    color: var(--text) !important;
    border: 2px solid rgba(255,255,255,.24) !important;
}
.card .btn-muted-outline { color: var(--text) !important; }
.btn-muted-outline:hover {
    border-color: rgba(255,255,255,.4) !important;
    background: rgba(255,255,255,.06) !important;
}
.admin-ency-highlight {
    border: 1px solid rgba(56,189,248,.35) !important;
    background:
        radial-gradient(900px 200px at 10% -30%, rgba(56,189,248,.2), transparent 55%),
        radial-gradient(700px 180px at 100% 0%, rgba(141,198,63,.14), transparent 50%),
        var(--panel) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}
.admin-ency-highlight__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 24px;
}
.admin-dash-heading {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.12rem;
}
.admin-dash-icon { font-size: 1.35rem; line-height: 1; }
main .admin-dashboard-cards > article.card.admin-dash-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}
.admin-dash-card__meta { margin: 6px 0 0; }
.admin-dash-card__body { flex: 1; }
.admin-dash-card__body p { margin: 0 0 6px; }
.admin-dash-card__list {
    flex: 1;
    margin: 10px 0 0;
    padding-left: 1.15rem;
    color: rgba(238,243,247,.92);
}
.admin-dash-card__list li { margin-bottom: 4px; }
.admin-dash-card__actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.admin-dash-card__actions--hero {
    justify-content: flex-end;
    padding-top: 0;
    margin-top: 0;
}
@media (max-width: 640px) {
    .admin-dash-card__actions--hero { justify-content: center; width: 100%; }
}
.admin-section {
    margin-bottom: 22px;
}
.admin-section:last-child { margin-bottom: 0; }
.admin-section__title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--text);
}
.admin-section--general {
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(141,198,63,.35);
    background: rgba(141,198,63,.06);
}
.admin-section--locales {
    margin-top: 20px;
}
.admin-locale-block {
    border-radius: 16px;
    padding: 18px 20px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.14);
}
.admin-locale-block:last-child { margin-bottom: 0; }
.admin-locale-block__label {
    margin: 0 0 14px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.admin-locale-block--fr { border-left: 4px solid #38bdf8; }
.admin-locale-block--nl { border-left: 4px solid #f97316; }
.admin-locale-block--de { border-left: 4px solid #94a3b8; }
.admin-locale-block--en { border-left: 4px solid #a78bfa; }
.admin-shared-block {
    margin-top: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(141,198,63,.3);
    background: rgba(141,198,63,.08);
}

/* ——— Poissons : page famille (styles dans main.css = même rendu partout, cache OK) ——— */
.fish-family-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
}
@media (min-width: 1100px) {
    .fish-family-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.fish-family-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 26rem;
    background: linear-gradient(165deg, rgba(23, 35, 49, 0.98), rgba(16, 24, 33, 0.99)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.fish-family-card__inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}
.fish-family-card__head h2 {
    margin: 0 0 6px;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.fish-family-card__latin {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(238, 243, 247, 0.88);
    line-height: 1.4;
}
.fish-family-card__latin strong {
    font-weight: 700;
    color: rgba(238, 243, 247, 0.72);
    margin-right: 0.25em;
}
.fish-family-card__keys {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.fish-kv {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(5, 8, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fish-kv strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 800;
}
.fish-kv__text {
    margin: 0;
    color: rgba(238, 243, 247, 0.92);
}
.fish-kv__text--clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.fish-family-card__note {
    margin: 0;
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0.9;
}
.fish-family-card__footer {
    margin-top: auto;
    padding-top: 16px;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fish-family-card__footer .btn {
    width: 100%;
    text-align: center;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 800;
}

/* ——— Fin du CSS exporté depuis le layout ——— */

