/* 
* Cadre Intégré Renforcé (CIR) Mali - Style CSS Premium
* Palette de couleurs : Orange foncé (#D35400), Blanc (#FFFFFF), Noir (#222222)
*/

/* Base Styles & Variables */
:root {
    /* Couleurs principales */
    --primary-color: #D35400;
    --primary-light: #E67E22;
    --primary-dark: #A04000;
    --secondary-color: #F39C12;
    --secondary-light: #F7B731;
    --secondary-dark: #B7950B;
    
    /* Couleurs neutres */
    --dark-color: #1A1A1A;
    --dark-color-2: #2C3E50;
    --light-color: #FFFFFF;
    --light-color-2: #F8F9FA;
    --gray-color: #F4F4F4;
    --gray-color-2: #E5E5E5;
    --dark-gray: #777777;
    
    /* Ombres */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Bordures */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 30px;
    
    /* Typographie */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --section-spacing: 120px;
    --container-width: 1280px;
}

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

*::selection {
    background-color: var(--primary-color);
    color: var(--light-color);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark-color-2);
    background-color: var(--light-color);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

/* Layout & Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1.5rem;
    border-radius: 3px;
}

.light {
    color: var(--light-color);
}

.separator.light {
    background: linear-gradient(90deg, var(--light-color), rgba(255,255,255,0.5));
}

.bg-light {
    background-color: var(--light-color-2);
}

.bg-dark {
    background: linear-gradient(135deg, var(--dark-color), var(--dark-color-2));
    color: var(--light-color);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--light-color);
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(211, 84, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 84, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-text {
    padding: 0;
    background: none;
    color: var(--primary-color);
    position: relative;
    box-shadow: none;
    font-weight: 500;
}

.btn-text:before {
    display: none;
}

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

.btn-text:hover:after {
    width: 100%;
}

.btn-text i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.btn-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    font-size: 1.2rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

#header.sticky {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

#header.sticky .logo img {
    height: 45px;
}

#main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    border-radius: 1px;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(211, 84, 0, 0.2), transparent 70%);
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, #fff, #f8f8f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s 0.2s forwards;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.4s forwards;
    opacity: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content .btn {
    animation: fadeInUp 1s 0.6s forwards;
    opacity: 0;
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: var(--light-color);
}

.hero-scroll i {
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
}

.about-text {
    position: relative;
    z-index: 2;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
    z-index: 1;
}

.about-image:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    transform: translateZ(0);
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.value-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
}

.value-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    display: inline-block;
}

.value-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.value-item p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Filières Section */
.filieres-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.filiere-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.filiere-item:nth-child(even) .filiere-image {
    order: 2;
}

.filiere-item:nth-child(even) .filiere-content {
    order: 1;
}

.filiere-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.filiere-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.8), rgba(243, 156, 18, 0.8));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.filiere-item:hover .filiere-image:before {
    opacity: 0.3;
}

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

.filiere-item:hover .filiere-image img {
    transform: scale(1.05);
}

.filiere-content {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filiere-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.filiere-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.filiere-content p {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.filiere-content .btn {
    align-self: flex-start;
}

/* Projets Section */
.projets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.projet-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--gray-color-2);
}

.projet-item:before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transition: var(--transition-slow);
    z-index: -1;
    opacity: 0;
}

.projet-item:hover:before {
    top: 0;
    opacity: 1;
}

.projet-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.projet-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(211, 84, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: var(--transition);
}

.projet-item:hover .projet-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.projet-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.projet-item:hover .projet-icon i {
    color: var(--light-color);
    transform: rotateY(360deg);
}

.projet-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.projet-item:hover h3 {
    color: var(--light-color);
}

.projet-item p {
    transition: var(--transition);
}

.projet-item:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Chiffres Clés Section */
.chiffres-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.chiffre-item {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.chiffre-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

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

.chiffre-item:hover:before {
    width: 100%;
    opacity: 0.1;
}

.chiffre-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.chiffre-item .number:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.chiffre-item .label {
    font-size: 1.25rem;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.chiffre-item:hover .label {
    transform: scale(1.05);
}

.chiffre-label {
    font-size: 18px;
    font-weight: 500;
}

/* Galerie Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.gallery-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover:before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    transform: scale(1.01);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-slow);
    transition-delay: 0.1s;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-slow);
    transition-delay: 0.2s;
}

.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover .gallery-overlay i {
    opacity: 0.8;
    transform: translateY(0);
}

.gallery-item:hover .gallery-overlay i:hover {
    opacity: 1;
    transform: scale(1.1);
}

.galerie-info {
    text-align: center;
    color: var(--light-color);
    padding: 20px;
}

.galerie-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Actualités Section */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.news-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-color-2);
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.news-item:hover .news-image:before {
    opacity: 1;
}

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

.news-item:hover .news-image img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-content {
    padding: 2rem;
    position: relative;
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.news-date i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    transition: var(--transition);
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.news-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

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

.news-link:hover i {
    transform: translateX(5px);
}

/* Carte Section */
.map-container {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
}

.map-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.2), rgba(243, 156, 18, 0.2));
    z-index: 1;
    pointer-events: none;
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.map-container:hover img {
    transform: scale(1.03);
}

.map-overlay {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    max-width: 300px;
    border-left: 4px solid var(--primary-color);
}

.map-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.map-overlay p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 0;
}

.carte-legende {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.legende-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.legende-item:last-child {
    margin-bottom: 0;
}

.legende-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
}

.legende-color.mangue {
    background-color: #F39C12;
}

.legende-color.karite {
    background-color: #27AE60;
}

.legende-color.gomme {
    background-color: #8E44AD;
}

.legende-color.projet {
    background-color: #E74C3C;
}

/* Partenaires Section */
.partners-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    align-items: center;
}

.partner-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-color-2);
}

.partner-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.partner-item:hover:after {
    transform: scaleX(1);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(211, 84, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 5rem 0 0;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211, 84, 0, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.4;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo img {
    height: 60px;
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.footer-social a:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
}

.footer-social a:hover {
    transform: translateY(-5px) rotate(10deg);
    color: white;
}

.footer-social a:hover:before {
    top: 0;
}

.footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-color);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.footer-links li:before {
    content: '\f105'; /* FontAwesome chevron-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1rem;
}

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

.footer-links li:hover:before {
    left: 5px;
    color: var(--secondary-color);
}

.footer-newsletter p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1rem;
}

.footer-newsletter-form {
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.footer-newsletter-form input:focus {
    background-color: white;
    outline: none;
}

.footer-newsletter-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.footer-newsletter-form button i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.footer-newsletter-form button:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.footer-newsletter-form button:hover i {
    transform: translateX(3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

.footer-bottom a {
    color: var(--primary-color);
    transition: var(--transition);
    font-weight: 500;
}

.footer-bottom a:hover {
    color: var(--light-color);
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #aaa;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.back-to-top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-8px);
}

.back-to-top:hover:before {
    opacity: 1;
}

.back-to-top i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content h2 {
        font-size: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    #header .container {
        height: 70px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content h2 {
        font-size: 26px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .actualite-item {
        flex-direction: column;
    }
    
    .actualite-date {
        flex-direction: row;
        padding: 10px;
    }
    
    .actualite-date .day,
    .actualite-date .month,
    .actualite-date .year {
        margin: 0 5px;
    }
    
    #map-mali {
        height: 400px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        margin-top: 10px;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .galerie-container {
        grid-template-columns: 1fr;
    }
    
    #map-mali {
        height: 300px;
    }
    
    .contact-container {
        flex-direction: column;
    }
}
