/* ========================================= */
/* RESET ET STYLES DE BASE */
/* ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    /* Police professionnelle */
    color: #ffffff;
    overflow-x: hidden;
    /* Évite le scroll horizontal */
    background-color: #0a192f;
    /* Couleur de fond de secours si la vidéo ne charge pas */
}


/* ========================================= */
/* VIDÉO D'ARRIÈRE-PLAN & OVERLAY */
/* ========================================= */
.background-video {
    position: fixed;
    /* Fixe pour couvrir tout l'écran même au scroll */
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    /* Assure que la vidéo remplit l'espace sans déformation */
}

/* Filtre sombre semi-transparent par-dessus la vidéo */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.4);
    /* Bleu nuit très sombre à 70% d'opacité */
    z-index: 1;
    backdrop-filter: blur(3px);
    /* Léger flou sur la vidéo pour le style */
}


/* ========================================= */
/* CONTENEUR PRINCIPAL & TYPOGRAPHIE */
/* ========================================= */
.content-container {
    position: relative;
    min-height: 100%;
    /* Permet le scroll si l'écran est petit */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    z-index: 2;
}

.logo {
    max-width: 180px;
    /* Taille ajustée pour le logo blanc */
    height: auto;
    margin-bottom: 50px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 650px;
    color: #e6e6e6;
    /* Blanc légèrement cassé pour moins fatiguer les yeux */
}


/* ========================================= */
/* BOUTONS (Styles généraux) */
/* ========================================= */
.button-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    /* Transition pour l'animation JS */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    /* Angles légèrement arrondis */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Transition fluide */
    cursor: pointer;
    letter-spacing: 0.5px;
    border: none;
    /* Important car on utilise la balise <button> aussi */
    font-family: 'Roboto', sans-serif;
}

/* Bouton Primaire (Bleu Engenia) */
.btn-primary {
    background-color: #255496;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 84, 150, 0.4);
}

.btn-primary:hover {
    background-color: #2f66b3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 84, 150, 0.6);
}

/* Bouton Secondaire (Contour blanc) */
.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.linkedin-icon {
    margin-right: 10px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #255496;
    /* Le texte et l'icône deviennent bleus */
    border-color: #ffffff;
    transform: translateY(-3px);
}


/* ========================================= */
/* FORMULAIRE DE CONTACT (Styles et Animation) */
/* ========================================= */

/* État initial caché du formulaire */
#contact-form-container {
    display: none;
    /* Caché du flux */
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    /* Style "Glassmorphism" */
    background: rgba(10, 25, 47, 0.85);
    padding: 35px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Transitions pour l'apparition JS */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Classes utilitaires gérées par le JS */
.form-container-hidden {
    opacity: 0;
    transform: translateY(30px);
    /* Arrive du bas */
}

.form-container-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles des champs */
.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    /* Fond très légèrement blanc */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #255496;
    /* Focus bleu */
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(37, 84, 150, 0.2);
}

.textarea-input {
    resize: none;
    /* Empêche le redimensionnement manuel */
}

.submit-btn {
    width: 100%;
    /* Bouton d'envoi pleine largeur */
    margin-top: 10px;
}

/* Lien Annuler */
.cancel-link {
    background: none;
    border: none;
    color: #adadad;
    text-decoration: none;
    cursor: pointer;
    margin-top: 25px;
    font-size: 0.95rem;
    padding: 5px 10px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    display: inline-block;
    border-bottom: 1px dotted transparent;
}

.cancel-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}


/* ========================================= */
/* ANIMATIONS D'ENTRÉE (Au chargement de la page) */
/* ========================================= */
.fade-in-element,
.slide-up-element {
    opacity: 0;
}

.slide-up-element {
    transform: translateY(40px);
}

@keyframes fadeInAnimation {
    to {
        opacity: 1;
    }
}

@keyframes slideUpAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    animation: fadeInAnimation 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.slide-up-element {
    animation: slideUpAnimation 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Délais en cascade */
.delay-1 {
    animation-delay: 0.3s;
}

/* Logo */
.delay-2 {
    animation-delay: 0.6s;
}

/* Titre */
.delay-3 {
    animation-delay: 0.9s;
}

/* Sous-titre */
.delay-4 {
    animation-delay: 1.2s;
}

/* Boutons initiaux */


/* ========================================= */
/* RESPONSIVE (Mobile & Tablettes) */
/* ========================================= */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
        /* Titre plus petit sur mobile */
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        /* Boutons pleine largeur */
    }

    #contact-form-container {
        padding: 25px 20px;
    }
}