/* Styles personnalisés pour la page d'accueil avec image hero */
.container { 
    max-width: 100%; 
    width: 100%;
    margin: 0 auto; 
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Amélioration des couleurs et lisibilité */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #8b5cf6;
    --accent-dark: #7c3aed;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.dark {
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-light: #6b7280;
    --bg-primary: #030712;
    --bg-secondary: #111827;
    --bg-dark: #000000;
    --border-color: #1f2937;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.5);
}



/* Typography improvements */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
}

/* Text readability improvements */
.text-readable {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.125rem;
}

.text-readable-sm {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.text-readable-xs {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Button improvements */
.btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary-enhanced:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a8a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    color: white;
}

.btn-secondary-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary-enhanced:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* Card improvements */
.card-enhanced {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card-enhanced:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

/* Section improvements */
.section-enhanced {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.section-enhanced-alt {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.bg-gradient-warm {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.bg-gradient-cool {
    background: linear-gradient(135deg, #06b6d4, var(--primary-color));
}

/* Text gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Improved shadows */
.shadow-enhanced {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-enhanced-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-enhanced-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Focus improvements */
.focus-enhanced:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .section-enhanced {
        padding: 2rem 0;
    }
    
    .section-enhanced-alt {
        padding: 2rem 0;
    }
    
    .card-enhanced {
        padding: 1rem;
    }
    
    .btn-primary-enhanced,
    .btn-secondary-enhanced {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .section-enhanced {
        padding: 1.5rem 0;
    }
    
    .section-enhanced-alt {
        padding: 1.5rem 0;
    }
    
    .card-enhanced {
        padding: 0.875rem;
    }
    
    .btn-primary-enhanced,
    .btn-secondary-enhanced {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* Animation de brillance (shimmer effect) */
@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(12deg); }
    100% { transform: translateX(200%) skewX(12deg); }
}

.animate-shimmer {
    animation: shimmer 3s ease-in-out infinite;
}

/* Animation d'apparition en fondu et montée */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Effet de parallaxe pour l'image de fond */
.hero-parallax {
    transform: scale(1.1);
    transition: transform 0.5s ease-out;
}

.hero-parallax:hover {
    transform: scale(1.05);
}

/* Effet glow pour les boutons */
.glow-effect {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: box-shadow 0.3s ease-in-out;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6), 0 0 60px rgba(168, 85, 247, 0.3);
}

/* Effet glassmorphism */
.glass-effect {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animation de pulsation pour les éléments importants */
@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Animations subtiles et professionnelles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Effet de vignette radiale */
.bg-radial-gradient {
    background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

/* Effet subtil pour l'image */
.hero-image-container {
    position: relative;
}

.hero-image-3d {
    transition: transform 0.3s ease-out;
}

.hero-image-3d:hover {
    transform: scale(1.01);
}

/* Text shadow pour meilleure lisibilité */
.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Améliorations pour la lisibilité et l'organisation */
.hero-section {
    background-attachment: fixed;
    background-size: cover;
}

/* Espacements optimisés */
.content-spacing {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .content-spacing {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .content-spacing {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Boutons avec une hiérarchie claire */
.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Glow effects premium */
.glow-purple {
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.3), 0 0 60px rgba(147, 51, 234, 0.2);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.3), 0 0 60px rgba(34, 211, 238, 0.2);
}

/* Animation de typing effect */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: orange; }
}

/* Responsive ultra-optimisé */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        min-width: auto;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-image-3d {
        transform: none;
        max-width: 100%;
        height: auto;
    }
    
    .hero-image-3d:hover {
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-buttons a {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons a {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

/* Optimisations pour les écrans haute résolution */
@media (min-width: 1920px) {
    .hero-title {
        font-size: 8rem;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Corrections pour éviter les débordements */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Textes qui ne débordent pas */
.text-no-overflow {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Tables responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Cards qui s'adaptent */
.card-responsive {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Boutons qui ne débordent pas */
.btn-no-overflow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Flexbox qui ne déborde pas */
.flex-no-overflow {
    min-width: 0;
    flex-shrink: 1;
}

/* Grid qui s'adapte */
.grid-no-overflow {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .grid-no-overflow {
        grid-template-columns: 1fr;
    }
}





