/* ===== 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 ===== */
.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);
    width: 100%;
}

.content-main {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

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

.content-main h3 {
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.8rem 0 0.6rem;
    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);
}
.table-wrapper table .total-row {
    background: #E6EFE9 !important;
    font-weight: 700;
}

@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; }
}

/* ===== 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-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0.8rem 0;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 500;
    color: #4F5D55;
}
.graph-frame .graph-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.graph-frame .graph-legend .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.graph-frame .graph-source {
    text-align: right;
    font-family: var(--font);
    font-size: 0.75rem;
    font-style: italic;
    color: #6A7870;
    margin: 0.5rem 0 0;
}
.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); }
