/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, #0B3D2A 0%, #0E5A37 100%);
    padding: 5rem 0 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 154, 30, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(179, 18, 27, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
    width: 100%;
}
.page-hero h1 {
    font-family: var(--font);
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.page-hero h1 i {
    color: var(--jaune);
    margin-right: 0.5rem;
}
.page-hero p {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-hero { padding: 3.5rem 0 2.5rem; min-height: 240px; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero p { font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .page-hero { padding: 2.5rem 0 2rem; min-height: 200px; }
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero p { font-size: 0.85rem; }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--bg-light);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.breadcrumb .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.breadcrumb a {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: #6A7870;
    transition: var(--transition);
}
.breadcrumb a:hover {
    color: var(--rouge);
}
.breadcrumb span {
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary-color);
}
.breadcrumb .sep {
    color: #6A7870;
    margin: 0 0.4rem;
}

/* ===== CONTENU PRINCIPAL avec ASIDE ===== */
.page-content {
    padding: 2.5rem 0 4rem;
    background: var(--bg-light);
    flex: 1;
}
.page-content .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* ===== CONTENU TEXTE ===== */
.content-main {
    flex: 1;
    min-width: 0;
}

.content-main p {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 400;
    color: #2E3B34;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.content-main h2 {
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2rem 0 0.8rem;
    letter-spacing: -0.2px;
    line-height: 1.4;
}
.content-main h2 i {
    color: var(--vert);
    margin-right: 0.5rem;
}

.content-main h3 {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 0.6rem;
    line-height: 1.5;
}

.content-main h4 {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--rouge);
    margin: 1rem 0 0.3rem;
    line-height: 1.5;
}

/* ===== TABLEAUX ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
}
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font);
    font-size: 0.85rem;
    min-width: 600px;
}
.table-wrapper table th {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 0.8rem;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}
.table-wrapper table td {
    padding: 0.6rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.table-wrapper table tr:nth-child(even) {
    background: #F6F9F7;
}
.table-wrapper table tr:hover {
    background: #EDF4EF;
}
.table-wrapper table .row-label {
    font-weight: 600;
    text-align: left;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .table-wrapper table {
        font-size: 0.75rem;
        min-width: 480px;
    }
    .table-wrapper table th,
    .table-wrapper table td {
        padding: 0.4rem 0.5rem;
    }
}
@media (max-width: 480px) {
    .table-wrapper table {
        font-size: 0.65rem;
        min-width: 380px;
    }
    .table-wrapper table th,
    .table-wrapper table td {
        padding: 0.3rem 0.4rem;
    }
}

/* ===== ONGLETS ===== */
.tabs-container {
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.tabs-header {
    display: flex;
    background: #F6F9F7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    overflow-x: auto;
    flex-wrap: nowrap;
}
.tab-btn {
    flex: 1;
    padding: 0.8rem 1.2rem;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    color: #4F5D55;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    min-width: 100px;
}
.tab-btn:hover {
    background: rgba(179, 18, 27, 0.04);
}
.tab-btn.active {
    color: var(--rouge);
    border-bottom-color: var(--rouge);
    background: var(--bg-light);
}
.tab-content {
    display: none;
    padding: 1.8rem 2rem;
}
.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        min-width: 70px;
    }
    .tab-content {
        padding: 1.2rem 1rem;
    }
}
@media (max-width: 480px) {
    .tab-btn {
        font-size: 0.7rem;
        padding: 0.5rem 0.5rem;
        min-width: 55px;
    }
}

/* ===== CADRES GRAPHIQUES ===== */
.graph-frame {
    background: #F6F9F7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    width: 100%;
}
.graph-frame .graph-title {
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.8rem;
}
.graph-frame .graph-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    background: #E6EFE9;
    padding: 0.5rem;
}
.graph-frame .graph-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.graph-frame .graph-download {
    text-align: center;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 400;
    color: #6A7870;
    margin: 0.8rem 0;
}
.graph-frame .graph-download a {
    color: var(--rouge);
    font-weight: 600;
    transition: var(--transition);
}
.graph-frame .graph-download a:hover {
    color: var(--primary-color);
}
.graph-frame .graph-download a i {
    margin-right: 0.2rem;
}

.graph-frame .toggle-btn {
    display: block;
    margin: 0.5rem auto 0;
    padding: 0.4rem 1.8rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-light);
    background: var(--primary-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.graph-frame .toggle-btn:hover {
    background: var(--rouge);
    transform: translateY(-2px);
}

.graph-frame .transcription {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}
.graph-frame .transcription.visible {
    display: block;
}
.graph-frame .transcription table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font);
    font-size: 0.85rem;
    max-width: 100%;
    margin: 0 auto;
}
.graph-frame .transcription table th {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.8rem;
    text-align: center;
    font-weight: 600;
}
.graph-frame .transcription table td {
    padding: 0.4rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.graph-frame .transcription table tr:nth-child(even) {
    background: #F6F9F7;
}
.graph-frame .transcription .hide-btn {
    display: block;
    margin: 0.5rem auto 0;
    padding: 0.3rem 1.5rem;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-light);
    background: #6A7870;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}
.graph-frame .transcription .hide-btn:hover {
    background: var(--rouge);
}

@media (max-width: 600px) {
    .graph-frame {
        padding: 1rem 0.8rem;
    }
    .graph-frame .graph-title {
        font-size: 0.95rem;
    }
    .graph-frame .transcription table {
        font-size: 0.75rem;
    }
    .graph-frame .transcription table th,
    .graph-frame .transcription table td {
        padding: 0.3rem 0.5rem;
    }
}

/* ===== PARTAGE SOCIAL ===== */
.social-share {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
}
.social-share span {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: #6A7870;
}
.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F1F4F2;
    color: #4F5D55;
    font-size: 0.95rem;
    transition: var(--transition);
}
.social-share a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.content-main .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
    margin-top: 1.5rem;
}
.content-main .btn-back:hover {
    color: var(--rouge);
}
.content-main .btn-back i {
    font-size: 0.8rem;
    transition: var(--transition);
}
.content-main .btn-back:hover i {
    transform: translateX(-4px);
}
