/* ============================================
   ETHNOS CONSEIL - Custom Styles
   ============================================ */

/* ===== Variables CSS ===== */
:root {
    /* Couleurs institutionnelles principales */
    --primary-color: #273b5b;
    --accent-color: #c7a958;
    
    /* Variations harmonieuses du bleu */
    --blue-dark: #2d3e52;
    --blue-medium: #3a4f6b;
    --blue-light: #4a5f7b;
    --blue-lighter: #5a6f8b;
    
    /* Variations harmonieuses de l'or */
    --gold-dark: #b89a4a;
    --gold-medium: #c7a958;
    --gold-light: #d4b86a;
    --gold-lighter: #e0c77c;
    
    /* Couleurs de fond harmonisées */
    --bg-dark: #2d3e52;
    --bg-medium: #3a4f6b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Couleurs de texte harmonisées */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --text-white-muted: rgba(255, 255, 255, 0.85);
    --text-on-dark: #ffffff;
    --text-on-dark-light: rgba(255, 255, 255, 0.9);
    
    /* Ombres harmonisées */
    --shadow-sm: rgba(39, 59, 91, 0.1);
    --shadow-md: rgba(39, 59, 91, 0.15);
    --shadow-lg: rgba(39, 59, 91, 0.25);
    --shadow-xl: rgba(0, 0, 0, 0.3);
    
    /* Ombres simples pour remplacer les effets de glow */
    --shadow-gold-sm: 0 2px 8px rgba(199, 169, 88, 0.2);
    --shadow-gold-md: 0 4px 16px rgba(199, 169, 88, 0.25);
    --shadow-gold-lg: 0 6px 24px rgba(199, 169, 88, 0.3);
    --shadow-blue-sm: 0 2px 8px rgba(39, 59, 91, 0.2);
    --shadow-blue-md: 0 4px 16px rgba(39, 59, 91, 0.25);
    --shadow-blue-lg: 0 6px 24px rgba(39, 59, 91, 0.3);
    
    /* Bordures harmonisées */
    --border-gold: rgba(199, 169, 88, 0.3);
    --border-gold-hover: rgba(199, 169, 88, 0.6);
    --border-blue: rgba(39, 59, 91, 0.3);
    --border-blue-hover: rgba(39, 59, 91, 0.6);
    
    /* Backgrounds glassmorphism harmonisés */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(199, 169, 88, 0.2);
    
    /* Gradients harmonisés - uniquement bleu */
    --gradient-primary: linear-gradient(135deg, var(--blue-dark) 0%, var(--primary-color) 50%, var(--blue-medium) 100%);
    --gradient-reverse: linear-gradient(135deg, var(--blue-medium) 0%, var(--primary-color) 50%, var(--blue-dark) 100%);
    --gradient-horizontal: linear-gradient(90deg, var(--blue-dark), var(--primary-color), var(--blue-medium), var(--primary-color), var(--blue-dark));
    --gradient-vertical: linear-gradient(180deg, var(--blue-dark), var(--primary-color), var(--blue-medium), var(--primary-color), var(--blue-dark));
    
    /* Anciennes variables pour compatibilité */
    --secondary-color: var(--blue-medium);
    --accent-gold: var(--gold-medium);
    --accent-gold-light: var(--gold-light);
    --accent-gold-dark: var(--gold-dark);
    --dark-color: var(--blue-dark);
    --light-color: var(--bg-light);
    --text-dark: var(--text-primary);
    --white: var(--bg-white);
    --shadow: var(--shadow-sm);
    --shadow-gold: var(--shadow-gold-md);
    --shadow-blue: var(--shadow-blue-md);
    
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dde3ea 100%);
    background-attachment: fixed;
    position: relative;
}

body.loading {
    overflow: hidden;
    height: 100vh;
}

/* Texte pour sections avec fond clair */
.bg-light {
    color: var(--text-primary);
}

.bg-light p,
.bg-light li,
.bg-light span {
    color: var(--text-secondary);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(39, 59, 91, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 169, 88, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(199, 169, 88, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Page Loader Futuriste ===== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(39, 59, 91, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(199, 169, 88, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0a0e1a 0%, #1a2332 25%, #273b5b 50%, #1a2332 75%, #0a0e1a 100%);
    background-size: 200% 200%;
    background-position: 0% 50%;
    animation: backgroundShift 15s ease infinite;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    overflow: hidden;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fond animé avec particules */
.loader-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    animation: particleFloat 8s ease-in-out infinite;
    opacity: 0.7;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 6s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; animation-duration: 8s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; top: 10%; animation-delay: 1.5s; animation-duration: 6.5s; }
.particle:nth-child(6) { left: 60%; top: 90%; animation-delay: 2.5s; animation-duration: 8.5s; }
.particle:nth-child(7) { left: 70%; top: 30%; animation-delay: 0.8s; animation-duration: 7.5s; }
.particle:nth-child(8) { left: 80%; top: 70%; animation-delay: 1.8s; animation-duration: 9.5s; }
.particle:nth-child(9) { left: 15%; top: 50%; animation-delay: 0.3s; animation-duration: 6.8s; }
.particle:nth-child(10) { left: 25%; top: 15%; animation-delay: 1.2s; animation-duration: 8.2s; }
.particle:nth-child(11) { left: 35%; top: 85%; animation-delay: 2.2s; animation-duration: 7.2s; }
.particle:nth-child(12) { left: 45%; top: 25%; animation-delay: 0.7s; animation-duration: 9.2s; }
.particle:nth-child(13) { left: 55%; top: 75%; animation-delay: 1.7s; animation-duration: 6.2s; }
.particle:nth-child(14) { left: 65%; top: 45%; animation-delay: 2.7s; animation-duration: 8.8s; }
.particle:nth-child(15) { left: 75%; top: 55%; animation-delay: 0.4s; animation-duration: 7.8s; }

/* Grille animée */
.loader-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(199, 169, 88, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(199, 169, 88, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

/* Lignes de connexion */
.loader-lines {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.2;
}

.loader-lines .line {
    stroke: url(#lineGradient);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: lineDraw 3s ease-in-out infinite;
}

.loader-lines .line-1 { animation-delay: 0s; }
.loader-lines .line-2 { animation-delay: 0.5s; }
.loader-lines .line-3 { animation-delay: 1s; }
.loader-lines .line-4 { animation-delay: 1.5s; }

/* Contenu principal */
.loader-content {
    text-align: center;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Logo avec effet holographique */
.loader-logo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(199, 169, 88, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: simplePulse 2s ease-in-out infinite;
    filter: blur(20px);
}

.loader-logo {
    position: relative;
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: logoFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.logo-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(199, 169, 88, 0.3) 50%, transparent 100%);
    border-radius: 50%;
    animation: reflectionMove 3s ease-in-out infinite;
    pointer-events: none;
}

/* Spinner futuriste */
.loader-spinner-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px 0;
}

.loader-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 2s linear infinite;
}

.spinner-ring.ring-1 {
    width: 120px;
    height: 120px;
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation-duration: 2s;
}

.spinner-ring.ring-2 {
    width: 90px;
    height: 90px;
    border-bottom-color: var(--accent-color);
    border-left-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.spinner-ring.ring-3 {
    width: 60px;
    height: 60px;
    border-top-color: var(--gold-light);
    border-right-color: var(--gold-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation-duration: 1s;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--accent-color), var(--gold-light));
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    animation: corePulse 1.5s ease-in-out infinite;
}

/* Texte avec effet néon */
.loader-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.loader-text {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: var(--font-title);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: simpleFade 2s ease-in-out infinite;
    position: relative;
}

.loader-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent-color);
    filter: blur(3px);
    z-index: -1;
    opacity: 0.7;
}

.loader-dots {
    display: flex;
    gap: 3px;
    margin-left: 5px;
}

.loader-dots .dot {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: dotBlink 1.4s ease-in-out infinite;
}

.loader-dots .dot-1 { animation-delay: 0s; }
.loader-dots .dot-2 { animation-delay: 0.2s; }
.loader-dots .dot-3 { animation-delay: 0.4s; }

/* Barre de progression futuriste */
.loader-progress-wrapper {
    width: 300px;
    margin-top: 20px;
    position: relative;
}

.loader-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(199, 169, 88, 0.2);
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--gold-light) 25%,
        var(--accent-color) 50%,
        var(--gold-light) 75%,
        var(--accent-color) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressBar 2s ease-in-out infinite, progressGradient 3s linear infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%);
    animation: progressShine 2s ease-in-out infinite;
}

.progress-percentage {
    position: absolute;
    top: -25px;
    right: 0;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-title);
    letter-spacing: 2px;
}

/* Effets de lumière */
.loader-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 5;
    pointer-events: none;
}

.light {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: lightMove 8s ease-in-out infinite;
}

.light-1 {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-duration: 6s;
}

.light-2 {
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.light-3 {
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    bottom: 10%;
    left: 50%;
    animation-duration: 7s;
    animation-delay: 1s;
}

/* Animations */
@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, -50px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes lineDraw {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    50% { opacity: 0.5; }
    100% { stroke-dashoffset: 0; opacity: 0.2; }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotateY(0deg);
    }
    25% {
        transform: translateY(-15px) scale(1.05) rotateY(5deg);
    }
    50% {
        transform: translateY(-20px) scale(1.1) rotateY(0deg);
    }
    75% {
        transform: translateY(-10px) scale(1.05) rotateY(-5deg);
    }
}

@keyframes simplePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

@keyframes reflectionMove {
    0% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(180deg) translateX(20px); }
    100% { transform: rotate(360deg) translateX(0); }
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes corePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-color), 0 0 80px var(--accent-color);
    }
}

@keyframes simpleFade {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes dotBlink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes progressBar {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 70%;
        left: 0;
    }
    100% {
        width: 100%;
        left: 100%;
    }
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes lightMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -30px) scale(1.2);
    }
    66% {
        transform: translate(-30px, 50px) scale(0.8);
    }
}

/* Responsive pour le loader */
@media (max-width: 768px) {
    .loader-logo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .loader-logo {
        width: 120px;
        height: 120px;
    }
    
    .logo-glow {
        width: 150px;
        height: 150px;
    }
    
    .loader-spinner-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .loader-spinner {
        width: 100px;
        height: 100px;
    }
    
    .spinner-ring.ring-1 {
        width: 100px;
        height: 100px;
    }
    
    .spinner-ring.ring-2 {
        width: 75px;
        height: 75px;
    }
    
    .spinner-ring.ring-3 {
        width: 50px;
        height: 50px;
    }
    
    .loader-text {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .loader-progress-wrapper {
        width: 250px;
    }
    
    .loader-progress {
        height: 5px;
    }
}

@media (max-width: 576px) {
    .loader-logo-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .loader-logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-glow {
        width: 130px;
        height: 130px;
    }
    
    .loader-spinner-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .loader-spinner {
        width: 80px;
        height: 80px;
    }
    
    .spinner-ring.ring-1 {
        width: 80px;
        height: 80px;
    }
    
    .spinner-ring.ring-2 {
        width: 60px;
        height: 60px;
    }
    
    .spinner-ring.ring-3 {
        width: 40px;
        height: 40px;
    }
    
    .loader-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .loader-progress-wrapper {
        width: 200px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Grille désactivée - décommentez pour réactiver
    background-image: 
        linear-gradient(var(--border-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-gold) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    */
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Ajustement pour sections avec fond clair */
.section-padding:not(.bg-light) h1,
.section-padding:not(.bg-light) h2,
.section-padding:not(.bg-light) h3,
.section-padding:not(.bg-light) h4,
.section-padding:not(.bg-light) h5,
.section-padding:not(.bg-light) h6 {
    color: var(--text-primary);
}

/* Ajustement pour page-header avec fond sombre */
.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6 {
    color: #ffffff !important;
}

.page-header p,
.page-header span,
.page-header div,
.page-header .section-subtitle,
.page-header .title-underline,
.page-header * {
    color: #ffffff !important;
}

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

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

/* ===== Navigation ===== */
.navbar {
    background: var(--primary-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(199, 169, 88, 0.5), 
        rgba(39, 59, 91, 0.5), 
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.navbar.scrolled {
    background: var(--primary-color);
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px var(--shadow-xl);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

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

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.75rem;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border-radius: 8px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    opacity: 1;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-medium), var(--primary-color));
    transition: var(--transition);
}

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

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--primary-color) 30%, var(--blue-medium) 60%, var(--blue-dark) 100%);
    overflow: hidden;
    min-height: 90vh;
}

/* Hero avec carrousel en arrière-plan */
.hero-section.hero-carousel-bg {
    background: transparent !important;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-carousel-bg::before,
.hero-section.hero-carousel-bg::after {
    display: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(39, 59, 91, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(199, 169, 88, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(39, 59, 91, 0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(199, 169, 88, 0.02) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(39, 59, 91, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(199, 169, 88, 0.08) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

/* Contenu de la section hero au-dessus des overlays */
.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section.hero-carousel-bg .container {
    z-index: 3;
}

.hero-section .row {
    position: relative;
    z-index: 10;
}

.hero-section.hero-carousel-bg .row {
    z-index: 3;
}

/* Assurer que les colonnes du hero occupent toute la hauteur */
.hero-section .row.align-items-center {
    min-height: 300px;
}

@media (min-width: 992px) {
    .hero-section .row.align-items-center {
        min-height: 300px;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    letter-spacing: 0.5px;
}


.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.hero-buttons {
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.hero-image-wrapper {
    position: relative;
    padding: 1rem;
    z-index: 10;
}

.hero-image {
    border-radius: 20px;
    max-width: 90%;
    height: 450px;
    object-fit: cover;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 10;
    border: 2px solid var(--border-gold);
    box-shadow: 0 4px 16px var(--shadow-md);
    transition: var(--transition);
}

.hero-image:hover {
    border-color: var(--border-gold-hover);
    box-shadow: 0 6px 24px var(--shadow-lg);
    transform: scale(1.02);
}

/* Hero Carousel */
.hero-video-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Carrousel en arrière-plan */
.hero-carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
}

.hero-carousel-background .carousel-inner {
    height: 100%;
    min-height: 90vh;
    width: 100%;
    position: relative;
}

.hero-carousel-background .carousel-item {
    height: 100%;
    min-height: 90vh;
    width: 100%;
    position: relative;
    background: transparent !important;
    background-color: transparent !important;
}

.hero-carousel-background .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    min-height: 90vh !important;
    object-fit: cover !important;
    border-radius: 0;
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* IMPORTANT: l'ID #heroCarousel a des styles "carrousel en colonne" plus bas dans le fichier.
   On force ici le mode "background" pour éviter un carrousel en petit bloc. */
#heroCarousel.hero-carousel-background {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 90vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

#heroCarousel.hero-carousel-background .carousel-inner,
#heroCarousel.hero-carousel-background .carousel-item {
    height: 100% !important;
    min-height: 90vh !important;
}

#heroCarousel.hero-carousel-background .carousel-item > img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 90vh !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(39, 59, 91, 0.7) 0%, rgba(25, 42, 68, 0.6) 50%, rgba(39, 59, 91, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Indicateurs et contrôles pour carrousel en arrière-plan */
.hero-carousel-background .carousel-indicators {
    margin-bottom: 2rem;
    z-index: 4;
}

.hero-carousel-background .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.hero-carousel-background .carousel-indicators button.active {
    background-color: var(--accent-color, #D4AF37);
    border-color: var(--accent-color, #D4AF37);
    opacity: 1;
    transform: scale(1.2);
}

.hero-carousel-background .carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.hero-carousel-background .carousel-control-prev,
.hero-carousel-background .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.8;
    z-index: 4;
}

.hero-carousel-background .carousel-control-prev:hover,
.hero-carousel-background .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

.hero-carousel-background .carousel-control-prev {
    left: 20px;
}

.hero-carousel-background .carousel-control-next {
    right: 20px;
}

#heroCarousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 300px;
    position: relative;
}

#heroCarousel .carousel-inner {
    width: 100%;
    min-height: 370px;
}

#heroCarousel .carousel-item {
    width: 100%;
    min-height: 370px;
    position: relative;
}

#heroCarousel .carousel-item img {
    border-radius: 10px;
    width: 100%;
    min-height: 370px;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* Assurer que le carrousel occupe toute la zone disponible dans sa colonne */
.hero-section .col-lg-6 #heroCarousel {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 992px) {
    #heroCarousel {
        min-height: 370px;
    }
    
    #heroCarousel .carousel-inner {
        min-height: 370px;
    }
    
    #heroCarousel .carousel-item {
        min-height: 370px;
    }
    
    #heroCarousel .carousel-item img {
        min-height: 370px;
        height: 450px;
    }
}

#heroCarousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
    bottom: 0;
    left: 0;
    right: 0;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.8;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

#heroCarousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#heroCarousel .carousel-caption p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#heroCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--accent-color, #D4AF37);
    border-color: var(--accent-color, #D4AF37);
    opacity: 1;
    transform: scale(1.2);
}

#heroCarousel .carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.1);
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 24px var(--shadow-lg);
    background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-light) 100%);
}

/* Boutons en jaune/or sur fond bleu */
.bg-blue-light .btn-primary,
.hero-section .btn-primary,
.page-header .btn-primary,
.section-padding:not(.bg-light):not(.bg-gold-light) .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--gold-light) 100%);
    color: var(--text-primary);
}

.bg-blue-light .btn-primary:hover,
.hero-section .btn-primary:hover,
.page-header .btn-primary:hover,
.section-padding:not(.bg-light):not(.bg-gold-light) .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--accent-color) 100%);
    color: var(--text-primary);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(199, 169, 88, 0.2), rgba(39, 59, 91, 0.2));
    transition: width 0.3s;
    z-index: -1;
}

.btn-outline-light:hover::before {
    width: 100%;
}

.btn-outline-light:hover {
    border-color: rgba(199, 169, 88, 0.8);
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 16px var(--shadow-md);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.scroll-indicator:hover {
    color: var(--primary-color);
    transform: translateX(-50%) scale(1.2);
}

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

/* ===== Section Styles ===== */
.section-padding {
    padding: 50px 0;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

/* Variations de fonds harmonieuses */
.section-padding.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--text-primary);
}

.section-padding.bg-blue-light {
    background: linear-gradient(135deg, #dbe4f0 0%, #e2eaf5 50%, #d4dde8 100%);
    color: var(--text-primary);
}

.section-padding.bg-gold-light {
    background: linear-gradient(135deg, #fef3cd 0%, #fdecc7 50%, #fce5c1 100%);
    color: var(--text-primary);
}

.section-padding.bg-gradient-subtle {
    background: linear-gradient(135deg, #f0f2f5 0%, #dbe4f0 50%, #fef3cd 100%);
    color: var(--text-primary);
}

/* Assurer que tous les textes dans section-padding sont visibles sur fond clair */
.section-padding:not(.bg-light) p,
.section-padding:not(.bg-light) span,
.section-padding:not(.bg-light) li,
.section-padding:not(.bg-light) .value-item {
    color: var(--text-secondary);
}

/* Page Header (pour les pages individuelles) */
.page-header {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--primary-color) 30%, var(--blue-medium) 60%, var(--blue-dark) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 169, 88, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 10;
}

.bg-light {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%) !important;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.bg-light .section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light p,
.bg-light .stat-label,
.bg-light .service-card p,
.bg-light .achievement-card p,
.bg-light .team-card p,
.bg-light .timeline-content p {
    color: var(--text-secondary);
}

.bg-light .stat-card,
.bg-light .value-card,
.bg-light .service-card,
.bg-light .achievement-card,
.bg-light .team-card,
.bg-light .timeline-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
}

.bg-light .stat-card p,
.bg-light .value-card p,
.bg-light .service-card p,
.bg-light .achievement-card p,
.bg-light .team-card p,
.bg-light .timeline-content p {
    color: var(--text-secondary);
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(39, 59, 91, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 169, 88, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-light > * {
    position: relative;
    z-index: 1;
}

/* Styles pour les nouvelles variations de fonds */
.bg-blue-light {
    position: relative;
    overflow: hidden;
}

.bg-blue-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(39, 59, 91, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(39, 59, 91, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-blue-light > * {
    position: relative;
    z-index: 1;
}

.bg-gold-light {
    position: relative;
    overflow: hidden;
}

.bg-gold-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(199, 169, 88, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(199, 169, 88, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-gold-light > * {
    position: relative;
    z-index: 1;
}

.bg-gradient-subtle {
    position: relative;
    overflow: hidden;
}

.bg-gradient-subtle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(39, 59, 91, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(199, 169, 88, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.bg-gradient-subtle > * {
    position: relative;
    z-index: 1;
}

/* Assurer la visibilité des textes sur les nouveaux fonds */
.bg-blue-light .section-title,
.bg-gold-light .section-title,
.bg-gradient-subtle .section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-blue-light p,
.bg-blue-light .stat-label,
.bg-blue-light .value-item,
.bg-blue-light .about-content p,
.bg-blue-light .section-subtitle,
.bg-blue-light h5,
.bg-gold-light p,
.bg-gold-light .stat-label,
.bg-gold-light .value-item,
.bg-gold-light .about-content p,
.bg-gold-light .section-subtitle,
.bg-gold-light h5,
.bg-gradient-subtle p,
.bg-gradient-subtle .stat-label,
.bg-gradient-subtle .value-item,
.bg-gradient-subtle .about-content p,
.bg-gradient-subtle .section-subtitle,
.bg-gradient-subtle h5 {
    color: var(--text-secondary);
}

/* Assurer que les cartes sont bien visibles sur les nouveaux fonds */
.bg-blue-light .stat-card,
.bg-blue-light .value-card,
.bg-blue-light .service-card,
.bg-gold-light .stat-card,
.bg-gold-light .value-card,
.bg-gold-light .service-card,
.bg-gradient-subtle .stat-card,
.bg-gradient-subtle .value-card,
.bg-gradient-subtle .service-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(39, 59, 91, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Ajustement pour sections avec fond clair */
.bg-light .section-subtitle {
    color: var(--text-light);
}

/* Ajustement pour sections avec fond clair */
.section-padding:not(.bg-light) .section-subtitle {
    color: var(--text-secondary);
}

/* Ajustement pour page-header avec fond sombre */
.page-header .section-subtitle {
    color: #ffffff !important;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-horizontal);
    margin: 1.5rem auto;
    border-radius: 2px;
    box-shadow: 0 2px 8px var(--shadow-md);
    position: relative;
    animation: underlineExpand 2s ease-in-out infinite alternate;
}

@keyframes underlineExpand {
    0% { 
        width: 100px;
    }
    100% { 
        width: 120px;
    }
}

/* ===== About Section ===== */
.about-content {
    padding-right: 2rem;
}

.about-image-wrapper {
    margin-bottom: 2rem;
}

.about-image-wrapper img {
    border-radius: 15px;
    max-width: 100%;
    height: 150px;
    transition: var(--transition);
}

.about-image-wrapper img:hover {
    transform: scale(1.02);
}

.about-content h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    z-index: 10;
}

/* Si about-content est dans une section bg-light */
.bg-light .about-content p {
    color: var(--text-secondary);
}

/* Correction pour text-light sur fond clair */
.section-padding:not(.bg-light) .text-light,
.section-padding:not(.bg-light) p.text-light,
.section-padding:not(.bg-light) .stat-label.text-light,
.section-padding:not(.bg-light) h5.text-light {
    color: var(--text-secondary) !important;
}

.section-padding.bg-light .text-light,
.section-padding.bg-light p.text-light,
.section-padding.bg-light .stat-label.text-light,
.section-padding.bg-light h5.text-light {
    color: var(--text-secondary) !important;
}

/* text-light sur fond sombre (page-header, hero) */
.page-header .text-light,
.page-header p.text-light,
.page-header h1.text-light,
.page-header h2.text-light,
.page-header h3.text-light,
.page-header * {
    color: #ffffff !important;
}

.hero-section .text-light {
    color: var(--text-on-dark-light) !important;
}

/* Stat labels sur fond clair */
.section-padding:not(.bg-light) .stat-label,
.section-padding.bg-light .stat-label {
    color: var(--text-secondary) !important;
}

.about-content .lead {
    font-size: 1.1rem;
    font-weight: 500;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 169, 88, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(199, 169, 88, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-title);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.value-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(39, 59, 91, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.value-card:hover::after {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(199, 169, 88, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-md);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 24px var(--shadow-lg);
}

.value-card h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.value-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* ===== Services Section ===== */
.service-card {
    background: #ffffff;
    border: 2px solid rgba(39, 59, 91, 0.08);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--gold-light) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(39, 59, 91, 0.2);
    box-shadow: 0 8px 24px rgba(39, 59, 91, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 0 1.5rem 0;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(39, 59, 91, 0.15);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(39, 59, 91, 0.25);
    background: var(--blue-medium);
}

.service-image {
    width: 100%;
    height: 120px;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 1rem;
    transition: all 0.4s ease;
}

.service-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    background: #f0f2f5;
}

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

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: var(--blue-dark);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.service-card p:last-of-type {
    margin-bottom: 0;
}

/* Boutons dans les cartes de services */
.service-card .btn-primary {
    margin-top: auto;
    align-self: flex-start;
    margin-top: 1.5rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
}

.service-card .btn-primary:hover {
    transform: translateY(-2px);
}

/* Amélioration de l'espacement pour les cartes avec plusieurs paragraphes */
.service-card p + p {
    margin-top: 0.75rem;
}

/* ===== Methodology Section ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-vertical);
    transform: translateX(-50%);
    box-shadow: 0 4px 16px var(--shadow-md);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% { 
        box-shadow: 0 4px 16px var(--shadow-md);
    }
    50% { 
        box-shadow: 0 6px 24px var(--shadow-lg);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.timeline-item:hover .timeline-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 24px var(--shadow-lg);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
    max-width: 400px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(199, 169, 88, 0.1), transparent);
    transition: left 0.5s;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(199, 169, 88, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.timeline-content h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.timeline-image-wrapper {
    margin-top: 3rem;
}

.timeline-image-wrapper img {
    border-radius: 15px;
    max-width: 80%;
    height: auto;
    transition: var(--transition);
}

.timeline-image-wrapper img:hover {
    transform: translateY(-5px);
}

/* ===== Achievements Section ===== */
.achievement-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-vertical);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s;
    pointer-events: none;
}

.achievement-card:hover::before {
    transform: scaleY(1);
}

.achievement-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(199, 169, 88, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.achievement-card:hover .achievement-icon {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 6px 24px var(--shadow-lg);
}

/* ===== Download Card Styles ===== */
.download-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-vertical);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s;
    pointer-events: none;
}

.download-card:hover::before {
    transform: scaleY(1);
}

.download-card:hover {
    transform: translateY(-10px);
    border-color: rgba(199, 169, 88, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-md);
    transition: var(--transition);
}

.download-card:hover .download-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 24px var(--shadow-lg);
}

.download-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.achievement-card h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.achievement-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ===== Team Section ===== */
.team-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.team-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 169, 88, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover::after {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(199, 169, 88, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.team-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-md);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.team-card:hover .team-icon {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 6px 24px var(--shadow-lg);
}

.team-card h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.values-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.values-section h3 {
    font-size: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.value-item span {
    color: var(--text-secondary);
}

.value-item:hover {
    background: var(--light-color);
}

.value-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.team-image-wrapper {
    position: relative;
}

.team-image-wrapper img {
    border-radius: 15px;
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: var(--transition);
}

.team-image-wrapper img:hover {
    transform: scale(1.02);
}

/* ===== Contact Section ===== */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 169, 88, 0.05) 0%, transparent 70%);
    animation: simpleFade 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(39, 59, 91, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-body);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(199, 169, 88, 0.1), 0 4px 16px var(--shadow-md);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.contact-info {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(39, 59, 91, 0.15);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px var(--shadow-md);
}

.contact-info i {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* Contact info sur fond sombre (si nécessaire) */
.page-header .contact-info h5,
.page-header .contact-info p,
.page-header .contact-info * {
    color: #ffffff !important;
}

.hero-section .contact-info h5 {
    color: var(--text-on-dark);
}

.hero-section .contact-info p {
    color: var(--text-on-dark-light);
}

.legal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    color: var(--text-primary);
}

.legal-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 2rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(10, 14, 39, 1) 100%);
    backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(199, 169, 88, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(199, 169, 88, 0.5), 
        rgba(39, 59, 91, 0.5), 
        transparent
    );
    pointer-events: none;
}

.footer-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    color: #ffffff;
    background-clip: text;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ffffff;
    transition: var(--transition);
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
    color: #ffffff;
}

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

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

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

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-copyright a {
    color: var(--accent-color);
}

/* ===== Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-number {
        position: absolute;
        left: 0;
    }
    
    .timeline-content {
        margin: 0;
        max-width: 100%;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .team-image-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .values-section {
        padding: 2rem;
    }
    
    /* Carte Google Maps responsive tablette */
    .map-container {
        height: 400px !important;
    }
    
    /* Cards responsive */
    .stat-card,
    .value-card,
    .service-card,
    .achievement-card,
    .team-card,
    .download-card {
        padding: 1.75rem;
    }
    
    /* Formulaires responsive */
    .form-control,
    .form-select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
    
    /* Navigation */
    .navbar-brand img {
        height: 45px !important;
    }
    
    /* Hero images */
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== Bouton flottant WhatsApp ===== */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    width: 60px;
    height: 60px;
    background: #25D366 !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 99999 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    color: white !important;
}


@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-card,
    .value-card,
    .service-card,
    .achievement-card,
    .team-card {
        padding: 1.75rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1.15rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    /* Carte Google Maps responsive */
    .map-container {
        height: 300px !important;
        margin-bottom: 2rem;
    }
    
    /* Formulaires responsive */
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
    
    /* Images hero responsive */
    .hero-image-wrapper {
        margin-top: 2rem;
        padding: 0.5rem;
    }
    
    .hero-image {
        margin-bottom: 1rem;
    }
    
    /* Navigation responsive */
    .navbar-brand img {
        height: 40px !important;
    }
    
    /* Cards avec colonnes multiples */
    .row.g-4 > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    /* Boutons responsive */
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Espacement des sections */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Bouton WhatsApp responsive */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
    
    /* Timeline responsive */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* About content responsive */
    .about-content {
        padding: 0;
    }
    
    /* Team cards responsive */
    .team-image-wrapper {
        margin-bottom: 1.5rem;
    }
    
    /* Download section responsive */
    .download-card {
        margin-bottom: 1.5rem;
    }
    
    /* Stat numbers responsive */
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Service icons responsive */
    .service-icon,
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Footer responsive */
    .footer {
        padding: 2rem 0;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Très petits écrans (max-width: 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-padding {
        padding: 15px 0;
    }
    
    .stat-card,
    .value-card,
    .service-card,
    .achievement-card,
    .team-card,
    .download-card {
        padding: 1.25rem;
    }
    
    .map-container {
        height: 250px !important;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 12px;
        right: 12px;
    }
}
