/* ======================== */
/* 1. Général & Couleurs    */
/* ======================== */
:root {
    /* Définition des variables de couleurs */
    --primary-color: #007bff; /* Bleu Bootstrap pour les accents */
    --secondary-color: #6c757d; /* Gris pour le texte secondaire */
    --dark-bg: #343a40; /* Arrière-plan foncé pour la section contact/footer */
    --light-bg: #f8f9fa; /* Arrière-plan clair pour la section À propos/Projets */
    --text-light: #f8f9fa;
    --text-dark: #212529;
}

body {
    font-family: 'Arial', sans-serif; /* Police de caractère simple et lisible */
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ======================== */
/* 2. Barre de Navigation (Navbar) */
/* ======================== */
.navbar {
    transition: background-color 0.3s ease;
    background-color: rgba(52, 58, 64, 0.95); /* Arrière-plan foncé semi-transparent par défaut */
    backdrop-filter: blur(5px); /* Ajout d'un léger flou pour l'effet "fixed-top" */
}

.navbar-brand .logo {
    width: auto; /* Ajuste la largeur */
    height: 35px; /* Hauteur ajustée pour la nav */
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important; /* Couleur d'accentuation au survol */
}

/* ======================== */
/* 3. Section Accueil (Header) */
/* ======================== */
#accueil {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding-top: 150px; /* Espace pour la barre de navigation fixe */
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center; /* Centrage vertical du contenu */
}

.profile-img-container {
    width: 250px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    
    box-shadow: 0 0 20px rgb(248, 245, 245);
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-text {
    margin-left: 3rem; /* Espacement entre la photo et le texte sur grand écran */
}

#accueil .lead1 strong {
    color: var(--primary-color);
}

/* Réajustement pour les petits écrans */
@media (max-width: 767.98px) {
    .profile-text {
        text-align: center !important;
        margin-left: 0;
    }
}


/* ======================== */
/* 4. Section À Propos */
/* ======================== */
#apropos {
    /* Utilise la classe bg-light de Bootstrap */
    padding-top: 80px;
    padding-bottom: 80px;
}

.about-photo {
    max-width: 4OOpx;
    border: 5px solid var(WHITE);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.05);
}

/* ======================== */
/* 5. Section Compétences */
/* ======================== */
#competences {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--text-light);
}

.skill-box {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.skill-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ======================== */
/* 6. Section Projets */
/* ======================== */
#projets {
    /* Utilise la classe bg-light de Bootstrap */
    padding-top: 80px;
    padding-bottom: 80px;
}

.project-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.project-img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}


/* ======================== */
/* 7. Section Services */
/* ======================== */
#services {
    padding-top: 80px;
    padding-bottom: 80px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f1f1f1);
    border-left: 5px solid var(--primary-color);
}

/* ======================== */
/* 8. Section Contact */
/* ======================== */
#contact {
    /* Utilise la classe bg-dark de Bootstrap */
    padding-top: 80px;
    padding-bottom: 80px;
}

#contact .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

#contact .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

#contact .btn-primary:hover {
    background-color: #0056b3; /* Bleu plus foncé */
    border-color: #0056b3;
}

.social-icons-contact a {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-link.whatsapp:hover {
    color: #25d366; /* WhatsApp Green */
}

.social-link.instagram:hover {
    color: #c13584; /* Instagram Pink/Purple */
}

.social-link.facebook:hover {
    color: #1877f2; /* Facebook Blue */
}

/* ======================== */
/* 9. Pied de Page (Footer) */
/* ======================== */
footer {
    /* Utilise la classe bg-dark de Bootstrap */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}