/* ===================================
   WATSPUB — Design System (CDC)
   Style Stripe/Qonto, Blanc Pur
   =================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #008000;
    --color-primary-dark: #006600;
    --color-text: #1F2937;
    --color-text-muted: #6B7280;
    --color-bg: #FFFFFF;
    --color-surface: #F9FAFB;
    --color-border: #F3F4F6;
    --color-border-medium: #E5E7EB;
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --radius-pill: 9999px;
    --radius-card: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- Selection --- */
::selection {
    background: var(--color-primary);
    color: #fff;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link-login {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.link-login:hover {
    color: var(--color-text);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(37, 211, 102, 0.06);
    transform: translateY(-1px);
}

.btn-text {
    background: none;
    color: var(--color-primary);
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-text:hover {
    color: var(--color-primary-dark);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* --- Hamburger (Mobile) --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    border-radius: 12px;
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

/* ===================================
   SECTIONS (Shared)
   =================================== */
.section {
    padding: 56px 24px;
    max-width: 1120px;
    margin: 0 auto;
}



.section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ===================================
   HERO
   =================================== */
.hero {
    padding-top: 110px;
    padding-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    background: var(--color-surface);
    border: 2px dashed var(--color-border-medium);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.hero-image-placeholder svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-text-muted);
    fill: none;
    stroke-width: 1.5;
}

/* ===================================
   3-COLUMNS (Fonctionnement)
   =================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar {
    text-align: center;
    padding: 20px 16px;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pillar h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pillar p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===================================
   DUALITY CARDS
   =================================== */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.dual-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.dual-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.dual-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.check-list li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: var(--color-primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* --- Waitlist Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
}

.modal-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-box p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-box .waitlist-form {
    display: flex;
    gap: 8px;
}

.modal-box .waitlist-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border-medium);
    border-radius: var(--radius-pill);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition);
}

.modal-box .waitlist-form input:focus {
    border-color: var(--color-primary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--color-text);
}

/* ===================================
   TRUST / TECH PROOF
   =================================== */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.trust-visual {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.trust-visual svg {
    width: 200px;
    height: 200px;
}

.trust-content h2 {
    margin-bottom: 16px;
}

.trust-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===================================
   PAYMENT LOGOS BAND
   =================================== */
.payment-band {
    background: var(--color-surface);
    padding: 48px 24px;
}

.payment-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

.payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.payment-logos img {
    height: 36px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
}

.payment-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

.payment-logos .logo-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #9CA3AF;
    transition: var(--transition);
}

.payment-logos .logo-text:hover {
    color: var(--color-text);
}

.payment-band p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===================================
   FOOTER (Vert Plein)
   =================================== */
.footer {
    background: var(--color-primary);
    color: #fff;
    padding: 48px 24px 24px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 280px;
}

.footer h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
}

.footer ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* ===================================
   ANIMATIONS (Fade Up on Scroll)
   =================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.fade-up.delay-1 {
    transition-delay: 0.1s;
}

.fade-up.delay-2 {
    transition-delay: 0.2s;
}

.fade-up.delay-3 {
    transition-delay: 0.3s;
}

/* ===================================
   FORM (Contact page)
   =================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border-medium);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.12);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .link-login {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 96px;
        padding-bottom: 32px;
        gap: 28px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dual-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .payment-logos {
        gap: 24px;
    }

    .payment-logos img {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .dual-card {
        padding: 28px 24px;
    }
}

/* --- Cookie Consent --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 900;
    display: none;
    /* JS will toggle flex */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
}

.cookie-banner.active {
    display: flex;
    animation: slideUp 0.4s ease forwards;
}

.cookie-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .cookie-actions .btn {
        flex: 1;
    }
}

/* --- Chatbot Widget --- */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 128, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    height: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid var(--color-border);
    transform-origin: bottom right;
}

.chatbot-window.active {
    display: flex;
    animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.chat-header {
    background: var(--color-primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--color-surface);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.chat-msg.bot {
    background: #fff;
    color: var(--color-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--color-border-medium);
}

.chat-msg.user {
    background: var(--color-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    padding: 16px;
    background: #fff;
    border-top: 1px solid var(--color-border);
}

.chat-form {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--color-border-medium);
    border-radius: 99px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--color-primary);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100% - 48px);
        height: 60vh;
        bottom: 90px;
    }
}

/* --- Green Section Utility --- */
.bg-primary-section {
    background-color: var(--color-primary);
    color: #fff;
}

.bg-primary-section .section-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-primary-section .section-title {
    color: #fff !important;
}

.bg-primary-section .pillar-icon svg {
    stroke: #fff !important;
}

.bg-primary-section h3 {
    color: #fff !important;
}

.bg-primary-section p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* --- Hero Image --- */
.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 128, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}