:root {
    --primary: #FFEC3C;
    --secondary: #F09819;
    --dark-primary: #E6D435;
    --dark-secondary: #D88A17;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: var(--text-color);
    line-height: 1.6;
}

body:has(.popup) {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.753);
    text-align: center;
}

.popup-options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 16px;
}

.popup-option {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 48px 32px;
    margin: 10px;
    border: 2px solid var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.popup-option:hover {
    transform: translateY(-10px);
}

.popup-option img {
    width: 200px;
    height: 200px;
}

/* Header & Navigation */
header {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: calc(100% - 32px);
    margin: 10px 16px 0;
    border-radius: 50px;
    top: 0;
    z-index: 1000;
    transition: all 0.2s ease-in-out;
}

header.solid {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 6px 6px 0;
}

.logo-link {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 29px;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a.btn {
    transition: all 0.3s ease;
}

.nav-links a:hover:not(.btn) {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--text-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(240, 152, 25, 0.3);
}

.btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
}

/* Hero Section */
.hero {
    padding: 170px 0 100px;
    background: linear-gradient(45deg, rgba(255, 236, 60, 0.15), rgba(240, 152, 25, 0.15));
}

.small-hero {
    padding: 130px 0 50px;
    background: linear-gradient(45deg, rgba(255, 236, 60, 0.15), rgba(240, 152, 25, 0.15));
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-text {
    flex: 1;
}

.small-hero-text {
    text-align: center;
}

.hero-image {
    flex: 1;
    text-align: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 500px;
    max-width: 100%;
    border-radius: 10px;
}

.hero-image video {
    max-height: 450px;
    width: fit-content;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.2;
}

h1 span {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 19px;
    margin-bottom: 32px;
    color: #666;
}

.section-title + .subtitle {
    text-align: center;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.darker-background {
    background-color: var(--light-gray);
}

/* Stats section */
.section-stats {
    background-color: #333;
    color: white;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.stat {
    text-align: center;
    flex: 1;
}

.stat span {
    font-size: 28px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat p {
    font-size: 19px;
}

/* Features Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 35px;
}

.section-title span {
    position: relative;
    display: inline-block;
}

.section-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
    color: var(--secondary);
}

.feature-title {
    font-size: 24px;
    margin-bottom: 16px;
}

/* How It Works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 32px;
}

@media (max-width: 919px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
    padding: 32px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    margin-bottom: 24px;
}

.step h3 {
    font-size: 24px;
}

/* Testimonials */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 32px;
}

@media (max-width: 1086px) {
    .testimonials-wrapper {
        grid-template-columns: 1fr;
    }
}

.testimonial {
    background-color: white;
    border-radius: 15px;
    padding: 32px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 16px;
}

.author-info h4 {
    margin-bottom: 3px;
}

.author-info p {
    color: #666;
    font-size: 14px;
}

/* CTA Section */
.cta {
    background: linear-gradient(45deg, rgba(255, 236, 60, 0.9), rgba(240, 152, 25, 0.9));
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: white;
    margin-bottom: 32px;
    font-size: 40px;
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background-color: white;
    color: var(--secondary);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.footer-column h3 {
    margin-bottom: 24px;
    font-size: 19px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 13px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links img, .app-badge img {
    height: 40px;
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Pricing Page */
.switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

.switch {
    --circle-dim: 1.4em;
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 5em;
    height: 2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffeb3c80;
    transition: .4s;
    border-radius: 30px;
}

.slider-card {
    position: absolute;
    content: "";
    height: var(--circle-dim);
    width: var(--circle-dim);
    border-radius: 20px;
    left: 0.3em;
    bottom: 0.3em;
    transition: .4s;
    pointer-events: none;
}

.slider-card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    perspective: 1000px;
    border-radius: 50%;
    transition: .4s transform;
}

.slider-card-front {
    background-color: #868686;
}

.slider-card-back {
    background-color: var(--secondary);
    transform: rotateY(180deg);
}

input:checked ~ .slider-card .slider-card-back {
    transform: rotateY(0);
}

input:checked ~ .slider-card .slider-card-front {
    transform: rotateY(-180deg);
}

input:checked ~ .slider-card {
    transform: translateX(3em);
}

input:checked ~ .slider {
    background-color: var(--primary);
}

.month {
    opacity: 1;
    transform: translateY(0);
}

.year {
    opacity: 0;
    transform: translateY(20px);
    top: -120px;
    left: 0;
    right: 0;
    transition: opacity 0.3s ease;
    height: 0;
}

.pricing-card.yearly .month {
    opacity: 0;
    transform: translateY(-20px);
}

.pricing-card.yearly .year {
    opacity: 1;
    transform: translateY(0);
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

@media (max-width: 1086px) {
    .pricing-plans {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 48px 32px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: var(--text-color);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border-bottom-left-radius: 15px;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    margin-bottom: 16px;
}

.plan-name {
    font-size: 29px;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.plan-price span {
    font-size: 16px;
    font-weight: normal;
}

.plan-price p {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

span.highlight {
    background: var(--secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 13px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.plan-features li:last-child {
    border-bottom: none;
}

.fa-check {
    color: var(--secondary);
}

.fa-times {
    color: #ccc;
}

.comparatif {
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-top: 40px;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.comparison-table th {
    background-color: var(--medium-gray);
    border-bottom: 2px solid var(--medium-gray);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    width: 40%;
}

.comparison-table .highlighted-column {
    background-color: rgba(255, 236, 60, 0.1);
}

.comparison-table th.highlighted-column {
    background-color: rgba(255, 236, 60, 0.1);
    border-bottom: 2px solid rgba(255, 236, 60, 0.1);
}

/* Partenaires – filtres & recherche */
.filters-section {
    padding: 40px 0;
}
.search-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.search-bar {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    border: 1px solid var(--medium-gray);
    border-radius: 30px;
    padding: 8px 16px;
    background-color: #fff;
}
.search-bar i {
    margin-right: 8px;
    color: var(--medium-gray);
}
.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid var(--medium-gray);
    border-radius: 30px;
    background-color: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn i {
    font-size: 14px;
}
.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: #fff;
}

/* Statistiques mini */
.section-stats-mini {
    background-color: var(--light-gray);
    padding: 40px 0;
}
.stats-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
}
.stat-mini {
    text-align: center;
}
.stat-mini h3 {
    font-size: 32px;
    margin-bottom: 8px;
}
.stat-mini h3 span {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-mini p {
    font-size: 16px;
    color: #666;
}

/* Grille des commerces */
.commerces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}
.commerce-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.commerce-card:hover {
    transform: translateY(-5px);
}

/* Visuel & badge */
.commerce-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.commerce-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.commerce-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 5px;
    background-color: var(--primary);
    color: var(--text-color);
}
.commerce-badge.promo {
    background-color: var(--secondary);
    color: #fff;
}

/* Informations du commerce */
.commerce-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.commerce-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--secondary);
}
.commerce-name {
    font-size: 20px;
    font-weight: 600;
}
.commerce-description {
    font-size: 14px;
    color: #555;
}
.commerce-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

/* FAQ Page */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    padding-left: 16px;
    border-left: 3px solid var(--primary);
    font-size: 24px;
    margin: 48px 0 16px;
}

.faq-item {
    border: 1px solid #ddd;
    padding: 16px;
}

.faq-item-first {
    border: 1px solid #ddd;
    padding: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.faq > .faq-item:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 24px;
    color: black;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i,
.faq-item-first.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Contact Page */
.contact-form-container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    border-radius: 15px;
}

.contact-form {
    flex: 1;
    background-color: white;
    border-radius: 15px;
}

.contact-form button {
    display: block;
    margin: 0 auto;
    font-size: 16px;
    padding: 14px 24px;
}

.form-row {
    display: flex;
    gap: 32px;
}

.form-row .form-group {
    width: 50%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 13px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 16px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(240, 152, 25, 0.2);
}

/* Officiel */
.officiel {
    max-width: 800px;
    margin: 0 auto;
}

.officiel-category {
    margin-bottom: 32px;
    font-size: 28px;
    color: var(--text-color);
}

.officiel-text {
    margin-bottom: 24px;
    line-height: 1.8;
}

.officiel-liste {
    margin-bottom: 32px;
    padding-left: 20px;
    line-height: 1.8;
}

.officiel-lien {
    color: var(--secondary);
}

/* Tablette */
@media (max-width: 992px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 799px) {
    header {
        width: 100%;
        margin: 0;
        border-radius: 0;
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar {
        padding: 16px 16px 16px 0;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links.active {
        max-height: 500px;
        transition: max-height 0.3s ease;
    }
    
    .nav-links li {
        margin: 8px 32px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    h1 {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 29px;
    }

    .plan-price {
        font-size: 35px
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 5px;
    }

    .contact-info-container {
        flex-direction: column;
        gap: 16px;
    }

    .contact-info {
        width: 90%;
    }

    .form-row {
        display: block;
    }

    .form-row .form-group {
        width: 100%;
    }

    .faq-category {
        font-size: 20px;
    }

    .faq-question {
        font-size: 20px;
    }

    .popup-content {
        width: 90%;
        max-width: 800px;
        margin: 0 16px;
    }

    .popup-options {
        flex-direction: column;
    }

    .popup-option {
        align-self: center;
        width: 100%;
        padding: 24px 16px;
    }

    .popup-option img {
        width: 150px;
        height: 150px;
    }
}