/* ==========================================================================
 *  REGARDS — DÉTAIL (ZERO GOUTTIÈRES & FULL DARK)
 *  ========================================================================== */

/* 1. VARIABLES & THÈMES */
.regards-detail-page {
    --accent: #ff6233;
    --bg-page: #f3f4f6;
    --surface: #ffffff;
    --text-main: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --radius-xl: 24px;
}

/* Dark Mode complet */
:root[data-theme="dark"] .regards-detail-page,
body.regards-detail-page[data-theme="dark"] {
    --bg-page: #0b1020;
    --surface: #111827;
    --text-main: #f3f4f6;
    --text-light: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
}

/* 2. FIX GOUTTIÈRES : On peint tout l'écran */
html,
body.regards-detail-page {
    background-color: var(--bg-page) !important;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

.detail-wrapper {
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    padding: 40px 0 100px;
}

/* Reset des liens */
.regards-detail-page a {
    text-decoration: none !important;
    color: inherit !important;
}

.regards-detail-page a:hover {
    color: var(--accent) !important;
}

.detail-wrapper .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
.detail-nav { margin-bottom: 30px; }
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--text-light) !important;
}

/* --- GRID LAYOUT --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch; /* Permet au sticky de fonctionner */
}

/* --- COLONNE MÉDIA (STICKY) --- */
.detail-media-col { height: 100%; }

.sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-image-frame {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 4px solid var(--surface);
    background: var(--surface);
}

.detail-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badges */
.detail-badges { display: flex; gap: 10px; }
.d-badge {
    padding: 6px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.d-badge.cat {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* --- COLONNE CONTENU --- */
.detail-header { margin-bottom: 40px; }

.detail-title {
    /* Titre légèrement réduit comme demandé */
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 30px;
    letter-spacing: -1px;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.author-avatar { font-size: 28px; }
.author-meta .label { font-size: 11px; color: var(--text-light); text-transform: uppercase; font-weight: 700; }
.author-meta .name { font-size: 16px; font-weight: 800; }

/* Corps du texte */
.detail-body {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 60px;
}

.detail-text p { margin-bottom: 1.6em; }
.detail-text b, .detail-text strong { font-weight: 800; color: var(--accent); }

/* --- SHARE BOX --- */
.detail-share-box {
    padding: 40px;
    background: var(--surface);
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.share-label {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 25px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.share-actions { display: flex; justify-content: center; gap: 20px; }

.action-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-btn:hover { transform: translateY(-5px); }
.action-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.action-btn.copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.action-btn.is-copied { background: #10b981 !important; color: #fff !important; border-color: #10b981 !important; }

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
    .detail-grid { display: block; }
    .sticky-wrapper { position: static; margin-bottom: 40px; }
    .detail-image-frame { aspect-ratio: 16/10; }
    .detail-title { font-size: 1.8rem; }
}
