/* ═══════════════════════════════════════════
   CARGEX GROUP - Feuille de style principale
   ═══════════════════════════════════════════ */

/* 1. Réglages généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

/* 2. L'en-tête */
header {
    background: linear-gradient(rgba(0, 38, 77, 0.8), rgba(0, 38, 77, 0.6)), url('couverture.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

/* 3. Barre de navigation sticky */
.navbar-top {
    position: sticky;
    top: 0;
    background-color: #00264d;
    z-index: 9999;
    padding: 10px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #ff6600;
}

/* 4. Catalogue */
#catalogue {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px 20px;
}

/* 5. Carte Produit */
.produit {
    background: white;
    width: 320px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.produit:hover {
    transform: translateY(-10px);
}

.produit h3, .produit p {
    padding: 0 15px;
}

/* 6. Bouton d'action */
button {
    width: 100%;
    padding: 15px;
    background-color: #ff6600;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #cc5200;
}

/* 7. Bouton WhatsApp flottant */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* 8. Footer */
footer a:hover {
    text-decoration: underline;
}

/* 9. Responsive mobile */
@media (max-width: 768px) {
    nav > div {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
    }

    header h1 {
        font-size: 2rem !important;
    }

    .produit {
        width: 100%;
    }
}