/* =========================================
 V ARIABLES LOCALES (CSS AUTONOME*)
 ========================================= */
:root {
    --c-accent: #FF6233;
    --c-bg: #f8f9fa;
    --c-surface: #ffffff;
    --c-text: #111827;
    --c-text-muted: #6b7280;
    --c-border: #e5e7eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --radius: 16px;
    --font-main: 'Inter', sans-serif;
}

[data-theme="dark"] {
    --c-bg: #111827;
    --c-surface: #1f2937;
    --c-text: #f3f4f6;
    --c-text-muted: #9ca3af;
    --c-border: #374151;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* =========================================
 R ESET & BASE                   *
 ========================================= */
body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-main);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

* { box-sizing: border-box; }

.header-spacer { height: clamp(32px, 6vh, 56px); }

/* Layout Principal */
.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* =========================================
 H ERO (Effet Verre Fumé)        *
 ========================================= */
.hero {
    max-width: 1120px;
    margin: 20px auto 40px;
    position: relative;
    min-height: 300px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    overflow: hidden; /* Important pour le flou */
    background: #000;
    box-shadow: var(--shadow);
}

.hero .bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay Verre Fumé */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4); /* Assombrissement */
    backdrop-filter: blur(4px); /* Flou */
    -webkit-backdrop-filter: blur(4px);
}

.hero .content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 20px;
}

.hero .chip {
    background: var(--c-accent);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    display: inline-block;
}

.hero h1 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    line-height: 1.1;
}

/* Hero title custom element — rendu IDENTIQUE à .hero h1 */
.hero hero-title{
    display: block;
    margin: 0;

    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;

    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}



/* =========================================
 G RILLE & CONTENU               *
 ========================================= */
.grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 50px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; gap: 30px; }
}

/* --- CARTE VIDÉO --- */
.video-card {
    position: sticky;
    top: 110px;
    z-index: 10;
}
@media (max-width: 900px) { .video-card { position: static; } }

.video-card__inner {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
}

.video-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    line-height: 0;
}

.video-frame video {
    width: 100%;
    height: auto;
    display: block;
}

.video-meta { margin-top: 15px; }
.video-title {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.video-sub { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); }

/* --- ARTICLE TEXTE --- */
.article {
    max-width: 65ch;
    margin: 0 auto;
}

/* Signature Haut (Corrigée) */
.signature-inline {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 30px;
}
.signature-photo-inline {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-border);
}
.signature-nom {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.2;
}
.signature-nom a {
    color: var(--c-text);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--c-accent);
}
.signature-role {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.2;
}

.article-sep {
    border: 0;
    height: 1px;
    background: var(--c-border);
    margin: 30px 0;
}

/* Corps du texte */
.content-wrap {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--c-text);
}
.content-wrap h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--c-accent);
    margin: 1.5em 0 0.8em;
}
.content-wrap p { margin-bottom: 1.2em; }
.content-wrap a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* Kicker */
.kicker {
    font-size: 1.15rem;
    color: var(--c-text-muted);
    border-left: 4px solid var(--c-accent);
    padding-left: 20px;
    margin-bottom: 30px;
}

/* Info Box */
.info-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: 25px;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

/* =========================================
 * BLOC PARTAGE (CORRIGÉ POUR VISIBILITÉ)
 * ========================================= */
.share-block {
    margin: 50px 0;
    padding: 30px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.share-block h4 {
    margin: 0 0 20px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- CORRECTION ICI --- */
.share-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;

    /* Fond neutre qui s'adapte au thème */
    background: var(--c-surface);
    border: 2px solid var(--c-accent); /* Bordure orange pour le style */

    /* COULEUR DE L'ICÔNE : ORANGE PAR DÉFAUT */
    color: var(--c-accent);

    font-size: 20px; /* Icône un peu plus grande */
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Au survol : on inverse (Fond orange, icône blanche) */
.share-button:hover {
    background: var(--c-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 98, 51, 0.3);
}

/* Ajustement Dark Mode (Le fond s'adapte déjà grâce à --c-surface) */
[data-theme="dark"] .share-button {
    border-color: var(--c-accent); /* Reste orange */
    background: rgba(255, 98, 51, 0.1); /* Petit fond orange translucide en dark */
}

[data-theme="dark"] .share-button:hover {
    background: var(--c-accent); /* Devient orange plein au survol */
    color: #fff;
}

/* =========================================
 F OOTER ARTICLE                 *
 ========================================= */
.signature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--c-border);
}

.signature-chronique {
    display: flex; align-items: center; gap: 15px;
    font-size: 0.9rem; color: var(--c-text-muted);
}
.signature-photo {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-all {
    padding: 10px 24px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}
.btn-all:hover { opacity: 0.9; }

/* ... (votre css existant) ... */

/* =========================================
 *  STYLE DE L'ENCADRÉ (Bio Box)
 *  ========================================= */
.article-box {
    margin: 40px 0;
    padding: 30px;
    background: var(--c-surface); /* Fond blanc/sombre selon thème */

    /* Bordure fine autour */
    border: 1px solid var(--c-border);

    /* Bordure épaisse accentuée à gauche pour le style */
    border-left: 5px solid var(--c-accent);

    border-radius: 8px; /* Coins légèrement arrondis */
    box-shadow: var(--shadow); /* Ombre légère pour le relief */

    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-text);
}

.article-box strong {
    color: var(--c-accent); /* Mise en valeur du gras en orange */
}

.article-box p:last-child {
    margin-bottom: 0;
}

/* Ajustement Kicker pour supporter plusieurs paragraphes */
.kicker p {
    margin-bottom: 1em;
}
.kicker p:last-child {
    margin-bottom: 0;
}

/* =========================================
 * T A G S (Hero)                 *
 * ========================================= */

.hero .tags {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.14); /* effet "glass" */
    border: 1px solid rgba(255, 255, 255, 0.22);

    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero .tag:hover {
    transform: translateY(-1px);
    background: rgba(255, 98, 51, 0.22);
    border-color: rgba(255, 98, 51, 0.55);
}

/* Accessibilité focus clavier */
.hero .tag:focus-visible {
    outline: 3px solid rgba(255, 98, 51, 0.6);
    outline-offset: 2px;
}
/* =========================================
 * L I E N S (cohérence globale)  *
 * ========================================= */

/* Liens du contenu : look "Pépites" */
.article a:not(.btn):not(.share-button):not(.tag) {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 650;
}

.article a:not(.btn):not(.share-button):not(.tag):hover {
    text-decoration-thickness: 2px;
}

/* Focus visible */
.article a:not(.btn):not(.share-button):not(.tag):focus-visible {
    outline: 3px solid rgba(255, 98, 51, 0.5);
    outline-offset: 2px;
    border-radius: 6px;
}
/* =========================================
 * T A G S (article - optionnel) *
 * ========================================= */

.article .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.article .tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 98, 51, 0.10);
    border: 1px solid rgba(255, 98, 51, 0.25);
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}

.article .tag:hover {
    background: rgba(255, 98, 51, 0.18);
    border-color: rgba(255, 98, 51, 0.45);
}
