/* assets/css/main.css */
:root {
    --primary-color: #2563eb;      /* Bleu principal */
    --secondary-color: #1e40af;    /* Bleu foncé */
    --accent-color: #10b981;       /* Vert */
    --dark-color: #1f2937;         /* Gris foncé */
    --light-color: #f9fafb;        /* Gris clair */
    --gray-color: #6b7280;         /* Gris moyen */
    
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Option 1 : Bleu professionnel */
.hero-option-1 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

/* Option 2 : Bleu dynamique */
.hero-option-2 {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #3b82f6 100%);
}

/* Option 3 : Bleu avec violet */
.hero-option-3 {
    background: linear-gradient(135deg, #5b21b6 0%, #3b82f6 50%, #06b6d4 100%);
}

/* Option 4 : Mesh gradient moderne */
.hero-option-4 {
    background: 
        radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.5) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(147, 51, 234, 0.5) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(14, 165, 233, 0.5) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(59, 130, 246, 0.5) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.5) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(37, 99, 235, 0.5) 0px, transparent 50%),
        linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVBAR - Version Moderne
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 1001;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 50px;
    width: auto;
}

/* Menu Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:not(.btn) {
    color: var(--dark-color);
}

.nav-menu a:not(.btn)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
    border-radius: 3px 3px 0 0;
}

.nav-menu a:not(.btn):hover::before,
.nav-menu a:not(.btn).active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-menu a:not(.btn):hover {
    color: var(--primary-color);
}

.nav-menu a:not(.btn).active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Bouton Devis dans le menu */
.nav-menu .btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.nav-menu .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Toggle Mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--light-color);
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--dark-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive Menu */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 2rem 1.5rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li {
        border-bottom: 1px solid var(--light-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .nav-menu a:not(.btn)::before {
        display: none;
    }
    
    .nav-menu .btn-primary {
        margin: 1rem 0 0 0;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
    }
}

/* Animation entrée menu mobile */
@media (max-width: 768px) {
    .nav-menu.active li {
        animation: slideInLeft 0.3s ease forwards;
        opacity: 0;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.35s; }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #059669;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   HERO SECTION - Version Moderne
   ======================================== */

.hero {
    margin-top: 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero avec image de fond */
.hero-with-image {
  background-image:
    /*linear-gradient(135deg, rgba(37,99,235,0.35) 0%, rgba(30,64,175,0.4) 100%),*/
    var(--img-url);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Alternative : Dégradé moderne sans image */
.hero-gradient {
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Alternative : Dégradé bleu professionnel */
.hero-blue-gradient {
    background: linear-gradient(135deg, 
        #2563eb 0%,
        #1e40af 35%,
        #1e3a8a 65%,
        #1e293b 100%
    );
}

/* Overlay sombre pour lisibilité */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);  /* 0.3 → 0.1 */
    z-index: 1;
}

/* Pattern décoratif */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Contenu Hero */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary.btn-hero {
    background: white;
    color: var(--primary-color);
}

.btn-primary.btn-hero:hover {
    background: #f9fafb;
}

.btn-outline.btn-hero {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline.btn-hero:hover {
    background: white;
    color: var(--primary-color);
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    color: white;
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hero {
        width: 100%;
        justify-content: center;
    }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.card-text {
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--light-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-item p {
    color: var(--gray-color);
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--primary-color);
    z-index: -1;
}

.process-step {
    flex: 1;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--gray-color);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.author-service {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.contact-info i {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom i {
    color: #ef4444;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.observe {
    opacity: 0;
}

.observe.fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 1;
}

/* Éviter les tremblements sur hover */
.card, .feature-item, .testimonial-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-10px) translateZ(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background: var(--light-color); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }







/* Fix pour éviter les tremblements des cartes */
.card-grid {
    position: relative;
}

.card-grid .card {
    position: relative;
    transform: translate3d(0, 0, 0);
}

/* Optimisation performance */
.card-image {
    transform: translateZ(0);
    will-change: transform;
}

/* Image placeholder en attendant les vraies images */
.card-image[src*="placeholder"] {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}








/* Désactiver les animations si l'utilisateur préfère reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .observe {
        opacity: 1;
    }
}

/* Smooth scroll pour toute la page */
html {
    scroll-behavior: smooth;
}

/* Empêcher le layout shift pendant le chargement */
.card-grid {
    min-height: 400px;
}

.card-image {
    background: #e5e7eb;
    display: block;
    object-fit: cover;
}

/* Loading state pour les images */
.card-image[src=""] {
    background: linear-gradient(
        90deg,
        #e5e7eb 0%,
        #f3f4f6 50%,
        #e5e7eb 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}