/* === VARIABLES & GENERAL STYLES === */
:root {
    --primary-color: #2563eb;
    --primary-hover-color: #1d4ed8;
    --secondary-color: #f1f5f9;
    --secondary-hover-color: #e2e8f0;

    --text-color: #1f2937;
    --text-light: #4b5563;

    --background-color: #ffffff;
    --card-background: #ffffff;
    --border-color: #e5e7eb;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width: 1100px;

    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #111827;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.025em; color: #111827; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--text-light); }
ul { list-style: none; }
a { text-decoration: none; color: var(--primary-color); }

section {
    padding: 5rem 0;
}

section:nth-of-type(even) {
    background-color: var(--secondary-color);
}


/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

/* Hero secondary button variant (better on dark hero) */
.btn-secondary-hero {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}


/* === HEADER & NAVIGATION === */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo (SVG + text) */
.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}
.logo-mark {
    width: 34px;
    height: 34px;
    display: block;
}
.logo-text {
    font-size: 1.4rem;
    line-height: 1;
    color: var(--primary-color);
}

.main-nav {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--primary-color);
}

.cta-header {
    display: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Burger Menu */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Nav Styles */
.main-nav.active {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.main-nav.active .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}


/* === HERO SECTION (FULL WIDTH BG + BLUE FADE LIKE YOUR MOCKUP) === */
.hero {
    padding: 4.5rem 0;
    background-color: #0b2a55; /* fallback */
    background-image:
        linear-gradient(
            90deg,
            rgba(11, 42, 85, 0.94) 0%,
            rgba(11, 42, 85, 0.90) 38%,
            rgba(11, 42, 85, 0.55) 58%,
            rgba(11, 42, 85, 0.18) 72%,
            rgba(11, 42, 85, 0.00) 82%
        ),
        url("test.png");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero .container {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 680px;
    text-align: left;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 0 1.8rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.hero-benefits {
    margin-top: 0;
    text-align: left;
    display: inline-block;
    background: rgba(255, 255, 255, 0.10);
    padding: 1.25rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.hero-benefits li {
    margin-bottom: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.hero-benefits li:last-child { margin-bottom: 0; }


/* === ESSENTIEL SECTION === */
.section-essentiel .container {
    max-width: 800px;
    text-align: center;
}
.section-essentiel p {
    font-size: 1.1rem;
}


/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background-color: var(--card-background);
    padding: 2.5rem 2rem;
    border: none;
    border-top: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card ul {
    margin-top: 1.5rem;
    text-align: left;
    display: inline-block;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}
.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}


/* === MÉTHODE SECTION === */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-step {
    width: 56px;
    height: 56px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 2rem;
    box-shadow: var(--shadow-primary);
}
.timeline-content h3 {
    margin-bottom: 0.5rem;
}
.timeline-content { flex-grow: 1; }


/* === RESULTATS & VILLES DESSERVIES === */
.resultats-content {
    display: grid;
    gap: 3rem;
}

.resultats-texte ul {
    list-style-type: none;
    padding-left: 0;
}
.resultats-texte ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
}
.resultats-texte ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.city-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.tag {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
}
.tag-main {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
}


/* === ABONNEMENT SECTION === */
.section-abonnement .container {
    text-align: center;
}

.section-abonnement p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background-color: var(--card-background);
    padding: 2.5rem;
    border: none;
    border-top: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.pricing-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.pricing-main-price {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}
.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.pricing-subscription {
    background-color: #f0f9ff;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #bae6fd;
}

.pricing-sub-price {
    display: block;
    font-weight: 700;
    color: #0369a1;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.pricing-sub-desc {
    font-size: 0.85rem;
    color: #4b5563;
    margin-bottom: 0;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}


/* Featured Pricing Card */
.pricing-card.featured {
    border: 2px solid var(--primary-color);
    border-top: 4px solid var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    position: relative;
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.badge-recommended {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-primary);
}


/* === AVIS CLIENTS === */
.testimonials-grid {
    display: grid;
    gap: 2rem;
}
.testimonial-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-top: 4px solid var(--primary-color);
    border-left: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-3px);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-color);
}
.testimonial-card footer {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}


/* === FAQ SECTION === */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.faq-question {
    cursor: pointer;
    position: relative;
    font-size: 1.2rem;
    margin-bottom: 0;
    font-weight: 600;
    padding-right: 2rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p { padding-top: 1rem; margin-bottom: 0; }


/* === CONTACT SECTION === */
.section-contact { text-align: center; }
.contact-email {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

#contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: #f9fafb;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.invalid {
    border-color: #dc3545;
}

.form-success-message {
    margin-top: 1.5rem;
    color: #065f46;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}


/* === FOOTER === */
.footer {
    background-color: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 3rem 0;
}
.footer p { margin-bottom: 0.5rem; color: #9ca3af; }
.footer-links a {
    color: #e5e7eb;
    margin: 0 0.75rem;
    font-weight: 500;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}


/* === MEDIA QUERIES === */

/* Tablet */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }

    .burger-menu { display: none; }
    .main-nav { display: block; }
    .cta-header { display: block; }

    .header .container {
        height: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }

    .resultats-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #contact-form {
        grid-template-columns: 1fr 1fr;
    }
    .form-group-full {
        grid-column: 1 / -1;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .timeline::before {
        content: '';
        position: absolute;
        left: 27px;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: var(--border-color);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero {
        padding: 3.5rem 0;
        background-position: center;
        /* darker overlay on mobile for readability */
        background-image:
            linear-gradient(
                180deg,
                rgba(11, 42, 85, 0.92) 0%,
                rgba(11, 42, 85, 0.86) 55%,
                rgba(11, 42, 85, 0.78) 100%
            ),
            url("test.png");
    }

    .hero .container {
        min-height: 520px;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-benefits {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        width: 100%;
        max-width: 520px;
    }

    .pricing-card.featured {
        transform: none;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}
