/* ===========================
   Variables CSS - Couleurs Orange & Vert
   =========================== */
:root {
    --primary-color: #228B22;      /* Vert forêt (Drapeau CI)  */
    --secondary-color:  #FF8C00;    /* Orange vif (Drapeau CI) */
    --accent-color: #32CD32;       /* Vert clair */
    --green-light: #32CD32;        /* Vert clair */
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===========================
   Reset & Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   Utilitaires
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ===========================
   Top Bar Fixe
   =========================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1002;
    text-align: center;
}

.top-bar-text {
    display: block;
    padding: 0 15px;
    line-height: 1.4;
}

/* Top Bar Responsive */
@media (max-width: 768px) {
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: var(--secondary-color);
        color: var(--white);
        padding: 6px 0;
        font-size: 0.8rem;
        font-weight: 500;
        z-index: 1002;
        text-align: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .top-bar-text {
        display: block !important;
        padding: 0 10px;
        line-height: 1.3;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 4px 0;
        font-size: 0.7rem;
    }
    
    .top-bar-text {
        padding: 0 8px;
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* Ajustement du header pour le top-bar sur mobile */
@media (max-width: 768px) {
    .header {
        top: 32px; /* Hauteur du top-bar mobile réduite */
    }
}

@media (max-width: 480px) {
    .header {
        top: 28px; /* Hauteur du top-bar encore plus réduite */
    }
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    position: fixed;
    /*top: 40px;*/
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    position: relative;
    z-index: 1001;
    transform: scale(2);
    transform-origin: left center;
}

.logo-image:hover {
    transform: scale(2.05);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* Sous-menu à plusieurs niveaux */
.nav-item-submenu {
    position: relative;
}

.submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: var(--text-color);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.submenu-link:hover {
    background-color: var(--light-color);
    border-left-color: var(--secondary-color);
    padding-left: 25px;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 1001;
    margin-left: 10px;
}

.nav-item-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-item-submenu:hover .submenu-link .dropdown-arrow {
    transform: rotate(90deg);
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.submenu a:hover {
    background-color: var(--light-color);
    border-left-color: var(--secondary-color);
    padding-left: 23px;
}

.btn-registre {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: var(--dark-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-registre:hover {
    background: linear-gradient(135deg, #f4d03f, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===========================
   Carbon Ticker (Bande défilante)
   =========================== */
.carbon-ticker {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    /*margin-top: 140px;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carbon-ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    padding: 0 20px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
    font-size: 0.95rem;
}

.ticker-icon {
    font-size: 1.3rem;
    margin-right: 8px;
}

.ticker-item strong {
    margin-right: 5px;
    font-weight: 600;
}

.ticker-separator {
    margin: 0 20px;
    opacity: 0.5;
    font-size: 1.2rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause au hover */
.carbon-ticker:hover .carbon-ticker-content {
    animation-play-state: paused;
}

/* Duplication du contenu pour boucle infinie */
.carbon-ticker-content::after {
    content: attr(data-content);
}


/* ===========================
   Services Section
   =========================== */
.services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 80px;
    height: 80px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   About Section
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item span {
    font-weight: 600;
    color: var(--text-color);
}

/* ===========================
   Nos Activités Section
   =========================== */
.activities {
    background-color: var(--light-color);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.activity-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover .activity-image img {
    transform: scale(1.05);
}

.activity-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.activity-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.activity-details {
    list-style: none;
    padding: 0;
}

.activity-details li {
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.activity-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.btn-read-more {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    width: 100%;
}

.btn-read-more:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 139, 34, 0.3);
}

/* ===========================
   Modal Styles
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    min-height: 400px;
}

.modal-image {
    flex: 1;
    max-width: 45%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
}

.modal-text {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.modal-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-additional-info {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.modal-additional-info h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-additional-info ul {
    list-style: none;
    padding: 0;
}

.modal-additional-info li {
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-additional-info li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        max-width: 100%;
        height: 250px;
    }
    
    .modal-image img {
        border-radius: 15px 15px 0 0;
    }
    
    .modal-text {
        padding: 30px 25px;
    }
    
    .modal-text h2 {
        font-size: 1.6rem;
    }
}

/* ===========================
   Stats Section
   =========================== */
.stats {
    background: var(--secondary-color);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item-text p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===========================
   Nouvelles Sections Institutionnelles
   =========================== */

/* Stats Highlight */
.stats-highlight {
    background-color: var(--light-color);
    padding: 40px 0;
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item-compact h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item-compact p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Actualités Home */
.actualites-home {
    background-color: var(--white);
}

.actualites-home .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.actualites-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.actualite-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
}

.actualite-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.actualite-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
}

.actualite-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.actualite-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.actualite-card.featured .actualite-date {
    color: rgba(255, 255, 255, 0.9);
}

.actualite-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.actualite-card.featured h3 {
    color: var(--white);
}

.actualite-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.actualite-card.featured p {
    color: rgba(255, 255, 255, 0.95);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.actualite-card.featured .btn-link {
    color: var(--white);
}

/* Missions Home */
.missions-home {
    background-color: var(--light-color);
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mission-card {
    background-color: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.mission-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mission-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mission-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Marché Carbone Intro */
.marche-carbone-intro {
    background-color: var(--white);
}

.marche-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.marche-text .lead {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.marche-features {
    margin: 30px 0;
    display: grid;
    gap: 20px;
}

.marche-features .feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.marche-features .feature-icon {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.marche-features h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.marche-features p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.marche-diagram {
    background: linear-gradient(135deg, var(--light-color), var(--white));
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 2px solid var(--border-color);
}

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

.diagram-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 10px;
    color: var(--white);
}

.diagram-item p {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.diagram-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* CTA Projet */
.cta-projet {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cta-text p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.cta-actions .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-actions .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Partenaires */
.partenaires {
    background-color: var(--light-color);
}

.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.partenaire-logo {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.partenaire-logo:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.logo-placeholder {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Contact Quick */
.contact-quick {
    background-color: var(--white);
}

.contact-quick-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-quick h3,
.faq-quick h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-items-quick {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.contact-item-quick {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item-quick .icon {
    font-size: 1.5rem;
}

.contact-item-quick strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item-quick p {
    color: var(--text-light);
}

.faq-items {
    display: grid;
    gap: 25px;
}

.faq-item {
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.faq-item a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.faq-item a:hover {
    color: var(--secondary-color);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .logo-image {
        transform: scale(1.6);
    }

    .about-content,
    .contact-content,
    .marche-content,
    .contact-quick-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .actualites-grid,
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .actualites-home .section-title {
        flex-direction: column;
        gap: 20px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    /* Sous-menu mobile */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 40px;
        display: none;
        margin-left: 0;
    }

    .nav-item-submenu.active .submenu {
        display: block;
    }

    .submenu-link {
        padding-left: 40px;
    }

    .submenu a {
        padding-left: 60px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .logo-image {
        transform: scale(1.3);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 102px; /* top-bar (32px) + header (70px) */
        left: -100%;
        width: 100%;
        height: calc(100vh - 102px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        top: 98px; /* top-bar (28px) + header (70px) */
        height: calc(100vh - 98px);
    }

    .section {
        padding: 60px 0;
    }


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

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

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }


    .section-title h2 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .contact-form {
        padding: 25px;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 70px;
}

/* ===========================
   Pages Styles (Le BMC, Marché Carbone, etc.)
   =========================== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 100px 0 60px;
    margin-top: 0;
}

.page-header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.8;
}

/* Content Layout */
.page-content {
    padding: 80px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.main-content {
    min-width: 0;
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-block h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 600;
}

.content-block h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 20px 0 10px;
    font-weight: 600;
}

.content-block p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.content-block .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.7;
}

.content-block ul {
    margin: 20px 0;
    padding-left: 25px;
}

.content-block ul li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-color);
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    padding-left: 30px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.priority-list li {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-widget h3,
.sidebar-widget h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    border-left: 3px solid transparent;
    transition: var(--transition);
    border-radius: 5px;
}

.sidebar-menu a:hover,
.sidebar-menu li.active a {
    background-color: var(--light-color);
    border-left-color: var(--primary-color);
    padding-left: 20px;
}

.widget-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
}

.widget-cta h4 {
    color: var(--white);
}

.widget-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.widget-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.widget-info strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 5px;
}

.widget-links ul {
    list-style: none;
    padding: 0;
}

.widget-links li {
    margin-bottom: 10px;
}

.widget-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.widget-links a:hover {
    color: var(--secondary-color);
}

.widget-download .download-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--light-color);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.widget-download .download-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.download-icon {
    font-size: 1.5rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Role Cards */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.role-card {
    background-color: var(--light-color);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.role-card:hover {
    background-color: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.role-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.role-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.role-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(34, 139, 34, 0.05));
    border-left: 4px solid var(--primary-color);
    padding: 30px;
    border-radius: 10px;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Intervention Grid */
.intervention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.intervention-item {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
}

.intervention-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.intervention-item .number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.intervention-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.intervention-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.cta-box h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-box .btn {
    margin: 0 10px;
}

.cta-box .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-box .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Mission Detail */
.mission-detail {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 15px;
}

.mission-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mission-content {
    flex: 1;
}

.mission-content h3 {
    margin-top: 0;
}

.stats-box {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.stats-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

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

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Organigramme */
.organigramme-container {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.org-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.org-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.org-box.direction {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.org-box.secretariat {
    border: 2px solid var(--primary-color);
}

.org-box.department {
    border: 1px solid var(--border-color);
}

.org-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.org-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.org-box.direction h3 {
    color: var(--white);
}

.org-box p {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.org-contact {
    display: block;
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
}

.org-tasks {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    font-size: 0.9rem;
}

.org-department-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.org-services-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-direction: row;
    margin-top: 20px;
}

.org-box.service {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 20px;
    min-width: 100px;
    max-width: 140px;
}

.org-box.service h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--dark-color);
}

.org-box.service .org-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.org-tasks li {
    padding: 5px 0;
    color: var(--text-light);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.team-member {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-color);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin: 10px 0;
}

.member-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 15px 0;
}

.member-contact {
    font-size: 0.9rem;
    margin-top: 15px;
}

.member-contact a {
    color: var(--primary-color);
    display: block;
    margin: 5px 0;
}

/* Comité List */
.comite-list {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.comite-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 12px;
    align-items: flex-start;
}

.comite-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.comite-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.comite-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Documents List */
.document-list {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.document-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.document-item:hover {
    box-shadow: var(--shadow);
}

.document-item.international {
    border-left: 4px solid var(--secondary-color);
}

.doc-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.doc-content {
    flex: 1;
}

.doc-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.doc-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.doc-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* CDN Box */
.cdn-box {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(34, 139, 34, 0.1));
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.cdn-content h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.cdn-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.cdn-stat {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 12px;
}

.cdn-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cdn-label {
    display: block;
    color: var(--text-color);
    font-weight: 500;
}

/* Standards Grid */
.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.standard-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.standard-card:hover {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.standard-card h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.standard-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Pages */
@media (max-width: 968px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .mission-detail {
        flex-direction: column;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }

    .content-block h2 {
        font-size: 1.7rem;
    }

    .role-grid,
    .intervention-grid {
        grid-template-columns: 1fr;
    }

    .doc-actions {
        flex-direction: column;
    }

    .doc-actions .btn {
        width: 100%;
    }
}

/* ===========================
   Additional Pages Styles
   =========================== */

/* Project Submission Form */
.project-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

.form-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.steps-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.step-quick {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-color);
    border-radius: 12px;
}

.step-quick-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-quick h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.after-submission {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.after-step {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 12px;
    align-items: flex-start;
}

.after-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.after-step h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Projects Page */
.projects-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.project-stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.stat-icon-large {
    font-size: 3rem;
    margin-bottom: 15px;
}

.project-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

.projects-filters {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.projects-filters h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
}

.projects-list {
    display: grid;
    gap: 30px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.project-badge.foresterie {
    background-color: #2d5f3f;
}

.project-badge.energie {
    background-color: #f4d03f;
    color: var(--dark-color);
}

.project-badge.agriculture {
    background-color: #8b4513;
}

.project-badge.dechets {
    background-color: #666;
}

.project-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-status.actif {
    background-color: #d4edda;
    color: #155724;
}

.project-status.validation {
    background-color: #fff3cd;
    color: #856404;
}

.project-status.complete {
    background-color: #d1ecf1;
    color: #0c5460;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-location {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-description {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.metric-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.project-actions {
    margin-top: 20px;
}

.registre-cta {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
}

.registre-cta h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.registre-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.map-placeholder {
    background-color: var(--light-color);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
}

.map-placeholder-content {
    color: var(--text-light);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

/* Resources Page */
.resources-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 25px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.resources-section {
    margin-bottom: 60px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.resource-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.resource-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.resource-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.faq-list {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.faq-item-expandable {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-color);
}

.faq-question h4 {
    margin: 0;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item-expandable.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.link-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.link-card:hover {
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.link-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.link-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* News/Actualites Page */
.news-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.featured-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 50px;
}

.featured-news-image {
    position: relative;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.image-placeholder {
    font-size: 5rem;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.featured-news-content {
    padding: 40px;
}

.news-category {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-category.annonces {
    background-color: #d4edda;
    color: #155724;
}

.news-category.evenements {
    background-color: #cce5ff;
    color: #004085;
}

.news-category.appels {
    background-color: #fff3cd;
    color: #856404;
}

.news-category.formations {
    background-color: #f8d7da;
    color: #721c24;
}

.news-date {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.news-excerpt {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-card-image {
    background-color: var(--light-color);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-content {
    padding: 25px;
}

.news-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.news-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary-color);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.upcoming-events {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
}

.upcoming-events h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.events-list {
    display: grid;
    gap: 20px;
}

.event-item {
    display: flex;
    gap: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    align-items: center;
}

.event-date-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    min-width: 80px;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
}

.event-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-details h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.newsletter-box h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 50px;
}

/* Contact Page */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contact-info-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.contact-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form-main {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin-top: 30px;
}

.contact-sidebar {
    display: grid;
    gap: 25px;
    align-self: start;
}

.contact-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
}

.contact-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-person p {
    margin-bottom: 10px;
    color: var(--text-color);
}

.department-list {
    display: grid;
    gap: 15px;
}

.department-item {
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 8px;
}

.department-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.department-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-links-contact {
    display: grid;
    gap: 10px;
}

.social-link-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--light-color);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-color);
}

.social-link-contact:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.map-section {
    margin-bottom: 50px;
}

.map-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
}

.map-placeholder-large {
    background-color: var(--light-color);
    border: 2px dashed var(--border-color);
    border-radius: 15px;
    padding: 100px 40px;
    text-align: center;
}

.map-icon-large {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
}

.access-info h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.access-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.access-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.access-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.access-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Partners Section */
.partners-section {
    background-color: var(--light-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.partner-logo {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.partner-logo:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

/* Project Images */
.project-image {
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    border-radius: 12px 12px 0 0;
}

/* Member Photos */
.member-photo {
    position: relative;
    overflow: hidden;
}

.member-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(255, 140, 0, 0.2) 100%);
    border-radius: 50%;
}

/* News Card Images */
.news-card-image {
    position: relative;
}

.news-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

/* Featured News Image */
.featured-news-image {
    position: relative;
}

.featured-news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.3), rgba(34, 139, 34, 0.3));
}

.featured-badge {
    z-index: 1;
}

/* Responsive for new pages */
@media (max-width: 968px) {
    .form-row,
    .steps-quick,
    .featured-news,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .project-metrics {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .resources-categories,
    .news-filters {
        flex-direction: column;
    }

    .category-btn,
    .filter-btn {
        width: 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    /* Carbon Ticker Mobile */
    .carbon-ticker {
        padding: 10px 0;
    }

    .ticker-item {
        font-size: 0.85rem;
        margin: 0 20px;
    }

    .ticker-icon {
        font-size: 1.1rem;
    }
}

/* ===========================
   Carrousel Styles
   =========================== */
.carousel-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1.0;
}

.carousel-content {
    flex: 1;
    max-width: 600px;
    color: var(--white);
    z-index: 2;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.carousel-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-content .highlight {
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.carousel-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.carousel-buttons .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.carousel-buttons .btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.carousel-buttons .btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
}

.carousel-buttons .btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.carousel-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.registry-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 300px;
    margin-left: auto;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--white);
    transform: scale(1.1);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 30px;
}

.carousel-nav.next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-section {
        height: 80vh;
        min-height: 600px;
    }
    
    .carousel-slide {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-content {
        max-width: 100%;
        margin-bottom: 20px;
        padding: 30px;
        border-radius: 15px;
    }
    
    .carousel-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .carousel-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-slide {
        padding: 20px 15px;
    }
    
    .carousel-content {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .carousel-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .carousel-content p {
        font-size: 1rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    .carousel-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .carousel-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .carousel-dots {
        gap: 12px;
        bottom: 20px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-section {
        height: 60vh;
        min-height: 450px;
    }
    
    .carousel-slide {
        padding: 15px 10px;
    }
    
    .carousel-content {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .carousel-content h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .carousel-buttons .btn {
        max-width: 250px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .carousel-dots {
        bottom: 15px;
        gap: 10px;
    }
    
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .carousel-section {
        height: 55vh;
        min-height: 400px;
    }
    
    .carousel-content {
        padding: 15px 10px;
        margin: 0;
    }
    
    .carousel-content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .carousel-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .carousel-buttons .btn {
        max-width: 200px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Amélioration de la performance sur mobile */
@media (max-width: 768px) {
    .carousel-slide img {
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .carousel-content {
        will-change: transform;
        transform: translateZ(0);
    }
}

/* ===========================
   Section Soumettre un Projet
   =========================== */
.submit-project-section {
    background: linear-gradient(135deg, var(--light-color), #f0f8f0);
    padding: 60px 0;
    margin: 60px 0;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.submit-project-header {
    text-align: center;
    margin-bottom: 50px;
}

.submit-project-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.submit-project-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.submit-project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.submit-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.submit-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background: var(--secondary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.submit-step h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.submit-step p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.submit-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.submit-criteria h4,
.submit-sectors h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.submit-criteria ul {
    list-style: none;
    padding: 0;
}

.submit-criteria li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-color);
    line-height: 1.5;
}

.submit-criteria li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sector-tag {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
}

.submit-actions {
    text-align: center;
    margin-bottom: 40px;
}

.submit-actions .btn {
    margin: 0 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.submit-timeline {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 200px;
}

.timeline-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.timeline-item strong {
    color: var(--primary-color);
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.timeline-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Modal Large */
.modal-large {
    max-width: 800px;
    max-height: 90vh;
}

.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-header p {
    color: var(--text-light);
    margin: 0;
}

.quick-project-form {
    padding: 30px 40px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1);
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .submit-project-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .submit-timeline {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .timeline-item {
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-large {
        width: 95%;
        max-height: 95vh;
    }
    
    .quick-project-form {
        padding: 20px 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* ===========================
   Modal d'Accueil
   =========================== */
.modal-welcome {
    z-index: 3000;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-welcome-content {
    max-width: 900px;
    max-height: 600px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-welcome-body {
    display: flex;
    min-height: 500px;
}

.modal-welcome-image {
    flex: 1;
    max-width: 45%;
    position: relative;
}

.modal-welcome-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-welcome-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.modal-welcome-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-welcome-text h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-welcome-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.welcome-highlights {
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.highlight-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.highlight-item span:last-child {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.welcome-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.welcome-actions .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
}

.welcome-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.welcome-actions .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 139, 34, 0.3);
}

.welcome-actions .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.welcome-actions .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 139, 34, 0.2);
}

.welcome-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.welcome-footer .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.welcome-footer input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Modal Welcome Responsive */
@media (max-width: 768px) {
    .modal-welcome-content {
        width: 95%;
        max-height: 90vh;
        margin: 5% auto;
    }
    
    .modal-welcome-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-welcome-image {
        max-width: 100%;
        height: 200px;
    }
    
    .modal-welcome-text {
        padding: 30px 25px;
    }
    
    .modal-welcome-text h2 {
        font-size: 1.8rem;
    }
    
    .modal-welcome-text h3 {
        font-size: 1.1rem;
    }
    
    .welcome-actions {
        flex-direction: column;
    }
    
    .welcome-actions .btn {
        text-align: center;
    }
}
