@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff !important;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER : LOGO À GAUCHE, MENU À DROITE --- */
header {
    background: #ffffff;
    min-height: 90px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

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

nav ul li a {
    text-decoration: none !important;
    color: #0056b3; 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    line-height: 1.2;
}

nav ul li a:hover {
    color: #003d7a;
    border-bottom: 2px solid #0056b3;
}


/* --- SECTION ENGAGEMENT (RECRUTEMENT) --- */
.commitment-section {
    text-align: center;
    margin: 40px 0; /* Ajoute un peu d'espace au-dessus et en-dessous */
}


/* Le bloc "Votre futur job..." transformé en un bouton d'appel à l'action discret */
.commitment-link {
    display: inline-block;
    color: #0056b3;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.5;
    padding: 20px 40px;
    border: 2px dashed #0056b3;
    border-radius: 8px;
    background-color: #fafdff;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.commitment-link:hover {
    background-color: #0056b3;
    color: #ffffff !important;
    border-style: solid;
}

/* Le sous-texte "Parce qu'un recrutement réussi..." */
.commitment-subtext {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    font-style: italic;
}



/* --- HERO (IMAGE DE FOND) --- */
.hero {
    width: 100%;
    background: url('fond.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 65vh;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,0.45));
    z-index: 1;
}

/* --- HERO CONTENT CONTAINER --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: clamp(2.1rem, 9.5vw, 5rem);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 auto 15px auto;
    line-height: 1.05;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scaleX(0.70);
    display: inline-block;
}    

/* Cadre autour du sous-titre dans le hero */
.hero .baseline {
    padding: 14px 35px;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    margin-top: 12px;
    color: #ffffff;
    font-size: clamp(1rem, 4.2vw, 1.55rem);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    max-width: 95%;
    text-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.85),
        0 4px 12px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(0, 86, 179, 0.35);
    position: relative;
    z-index: 2;
}

.hero-recrutement {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                url('fond-recrutement.png') top/cover no-repeat;
}

.hero-entreprise {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                url('entreprise.jpeg') top/cover no-repeat;
}


.hero-offres {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                url('entretien.png') top/cover no-repeat;
}


.hero-cao {
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                url('CAO.png') top/cover no-repeat;
}

.hero-home {
    height: 68vh;
    min-height: 520px;
    background: url('fond.png') 50% 28% / cover no-repeat;
}

.hero-inner { height: 75vh; }

/* --- CONTENU & GRILLES --- */
.container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.offre-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.offre-card:hover { transform: translateY(-5px); }

.offre-card h3 {
    color: #0056b3;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.offre-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.btn-postuler {
    display: inline-block;
    padding: 10px 20px;
    background: #0056b3;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-postuler:hover { background: #003d7a; }

.grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-3d {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border-top: 5px solid #0056b3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s;
}

/* --- VARIANTE DE CARTE CENTRÉE --- */
.card-3d.card-centered {
    text-align: center;
}

.card-3d:hover { transform: translateY(-10px); }

.card-3d h3 {
    color: #0056b3;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.card-3d p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.section-title {
    text-align: center;
    color: #0056b3;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-services, .grid-offres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eef0f2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.btn-link:hover { border-color: #0056b3; }

/* --- CONTACT PAGE --- */
.contact-full-wrapper {
    padding: 50px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.contact-grid-top, .contact-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 50px;
}

.contact-grid-top img, .contact-gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.contact-methods-grid, .contact-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card, .contact-col {
    padding: 20px;
    background: #fff;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background-color: #f9f9f9;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
    text-align: center;
    display: block !important;
    clear: both;
    width: 100%;
}

.footer-content p { color: #888; font-size: 0.8rem; margin-bottom: 10px; }
.footer-link { color: #0056b3; text-decoration: none; font-size: 0.8rem; }
.footer-link:hover { text-decoration: underline; }



/* ==========================================================================
   --- BLOC RESPONSIVE MOBILE : LOGO MASQUÉ & MENU FLUIDE SUR 1 LIGNE ---
   ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. On réorganise le bandeau blanc */
    header {
        flex-direction: row !important; /* Reste une ligne horizontale */
        padding: 12px 8px !important;
        min-height: auto !important;
        justify-content: center !important; /* Centre tout le menu horizontalement */
    }

    /* MASQUAGE DU LOGO UNIQUEMENT SUR MOBILE */
    .logo {
        display: none !important; 
    }

    nav {
        width: 100% !important;
    }

    /* Le conteneur s'adapte à la largeur du texte, sans forcer de cases vides */
    nav ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Interdiction stricte de passer en dessous */
        justify-content: space-between !important; /* Répartit l'espace proprement */
        align-items: center !important;
        width: 100% !important;
        gap: 6px !important; /* Espace minimal de sécurité entre les boutons */
    }

    /* Largeur fluide : les boutons prennent l'espace dont ils ont BESOIN */
    nav ul li {
        flex: 1 1 auto !important;
        text-align: center !important;
    }

    /* Style des liens de texte */
    nav ul li a {
        font-size: 2.2vw !important; /* Ajustement automatique selon l'écran */
        font-weight: 700 !important;
        letter-spacing: -0.3px !important;
        padding: 6px 4px !important;
        min-height: auto !important;
        line-height: 1.1 !important;
        display: block !important;
        text-align: center !important;
        white-space: normal !important; /* Autorise le retour à la ligne */
    }

    /* Force le respect des sauts de ligne <br> du HTML pour les 2 premiers boutons */
    nav ul li a br {
        display: inline !important;
    }

    /* --- SECTION HERO (Tes réglages de hauteur validés) --- */
    .hero, .hero-home {
        width: 100% !important;
        min-height: 500px !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        margin-bottom: 8px !important;
        transform: scaleX(0.72) !important;
    }

    .hero .baseline {
        font-size: 0.85rem !important;
        padding: 10px 15px !important;
        letter-spacing: 1.5px !important;
    }

    /* Grilles de contenu sur 1 seule colonne pour le mobile */
    .grid-services, .grid-offres, .grid-3d,
    .contact-methods-grid, .contact-grid-top, 
    .contact-gallery-grid, .contact-sections {
        grid-template-columns: 1fr !important;
    }
    
    /* Espacement entre les blocs sur mobile uniquement */
    .contact-col-group {
        margin-bottom: 40px;
    }
} /* <--- Fermeture stricte de la règle mobile */

/* --- COMPORTEMENT POUR ORDINATEUR (DESKTOP) --- */
/* On force les 3 colonnes sur PC pour les groupes d'images/textes */
.contact-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-col-group {
    display: flex;
    flex-direction: column;
}

.contact-col-group .contact-gallery-grid {
    display: block;
}