:root {
    --primary: #e30613;
    --black: #1a1a1a;
    --deep-black: #000000;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--black);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
}

/* Animation d'entrée pour les sections */
.key-stats, .subsidiaries {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism sur le sélecteur de langue */
.lang-selector {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Language Switcher */
.lang-selector {
    position: absolute;
    top: 30px;
    right: 5%;
    z-index: 100;
}
.lang-selector img {
    width: 28px;
    height: auto;
    margin-left: 8px;
    transition: var(--transition);
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.lang-selector a:hover img { transform: translateY(-3px); }

/* Logo Styles */
.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--white);
}
.logo span { color: var(--primary); }

/* Hero */
.hero {
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.2);
}
.hero-content { max-width: 850px; }
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--white);
    line-height: 1.1;
    font-weight: 900;
}
.hero .highlight { color: var(--primary); }
.hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    max-width: 600px;
    margin-top: 20px;
    font-weight: 300;
}

/* Stats Section */
.key-stats {
    display: flex;
    background: var(--deep-black);
    color: var(--white);
}
.stat-item {
    flex: 1;
    padding: 80px 40px;
    text-align: center;
}
.stat-item.accent { background: var(--primary); }
.stat-val {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 5px;
}
.stat-desc {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 400;
}

/* Subsidiaries Section */
.subsidiaries {
    display: flex;
    height: 600px;
}
.subs-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}
.subs-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: var(--transition);
}
.subs-info {
    position: absolute;
    bottom: 50px; left: 50px;
    z-index: 10;
}
.subs-info small {
    display: block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.subs-info h2 { font-size: 2.2rem; font-weight: 900; margin: 0; }

.subs-card:hover { flex: 1.4; }
.subs-card:hover img { filter: grayscale(0%) brightness(0.5); transform: scale(1.05); }

/* Footer */
.footer {
    background: var(--deep-black);
    color: var(--white);
    padding: 100px 10% 40px;
}
.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}
.footer-brand p { opacity: 0.5; margin-top: 15px; }
.footer-links { display: flex; gap: 100px; }
.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}
.footer-links a:hover { opacity: 1; color: var(--primary); }

.copyright {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.4;
    text-align: center;
}

/* Style de la modal (fond noir transparent) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px); /* Effet moderne de flou */
}

/* Contenu de la modal */
.modal-content {
    background-color: var(--white);
    color: var(--black);
    margin: 5% auto;
    padding: 40px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-top: 5px solid var(--primary); /* Rappel du rouge #e30613 */
    border-radius: 4px;
}

/* Bouton Fermer la modal */
.close-modal {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--black);
    transition: 0.3s;
}
.close-modal:hover { color: var(--primary); }

/* --- Styles des liens à l'intérieur des modales --- */
.legal-text a {
    color: var(--primary); /* Utilisation de votre rouge #e30613 */
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.legal-text a:hover {
    border-bottom: 1px solid var(--primary);
    opacity: 0.8;
}

.legal-text h1 {
    color: var(--primary);
    margin-top: 0;
    text-transform: uppercase;
}

.legal-text h2 {
    color: var(--black);
    margin-top: 0;
}

.legal-text p, .legal-text li {
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: #333;
}

.legal-text .highlight-link {
    background-color: rgba(227, 6, 19, 0.05); /* Un très léger fond rouge */
    padding: 2px 5px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .subsidiaries { height: auto; flex-direction: column; }
    .subs-card { height: 400px; }
    .footer-wrap { flex-direction: column; gap: 50px; }
    .footer-links { gap: 50px; }
}

@media (max-width: 768px) {
    .key-stats { flex-direction: column; }
    .hero { height: 70vh; }
    .hero h1 { font-size: 3rem; }
}
