/* ==========================================================================
   FICHIER STYLE.CSS FINAL - TOUS CORRECTIFS APPLIQUÉS
   ========================================================================== */

:root {
    --primary-color: #0056b3; 
    --secondary-color: #f4f4f4; 
    --text-color: #333;
    --heading-color: #222;
    --link-color: #007bff;
    --link-hover-color: #0056b3;
    --white: #fff;
    --border-color: #ddd;
}

/* Réinitialisation et suppression des points de liste (puces) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--secondary-color);
}

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

/* SUPPRESSION DES POINTS DU MENU */
ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

li {
    list-style-type: none !important;
}

/* --- HEADER ET NAVIGATION --- */
.main-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 10000;
}

.header-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.logo-link {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none !important;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.brand-subtext {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Style des liens du menu */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none !important;
}

.main-nav ul li {
    margin-left: 20px;
    list-style: none !important;
}

.main-nav ul li a {
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.main-nav ul li a:hover {
    text-decoration: underline;
}

/* --- SECTION HERO ET BOUTON --- */
.hero {
    background: linear-gradient(rgba(0,86,179,0.7), rgba(0,86,179,0.7)), url('../img/hero-irak.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

/* LE JOLI BOUTON "DÉCOUVRIR NOS SERVICES" */
.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    color: var(--link-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- SECTIONS DE CONTENU --- */
.features, .service-list {
    padding: 50px 0;
    background: var(--white);
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.features h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item { text-align: center; }

/* IMAGES : TAILLE ET ARRONDIS RÉTABLIS */
.feature-item img {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- FOOTER (BAS DE PAGE) --- */
footer {
    background: var(--heading-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* --- BOUTON HAMBURGER --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .brand-name { font-size: 1.1rem; }
    .brand-subtext { font-size: 0.6rem; }
    .logo-img { height: 40px; }

    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 80px 20px;
        transition: right 0.4s ease;
        z-index: 9999;
        box-shadow: -10px 0 20px rgba(0,0,0,0.5);
    }

    .main-nav.active { right: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; }
    .main-nav ul li { 
        margin: 15px 0; 
        margin-left: 0;
        list-style: none !important;
    }

    .feature-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}

/* --- ALIGNEMENT GLOBAL DES PAGES (SERVICES, ABOUT, CONTACT) --- */

/* Centre le titre et l'introduction de chaque page */
.page-intro {
    text-align: center;
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Centre les éléments de la page Services */
.service-list {
    text-align: center; /* Aligne le texte au centre */
}

.service-item {
    margin-bottom: 40px;
    padding: 20px;
}

.service-item img {
    display: block;
    margin: 20px auto; /* Centre l'image horizontalement */
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Centre les éléments de la page À Propos (About) */
.about-content {
    text-align: center;
    display: flex;
    flex-direction: column; /* Force l'image au-dessus du texte pour le centrage */
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
}

.about-image img {
    max-width: 300px;
    border-radius: 50%; /* Si vous voulez garder la photo de profil ronde */
    margin-bottom: 20px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Centre les éléments de la page Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 40px 0;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: left; /* Garde les labels des champs à gauche pour la lisibilité */
}

/* Centre le bouton d'envoi du formulaire */
.contact-form .btn {
    display: block;
    margin: 20px auto 0 auto;
    width: fit-content;
}

.contact-info {
    text-align: center;
}

.social-links-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* --- PAGE CONTACT : MISE EN PAGE 2 COLONNES --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
    align-items: flex-start;
}

.contact-form {
    flex: 2; /* Le formulaire prend plus de place */
    min-width: 300px;
    background: var(--white);
    padding: 20px;
}

.contact-info {
    flex: 1; /* Les infos prennent moins de place */
    min-width: 280px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* --- BOUTONS SOCIAUX (WHATSAPP, LINKEDIN, FB) --- */
.social-links-contact {
    display: flex;
    flex-direction: column; /* Alignés verticalement dans la colonne info */
    gap: 12px;
    margin-top: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.whatsapp { background-color: #25D366; }
.linkedin { background-color: #0077B5; }
.facebook { background-color: #1877F2; }

.social-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* --- FORMULAIRE --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

/* --- RESPONSIVE CONTACT --- */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Repasse sur une colonne sur mobile */
    }
    
    .contact-form, .contact-info {
        width: 100%;
    }

    .social-links-contact {
        flex-direction: row; /* Boutons côte à côte sur mobile si possible */
        flex-wrap: wrap;
    }
    
    .social-btn {
        flex: 1;
        min-width: 120px;
        font-size: 0.9rem;
    }
}

/* --- FIX POUR LA PAGE CONTACT : 2 COLONNES SUR ORDINATEUR --- */
@media (min-width: 769px) {
    .contact-container {
        display: flex !important; /* Active le mode côte à côte */
        flex-direction: row !important; 
        align-items: flex-start !important;
        gap: 40px !important; /* Espace entre le formulaire et les infos */
    }

    .contact-form {
        flex: 2 !important; /* Le formulaire prend 2/3 */
        margin: 0 !important; /* Enlève les marges automatiques qui pourraient gêner */
    }

    .contact-info {
        flex: 1 !important; /* Les infos prennent 1/3 */
        margin: 0 !important;
    }
}

/* --- OPTIMISATION DES BOUTONS SOCIAUX --- */
.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
}

.whatsapp { background-color: #25D366; }
.linkedin { background-color: #0077B5; }
.facebook { background-color: #1877F2; }