/* =================================reset & base================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =================================header================= */
.site-header {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    z-index: 100;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #020617;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #020617;
}

/* =================================header action buttons (icons + text desktop / icon-only mobile) ================= */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-icon-action .material-icons {
    font-size: 18px;
}

/* Télécharger (style neutre / sombre discret) */
.header-action-buttons .btn-icon-action {
    background: #f1f5f9;
    color: #0f172a;
}
.header-action-buttons .btn-icon-action:hover {
    background: #e2e8f0;
}

/* Connexion (bouton texte discret) */
.btn-header-login {
    background: transparent;
    color: #475569;
}
.btn-header-login:hover {
    background: #f1f5f9;
    color: #020617;
}

/* Inscription (bouton principal mis en avant) */
.btn-header-signup {
    background: #4338ca;
    color: #ffffff;
}
.btn-header-signup:hover {
    background: #3730a3;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
    z-index: 101;
    margin-left: 8px;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #020617;
    transition: all 0.3s ease;
}

/* =================================hero================= */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.badge-reassurance {
    display: inline-block;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 700;
    color: #020617;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: #4338ca;
}

.hero p {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #020617;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
    margin: 0 auto;
    display: block;
}

/* =================================sections & features================= */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.section-header h2 {
    font-size: 2.25rem;
    color: #020617;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    color: #64748b;
    font-size: 1.05rem;
}

.features-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

.card-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4338ca;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #020617;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
}

/* =================================tarifs section================= */
.tarifs-section {
    padding: 80px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.tarifs-table th, .tarifs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.tarifs-table th {
    font-weight: 600;
    color: #020617;
    background-color: #f8fafc;
}

.tarifs-table tr:last-child td {
    border-bottom: none;
}

/* =================================faq & contact================= */
.faq-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.faq-item {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.faq-item h4 {
    font-size: 1.05rem;
    color: #020617;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.9rem;
    color: #64748b;
}

.contact-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.contact-compact {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-compact h2 {
    font-size: 1.75rem;
    color: #020617;
    margin-bottom: 10px;
}

.contact-compact p {
    font-size: 1rem;
    color: #64748b;
}

.contact-compact a {
    color: #4338ca;
    text-decoration: none;
    font-weight: 500;
}

.contact-compact a:hover {
    text-decoration: underline;
}

/* =================================footer & banner================= */
.site-footer {
    background-color: #0b0f19;
    color: #94a3b8;
    padding-top: 50px;
    padding-bottom: 30px;
    border-top: 1px solid #1e293b;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 24px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.company-legal {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b;
}

.footer-bottom {
    background-color: transparent;
    padding-top: 12px;
    font-size: 0.85rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #020617;
    color: #f8fafc;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #1e293b;
}

.cookie-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}

.cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* =================================qr dropdown================= */
.qr-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 1000;
    gap: 16px;
}

.qr-dropdown.active {
    display: flex;
}

.qr-dropdown-hero {
    left: 0;
    right: auto;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-item img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.qr-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* =================================form & validation================= */
.auth-field input.is-invalid, .auth-field select.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.auth-field input.is-valid, .auth-field select.is-valid {
    border-color: #22c55e !important;
}

/* =================================media queries================= */
@media (max-width: 900px) {
    .menu-btn {
        display: flex;
    }

    .btn-icon-action .btn-text {
        display: none;
    }

    .btn-icon-action {
        padding: 6px;
    }

    .nav-right-actions {
        gap: 8px;
    }

    .menu-btn {
        margin-left: 10px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        padding: 24px;
        gap: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .cta-group {
        justify-content: center;
    }
    .features-grid, .faq-grid, .tarifs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-content {
        padding: 0 10px;
    }
    .cta-group {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
    }

    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
    
    .qr-dropdown {
        flex-direction: column;
        right: -20px;
    }
}