/* ==========================================
   STYLE.CSS - Styles Globaux & Principaux
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D18772;
    --dark-color: #2c2c2c;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: 'Cairo';
    line-height: 1.6;
    color: var(--text-color);
    background-color: white;
}

main {
    min-height: 70vh;
}

.regions-section {
    background: url(../images/bg_region.jpg) center/cover no-repeat;
    position: relative;
    color: white;
    overflow: hidden;
}
.regions-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 55%);
    z-index: 1;
}
.regions-section > * {
    position: relative;
    z-index: 2;
}

.promotion-section {
    background: url('../images/BACKG.webp') center/cover no-repeat;
    background-size: cover;
    color: white;
    position: relative;
}

.coop-featured {
    background: url('../images/tapis.jpg') bottom/cover no-repeat;
    border-radius: 10px 10px 6px 6px;
    text-align: center;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.coop-featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 55%);
    z-index: 1;
    border-radius: inherit;
}

.coop-featured-content {
    position: relative;
    z-index: 2;
    color: white;
}


/* ==========================================
   BOUTONS
   ========================================== */

.btn {
    display: inline-block;
    background-color:  var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==========================================
   CONTENEUR GÉNÉRAL
   ========================================== */

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================
   TITRES SECTIONS
   ========================================== */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 700px;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                 url('../images/slider1.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: -80px;
    top: -100px !important;
    border-radius: 0px 0px 40px 40px !important;
}

.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.3));
    z-index: 1;
}

.slider-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-in-out;
}

.slider-content h1 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.slider-content p {
    font-size: 1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    margin-bottom: 0.5rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 90%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    padding: 1.5rem 2rem;
    transform: translateY(-50%);
    background-color: rgb(0 0 0 / 45%);
}

@keyframes navFadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(-50%); }
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background: transparent !important;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 990px) {
    .hero-slider {
        height: 350px;
        top: 0px !important;
    }

    .slider-content h1 {
        font-size: 25px;
    }

    .slider-content p {
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}


@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
        top: 0px !important;
    }

    .slider-content h1 {
        font-size: 25px;
    }

    .slider-content p {
        font-size: 0.9rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 280px;
        top: 0px !important;
    }

    .slider-content h1 {
        font-size: 25px;
    }

    .slider-content p {
        font-size: 0.8rem;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .slider-nav {
        padding: 0 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-in-out;
}

/* Section Styling */
.section-padding {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #8b8282;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Secteurs Section */

.secteur-card {
    text-align: center;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 50px 0px 50px 0px;
}

.secteur-card:hover {
    border: 1px solid var(--primary-color);
}

.secteur-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.secteur-card h3 {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 600;
}

/* Régions Section */

.region-card {
    background: rgb(0 0 0 / 71%);
    padding: 2rem;
}

.region-card h3 {
    font-size: 1.8rem;
    color: #ffffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffffff;
}

.stat-label {
    font-size: 26px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

#regions svg path {
    fill: #83955c;        
    stroke: #ffffff;       
    stroke-width: 4px;
    transition: 0.3s ease;
    cursor: pointer;
}

/* ---- AU SURVOL ---- */
#regions svg path:hover {
    fill: #83955c;      
}

#regions svg path.active {
    fill: #c2272d !important;
    stroke: #ffffff !important;
    stroke-width: 5px;
}

/* Produits Section */

.produit-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #80808040;
    height: 366px;
    width: 280px;
}

.produit-card:hover {
    border: 1px solid var(--primary-color);
}

.produit-image {
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.produit-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.produit-info {
    padding: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    height: 100%;
}

.produit-info p{
    font-size: 18px !important;
    font-weight: 400;
    margin-bottom: 0px;
}

.produit-titre {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    height: 60px;
    max-height: 60px;
}

.produit-type {
    background-color: #7D8E4F;
    text-align: center;
    font-size: 15px;
    color: #ffffff;
    border-radius: 20px;
    height: 26px;
    margin-bottom: 10px !important;
}

.produit-type strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Coopératives Section */
.coop-card {
    display: flex;
    flex-direction: column;
    align-items: center;     
    justify-content: center;
    min-height: 200px;
    gap: 1.5rem;
    border: 1px solid #80808069 !important;
    border-radius: 5px !important;
}

.coop-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.coop-card:hover {
    cursor: pointer;
    border: 1px solid var(--primary-color) !important;
}

.coop-logo {
    padding: 10px;
}

.coop-card h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}



.coop-featured-logo{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid  var(--primary-color);
    padding-bottom:10px;
    background: #fff;
}

.coop-featured-content{
    background-color: #ffffffeb;
    margin-top: 100px;
    border-radius: 40px 40px 0px 0px;
    height: 100%;
}

.coop-featured-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.coop-featured-content p {
    color: #666;
}


/* Navigation Buttons */
.carousel-nav {
    display: flex;
    justify-content: right;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Navigation Buttons Container */
.carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Custom Buttons */
.nav-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.nav-btn i {
    font-size: 16px;
    color: #fff;
}

.nav-btn:hover {
    transform: scale(1.1);
}

/* ========================
   Responsive
======================== */
@media (max-width: 1200px) {
    .produit-card {
        width: 240px;
        height: 320px;
    }
    .produit-image {
        height: 180px;
        font-size: 3rem;
    }
    .produit-titre {
        font-size: 16px;
        height: 50px;
    }

}

@media (max-width: 992px) {
    .produit-card {
        width: 220px;
        height: 300px;
    }
    .produit-image {
        height: 160px;
        font-size: 2.5rem;
    }
    .coop-featured-logo {
        width: 120px;
        height: 120px;
    }

    
    .produit-type p {
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {
    .produit-card {
        width: 45%;
        margin: 0 auto 1rem auto;
        height: auto;
    }
    .coop-card {
        width: 48%;
        margin-bottom: 1rem;
    }
    .coop-featured-content {
        margin-top: 135px !important;
        border-radius: 30px 30px 0 0;
    }

    
    .produit-type p {
        font-size: 15px !important;
    }
}

@media (max-width: 576px) {
    .produit-card {
        width: 100%;
        height: auto;
    }
    .coop-card {
        width: 100%;
    }
    .coop-featured-content {
        margin-top: 125px !important;
        border-radius: 20px 20px 0 0;
    }

    
    .produit-type p {
        font-size: 15px !important;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .coop-featured {
        grid-template-columns: 1fr;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    
    .produit-type p {
        font-size: 15px !important;
    }
}

.produit-card {
    position: relative;
}

.badge-promo {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #d90002;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

a {
    color: transparent;
    text-decoration: none;
}

.slider-btn {
margin-bottom: 26px;
    padding: 5px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 2px;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.slider-btn:hover {
    background: white;
    color:  var(--primary-color);
    border: 1px solid  var(--primary-color);;
}

/*****Loader*******/
/* ---- Loader Blanc ---- */
.loader-white {
display: block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: auto;
    margin-top: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/**********************/
/* Container du menu */
.side-menu {
    width: 300px;
    background: white;
    position: fixed;
    top: 0;
    left: -320px;
    height: 100%;
    padding: 25px;
    overflow-y: auto;
    transition: 0.3s ease;
    direction: rtl;
}

/* Header */
.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.side-menu-header h2 {
    color: #d18772;
    font-size: 22px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #d18772;
}

/* Items */
.menu-item {
    margin-bottom: 12px;
    list-style: none;
}

.secteur-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    padding: 8px 5px;
}

.secteur-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Icône du secteur */
.secteur-icon-menu {
    width: 40px;
    height: 40px;
    border: 2px solid;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.secteur-icon-menu img {
    width: 26px;
    height: 26px;
    object-fit: cover;
}

/* Flèche */
.arrow {
    margin-right: auto;
    transition: transform 0.3s;
}

.arrow.rotate {
    transform: rotate(180deg);
}
.side-menu-list{ padding-left: 0rem;}
   
/* Sous-menu */
.submenu {
    display: none;
    padding-right: 2.8rem;
    margin-top: 6px;
}

.submenu li {
    list-style: none;
}

.submenu li a {
    font-size: 14px;
    display: block;
    padding: 5px 10px;
    color: #000000;
    cursor: pointer;
    font-weight: 400;
}
.submenu li a:hover {
    color: #d18772;
}

.form-control:focus{
    box-shadow: none !important;
}


.form-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: none !important;
}

