

/* ===== STYLES GÉNÉRAUX ===== */
:root {
    --primary: #2e7d32;
    /* vert agricole */
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary: #8d6e63;
    /* brun terre */
    --accent: #0288d1;
    /* bleu eau */
    --accent-light: #4fc3f7;
    --light: #f9f9f9;
    --light-bg: #f5f5f5;
    --dark: #333;
    --dark-bg: #263238;
    --gray: #757575;
    --white: #ffffff;
    --warning: #ff9800;
    --warning-light: #ffb74d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
     /* 2026 Modern Font Stack */
    /*--font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Syne', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-display: 'Outfit', sans-serif;
   --font-body: 'Poppins', sans-serif;*/
    
    --font-primary: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --font-heading: 'Playfair Display', serif;
  --font-display: 'Outfit', sans-serif;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    
}

h1 {
    font-size: 3.2rem;
    text-align: center !important;
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center !important;
}

h3 {
    font-size: 1.8rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    transition: var(--transition)
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
   font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary);
    color: white !important;
}


/* ===== تعديل النافبار ليكون منفصلاً بتباعد كبير ===== */
.navbar .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 992px) {
    .navbar .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between; /* توزيع المسافات */
    }
    
    .navbar .d-flex {
        width: auto !important;
    }
    
    .navbar-collapse {
        flex-grow: 0;
        margin-right: 50px;  /* زيادة التباعد بين اللوجو والقائمة */
    }
    
    /* زيادة التباعد بين عناصر القائمة نفسها */
    .navbar-nav .nav-item {
        margin-left: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 20px !important;
    }
}

@media (min-width: 1200px) {
    .navbar-collapse {
        margin-right: 100px;  /* تباعد أكبر على الشاشات الكبيرة جدًا */
    }
}

@media (max-width: 991px) {
    .navbar .d-flex {
        width: 100% !important;
    }
    
    .navbar-collapse {
        margin-top: 20px;
        border-top: 2px solid rgba(46, 125, 50, 0.2);
        padding-top: 20px;
    }
}

/* ===== NAVBAR WITH LOGO ===== */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Responsive logo */
@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}
/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
        url('https://knowhow.distrelec.com/wp-content/uploads/2024/05/GettyImages-1318374823.jpg?w=1920&h=1024&crop=1');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-decouvrir {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-solutions {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-partenaires {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1556761175-b413da4baf72?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
}

.hero-biochar {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), 
                url('https://recoltesauvage.com/wp-content/uploads/2025/02/biochar-5.jpg');
}

.hero-irrigation {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), 
                url('https://mag.vipros.fr/app/uploads/2025/01/Capture-decran-2025-01-09-a-14.17.18.png');
    
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light-bg), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

/* ===== SECTION STYLING ===== */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
     font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/*.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), transparent);
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-title.text-start::after {
    right: 0;
    transform: none;
}
*/

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 1.5rem;
}

/* ===== CONTENT CARDS ===== */
.content-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-card:hover {
    box-shadow: var(--shadow-hover);
}

/* ===== SOLUTION CARDS (pour solutions-proposees.php) ===== */
.solution-card {
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.solution-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

/* ===== CUSTOM LISTS ===== */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    margin-bottom: 10px;
}

/* ===== INSTITUTION ICONS ===== */
.institution-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* ===== DURATION CIRCLE ===== */
.duration-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
}

.duration-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.duration-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.01em;
    backdrop-filter: blur(5px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 55%;
}

.timeline-item:nth-child(even) {
    margin-right: 55%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* ===== ACCORDION ===== */
.accordion-button {
    font-weight: 600;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* ===== PARTNERS SECTION ===== */
.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-logo:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.partner-logo img {
    max-height: 50px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 40px;
    font-family: var(--font-body);
}

footer h4, footer h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

footer a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

/* Footer Contact Cards */
.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* تأثير hover على الروابط في الفوتر */
.hover-underline {
    position: relative;
    transition: var(--transition);
}

.hover-underline:hover {
    color: var(--primary-light) !important;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===== POUR QUI SECTION STYLES ===== */
.beneficiaries-list .icon-circle-sm {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.beneficiaries-list .d-flex:hover .icon-circle-sm {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.card.border-primary {
    transition: var(--transition);
}

.card.border-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.15);
}

/* ===== CARD TITLES MODERN ===== */
.card h4, .card h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}


/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .timeline-dot {
        left: 20px !important;
        right: auto !important;
    }

    /* تحسين توزيع الأعمدة للفوتر */
    .col-lg-4 {
        height: auto !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 100px 0 60px;
        background-attachment: scroll;
        min-height: 70vh;
    }

    .section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .content-card {
        padding: 25px;
    }

    .duration-circle {
        width: 120px;
        height: 120px;
    }

    .duration-number {
        font-size: 2.5rem;
    }

    .beneficiaries-list .icon-circle-sm {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .solution-header {
        flex-direction: column;
        text-align: center;
        padding: 20px !important;
    }

    .partner-header {
        padding: 20px !important;
    }
}

/* ===== ALERTS AND HIGHLIGHTS ===== */
.alert-warning {
    background: linear-gradient(135deg, var(--warning-light), var(--warning));
    border: none;
    color: #333;
    border-radius: var(--border-radius);
}

/* ===== CARD ICONS ===== */
.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /*margin: 0 auto 1.5rem;*/
    margin: 1rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-start {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1.5rem;
}

.rounded-3 {
    border-radius: var(--border-radius);
}

.shadow-lg {
    box-shadow: var(--shadow-hover);
}

.border-0 {
    border: none !important;
}

/* ===== IMAGE STYLES ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: var(--border-radius);
}

/* ===== FLEX UTILITIES ===== */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-3 {
    gap: 1rem;
}

/* ===== POSITION UTILITIES ===== */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.start-0 {
    right: 0;
}

.w-100 {
    width: 100%;
}


/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    .lead { font-size: 1.1rem; }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .navbar-brand { font-size: 1.5rem; }
}