: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 {
    height: 100vh;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--deep-black);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
}

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

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

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: #e30613; /* Rouge Magellan */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
    outline: none;
}

.btn-primary:hover {
    background-color: #161b1d; /* Passage au noir anthracite au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Version secondaire ou "Outline" si besoin pour varier */
.btn-primary.outline {
    background-color: transparent;
    border: 2px solid #e30613;
    color: #e30613;
    box-shadow: none;
}

.btn-primary.outline:hover {
    background-color: #e30613;
    color: #ffffff;
}

/* Unification des styles communs */
.btn-submit, .btn-primary {
    font-family: 'Roboto', sans-serif; /* Assurez-vous d'utiliser la même fonte */
    transition: 0.3s ease-in-out;
}


/* 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: 5vh;
    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); }

.logo img {
    max-width: 250px;
}

/* Hero */
.hero {
    background-color: var(--deep-black);
    height: 15vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

/* Intro Section */
.intro {
    padding: 20px 0;
    background-color: var(--deep-black);
    border-top: 3px solid var(--primary);
}

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

.intro h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.75rem;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

/* Subsidiaries Section */
.subsidiaries {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 0; /* On colle souvent les cartes pour un effet bloc, ou mettez 20px selon vos goûts */
    width: 100%;
}

.subs-card {
    position: relative;
    display: block;
    height: 450px; /* Ajustez la hauteur souhaitée */
    overflow: hidden;
    text-decoration: none;
}

/* Overlay sombre pour faire ressortir le logo blanc */
.subs-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Calque noir à 30% */
    transition: background 0.3s ease;
}

/* Gestion de l'image de fond */
.subs-card picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.subs-card:hover picture img {
    transform: scale(1.05); /* Effet de zoom au survol */
}

/* Positionnement du logo */
.subs-info {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 70%; /* Le logo prend 70% de la largeur de la carte */
    text-align: center;
}

.subs-logo {
    /*filter: brightness(0) invert(1);*/
    max-width: 80%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Au survol de la carte, le logo reprend ses couleurs originales */
.subs-card:hover .subs-logo {
    filter: none;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .subsidiaries { grid-template-columns: 1fr; } /* Empilé sur mobile */
    .subs-card { height: 300px; }
}

/* Footer */
.footer {
    background: var(--deep-black);
    color: var(--white);
    padding: 25px 0;
}

.footer-location {
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    transition: 0.3s;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}
.footer a:hover { opacity: 1; color: var(--primary); }

.copyright {
    padding-top: 15px;
    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.7);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Effet moderne de flou */
}

/* Contact */
/* Styling spécifique à la modale contact */
.contact-modal {
    max-width: 500px !important;
    padding: 50px !important;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
}

.contact-header h2 span {
    color: var(--primary);
}

/* Le Formulaire */
.magellan-form .form-group {
    margin-bottom: 20px;
}

.magellan-form input,
.magellan-form select,
.magellan-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.magellan-form input:focus,
.magellan-form select:focus,
.magellan-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
}

.privacy-check input[type="checkbox"] {
    width: auto; /* Annule le width: 100% des autres inputs */
    margin-top: 4px;
    cursor: pointer;
}

.privacy-check label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

.privacy-check label a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: var(--black);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--primary);
}

/* Contenu de la modal Legals */
.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;
    z-index: 2001;
}

/* 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; }
}

@media (max-width: 768px) {
    .key-stats { flex-direction: column; }
    .logo img {max-width: 180px;}
    .intro h2 {font-size: 1.4rem;}
}
