/* =========================================
   STYLE.CSS - TERRA WUCH GLOBAL DESIGN
   Base: Gem5 | Filiales: Gem7 | Invest: DP2
   ========================================= */
:root {
    --primary: #002B49;
    --primary-light: #004e80;
    --accent: #00A859;
    --accent-dark: #007a41;
    --text-dark: #2c3e50;
    --text-body: #555555;
    --text-light: #666666;
    --bg-body: #ffffff;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --danger: #dc3545;
    --glass: rgba(255, 255, 255, 0.98);
    --gold: #C5A059;
    
    /* Variables Secret Theme */
    --iridium-bg: #111;
    --iridium-panel: #1e1e1e;
    --iridium-text: #e0e0e0;
    --iridium-accent: #d4af37;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Helvetica, Arial, sans-serif; }
body { background-color: var(--bg-body); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }

/* --- HEADER & NAV --- */
header { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); height: 80px; display: flex; align-items: center; }
.nav-container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; cursor: pointer; text-transform: uppercase; text-decoration: none; z-index: 1001; }
.logo i { color: var(--accent); }
nav ul { display: flex; list-style: none; gap: 2rem; align-items: center; }
nav a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; position: relative; padding-bottom: 5px; transition: color 0.3s; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
nav a:hover::after, nav a.active::after { width: 100%; }
.lang-select { padding: 5px 10px; border: 1px solid #ddd; border-radius: 4px; background: transparent; color: var(--primary); font-weight: bold; cursor: pointer; }

/* --- UTILS --- */
main { flex: 1; padding-top: 80px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.fade-in { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.btn { display: inline-block; padding: 15px 40px; background: var(--accent); color: white; text-decoration: none; font-weight: bold; border-radius: 50px; transition: 0.3s; box-shadow: 0 10px 30px rgba(0, 168, 89, 0.3); border: none; cursor: pointer; text-transform: uppercase; text-align: center; }
.btn:hover { transform: translateY(-3px); background: var(--accent-dark); }

/* --- FOOTER --- */
footer { background: #1a1a1a; color: #aaa; padding: 5rem 0 2rem; margin-top: auto; border-top: 5px solid var(--accent); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 1rem; }
.footer-col a { color: #888; text-decoration: none; transition: 0.3s; cursor: pointer; font-size: 0.95rem; }
.footer-col a:hover { color: white; padding-left: 8px; }

/* --- MODULES SPECIFIQUES (DETAIL & INVESTORS) --- */
.grid-header { text-align: center; margin: 2rem 0; }
.detail-hero { height: 400px; position: relative; display: flex; align-items: flex-end; padding-bottom: 3rem; color: white; background-size: cover; background-position: center; }
.detail-hero::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to bottom, transparent 0%, rgba(0,43,73,0.9) 100%); }
.detail-content { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.detail-content h1 { font-size: 3.5rem; margin-bottom: 0.5rem; word-wrap: break-word; }
.detail-badge { background: var(--accent); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; }
.detail-body { padding: 4rem 2rem; max-width: 1000px; margin: -50px auto 4rem; background: white; border-radius: 8px; box-shadow: var(--shadow); position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; padding: 30px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stat-item h4 { color: var(--text-light); font-size: 0.9rem; text-transform: uppercase; }
.stat-item span { font-size: 1.8rem; color: var(--primary); font-weight: 800; }
.focus-section { background: #f0f8ff; padding: 2rem; border-left: 5px solid var(--accent); margin: 2rem 0; border-radius: 0 4px 4px 0; }
.secret-trigger { margin-top: 40px; padding: 15px; border: 1px dashed #444; color: #666; text-align: center; cursor: pointer; font-family: monospace; transition: 0.3s; }
.secret-trigger:hover { color: var(--primary); border-color: var(--primary); opacity: 1; }

.investor-hero { background: var(--primary); color: white; padding: 5rem 0; text-align: center; }
.chart-container { width: 100%; height: 350px; background: #fff; border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 2rem; }
.financial-table { width: 100%; border-collapse: collapse; margin: 2rem 0; box-shadow: var(--shadow); background: white; min-width: 600px; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 2rem; }
.financial-table th { background: var(--primary); color: white; padding: 15px; text-align: left; }
.financial-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.financial-table tr:hover { background: #f1f1f1; }
.doc-download { display: flex; align-items: center; gap: 15px; padding: 15px; border: 1px solid #ddd; margin-bottom: 10px; border-radius: 4px; transition: 0.3s; cursor: pointer; background: white; }
.doc-download:hover { background: #f0f7f4; border-color: var(--accent); }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; }
.modal-content { background: white; margin: 5% auto; padding: 2rem; border-radius: 8px; width: 80%; max-width: 600px; position: relative; }
.close-modal { position: absolute; right: 20px; top: 10px; font-size: 28px; cursor: pointer; }
.legal-content-wrapper { max-width: 900px; margin: 0 auto; background: white; padding: 4rem; box-shadow: var(--shadow); border-radius: 8px; }

/* --- THEME IRIDIUM --- */
.iridium-mode { background: var(--iridium-bg); color: #ccc; }
.iridium-mode header { background: #000; border-bottom: 1px solid #333; }
.iridium-mode .logo, .iridium-mode nav a { color: #fff; }
.iridium-mode .detail-body { background: var(--iridium-panel); border: 1px solid #333; color: #ccc; }
.iridium-mode .focus-section { background: #0d0d0d; border-color: var(--iridium-accent); }
.iridium-mode .focus-section h3 { color: var(--iridium-accent); }

/* =========================================
   STANDORTE REDESIGN - CORPORATE DIRECTORY
   ========================================= */
.corp-directory-wrapper { max-width: 1100px; margin: 0 auto; border-top: 2px solid var(--primary); padding-top: 2rem; }
.filter-bar { display: flex; gap: 0; margin-bottom: 2rem; border-bottom: 1px solid #ddd; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-btn { background: transparent; border: none; border-bottom: 3px solid transparent; padding: 15px 30px; cursor: pointer; font-weight: 600; color: #888; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: all 0.3s ease; white-space: nowrap; }
.filter-btn:hover { color: var(--primary); }
.filter-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: #f8f9fa; }
.corp-row { display: grid; grid-template-columns: 220px 1fr 280px; background: white; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; transition: background 0.2s ease; min-height: 160px; }
.corp-row:hover { background: #fcfcfc; }
.corp-row-img { position: relative; overflow: hidden; background: #000; min-height: 160px; }
.corp-row-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; filter: grayscale(100%); transition: all 0.4s ease; }
.corp-row:hover .corp-row-img img { filter: grayscale(0%); opacity: 1; }
.corp-flag-overlay { position: absolute; top: 10px; left: 10px; font-size: 1.5rem; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.corp-row-content { padding: 1.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.corp-row-meta { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.corp-row h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.8rem; font-family: 'Segoe UI', sans-serif; }
.corp-row-desc { font-size: 0.9rem; color: #555; line-height: 1.5; max-width: 90%; }
.corp-row-stats { background: #fcfcfc; border-left: 1px solid #eee; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.stat-line { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dotted #ddd; padding-bottom: 5px; }
.stat-line:last-child { border-bottom: none; }
.stat-label { font-size: 0.75rem; color: #888; text-transform: uppercase; }
.stat-value { font-size: 0.95rem; font-weight: 700; color: var(--primary); font-family: monospace; }

/* =========================================
   HOME REDESIGN - CORPORATE INSTITUTIONAL
   ========================================= */
.hero-gem4 { height: 90vh; background: linear-gradient(rgba(0,43,73,0.4), rgba(0,43,73,0.2)), url('ressources/655bb042a0d422fe9d7f1947c15f812c.jpg'); background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-gem4 h1 { font-size: 4.5rem; margin-bottom: 0.5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.5); line-height: 1.1; }
.hero-gem4 p { font-size: 1.5rem; max-width: 800px; margin: 0 auto 2rem; color: #eee; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.market-ticker { background: var(--primary); color: white; font-family: monospace; font-size: 0.85rem; padding: 12px 0; overflow: hidden; white-space: nowrap; border-bottom: 4px solid var(--accent); position: relative; }
.ticker-content { display: inline-block; white-space: nowrap; animation: ticker 40s linear infinite; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.up { color: #4cd137; } .down { color: #e84118; }
.strategy-section, .legacy-section, .board-section-bg { padding: 3rem 0; }
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.strategy-col { padding: 2rem; background: white; box-shadow: var(--shadow); border-top: 4px solid var(--accent); transition: transform 0.3s; }
.strategy-col:hover { transform: translateY(-5px); }
.strategy-num { font-size: 3rem; color: #eee; font-weight: 900; line-height: 1; margin-bottom: -1rem; position: relative; z-index: 0; }
.strategy-title { font-size: 1.5rem; color: var(--primary); margin-bottom: 1rem; position: relative; z-index: 1; }
.strategy-text { color: var(--text-light); position: relative; z-index: 1; }
.legacy-section { background: #fcfcfc; }
.legacy-wrapper { display: flex; align-items: center; gap: 4rem; background: #fff; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.legacy-photo { width: 30%; height: auto; min-height: 100%; object-fit: cover; }
.legacy-content { padding: 2rem; flex: 1; }
.legacy-content h2 { font-family: 'Georgia', serif; font-size: 2.5rem; color: var(--primary); margin-bottom: 2rem; }
.legacy-quote { font-family: 'Georgia', serif; font-size: 1.4rem; color: var(--primary); font-style: italic; margin-bottom: 1.5rem; border-left: 4px solid var(--accent); padding-left: 20px; }
.board-section-bg { background: #f8f9fa; }
.board-enclosure { background: white; max-width: 900px; margin: 0 auto; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,43,73,0.08); border: 1px solid #e9ecef; padding: 3rem 4rem; position: relative; overflow: hidden; }
.board-enclosure::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, var(--primary), var(--accent)); }
.exec-list { display: flex; flex-direction: column; }
.exec-row { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #eee; transition: 0.3s; }
.exec-row:last-child { border-bottom: none; }
.exec-row:hover { background: #fcfcfc; padding-left: 1rem; }
.exec-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; filter: grayscale(100%); margin-right: 2rem; }
.exec-row:hover .exec-img { filter: grayscale(0%); }
.exec-info { flex: 1; }
.exec-role { font-size: 0.75rem; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.exec-name { font-size: 1.25rem; color: var(--primary); margin: 2px 0; }
.exec-link { color: #aaa; text-decoration: none; font-size: 0.8rem; }
.exec-link:hover { color: var(--primary); text-decoration: underline; }

/* =========================================
   RESPONSIVE & MOBILE
   ========================================= */
/* Elements cachés par défaut sur Desktop */
.mobile-controls { display: none; }

@media (max-width: 900px) {
    .container { padding: 0 1.5rem; }
    .hero-gem4 h1 { font-size: 3rem; }
    .corp-row { grid-template-columns: 100px 1fr; grid-template-rows: auto auto; }
    .corp-row-img { grid-row: 1 / 2; }
    .corp-row-content { grid-row: 1 / 2; padding: 1rem; }
    .corp-row-stats { grid-column: 1 / -1; flex-direction: row; justify-content: space-around; background: #f8f9fa; border-left: none; border-top: 1px solid #eee; padding: 1rem; }
    .stat-line { border-bottom: none; flex-direction: column; gap: 2px; }
    .legacy-photo { width: 100%; max-height: 250px; }
    .legacy-wrapper { flex-direction: column; }
    .detail-body { margin-top: -20px; padding: 2rem 1.5rem; }
    .detail-hero { height: 300px; }
    .detail-content h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* HEADER MOBILE */
    .nav-container { padding: 0 1.5rem; }
    .logo { font-size: 1.4rem; z-index: 1001; }
    
    /* Le menu original est masqué */
    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        z-index: 999;
    }
    nav ul.mobile-active { display: flex; animation: slideDown 0.3s ease forwards; }
    @keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    
    nav a { font-size: 1.2rem; display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid #eee; }
    nav a::after { display: none; }

    /* CONTENEUR BOUTONS MOBILE (Langue + Burger) */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-toggle {
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
    }

    /* Ajustement style selecteur mobile */
    .mobile-controls select {
        padding: 5px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: white;
        color: var(--primary);
        font-weight: bold;
    }

    /* HOME ELEMENTS */
    .hero-gem4 h1 { font-size: 2.5rem; }
    .hero-gem4 p { font-size: 1.1rem; }
    .strategy-grid { grid-template-columns: 1fr; }
    .legacy-quote { font-size: 1.1rem; padding-left: 0; border-left: none; border-top: 3px solid var(--accent); padding-top: 1rem; }
    .board-enclosure { padding: 2rem 1rem; }
    .exec-row { flex-direction: column; text-align: center; }
    .exec-img { margin: 0 0 1rem 0; }
    .exec-row:hover { padding-left: 0; }
    
    /* INVESTORS */
    .investor-hero h1 { font-size: 2.5rem !important; }
    .investor-hero p { font-size: 1.1rem !important; }
    .chart-container { height: 250px; }
    
    /* STANDORTE LIST */
    .corp-row { display: flex; flex-direction: column; }
    .corp-row-img { height: 200px; }
    .corp-row-stats { flex-wrap: wrap; gap: 1rem; }
    .stat-line { flex-direction: row; gap: 10px; width: 100%; justify-content: space-between; border-bottom: 1px dotted #ddd; }
    
    /* DETAIL */
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .detail-hero { padding-bottom: 2rem; }
    .legal-content-wrapper { padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .btn { width: 100%; }
    .filter-btn { padding: 15px 20px; font-size: 0.75rem; }
    .doc-download { flex-direction: column; text-align: center; }
}
/* Redimensionnement spécifique pour l'image 277b... sur Desktop */
@media (min-width: 992px) {
    img[src*="277b78c33a92c99c77527991e8faf4e0.jpg"] {
        width: 250px; /* Tu peux changer 400px par 50% ou une autre valeur */
        height: auto;
        object-fit: cover; /* Garde les proportions sans déformer */
    }
}