:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-padding-top: 80px;
}

body {
    color: var(--dark);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
}

.navbar-brand span {
    color: var(--secondary);
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0f2fe 50%, #fef3c7 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(5deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    padding-right: 2rem;
    line-height: 1.7;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.partner-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

.avatar.secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0284c7 100%);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.connection-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.badge-float {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 3s ease-in-out infinite;
}

.badge-float.top-right {
    top: -20px;
    right: -30px;
    animation-delay: 0.5s;
}

.badge-float.bottom-left {
    bottom: -20px;
    left: -30px;
}

.badge-float i {
    color: var(--accent);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Problem Section */
.problem-section {
    background: var(--dark);
    color: white;
}

.problem-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.problem-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.problem-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Solution Section */
.solution-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.solution-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.solution-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.solution-card h4 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: var(--gray);
    margin: 0;
}

/* How it works */
.steps-section {
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(50% + 50px);
    width: calc(100% - 100px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    z-index: 1;
}

.step-item h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-item p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Testimonial / Use case */
.usecase-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.usecase-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.usecase-card blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    min-height: 8.5rem;
}

.usecase-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.usecase-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.usecase-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Testimonial Carousel */
.usecase-section .carousel-indicators {
    bottom: -50px;
}

.usecase-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    margin: 0 6px;
}

.usecase-section .carousel-indicators button.active {
    background-color: white;
}

.usecase-section .carousel-control-prev,
.usecase-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s;
}

.usecase-section .carousel-control-prev:hover,
.usecase-section .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.usecase-section .carousel-control-prev {
    left: -80px;
}

.usecase-section .carousel-control-next {
    right: -80px;
}

@media (max-width: 991px) {
    .usecase-section .carousel-control-prev,
    .usecase-section .carousel-control-next {
        display: none;
    }
}

/* CTA Section */
.cta-section {
    background: var(--light);
}

.cta-box {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    position: relative;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    position: relative;
}

.email-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.email-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
}

.footer-brand span {
    color: var(--secondary);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0f2fe 50%, #fef3c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
}

.auth-card-wide {
    max-width: 640px;
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.auth-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.auth-icon-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.auth-card .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-card .form-control.is-valid {
    border-color: #10b981;
    background-image: none;
    box-shadow: none;
}

.auth-card .form-control.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.auth-card .form-control.is-invalid {
    border-color: #dc2626;
    background-image: none;
    box-shadow: none;
}

.auth-card .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.auth-card .invalid-feedback {
    font-size: 0.85rem;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.auth-card .btn-primary {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.auth-links {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
}

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

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

.auth-links .separator {
    margin: 0 0.5rem;
}

.auth-card .alert {
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-card .form-errors,
.auth-card ul li {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    list-style: none;
    padding: 0;
}

/* Content Pages (mentions, CGU, etc.) */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.content-wrapper h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-wrapper h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-wrapper h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-wrapper p,
.content-wrapper li {
    color: #475569;
}

.content-wrapper ul {
    padding-left: 1.25rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
}

.last-update {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 3rem;
}

.info-box {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-box p {
    margin: 0.25rem 0;
}

.info-box strong {
    color: var(--dark);
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box p {
    margin: 0;
    color: #92400e;
}

/* Content Tables */
.content-wrapper table.content-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-wrapper table.content-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.content-wrapper table.content-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.content-wrapper table.content-table tr:last-child td {
    border-bottom: none;
}

.content-wrapper table.content-table tr:hover td {
    background: #f8fafc;
}

/* Pricing Section */
.pricing-section {
    padding-top: 120px;
    background: linear-gradient(180deg, #f0f4ff 0%, var(--light) 30%, white 100%);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--gray);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--dark);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

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

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray);
    border-radius: 28px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(79, 70, 229, 0.15);
}

.pricing-card-featured:hover {
    box-shadow: 0 25px 60px rgba(79, 70, 229, 0.2);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
}

.pricing-name {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.price-period {
    color: var(--gray);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-features li i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pricing-collective {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

/* Honeypot anti-spam */
.hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Submit overlay (spinner) */
.submit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .step-item:not(:last-child)::after {
        display: none;
    }

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

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

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

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .email-form {
        flex-direction: column;
    }

    .badge-float {
        display: none;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
}
