
    :root {

        --theme-green: #519D88;

        --accent-text: #519D88;

        --text-col: #333;
        --bg-light: #f8f9fa;
        --border-col: #e0e0e0;
    }

    body.dark-mode {
        --theme-green: #2D443C;

        --accent-text: #81c7b5;

        --text-col: #E0E0E0;
        --bg-light: #121212;
        --border-col: #444;
    }

    body.dark-mode .text-muted {
        color: rgba(255, 255, 255, 0.6) !important;
    }

    body.dark-mode .row.g-3.mt-2 h6 {
        color: white !important;
    }

    body.dark-mode .row.g-3.mt-2 .card {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }

    body.dark-mode .row.g-3.mt-2 .text-primary {
        color: var(--accent-text) !important;
    }

    body.dark-mode .fiche-texte {
        opacity: 1;
    }

    .hero-compact {
        position: relative;
        width: 100%;
        height: 45vh;
        min-height: 350px;
        max-height: 500px;
        overflow: hidden;
        background-color: #000;
    }

    .hero-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.9;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.25));
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 20px 40px;
    }

    .hero-content {
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
        color: white;
    }

    .fish-name {
        font-family: 'Playfair Display', serif;
        font-size: clamp(2.5rem, 5vw, 4.5rem);
        font-weight: 900;
        margin: 0;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
        line-height: 1;
    }

    .fish-latin {
        font-family: 'Inter', sans-serif;
        font-size: 1.1rem;
        font-style: italic;
        opacity: 0.9;
        margin-top: 5px;
        color: #a7f3d0;

    }

    .back-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 10;
        color: white;
        font-size: 1.5rem;
        text-decoration: none;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s;
    }

    .back-btn:hover {
        transform: translateX(-5px);
    }

    .specs-bar {
        background-color: var(--theme-green);
        color: white;
        padding: 15px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: 100%;

    }

    .specs-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .spec-box {
        text-align: center;
        flex: 1;
        min-width: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0 10px;
    }

    .spec-box:last-child {
        border-right: none;
    }

    .spec-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 4px;
        font-weight: 600;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .spec-value {
        font-weight: 700;
        color: white;
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    @media (max-width: 768px) {

        .specs-bar {
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .specs-bar::-webkit-scrollbar {
            display: none;
        }

        .specs-container {
            justify-content: flex-start;
            min-width: max-content;
            gap: 0;
            padding: 0 8px;
        }

        .spec-box {
            flex: 0 0 auto;
            min-width: 88px;
            padding: 0 14px;
            border-right: 1px solid rgba(255, 255, 255, 0.15);
        }

        .spec-label {
            font-size: 0.68rem;
        }

        .spec-value {
            font-size: 0.88rem;
        }

        .specs-scroll-wrapper {
            position: relative;
        }

        .specs-scroll-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 0;
            bottom: 0;
            width: 36px;
            z-index: 10;
            cursor: pointer;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .specs-scroll-arrow.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .specs-scroll-arrow-left {
            left: 0;
            background: linear-gradient(to right, rgba(81, 157, 136, 0.92) 60%, transparent);
        }

        .specs-scroll-arrow-right {
            right: 0;
            background: linear-gradient(to left, rgba(81, 157, 136, 0.92) 60%, transparent);
        }

        body.dark-mode .specs-scroll-arrow-left {
            background: linear-gradient(to right, rgba(45, 68, 60, 0.96) 60%, transparent);
        }

        body.dark-mode .specs-scroll-arrow-right {
            background: linear-gradient(to left, rgba(45, 68, 60, 0.96) 60%, transparent);
        }

        .specs-scroll-arrow svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: rgba(255, 255, 255, 0.9);
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
            filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
        }
    }

    @media (min-width: 769px) {
        .specs-scroll-arrow {
            display: none;
        }
    }

    .article-container {
        max-width: 800px;
        margin: 50px auto;
        padding: 0 20px;
    }

    .fiche-bloc {
        margin-bottom: 50px;
    }

    .fiche-titre {
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem;
        color: var(--text-col);
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 3px solid var(--accent-text);
        position: relative;
    }

    .fiche-texte {
        font-family: 'Inter', sans-serif;
        font-size: 1.05rem;
        line-height: 1.8;
        color: var(--text-col);
        opacity: 0.9;
    }

    .context-link {
        color: var(--accent-text);
        font-weight: 700;
        text-decoration: none;
        border-bottom: 1px dotted var(--accent-text);
        transition: all 0.2s;
    }

    .context-link:hover {
        color: var(--text-col);
        border-bottom-style: solid;
    }

    .icon-accent {
        color: var(--accent-text);
    }

    .gear-box {
        background: rgba(81, 157, 136, 0.1);
        border-left: 4px solid var(--accent-text);
        padding: 20px;
        border-radius: 0 8px 8px 0;
        margin-top: 15px;
        color: var(--text-col);
    }

    .tech-cloud {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
    }

    .tech-item {
        background: transparent;
        color: var(--accent-text);
        padding: 8px 16px;
        border-radius: 30px;
        font-size: 0.9rem;
        font-weight: 600;
        border: 2px solid var(--accent-text);
        transition: all 0.2s;
    }

    .tech-item:hover {
        background: var(--accent-text);
        color: white;
    }

    body.dark-mode .tech-item:hover {
        color: #121212;
    }

    .period-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

    .period-cell {
        border-radius: 10px;
        padding: 10px 8px;
        text-align: center;
        font-size: 0.85rem;
        border: 1px solid var(--border-col);
    }

    .period-cell.month-low { background: rgba(148, 163, 184, 0.18); }
    .period-cell.month-mid { background: rgba(59, 130, 246, 0.2); }
    .period-cell.month-good { background: rgba(16, 185, 129, 0.2); }
    .period-cell.month-peak { background: rgba(245, 158, 11, 0.25); }
    .period-cell.month-fraie { outline: 2px solid rgba(220, 38, 38, 0.55); }

    .period-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        margin-top: 12px;
        font-size: 0.85rem;
    }

    .period-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-right: 6px;
        vertical-align: middle;
    }

    @media (max-width: 768px) {
        .period-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    /* --- Guide expert blocs --- */
    .guide-bloc {
        display: flex;
        gap: 18px;
        align-items: flex-start;
        margin-bottom: 28px;
        padding: 20px;
        background: rgba(81, 157, 136, 0.07);
        border-radius: 14px;
        border: 1px solid rgba(81, 157, 136, 0.18);
    }

    .guide-bloc-pro {
        background: rgba(245, 158, 11, 0.09);
        border-color: rgba(245, 158, 11, 0.3);
    }

    body.dark-mode .guide-bloc { background: rgba(81, 157, 136, 0.1); border-color: rgba(81,157,136,0.25); }
    body.dark-mode .guide-bloc-pro { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); }

    .guide-icon {
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--accent-text);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1rem;
    }

    .guide-bloc-pro .guide-icon {
        background: rgba(245, 158, 11, 0.85);
    }

    .guide-content { flex: 1; }

    .guide-label {
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--accent-text);
        margin: 0 0 8px 0;
    }

    .guide-bloc-pro .guide-label { color: #d97706; }
    body.dark-mode .guide-bloc-pro .guide-label { color: #fbbf24; }

    /* --- FAQ accordion --- */
    .faq-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    body.dark-mode .faq-list {
        background: transparent;
        padding: 0;
    }

    .faq-item {
        background: var(--bg-light);
        border: 1px solid var(--border-col);
        border-radius: 12px;
        overflow: hidden;
    }

    body.dark-mode .faq-item {
        background: rgba(81, 157, 136, 0.1);
        border-color: rgba(129, 199, 181, 0.3);
    }

    .faq-question {
        padding: 16px 20px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-col);
    }

    .faq-question::-webkit-details-marker { display: none; }

    .faq-question::after {
        content: '+';
        font-size: 1.3rem;
        color: var(--accent-text);
        line-height: 1;
        transition: transform 0.2s;
    }

    details[open] .faq-question::after { content: '−'; }

    .faq-answer {
        padding: 0 20px 18px;
        border-top: 1px solid var(--border-col);
        margin-top: 0;
    }

    /* Niveau dans la cell */
