/* --- CONFIGURATION GÉNÉRALE --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --primary: #ff9f43;    /* Orange pour boutons, logo et icônes */
    --secondary: #f39c12;  /* Orange plus sombre pour le hover */
    --dark: #130f40;
    --light: #f4f7f6;
    --white: #ffffff;
    --text-muted: #666;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* --- ICÔNES (FontAwesome) --- */
i.fas, i.fab, i.far {
    color: var(--primary); 
}

/* --- HEADER & NAVIGATION (RESPONSIVE) --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary); 
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo a { text-decoration: none; color: inherit; }

.main-header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.main-header nav ul li {
    margin: 5px 10px;
}

.main-header nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn-login-nav {
    background: var(--primary); 
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
}

.btn-login-nav i { color: white; } 

/* --- HERO SECTION (IMAGE MISE À JOUR) --- */
.hero {
    min-height: 45vh;
    /* Intégration de l'image african-business.jpg avec overlay */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('african-business.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 10px;
}

/* Barre de recherche responsive */
.search-bar-hero {
    margin-top: 30px;
    background: white;
    padding: 5px;
    border-radius: 50px;
    display: flex;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-bar-hero input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 1rem;
    border-radius: 50px;
    min-width: 0;
}

.search-bar-hero button {
    background: var(--primary); 
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
}

.search-bar-hero button i { color: white; } 

/* --- SECTIONS CONTAINERS --- */
.section-container {
    padding: 60px 5% 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- SLIDER SYSTEM (ACCUEIL) --- */
.scroll-container {
    position: relative;
    width: 100%;
}

.scroll-wrapper {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 5px;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
}

.scroll-wrapper::-webkit-scrollbar { display: none; }

/* --- RÉSULTATS EN GRILLE (LISTE.PHP) --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

/* --- CARTES (CARD ITEM) AVEC EFFET ZOOM --- */
.card-item {
    position: relative;
    height: 420px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.4s ease; /* Ajouté pour le zoom de la carte */
    background: #eee;
}

.card-item:hover {
    transform: scale(1.03); /* La carte grossit légèrement */
}

.scroll-wrapper .card-item {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.results-grid .card-item {
    width: 100%;
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Ajouté pour la fluidité du zoom image */
}

.card-item:hover img {
    transform: scale(1.1); /* L'image à l'intérieur zoome au survol */
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
}

.card-info p i {
    color: var(--primary); 
}

/* --- FOOTER RESPONSIVE --- */
.main-footer {
    background: #0a0a0a;
    color: #999;
    padding: 70px 5% 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-section ul { list-style: none; }
.footer-section a { color: #999; text-decoration: none; }
.footer-section a:hover { color: var(--primary); }

.newsletter-form { display: flex; flex-direction: column; }
.newsletter-form input {
    background: #222;
    border: 1px solid #333;
    padding: 15px;
    color: white;
    border-radius: 5px;
    margin-bottom: 10px;
}

.btn-news {
    background: var(--primary); 
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

/* --- AJUSTEMENTS MOBILES FINAUX --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
    }
    
    .main-header nav ul {
        margin-top: 15px;
    }

    .search-bar-hero {
        flex-direction: column;
        border-radius: 15px;
        padding: 10px;
    }

    .search-bar-hero input {
        text-align: center;
        margin-bottom: 10px;
    }

    .search-bar-hero button {
        width: 100%;
    }

    .scroll-wrapper .card-item {
        flex: 0 0 280px;
    }
}

.btn-geo-style {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    backdrop-filter: blur(5px); /* Effet de flou moderne */
}

.btn-geo-style:hover {
    background: white;
    color: var(--primary);
}

.btn-geo-style i {
    margin-right: 8px;
}