/* Variables CSS */
:root {
    --primary-blue: #004B9B;
    --gold-yellow: #FFB400;
    --accent-orange: #FF6B35;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Splash Modal */
.splash-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #004B9B 0%, #0066CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    margin-bottom: 2rem;
}

.splash-image {
    width: 50px;
    height: 70px;
    object-fit: contain;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

.splash-loader {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB400, #FFD166);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Header Professional */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 75, 155, 0.1);
    padding: 1rem 0;
}

header.hidden {
    transform: translateY(-100%);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 75, 155, 0.1);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: 50px;
    transition: transform 0.3s ease;
}

@media (min-width: 1024px) {
    .logo img {
        height: 60px;
        width: 60px;
    }
}

.logo:hover img {
    transform: rotate(5deg);
}

#menu-icon {
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

@media (min-width: 1024px) {
    #menu-icon {
        display: none;
    }
}

#menu-icon:hover {
    background: rgba(0, 75, 155, 0.1);
    transform: rotate(90deg);
}

#menu-icon.active {
    transform: rotate(180deg);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 1023px) {
    .navbar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .navbar.active {
        transform: translateX(0);
    }
}

.nav-link {
    position: relative;
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    font-size: 1rem;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

@media (max-width: 1023px) {
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fafb;
        margin-top: 0.5rem;
        border-radius: 6px;
        display: none;
        width: 100%;
    }
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #374151;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown a:hover {
    background: #f3f4f6;
    color: var(--primary-blue);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066cc 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 75, 155, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 75, 155, 0.3);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.8) 0%,
        rgba(226, 232, 240, 0.6) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 75, 155, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 180, 0, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Image Hover Effects */
.image-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-hover-effect img {
    transition: transform 0.6s ease;
    width: 100%;
    height: auto;
}

.image-hover-effect:hover img {
    transform: scale(1.05);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 20px 40px rgba(0, 75, 155, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 40px 60px rgba(0, 75, 155, 0.15);
    border-color: var(--gold-yellow);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 75, 155, 0.1);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066cc 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 180, 0, 0.1) 0%, transparent 50%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* SUPPRIMER/REMPLACER CETTE SECTION
.logo-carousel-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.logo-track {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 60px auto;
}

.logo-carousel {
    display: flex;
    animation: scroll 40s linear infinite;
    gap: 40px;
    padding: 20px 0;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    width: 180px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.logo-item:hover {
    transform: translateY(-8px);
    border-color: var(--gold-yellow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo-item img {
    max-width: 80%;
    max-height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-180px * 7 - 40px * 7));
    }
}
*/

/* NOUVELLE SECTION CLIENTS STATIQUE */
.clients-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
    }
}

.client-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 150px;
    position: relative;
    overflow: hidden;
}

.client-logo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0), transparent);
    transition: 0.6s;
}

.client-logo-item:hover::before {
    left: 100%;
}

.client-logo-item:hover {
    transform: translateY(-8px);
    border-color: var(--gold-yellow);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 180, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.client-logo {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
   
    opacity: 0.8;
    transition: all 0.4s ease;
}

.client-logo-item:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.clients-cta {
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pour mobile : effet au clic sur les logos */
@media (max-width: 768px) {
    .client-logo-item.active {
        transform: scale(1.05);
        border-color: var(--gold-yellow);
        box-shadow: 0 10px 30px rgba(255, 180, 0, 0.2);
    }
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 8px 30px rgba(0, 75, 155, 0.1);
    border-color: var(--primary-blue);
}

.faq-question {
    padding: 24px 32px;
    background: white;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-item.active .faq-question {
    background: #f8fafc;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin-right: 20px;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: var(--primary-blue);
    min-width: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--gold-yellow);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.8s ease-in;
}

.answer-content {
    color: #64748b;
    line-height: 1.7;
    font-size: 16px;
    padding: 0 32px 24px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.faq-item.active .answer-content {
    opacity: 1;
    transform: translateY(0);
}

/* Offres Section */
.offres-section {
    padding: 100px 0;
    background: #f8fafc;
}

.offre-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    text-align: center;
    height: 100%;
}

.offre-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 75, 155, 0.1);
}

.offre-card.popular {
    border: 3px solid var(--gold-yellow);
    position: relative;
    overflow: hidden;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gold-yellow);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 12px;
}

.offre-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.offre-price span {
    font-size: 1rem;
    color: #64748b;
}

/* Avantages Section */
.avantages-section {
    padding: 100px 0;
}

.avantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.avantage-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), #0066cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avantage-icon i {
    color: white;
    font-size: 1.5rem;
}

/* Modules Section */
.modules-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.module-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.module-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--gold-yellow);
}

.module-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-yellow), #FFD166);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.module-icon i {
    color: white;
    font-size: 2rem;
}

/* Nouvelle Section 1: Menu Digital */
.menu-digital-section {
    padding: 100px 0;
    background: white;
}

.menu-digital-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

@media (max-width: 768px) {
    .menu-digital-content {
        flex-direction: column;
        gap: 40px;
    }
}

.menu-digital-image {
    flex: 1;
    position: relative;
}

.menu-digital-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.menu-digital-image:hover img {
    transform: scale(1.02);
}

.menu-digital-text {
    flex: 1;
}

.menu-digital-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFB400, #FFD166);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.menu-digital-features {
    margin-top: 30px;
}

.menu-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.menu-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), #0066cc);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-feature-icon i {
    color: white;
    font-size: 1rem;
}

/* Nouvelle Section 2: Chevalier de Table */
.chevalier-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.chevalier-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

@media (max-width: 768px) {
    .chevalier-content {
        flex-direction: column-reverse;
        gap: 40px;
    }
}

.chevalier-text {
    flex: 1;
}

.chevalier-image {
    flex: 1;
    position: relative;
}

.chevalier-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.chevalier-image:hover img {
    transform: scale(1.02);
}

.chevalier-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), #0066cc);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.chevalier-features {
    margin-top: 30px;
}

.chevalier-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.chevalier-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFB400, #FFD166);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chevalier-feature-icon i {
    color: white;
    font-size: 1rem;
}

/* QR Code Overlay */
.qr-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

.qr-overlay img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 70px;
        padding-bottom: 4rem;
        min-height: auto;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 20px 24px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .answer-content {
        padding: 0 24px 20px;
        font-size: 15px;
    }
    
    .qr-overlay {
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .qr-overlay img {
        width: 70px;
        height: 70px;
    }
}

/* Utilitaires */
.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), #0066cc);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--gold-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Classe loaded pour les images */
img.loaded {
    opacity: 1 !important;
    transition: opacity 0.3s ease;
}

/* Animations pour les cartes */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Optimisation des performances */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}