/* DESIGN SYSTEM V2 - GESTION PATRIMONIALE */
:root {
    --primary-color: #1A2B3C; /* Bleu Nuit Profond */
    --secondary-color: #C5A059; /* Or / Bronze */
    --text-color: #1A2B3C;
    --bg-color: #F9F7F2; /* Blanc Cassé / Papier */
    --card-bg: #ffffff;
    --success-color: #2D5A27;
    --danger-color: #8B0000;
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8; /* Interlignage augmenté pour lecture longue */
    margin: 0;
}

/* HEADER */
header {
    background: white;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
    text-transform: none;
    letter-spacing: 0;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--secondary-color);
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: #ffffff;
    color: var(--text-color);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 50px; /* Pill shape for elegance */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dropbtn:hover, .dropbtn:focus {
    background: #fdfcf9;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(197, 160, 89, 0.1);
    outline: none;
}

.icon-globe {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.dropbtn:hover .icon-globe {
    transform: rotate(15deg);
}

.arrow {
    font-size: 8px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .arrow {
    transform: translateY(2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: white;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.lang-dropdown:hover .dropdown-content,
.lang-dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover, .dropdown-content a:focus {
    background-color: #fdfcf9;
    color: var(--secondary-color);
    outline: none;
}

.dropdown-content img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Responsive mobile adjustments */
@media (max-width: 768px) {
    .lang-dropdown {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .dropbtn {
        width: auto;
        min-width: 120px;
        justify-content: center;
    }
    
    .dropdown-content {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        min-width: 200px;
    }
    
    .lang-dropdown:hover .dropdown-content {
        transform: translateX(-50%) translateY(0);
    }
}

/* HERO SECTION */
.hero {
    background: var(--primary-color);
    color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 0;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* FEATURED SECTION */
.featured-section {
    background: white;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.featured-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* ARTICLES / CARTES */
.latest-tests {
    max-width: 1200px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: 4px; /* Plus institutionnel, moins "app" */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

.card-img {
    height: 220px;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 43, 60, 0.2) 100%);
    transition: opacity 0.4s;
}

.card:hover .card-img::after {
    opacity: 0.4;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color);
}

.btn-read {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 2rem;
    background: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-read:hover {
    background: var(--secondary-color);
    color: white;
}

/* TABLEAUX AVIS (Article) */
.pros-cons {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}
.pros, .cons {
    flex: 1;
    padding: 1.5rem;
    border-radius: 8px;
}
.pros { background: #e8f5e9; border-left: 5px solid var(--success-color); }
.cons { background: #ffebee; border-left: 5px solid var(--danger-color); }

.verdict-box {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}
.score {
    font-size: 3rem;
    font-weight: 800;
}

/* LONG READ / PREMIUM ARTICLES */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.long-read {
    background: white;
    padding: 2rem 0;
}

.article-header {
    margin-bottom: 3rem;
    text-align: left;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0.5rem 0 1.5rem 0;
    color: var(--primary-color);
}

.category-tag {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.35rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.author-info {
    display: flex;
    gap: 1.5rem;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.hero-image {
    width: 100%;
    margin-top: 0;
}

.caption {
    display: block;
    text-align: center;
    font-style: italic;
    color: #777;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.dropcap {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 0.7;
    padding-top: 8px;
    padding-right: 12px;
    padding-left: 3px;
    color: var(--secondary-color);
    font-weight: 700;
}

article section {
    margin-bottom: 2.5rem;
}

article p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

article h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 4rem 0 1.5rem 0;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 0.5rem;
}

article h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }

    .pros-cons {
        flex-direction: column;
    }

    .latest-tests {
        grid-template-columns: 1fr;
    }

    .featured-section .card {
        flex-direction: column !important;
    }
    
    .featured-section .card-img {
        height: 250px !important;
    }
    
    .featured-section .card-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}
