/* 
* DM FORMATION - Main Stylesheet
* Author: Cascade
* Version: 1.0
*/

/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #E53935; /* Red */
    --accent-color: #2196F3; /* Blue */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;

    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --h4-size: 1.5rem;
    --h5-size: 1.25rem;
    --h6-size: 1rem;
    --text-base: 1rem;
    --text-sm: 0.875rem;
    --text-xs: 0.75rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    --section-padding: 5rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 2rem;
    --border-radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Transitions */
    --transition-fast: 0.3s;
    --transition-normal: 0.5s;
    --transition-slow: 0.8s;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

h5 {
    font-size: var(--h5-size);
}

h6 {
    font-size: var(--h6-size);
}

p {
    margin-bottom: var(--spacing-md);
}

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

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

ul, ol {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Placeholder images for development */
.placeholder-image {
    background-color: var(--gray-300);
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

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

.bg-dark {
    background-color: var(--gray-800);
    color: var(--white);
}

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

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

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

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto;
}

.text-left .section-title::after {
    left: 0;
    transform: none;
}

/* Centrer le trait sous le titre "À propos" spécifiquement */
.about-content .text-left .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: #3d8b40;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: #c62828;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

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

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: var(--spacing-lg);
}

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

.mobile-menu-toggle {
    display: none; /* Caché par défaut sur grand écran */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    transition: all var(--transition-fast);
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    transition: all var(--transition-fast);
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    left: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
    left: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 8rem 0 8rem; /* Augmenté le padding en bas pour éviter que le contenu soit coupé */
    overflow: hidden;
    background-color: #e8f5e9; /* Vert pastel clair */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(33, 150, 243, 0.05) 50%, rgba(76, 175, 80, 0.08) 100%);
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0) 70%);
}

.shape-2 {
    bottom: -200px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0) 70%);
}

.shape-3 {
top: 40%;
left: 50%;
width: 300px;
height: 300px;
background: radial-gradient(circle, rgba(229, 57, 53, 0.1) 0%, rgba(229, 57, 53, 0) 70%);
}

.hero-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--spacing-xxl);
align-items: center;
}

.hero-content {
text-align: left;
}

.hero-tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--gray-700);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.hero-stats .stat-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all var(--transition-normal);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 2;
    animation: pulse 2s infinite;
}

.badge-inner {
    width: 110px;
    height: 110px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.badge-text {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.2;
}

.hero-shape {
    position: absolute;
    bottom: -2px; /* Ajusté pour ne pas couper le contenu */
    left: 0;
    width: 100%;
    height: 100px; /* Réduit la hauteur pour moins empiéter sur le contenu */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V0C0,0,0,0,0,0z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background-color: rgba(0, 94, 255, 0.1);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.service-card:hover .service-icon i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: var(--spacing-md);
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
}

.service-link {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: var(--spacing-xs);
    transition: transform var(--transition-fast);
}

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

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.feature-item:hover .feature-icon i {
    color: var(--white);
}

.feature-content h3 {
    font-size: var(--h5-size);
    margin-bottom: var(--spacing-sm);
}

.feature-content p {
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ===== FORMATIONS SECTION ===== */
.formations-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.formation-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

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

.formation-image {
    height: 200px;
    overflow: hidden;
}

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

.formation-card:hover .formation-image img {
    transform: scale(1.1);
}

.formation-content {
    padding: var(--spacing-lg);
}

.formation-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.formation-content h3 {
    font-size: var(--h5-size);
    margin-bottom: var(--spacing-sm);
}

.formation-content p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
}

.formation-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.formation-meta span {
    display: flex;
    align-items: center;
}

.formation-meta i {
    margin-right: var(--spacing-xs);
    color: var(--primary-color);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: #e3f2fd; /* Bleu pastel */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0) 70%);
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0) 70%);
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    z-index: -1;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.about-image:hover::after {
    opacity: 1;
    top: 10px;
    left: 10px;
}

.about-content p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.about-content .section-header {
    margin-bottom: var(--spacing-md);
}

.about-content .section-title {
    position: relative;
    display: inline-block;
}

.about-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
    gap: var(--spacing-md);
}

.about-stats::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(33, 150, 243, 0.1);
    z-index: 0;
}

.about-stats::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.1);
    z-index: 0;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: var(--spacing-sm);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(33, 150, 243, 0.3), transparent);
}

.stat-icon {
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.stat-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    display: block;
    font-weight: 500;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat-text {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

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

.testimonial-content {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.testimonial-content::before {
    content: '\201C';
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 5rem;
    color: rgba(76, 175, 80, 0.1);
    font-family: serif;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    object-fit: cover;
}

.author-info h4 {
    font-size: var(--text-lg);
    margin-bottom: 0;
}

.author-info p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* ===== CONTACT SECTION ===== */
.contact {
    position: relative;
    background-color: #f8f9fa;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0) 70%);
    z-index: 0;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0) 70%);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl);
    position: relative;
}

.contact-info-section {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer .contact-info {
    margin-top: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer .contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.footer .contact-info p:hover {
    transform: translateX(5px);
}

.footer .contact-info i {
    width: 25px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer .contact-info p:hover i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.info-item:hover {
    background-color: rgba(76, 175, 80, 0.05);
    transform: translateX(5px);
}

.info-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #81c784);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-right: var(--spacing-md);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

.info-item:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.info-item h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xs);
}

.info-item p {
    color: var(--gray-600);
    margin-bottom: 0;
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    background-color: var(--white);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

input.error, textarea.error, select.error {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Form success and error messages */
.form-success,
.form-error {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 0.5s ease;
}

.form-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--primary-color);
}

.form-error {
    background-color: rgba(229, 57, 53, 0.1);
    border: 1px solid var(--secondary-color);
    margin-top: var(--spacing-md);
}

.form-success i,
.form-error i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.form-success i {
    color: var(--primary-color);
}

.form-error i {
    color: var(--secondary-color);
}

.form-success h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #81c784);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transition: all 0.6s ease;
    z-index: -1;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.3);
}

.contact-form .btn-primary:hover::before {
    left: 100%;
}

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

/* ===== FOOTER ===== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-400);
    padding: var(--spacing-xxl) 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer h3 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-about p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.contact-info {
    margin-top: var(--spacing-lg);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.contact-info p i {
    margin-right: var(--spacing-sm);
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    color: var(--white);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

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

.social-links a i {
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    margin-top: var(--spacing-md);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form button {
    padding: 0 1.25rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: #3d8b40;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a {
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.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-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: #3d8b40;
    transform: translateY(-5px);
    color: var(--white);
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
    animation-delay: 0.3s;
}

.animate-on-scroll {
    opacity: 1; /* Visible par défaut */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Appliquer l'animation uniquement si JavaScript est activé */
.js-enabled .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* ===== COOKIE CONSENT STYLES ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    opacity: 0;
}

.cookie-consent.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.cookie-header h3 {
    margin-bottom: 0;
    color: var(--gray-900);
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.cookie-close:hover {
    color: var(--secondary-color);
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.cookie-footer {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.cookie-link {
    font-size: var(--text-sm);
    color: var(--gray-600);
    text-decoration: underline;
}

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

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.cookie-modal-header h3 {
    margin-bottom: 0;
}

.cookie-modal-body {
    padding: var(--spacing-lg);
}

.cookie-option {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

.cookie-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.cookie-option-header h4 {
    margin-bottom: 0;
}

.cookie-option p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

.cookie-modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    text-align: right;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Responsive styles for cookie consent */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .cookie-footer {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}
