/* ==========================================================================
   1. STYLE GÉNÉRAL DE LA PAGE
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #333;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* ==========================================================================
   2. STYLES DE L'EN-TÊTE (HEADER) ET LOGOS
   ========================================================================== */
header {
    background-color: #1e3a8a !important;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 3px solid #dc2626 !important;
}

/* Zone des logos fixée à gauche */
.logo-container, .header-logo, .header-logos-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-start;
}

.logo-img, .header-logos-container img, .header-logo img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    background-color: white;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Séparateur vertical entre logos */
.logo-separateur {
    width: 2px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Bloc central (SMART GROUP + Slogan) parfaitement centré */
.header-centre, header .header-title-container {
    flex: 2;
    text-align: center;
    margin: 0 10px;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

header p {
    margin: 5px 0 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Logos spécifiques pour les bannières de pages */
.banner-logo {
    margin-bottom: 20px;
}

.banner-logo img {
    height: 80px;
    width: auto;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* ==========================================================================
   3. NAVIGATION (MENU) - Aligné à droite sans décalage
   ========================================================================== */
.navigation, header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}

.navigation a, header nav ul li a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap; /* Empêche "Nous Rejoindre" de se couper sur deux lignes */
}

.navigation a:hover, header nav ul li a:hover, 
.navigation a.actif, header nav ul li a.active {
    color: #dc2626 !important;
    background-color: rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   4. GRILLES ET CARTES (ACCUEIL & SERVICES)
   ========================================================================== */
.domaines-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
    flex-wrap: wrap;
}

.carte {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 350px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.carte img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.carte-corps {
    padding: 20px;
    text-align: center;
}

.carte-corps h2 {
    margin-top: 0;
    color: #1a252f;
}

.carte-corps p {
    color: #666;
    line-height: 1.5;
}

/* Grille d'images générale */
.grille-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.carte-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.carte-image img:hover {
    transform: scale(1.05);
}

.carte-image p {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}


/* ==========================================================================
   5. BANNIÈRES DE PAGES & CONTENUS SPÉCIFIQUES
   ========================================================================== */
.page-banner {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.bg-builds {
    background-image: linear-gradient(rgba(26, 37, 47, 0.75), rgba(26, 37, 47, 0.75)), 
                        url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1200&q=80');
}

.bg-asmes {
    background-image: linear-gradient(rgba(26, 37, 47, 0.75), rgba(26, 37, 47, 0.75)), 
                        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80');
}

.bg-groupe {
    background-image: linear-gradient(rgba(26, 37, 47, 0.8), rgba(26, 37, 47, 0.8)), 
                        url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?auto=format&fit=crop&w=1200&q=80');
}

.banner-contenu h2 {
    font-size: 3rem;
    margin: 0;
}

.banner-contenu p {
    font-size: 1.2rem;
    margin-top: 10px;
    max-width: 600px;
    opacity: 0.9;
}

.page-contenu {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-titre {
    text-align: center;
    margin-bottom: 50px;
}

.section-titre h2 {
    color: #1a252f;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-titre p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grille et cartes de services */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-carte {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-image {
    width: 35%;
    min-width: 250px;
    background-size: cover;
    background-position: center;
}

.service-texte {
    padding: 30px;
    width: 65%;
}

.service-texte h3 {
    color: #1a252f;
    margin-top: 0;
    font-size: 1.4rem;
    border-left: 4px solid #3182ce;
    padding-left: 10px;
}

.service-texte p {
    color: #555;
    line-height: 1.6;
}


/* ==========================================================================
   6. FORMULAIRES (CONTACT & REJOINDRE)
   ========================================================================== */
.contact-section, .form-section {
    background-color: #ffffff;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #1e3a8a;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    color: #2d3748;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.btn-submit {
    background-color: #dc2626;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #b91c1c;
}

.btn-submit:active {
    transform: scale(0.98);
}


/* ==========================================================================
   7. BLOCS DE CONTACT & TÉLÉPHONES
   ========================================================================== */
.bloc-contact-telephone {
    margin: 20px 0;
    padding: 20px;
    background-color: #1a252f;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
}

.bloc-contact-telephone h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.ligne-telephone {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.label-tel {
    font-weight: bold;
    min-width: 180px;
    color: #ffffff; 
}

.lien-tel {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.lien-tel:hover {
    text-decoration: underline;
    color: #dc2626;
}


/* ==========================================================================
   8. PIED DE PAGE (FOOTER)
   ========================================================================== */
footer {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    padding: 50px 20px 20px 20px;
    margin-top: 50px;
    border-top: 3px solid #dc2626 !important;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-colonne {
    flex: 1;
    min-width: 250px;
}

.footer-colonne h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #dc2626;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-colonne p, .footer-colonne li {
    line-height: 1.6;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.footer-colonne ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-colonne ul li {
    margin-bottom: 10px;
}

.footer-colonne ul li a, footer a, .footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-colonne ul li a:hover, footer a:hover, .footer a:hover {
    color: #dc2626 !important;
}

.footer-bas {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #cbd5e0;
}


/* ==========================================================================
   9. BOUTON WHATSAPP FLOTTANT
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebc57;
    color: #FFF;
}


/* ==========================================================================
   10. RESPONSIVE DESIGN (mobiles et tablettes)
   ========================================================================== */
@media (max-width: 768px) {
    .service-carte {
        flex-direction: column;
    }
    .service-image {
        width: 100%;
        height: 200px;
    }
    .service-texte {
        width: 100%;
    }
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .logo-container, .header-logo, .header-logos-container {
        justify-content: center;
        flex: none;
        width: 100%;
    }
    .header-centre {
        flex: none;
        width: 100%;
    }
    .navigation, header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        flex: none;
        width: 100%;
    }
}