/* =========================================================
   IVOIRE EXPRESS MARKET
   DESIGN GLOBAL DE LA MARKETPLACE
   ========================================================= */

/* 1. VARIABLES */
:root {
    --vert: #08752f;
    --vert-fonce: #034b20;
    --vert-clair: #eaf5ec;
    --orange: #f7941d;
    --orange-fonce: #e47e08;
    --blanc: #ffffff;
    --fond: #f7f9f6;
    --texte: #26352b;
    --gris: #68736b;
    --bordure: #e5eae5;
    --rouge: #dc3545;
    --ombre: 0 5px 20px rgba(0, 0, 0, 0.06);
    --rayon: 12px;
}

/* 2. BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: 92%;
    max-width: 1250px;
    margin: auto;
}

.section {
    padding: 65px 0;
}

.section-title {
    font-size: 29px;
    color: var(--vert-fonce);
    margin-bottom: 12px;
    font-weight: 700;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* =========================================================
   3. EN-TETE ET NAVIGATION
   ========================================================= */

.site-header {
    background: var(--blanc);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
}

.header-principal {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo-lien {
    flex-shrink: 0;
}

.logo-image {
    width: 245px;
    max-height: 85px;
    object-fit: contain;
}

.barre-recherche {
    display: flex;
    flex: 1;
    max-width: 480px;
    height: 46px;
    border: 1px solid var(--bordure);
    border-radius: 30px;
    overflow: hidden;
    background: white;
}

.barre-recherche input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 18px;
    font-size: 14px;
    background: transparent;
}

.barre-recherche button {
    background: var(--vert);
    color: white;
    border: none;
    padding: 0 22px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.barre-recherche button:hover {
    background: var(--vert-fonce);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.lien-compte {
    color: var(--texte);
    font-size: 14px;
    font-weight: 600;
}

.lien-compte:hover {
    color: var(--vert);
}

.lien-inscription {
    color: white;
    background: var(--orange);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

.lien-inscription:hover {
    background: var(--orange-fonce);
}

.lien-panier {
    color: var(--vert);
    font-weight: bold;
    font-size: 14px;
    padding-left: 17px;
    border-left: 1px solid var(--bordure);
}

.navigation-principale {
    background: var(--vert-fonce);
}

.navigation-contenu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navigation-contenu a {
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 19px;
    transition: 0.3s;
}

.navigation-contenu a:hover,
.navigation-contenu .nav-actif {
    background: var(--orange);
    color: white;
}

/* =========================================================
   4. BANNIERE PRINCIPALE
   ========================================================= */

.accueil-hero {
    background: linear-gradient(120deg, #034b20, #08752f);
    color: white;
    padding: 75px 0;
    overflow: hidden;
}

.accueil-hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 55px;
}

.accueil-badge {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-size: 13px;
    margin-bottom: 22px;
}

.accueil-hero-texte h1 {
    color: white;
    font-size: 45px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.accueil-hero-texte h1 span {
    color: #ffb347;
}

.accueil-hero-texte > p {
    color: #e4f0e6;
    max-width: 580px;
    margin-bottom: 28px;
    font-size: 16px;
}

.accueil-hero-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.accueil-hero-boutons .btn-outline {
    background: white;
    color: var(--vert-fonce);
    border-color: white;
}

.accueil-hero-boutons .btn-outline:hover {
    background: transparent;
    color: white;
}

.accueil-statistiques {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.accueil-statistiques div {
    display: flex;
    flex-direction: column;
}

.accueil-statistiques strong {
    color: #ffb347;
    font-size: 18px;
}

.accueil-statistiques span {
    color: #e4f0e6;
    font-size: 12px;
}

.accueil-hero-visuel {
    display: flex;
    justify-content: center;
}

.hero-carte {
    background: white;
    color: var(--texte);
    width: 100%;
    max-width: 370px;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.hero-carte-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--vert-fonce);
    font-size: 13px;
    font-weight: bold;
}

.hero-point {
    width: 11px;
    height: 11px;
    background: #198754;
    border-radius: 50%;
}

.hero-illustration {
    height: 180px;
    margin: 25px 0;
    background: linear-gradient(135deg, #e8f4e8, #fff0d9);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-panier {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 43px;
    font-weight: bold;
}

.hero-carte h3 {
    color: var(--vert-fonce);
    margin-bottom: 7px;
}

.hero-carte p {
    color: var(--gris);
    font-size: 13px;
}

.hero-carte > a {
    display: inline-block;
    margin-top: 17px;
    color: var(--vert);
    font-weight: bold;
}

/* =========================================================
   5. AVANTAGES
   ========================================================= */

.accueil-avantages {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--bordure);
}

.avantages-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.avantage-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avantage-icone {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--vert-clair);
    color: var(--vert);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.avantage-item h3 {
    color: var(--vert-fonce);
    font-size: 16px;
}

.avantage-item p {
    color: var(--gris);
    font-size: 13px;
}

/* =========================================================
   6. CATEGORIES
   ========================================================= */

.accueil-section-entete {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 30px;
}

.accueil-section-entete p,
.accueil-fonctionnement-entete p {
    color: var(--gris);
}

.accueil-sous-titre {
    display: block;
    color: var(--orange-fonce);
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.accueil-lien {
    color: var(--vert);
    font-weight: bold;
    font-size: 14px;
}

.categories-grille {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.categorie-carte {
    display: block;
    background: white;
    padding: 25px 21px;
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    transition: 0.3s;
}

.categorie-carte:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 10px 25px rgba(0,0,0,0.09);
}

.categorie-numero {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1df;
    color: var(--orange-fonce);
    border-radius: 10px;
    font-weight: bold;
    margin-bottom: 18px;
}

.categorie-carte h3 {
    color: var(--vert-fonce);
    font-size: 17px;
    margin-bottom: 9px;
}

.categorie-carte p {
    color: var(--gris);
    font-size: 13px;
    min-height: 44px;
}

.categorie-carte > span {
    display: inline-block;
    color: var(--orange-fonce);
    font-size: 13px;
    font-weight: bold;
    margin-top: 15px;
}

/* =========================================================
   7. FONCTIONNEMENT
   ========================================================= */

.accueil-fonctionnement {
    background: #edf5ed;
    padding: 65px 0;
}

.accueil-fonctionnement-entete {
    text-align: center;
    margin-bottom: 35px;
}

.accueil-fonctionnement-entete h2 {
    color: var(--vert-fonce);
    font-size: 29px;
    margin: 10px 0;
}

.fonctionnement-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.fonctionnement-carte {
    background: white;
    padding: 28px;
    border-radius: var(--rayon);
    border: 1px solid var(--bordure);
    box-shadow: var(--ombre);
}

.fonctionnement-etape {
    color: var(--orange);
    font-size: 28px;
    font-weight: bold;
}

.fonctionnement-carte h3 {
    color: var(--vert-fonce);
    margin: 12px 0;
}

.fonctionnement-carte p {
    color: var(--gris);
    font-size: 14px;
}

/* =========================================================
   8. ESPACE VENDEUR
   ========================================================= */

.accueil-vendeur {
    background: linear-gradient(120deg, #034b20, #08752f);
    color: white;
    padding: 55px 0;
}

.accueil-vendeur-contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.accueil-vendeur-contenu > div {
    max-width: 720px;
}

.accueil-vendeur h2 {
    color: white;
    font-size: 27px;
    margin: 10px 0;
}

.accueil-vendeur p {
    color: #e4f0e6;
}

/* =========================================================
   9. BOUTONS
   ========================================================= */

.btn {
    display: inline-block;
    padding: 12px 21px;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.btn-primary {
    background: var(--vert);
    color: white;
}

.btn-primary:hover {
    background: var(--vert-fonce);
}

.btn-orange {
    background: var(--orange);
    color: white;
}

.btn-orange:hover {
    background: var(--orange-fonce);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--vert);
    color: var(--vert);
}

.btn-outline:hover {
    background: var(--vert);
    color: white;
}

.btn-danger {
    background: var(--rouge);
    color: white;
}

.btn-success {
    background: #198754;
    color: white;
}

/* =========================================================
   10. PRODUITS
   ========================================================= */

.product-card {
    background: white;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: var(--ombre);
    transition: 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.product-info {
    padding: 17px;
}

.product-info h3 {
    color: var(--vert-fonce);
    font-size: 17px;
    margin-bottom: 8px;
}

.product-price {
    color: var(--orange-fonce);
    font-size: 20px;
    font-weight: bold;
}

/* =========================================================
   11. FORMULAIRES
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--texte);
    font-weight: 600;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bordure);
    border-radius: 7px;
    background: white;
    outline: none;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--vert);
    box-shadow: 0 0 0 3px rgba(8,117,47,0.10);
}

/* =========================================================
   12. CARTES GENERALES
   ========================================================= */

.card {
    background: white;
    padding: 22px;
    border: 1px solid var(--bordure);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
}

.card-title {
    color: var(--vert-fonce);
    font-size: 18px;
    margin-bottom: 12px;
}

/* =========================================================
   13. TABLEAUX
   ========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 13px 15px;
    border-bottom: 1px solid var(--bordure);
    text-align: left;
}

table th {
    background: var(--vert-fonce);
    color: white;
}

table tr:hover td {
    background: #f4f8f3;
}

/* =========================================================
   14. MESSAGES
   ========================================================= */

.alert {
    padding: 13px 16px;
    border-radius: 7px;
    margin-bottom: 18px;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

.alert-warning {
    background: #fff3cd;
    color: #664d03;
}

.alert-info {
    background: #cfe2ff;
    color: #084298;
}

/* =========================================================
   15. TABLEAUX DE BORD
   ========================================================= */

.dashboard {
    padding: 30px 5%;
}

.dashboard-card {
    background: white;
    padding: 22px;
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    border-left: 4px solid var(--orange);
}

.dashboard-card h3 {
    color: var(--gris);
    font-size: 14px;
}

.dashboard-card .number {
    color: var(--vert-fonce);
    font-size: 27px;
    font-weight: bold;
    margin-top: 8px;
}

/* =========================================================
   16. GRILLES GENERALES
   ========================================================= */

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =========================================================
   17. PIED DE PAGE
   ========================================================= */

.footer {
    background: #023d1b;
    color: white;
    padding: 45px 5% 20px;
    margin-top: 0;
}

.footer a {
    color: #e3eee5;
}

.footer a:hover {
    color: var(--orange);
}

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

.footer h3 {
    color: white;
    margin-bottom: 13px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 30px;
    padding-top: 18px;
    color: #d7e4da;
    font-size: 13px;
}

/* =========================================================
   18. RESPONSIVE TABLETTES
   ========================================================= */

@media (max-width: 1000px) {

    .header-principal {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .barre-recherche {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .accueil-hero-content {
        grid-template-columns: 1fr 0.8fr;
        gap: 25px;
    }

    .accueil-hero-texte h1 {
        font-size: 36px;
    }

    .categories-grille {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   19. RESPONSIVE TELEPHONES
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: 94%;
    }

    .header-principal {
        justify-content: center;
        gap: 13px;
    }

    .logo-image {
        width: 210px;
        max-height: 75px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .barre-recherche {
        width: 100%;
    }

    .navigation-contenu {
        overflow-x: auto;
        white-space: nowrap;
    }

    .navigation-contenu a {
        padding: 13px 14px;
        font-size: 13px;
    }

    .section {
        padding: 42px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .accueil-hero {
        padding: 45px 0;
    }

    .accueil-hero-content {
        grid-template-columns: 1fr;
    }

    .accueil-hero-texte h1 {
        font-size: 32px;
    }

    .accueil-statistiques {
        gap: 17px;
        flex-wrap: wrap;
    }

    .accueil-hero-visuel {
        margin-top: 15px;
    }

    .avantages-grille,
    .categories-grille,
    .fonctionnement-grille,
    .grid,
    .grid-2,
    .grid-4,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .accueil-section-entete,
    .accueil-vendeur-contenu {
        flex-direction: column;
        align-items: flex-start;
    }

    .accueil-fonctionnement-entete h2 {
        font-size: 24px;
    }

    .accueil-vendeur h2 {
        font-size: 23px;
    }

    .footer {
        padding: 35px 5% 20px;
    }
}