/* Styles spécifiques à la page commerçants */

/* Styles pour la navbar mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: black;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animation de la croix */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: white;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: white;
}

/* Styles pour le bouton contact */
.contact-btn {
    background-color: black;
    color: white;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background-color: #9345FE;
    border-color: #9345FE;
}

.desktop-only {
    display: block;
}

.mobile-contact {
    display: none;
}

/* Styles pour la navigation desktop */
.nav-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0 48px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #9345FE;
}

/* Hide social links by default */
.social-links {
    display: none;
}

/* Styles pour le menu mobile */
@media screen and (max-width: 768px) {
    .nav-container {
        margin: 0;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #9747FF;
        padding: 80px 32px;
        z-index: 100;
    }

    .nav-container.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        margin-right: 0;
    }

    .nav-links li {
        text-align: left;
        margin-bottom: 20px;
    }

    .nav-links a {
        color: white;
        font-size: 28px;
        font-weight: 700;
    }

    .nav-links a:hover {
        color: rgba(255, 255, 255, 0.8);
    }

    .menu-toggle {
        position: relative;
        z-index: 101;
        display: flex;
    }

    .menu-toggle.active span {
        background-color: white;
    }

    /* Show social links only in mobile menu */
    .social-links {
        display: flex;
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        gap: 24px;
    }

    .social-links a {
        width: 52px;
        height: 52px;
        border: 2px solid white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .social-links img {
        width: 28px;
        height: 28px;
        filter: brightness(0) invert(1);
    }

    .social-links a:hover {
        transform: scale(1.1);
        background-color: rgba(255, 255, 255, 0.1);
    }

    .desktop-only {
        display: none;
    }

    .mobile-contact {
        display: block;
        margin-top: 1rem;
    }

    .mobile-contact .contact-btn {
        background-color: white;
        color: #9747FF;
        width: 100%;
        font-size: 18px;
        padding: 0.8rem;
    }

    .mobile-contact .contact-btn:hover {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('assets/3 commercants 1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 5% 10% 5%;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background-color: #6a11cb;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #8e24aa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Marquee Section */
.marquee-container {
    background-color: #6a11cb;
    color: white;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    display: inline-block;
    padding: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(138, 43, 226, 0.05) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.feature-icon svg {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.5));
}

/* Animation spécifique pour chaque icône */
.feature-card:nth-child(1):hover .feature-icon svg path,
.feature-card:nth-child(1):hover .feature-icon svg circle {
    stroke: #9932CC;
    animation: pulse 2s infinite;
}

.feature-card:nth-child(2):hover .feature-icon svg path {
    stroke: #8A2BE2;
    animation: pulse 2s infinite;
}

.feature-card:nth-child(3):hover .feature-icon svg path {
    stroke: #9370DB;
    fill: rgba(147, 112, 219, 0.1);
    animation: pulse 2s infinite;
}

.feature-card:nth-child(4):hover .feature-icon svg circle,
.feature-card:nth-child(4):hover .feature-icon svg path {
    stroke: #7B68EE;
    animation: pulse 2s infinite;
}

.feature-card h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: white;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 25px;
    width: 2px;
    height: calc(100% + 40px);
    background-color: #e0e0e0;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #6a11cb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 20px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(106, 17, 203, 0.3);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.4);
}

.step-content {
    flex-grow: 1;
    transition: all 0.3s ease;
}

.step:hover .step-content {
    transform: translateX(5px);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

.testimonial {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    color: #6a11cb;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0 10px;
}

.slider-dots {
    display: flex;
    margin: 0 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #6a11cb;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: #6a11cb;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: white;
}

.cta-section .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.cta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-icon {
    margin-right: 15px;
    animation: pulse-cta 2s infinite;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.3));
}

@keyframes pulse-cta {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.cta-content h2 {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item.active .faq-question {
    border-bottom: 1px solid #f0f0f0;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: #8A2BE2;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #8A2BE2;
    transition: transform 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease, opacity 0.5s ease;
    opacity: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(0);
    color: #8A2BE2;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8A2BE2;
    transition: width 0.3s ease;
}

.faq-item:hover .faq-question::after {
    width: 100%;
}

/* Social Proof Section */
.social-proof {
    padding: 60px 0;
    background-color: white;
}

.logos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.logos-container img {
    height: 50px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logos-container img:hover {
    opacity: 1;
}

/* Section Devenez partenaire */
.join-partner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.join-partner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.join-partner-content {
    flex: 1;
    padding-right: 40px;
    position: relative;
    z-index: 1;
}

.join-partner-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

.benefits-list {
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefit-item svg {
    margin-right: 15px;
    flex-shrink: 0;
}

.benefit-item span {
    font-size: 16px;
    color: #333;
}

.join-partner-image {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.join-partner-image svg {
    filter: drop-shadow(0 5px 15px rgba(138, 43, 226, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .step:not(:last-child)::after {
        left: 25px;
        top: 50px;
        height: calc(100% - 10px);
    }
    
    .join-partner-container {
        flex-direction: column;
        padding: 30px;
    }
    
    .join-partner-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .join-partner-image {
        margin-top: 20px;
    }
    
    .cta-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    
    .step-number {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .step:not(:last-child)::after {
        left: 25px;
        top: 50px;
        height: calc(100% - 10px);
        width: 2px;
    }
    
    .steps-container {
        padding-left: 10px;
    }
    
    .step-content {
        padding-top: 5px;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .join-partner-container {
        flex-direction: column;
        padding: 30px;
    }
    
    .join-partner-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .join-partner-image {
        margin-top: 20px;
    }
    
    .cta-header {
        flex-direction: column;
    }
    
    .cta-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .logos-container {
        gap: 20px;
    }
    
    .logos-container img {
        height: 30px;
    }
    
    .how-it-works {
        padding: 60px 0;
    }
    
    .steps-container {
        padding-left: 5px;
    }
    
    .step {
        margin-bottom: 25px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .step:not(:last-child)::after {
        left: 20px;
        top: 40px;
    }
    
    .step-content h3 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Styles pour le modal d'inscription des commerçants */
.merchant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #9345FE;
    outline: none;
}

.submit-btn {
    width: 100%;
    background-color: #9345FE;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.submit-btn:hover {
    background-color: #7d32e3;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.privacy-note {
    font-size: 13px;
    color: #999;
    margin-top: 20px;
    text-align: center;
}

.success-message {
    color: #4CAF50;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    font-weight: 500;
}

/* Responsive styles for the modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px;
    }
    
    .modal-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px;
    }
    
    .modal-content h3 {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group select,
    .submit-btn {
        font-size: 15px;
        padding: 12px;
    }
}