/* Variables globales */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #ff7b00;
    --secondary-dark: #e56e00;
    --accent-color: #2ec4b6;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-dark: #2b2d42;
    --white: #ffffff;
    --gray-light: #e9ecef;
    --gray: #ced4da;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

ul {
    list-style: none;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
}

/* Boutons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 123, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-strong);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 130px 0 80px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8f0ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 123, 0, 0.1);
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 40px;
    position: relative;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-strong);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Problem Section */
.problem {
    background-color: var(--white);
}

.problem .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.problem-image {
    flex: 1;
    max-width: 500px;
}

.problem-content {
    flex: 1;
}

.scenario {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.solution-teaser {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 15px 0;
    border-top: 2px dashed var(--gray);
    border-bottom: 2px dashed var(--gray);
}

/* Benefits Section */
.benefits {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    z-index: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.benefit-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

/* Features Section */
.features {
    background-color: var(--white);
}

.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.feature-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: var(--border-radius);
    transform: translate(15px, 15px);
    z-index: -1;
}

.feature.reverse .feature-image::before {
    transform: translate(-15px, 15px);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 123, 0, 0.1);
    z-index: 0;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: rgba(67, 97, 238, 0.2);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.demo-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.demo-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.contact-method p {
    margin-bottom: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero .container,
    .problem .container,
    .feature {
        flex-direction: column;
    }
    
    .feature.reverse {
        flex-direction: column;
    }
    
    .hero-image,
    .problem-image,
    .feature-image {
        margin: 40px 0 0;
        max-width: 100%;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 80px 20px;
        transition: var(--transition);
        z-index: 1001;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px 0;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .gallery-item {
        flex: 0 0 300px;
        scroll-snap-align: start;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 576px) {
    .gallery-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }

    .floating-buttons a,
    .floating-buttons button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Hover Effects */
.benefit-card:hover .benefit-icon {
    background-color: var(--primary-color);
}

.benefit-card:hover .benefit-icon i {
    color: var(--white);
}

.feature-image img {
    transition: var(--transition);
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Sticky CTA Demander une démo gratuite et WhatsApp */

/* Floating Buttons Container Whatsapp */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 900;
}

/* Style général pour chaque bouton */
.floating-buttons a,
.floating-buttons button {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Bouton WhatsApp vert */
.floating-buttons a.whatsapp {
    background-color: #25d366;
}

/* Hover */
.floating-buttons a:hover,
.floating-buttons button:hover {
    filter: brightness(1.1);
}

.floating-buttons button {
    display: flex !important; /* Toujours visible */
}

.floating-buttons button {
    display: flex !important; /* Toujours visible */
}

/* Styles pour la galerie */
.gallery {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 30px;
}

/* Styles pour les boutons de filtre */
.filter-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.filter-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
}

.filter-btn.active {
    background-color: #25a6ec; /* Une teinte encore plus foncée que --primary-dark */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
    font-weight: 600;
}

.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(67, 97, 238, 0.2);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.filter-btn:active::before {
    width: 200px;
    height: 200px;
    opacity: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 colonnes */
    gap: 20px;
    padding: 10px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 16/9; /* Force un ratio d'aspect constant */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Styles pour mobile uniquement */
@media (max-width: 768px) {
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 10px 0;
        margin: 0 -20px;
        padding: 0 20px;
    }

    .gallery-item {
        flex: 0 0 300px;
        scroll-snap-align: start;
        aspect-ratio: 16/9;
    }

    /* Personnalisation de la barre de défilement sur mobile */
    .gallery-grid::-webkit-scrollbar {
        height: 8px;
    }

    .gallery-grid::-webkit-scrollbar-track {
        background: var(--gray-light);
        border-radius: 4px;
    }

    .gallery-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .gallery-grid::-webkit-scrollbar-thumb:hover {
        background: var(--primary-dark);
    }
}

/* Styles pour la lightbox Fancybox */
.fancybox__container {
    background-color: rgba(0, 0, 0, 0.8);
}

.fancybox__caption {
    font-size: 1rem;
    color: var(--white);
    text-align: center;
    margin-top: 10px;
}

.fancybox__button {
    color: var(--white);
    transition: var(--transition);
}

.fancybox__button:hover {
    color: var(--primary-color);
}

/* Ajout de styles pour la galerie par thème */
.gallery-theme {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    background-color: var(--white);
}

.gallery-theme .gallery-preview {
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-theme .gallery-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-theme .gallery-preview:hover img {
    transform: scale(1.05);
}

.gallery-theme .gallery-images {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-light);
}

.gallery-theme .gallery-images img {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-theme .gallery-images img:hover {
    transform: scale(1.1);
}

/* Styles pour masquer les images supplémentaires par défaut */
.gallery-theme .gallery-images {
    display: none;
}

.gallery-theme.active .gallery-images {
    display: flex;
}

/* Lightbox filtrée par thème */
[data-theme] {
    display: none;
}

[data-theme].active {
    display: block;
}

/* Responsive design pour la galerie */
@media (max-width: 768px) {
    .gallery-theme {
        padding: 15px;
    }

    .gallery-theme .gallery-preview {
        max-width: 100%;
    }

    .gallery-theme .gallery-images img {
        width: 80px;
        height: 80px;
    }
}
