@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Brand — directement repris du logo */
    --primary: #1e5b9c;          /* bleu du "PTI" */
    --primary-dark: #154173;
    --primary-light: #2c7bc6;
    --accent: #ea580c;            /* orange des ondes */
    --accent-dark: #c2410c;
    --accent-light: #fb923c;
    --alert: #ea580c;
    --alert-dark: #c2410c;
    --alert-light: #fb923c;
    --bg: #fafbfc;
    --dark: #1a2332;              /* gris-charbon du bouclier */
    --gray-900: #1e293b;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #1e5b9c 0%, #2c7bc6 50%, #ea580c 100%);
    --gradient-2: linear-gradient(135deg, #0f1a2e 0%, #1a2332 50%, #1e3a5f 100%);
    --gradient-alert: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* Certifications — tampons */
.cert-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 3rem;
}
.cert-stamp {
    width: 170px;
    height: 170px;
    color: var(--white);
    opacity: 0.9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.cert-stamp:hover { transform: scale(1.05); opacity: 1; }
.cert-ring-o { fill: none; stroke: currentColor; stroke-width: 5; }
.cert-ring-i { fill: none; stroke: currentColor; stroke-width: 1.5; }
.cert-dot { fill: currentColor; }
.cert-arc {
    fill: currentColor;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    text-anchor: middle;
}
.cert-main {
    fill: currentColor;
    font-weight: 900;
    font-size: 42px;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .cert-badges { gap: 1.5rem; }
    .cert-stamp { width: 130px; height: 130px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg);
}

a { color: inherit; }

/* ============= NAVIGATION ============= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.6rem 0;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--primary);
    font-weight: 800;
}
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.35rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1;
}
@media (max-width: 768px) {
    .logo-img { height: 32px; }
    .logo-text { font-size: 1.1rem; }
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
    background: var(--alert);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--alert-dark) !important; color: white !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: all .3s; }

/* ============= HERO ============= */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-2);
    padding-top: 7rem;
    padding-bottom: 3rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(220,38,38,0.18) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(26,122,58,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220,38,38,0.15);
    border: 1px solid rgba(220,38,38,0.3);
    color: #fca5a5;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge:not(.light) {
    font-size: 1rem;
    padding: 0.5rem 1.15rem;
}
.hero-badge.light {
    background: rgba(26,122,58,0.1);
    border-color: rgba(26,122,58,0.3);
    color: var(--primary);
}
.hero-badge.light.orange {
    background: rgba(234,88,12,0.1);
    border-color: rgba(234,88,12,0.3);
    color: var(--accent);
    font-size: 1rem;
    padding: 0.5rem 1.15rem;
}
.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--alert);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    letter-spacing: -1.5px;
}
.hero h1 .highlight {
    background: var(--gradient-alert);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--alert);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--alert-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220,38,38,0.3);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s;
    cursor: pointer;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}
.btn-secondary-dark {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--white); color: var(--dark);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--gray-300);
    transition: all 0.3s;
}
.btn-secondary-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-white {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--white);
    color: var(--alert);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.hero-stat h3 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}
.hero-stat p { color: rgba(255,255,255,0.5); font-size: 0.9rem; font-weight: 500; }

/* ============= SECTIONS ============= */
section { padding: 6rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-container.narrow { max-width: 800px; }

.section-label {
    display: inline-block;
    color: var(--alert);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 700px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ============= FEATURES ============= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-alert);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    border-color: var(--alert);
    box-shadow: 0 15px 40px rgba(220,38,38,0.1);
    transform: translateY(-3px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
    background: rgba(220,38,38,0.08);
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.feature-tag {
    background: rgba(26,122,58,0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============= USE CASES ============= */
.usecases-light {
    background: linear-gradient(180deg, #fef2f2 0%, var(--bg) 100%);
}
.usecase-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.usecase-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.usecase-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-alert);
    opacity: 0;
    transition: opacity 0.3s;
}
.usecase-card:hover {
    border-color: var(--alert);
    box-shadow: 0 15px 40px rgba(220,38,38,0.08);
    transform: translateY(-3px);
}
.usecase-card:hover::before { opacity: 1; }
.usecase-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.usecase-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.usecase-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============= WORKFLOW ============= */
.workflow-section {
    background: var(--dark);
    color: var(--white);
}
.workflow-section .section-label { color: var(--accent); }
.workflow-section .section-title { color: var(--white); }
.workflow-section .section-subtitle { color: rgba(255,255,255,0.5); }

.workflow-pipeline {
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 2rem 0;
    margin-top: 1rem;
}
.workflow-step {
    flex: 0 0 auto;
    text-align: center;
    padding: 1.5rem 1rem;
    min-width: 150px;
    position: relative;
}
.workflow-step::after {
    content: '\2192';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
}
.workflow-step:last-child::after { display: none; }
.step-number {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.8rem;
    font-weight: 800;
    font-size: 1rem;
}
.workflow-step h4 { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.workflow-step p { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ============= PRICING ============= */
.pricing-teaser, .pricing-section { background: var(--gray-100); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.pricing-grid--full { gap: 2rem; }

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 18px;
    padding: 2rem;
    text-align: left;
    position: relative;
    transition: all 0.3s;
}
.pricing-card.is-primary {
    border-color: var(--alert);
    box-shadow: 0 20px 40px rgba(220,38,38,0.12);
    transform: scale(1.02);
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.pricing-card.is-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 50px rgba(220,38,38,0.18);
}
.pricing-badge {
    position: absolute;
    top: -12px; right: 20px;
    background: var(--gradient-alert);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pricing-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.pricing-target {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.4rem;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}
.pricing-price .amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1px;
}
.pricing-price .period {
    font-size: 0.85rem;
    color: var(--gray-500);
}
.pricing-setup {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 1.2rem;
}
.pricing-setup--free { color: var(--success); font-weight: 600; }

.pricing-features {
    list-style: none;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pricing-features li {
    font-size: 0.88rem;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}
.pricing-features li.not-included {
    color: var(--gray-500);
    text-decoration: line-through;
}
.pricing-features .check {
    color: var(--success);
    font-weight: 800;
    flex-shrink: 0;
}
.pricing-features .cross {
    color: var(--gray-300);
    font-weight: 800;
    flex-shrink: 0;
}
.pricing-cta {
    width: 100%;
    justify-content: center;
}
.pricing-footnote {
    text-align: center;
    margin-top: 2.5rem;
}
.pricing-footnote a {
    color: var(--alert);
    font-weight: 600;
    text-decoration: none;
}
.pricing-footnote a:hover { text-decoration: underline; }

/* Pricing page hero */
.pricing-hero, .onboarding-hero, .success-hero, .legal-hero {
    background: var(--gradient-2);
    padding-top: 9rem;
    padding-bottom: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.pricing-hero::before, .onboarding-hero::before, .success-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(220,38,38,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.pricing-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.pricing-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============= FLAT PRICE CARD ============= */
.flat-price-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 22px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 18px 50px rgba(30,91,156,0.08);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}
.flat-price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-1);
}
.flat-price-card--big { padding: 3rem 2.5rem; }
.flat-price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.flat-price-amount .amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.flat-price-amount .period {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 600;
}
.flat-price-tagline {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.6rem;
}
.flat-price-bullets {
    list-style: none;
    margin: 1.2rem 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}
.flat-price-bullets li {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}
.flat-price-bullets--two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1.5rem;
    text-align: left;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ============= QUOTE CALCULATOR ============= */
.quote-calculator {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 18px;
    padding: 2rem;
    margin-top: 2.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.quote-calculator h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.2rem;
}
.quote-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.quote-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    flex-shrink: 0;
}
.quote-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    max-width: 200px;
}
.quote-row input:focus {
    outline: none;
    border-color: var(--alert);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.quote-result {
    background: var(--gray-100);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.4rem;
}
.quote-line {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}
.quote-line strong { color: var(--dark); font-weight: 700; }
.quote-line.total {
    border-top: 1px solid var(--gray-300);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-size: 1.05rem;
}
.quote-line.total strong { color: var(--alert); font-size: 1.2rem; font-weight: 900; }
.quote-cta { width: 100%; justify-content: center; }

.pricing-example {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 18px;
    padding: 2rem;
    margin-top: 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.pricing-example h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.8rem;
}
.pricing-example-intro {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 1.2rem;
}
.pricing-example-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 1.2rem 1.4rem;
    background: var(--gray-100);
    border-radius: 12px;
}
.pricing-example-lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: var(--gray-700);
}
.pricing-example-lines li strong { color: var(--dark); font-weight: 700; }
.pricing-example-lines li.pricing-example-total {
    border-top: 1px solid var(--gray-300);
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    font-size: 1.05rem;
}
.pricing-example-lines li.pricing-example-total strong {
    color: var(--alert);
    font-size: 1.2rem;
    font-weight: 900;
}
.pricing-example-note {
    font-size: 0.85rem;
    color: var(--gray-700);
    font-style: italic;
    margin: 0;
}

/* ===== Packs / plans ===== */
.hero-from {
    color: #fff;
    margin: 1.4rem 0 0;
    font-size: 1.15rem;
    font-weight: 600;
}
.hero-from strong { font-size: 2.8rem; font-weight: 900; color: #fff; margin: 0 0.2rem; }
.hero-from-period { color: rgba(255, 255, 255, 0.8); font-size: 1rem; font-weight: 500; }

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
}
.billing-opt { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.billing-opt.is-active { color: #fff; }
.billing-opt em { font-style: normal; font-weight: 700; color: #ffd9c2; }
.billing-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.billing-switch input { opacity: 0; width: 0; height: 0; }
.billing-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.35); border-radius: 999px; transition: 0.2s;
}
.billing-slider::before {
    content: ""; position: absolute; height: 22px; width: 22px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: 0.2s;
}
.billing-switch input:checked + .billing-slider { background: var(--alert); }
.billing-switch input:checked + .billing-slider::before { transform: translateX(22px); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.plan-card--featured {
    border: 2px solid var(--alert);
    box-shadow: 0 18px 44px rgba(220,38,38,0.18);
}
.plan-card--flex { background: var(--gray-100); }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--alert); color: #fff; font-size: 0.78rem; font-weight: 800;
    padding: 0.3rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.plan-head h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin: 0 0 0.3rem; }
.plan-tagline { font-size: 0.88rem; color: var(--gray-700); margin: 0 0 1rem; min-height: 2.2em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.2rem; }
.plan-from { font-size: 0.85rem; color: var(--gray-700); }
.plan-amount { font-size: 2rem; font-weight: 900; color: var(--dark); }
.plan-period { font-size: 0.85rem; color: var(--gray-700); }
.plan-ttc { font-size: 0.85rem; color: var(--gray-700); margin: 0.1rem 0 0.5rem; }
.plan-ttc strong { color: var(--dark); font-weight: 700; }
.plan-vat-note { color: var(--gray-500); }
.plan-peragent { font-size: 0.85rem; color: var(--gray-700); margin: 0.1rem 0 0.6rem; }
.plan-saving { font-size: 0.85rem; color: var(--gray-700); margin: 0 0 1rem; }
.plan-saving-strike { text-decoration: line-through; opacity: 0.7; }
.plan-saving strong { color: #15803d; font-weight: 800; }
.plan-features { list-style: none; margin: 0 0 1.4rem; padding: 0; flex: 1; }
.plan-features li { font-size: 0.9rem; color: var(--gray-700); padding: 0.32rem 0; }
.plan-features strong { color: var(--dark); }
.plan-cta { width: 100%; justify-content: center; margin-top: auto; }
.plans-note { text-align: center; font-size: 0.92rem; color: var(--gray-700); margin: 1.8rem 0 0; }

.quote-reco {
    flex: 1; min-width: 280px;
    background: #ecfdf3; border: 2px solid #6ee7a8; border-radius: 12px;
    padding: 0.85rem 1.1rem; color: #166534;
    box-shadow: 0 6px 18px rgba(22,101,52,0.14);
    animation: reco-pop 0.25s ease;
}
@keyframes reco-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.quote-reco-head { font-size: 1rem; font-weight: 800; color: #14532d; line-height: 1.3; }
.quote-reco-head strong { color: #14532d; }
.quote-reco-body { font-size: 0.85rem; color: #166534; margin: 0.25rem 0 0.7rem; line-height: 1.4; }
.quote-reco-body strong { color: #14532d; font-weight: 800; }
.quote-reco-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: #15803d; color: #fff; font-weight: 700; font-size: 0.88rem;
    padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
    transition: filter 0.15s ease;
}
.quote-reco-cta:hover { filter: brightness(1.08); }

/* Récap pack dans l'onboarding */
.pack-recap {
    background: var(--gray-100); border: 1px solid var(--gray-300);
    border-radius: 14px; padding: 1.3rem 1.4rem;
}
.pack-recap-head strong { font-size: 1.15rem; color: var(--dark); }
.pack-recap-head span { display: block; font-size: 0.88rem; color: var(--gray-700); margin-top: 0.2rem; }
.pack-recap-list { list-style: none; margin: 0.9rem 0; padding: 0; }
.pack-recap-list li { font-size: 0.92rem; color: var(--gray-700); padding: 0.28rem 0; }
.pack-recap-list strong { color: var(--dark); }
.pack-recap-line {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.3rem 0; font-size: 0.95rem; color: var(--gray-700);
}
.pack-recap-line:first-of-type { border-top: 1px solid var(--gray-300); padding-top: 0.9rem; }
.pack-recap-line strong { color: var(--dark); font-weight: 700; }
.pack-recap-total {
    display: flex; justify-content: space-between; align-items: baseline;
    border-top: 1px solid var(--gray-300); margin-top: 0.3rem; padding-top: 0.9rem; font-size: 1rem; color: var(--gray-700);
}
.pack-recap-total strong { font-size: 1.3rem; font-weight: 900; color: var(--alert); }
.pack-recap-change { display: inline-block; margin-top: 0.9rem; font-size: 0.88rem; color: var(--gray-700); }

/* Popup CGV / RGPD */
.legal-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.legal-modal.is-open { display: block; }
.legal-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 30, 0.6); }
.legal-modal-box {
    position: absolute; top: 5vh; left: 50%; transform: translateX(-50%);
    width: min(900px, 92vw); height: 90vh; background: #fff; border-radius: 16px;
    overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    display: flex; flex-direction: column;
}
.legal-modal-close {
    position: absolute; top: 10px; right: 14px; z-index: 2;
    border: none; background: rgba(0, 0, 0, 0.06); width: 36px; height: 36px;
    border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--dark);
}
.legal-modal-close:hover { background: rgba(0, 0, 0, 0.12); }
.legal-modal-frame { flex: 1; width: 100%; border: 0; }
body.modal-locked { overflow: hidden; }

/* Confirmation de souscription : sous-titre centré */
.success-hero { text-align: center; }
.success-hero .pricing-subtitle {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ============= BUNDLE GRID (toutes fonctionnalités incluses) ============= */
.bundle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 2rem;
    margin-top: 2rem;
}
.bundle-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.5;
    padding: 0.6rem 0;
}
.bundle-check {
    width: 24px; height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

/* Live summary (onboarding) */
.live-summary {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
}
.live-summary .ls-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.live-summary .ls-row strong { color: var(--dark); }
.live-summary .ls-row.total {
    border-top: 1px solid var(--gray-300);
    margin-top: 0.4rem;
    padding-top: 0.7rem;
    font-size: 1rem;
}
.live-summary .ls-row.total strong { color: var(--alert); font-weight: 900; font-size: 1.15rem; }

/* ============= ADDONS ============= */
.addons-section { background: var(--white); }
.addons-section--alt { background: var(--gray-100); }
.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.addon-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}
.addon-card:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}
.addon-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.addon-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.addon-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}
.addon-price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.addon-price .amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}
.addon-price .period {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ============= SECURITY / CONFORMITE ============= */
.security-section {
    background: linear-gradient(135deg, #0a2e1a 0%, #1a3a2a 100%);
    color: white;
}
.security-section .section-label { color: var(--success); }
.security-section .section-title { color: white; }
.security-section .section-subtitle { color: rgba(255,255,255,0.55); }
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.security-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}
.security-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(220,38,38,0.3);
}
.security-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.security-item p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* ============= OTHER PROJECTS ============= */
.other-projects {
    background: var(--white);
    padding: 5rem 2rem;
}
.op-card {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f1f5f9 0%, #e8eef7 100%);
    border: 1px solid var(--gray-300);
    border-radius: 22px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.op-card::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(234,88,12,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.op-text { position: relative; z-index: 1; }
.op-text .section-label { color: var(--accent); }
.op-text h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0.4rem 0 1rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.op-text > p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.4rem;
    max-width: 580px;
}
.op-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.op-tag {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--dark);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}
.op-cta {
    text-align: center;
    position: relative;
    z-index: 1;
}
.op-cta .btn-primary {
    width: 100%;
    justify-content: center;
}
.op-cta-help {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}
@media (max-width: 900px) {
    .op-card { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
    .op-text h2 { font-size: 1.5rem; }
}

/* ============= CTA ============= */
.cta-section {
    background: var(--gradient-alert);
    text-align: center;
    padding: 5rem 2rem;
    color: white;
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* ============= ONBOARDING ============= */
.onboarding-section { background: var(--gray-100); padding-bottom: 7rem; }

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: var(--alert-dark);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}
.alert-warning {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
}
.alert-success {
    background: #ecfdf3;
    border: 1px solid #6ee7a8;
    color: #166534;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.onboarding-form {
    background: var(--white);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-300);
}
.onboarding-form fieldset {
    border: none;
    padding: 0 0 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}
.onboarding-form fieldset:last-of-type { border-bottom: none; }

.onboarding-form legend {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--alert);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.legend-help {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: -0.5rem 0 1rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-row label, .onboarding-form label.full {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.onboarding-form label.full {
    margin-bottom: 1rem;
}
.onboarding-form label > span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.onboarding-form input[type="text"],
.onboarding-form input[type="email"],
.onboarding-form input[type="tel"],
.onboarding-form input[type="number"],
.onboarding-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
}
.onboarding-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}
.onboarding-form input:focus,
.onboarding-form textarea:focus {
    outline: none;
    border-color: var(--alert);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* Honeypot anti-bot : retiré du flux et invisible, mais pas display:none (certains
   bots ignorent les champs masqués ainsi ; on le sort juste de l'écran). */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Plan selector */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.plan-radio { cursor: pointer; }
.plan-radio input { display: none; }
.plan-radio-card {
    border: 2px solid var(--gray-300);
    border-radius: 14px;
    padding: 1.2rem;
    transition: all 0.2s;
    background: var(--white);
    position: relative;
}
.plan-radio input:checked + .plan-radio-card {
    border-color: var(--alert);
    background: #fef2f2;
    box-shadow: 0 8px 20px rgba(220,38,38,0.12);
}
.plan-radio-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.plan-radio-card p {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
}
.plan-radio-card strong {
    font-size: 1.1rem;
    color: var(--alert);
    font-weight: 800;
}
.plan-radio-card strong small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-left: 0.3rem;
}
.plan-radio-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--alert);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-weight: 700;
}

/* Addons */
.addons-pick { display: flex; flex-direction: column; gap: 0.5rem; }
.addons-pick-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.addon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}
.addon-chip:has(input:checked) {
    border-color: var(--alert);
    background: #fef2f2;
    color: var(--alert-dark);
}
.addon-chip input { accent-color: var(--alert); }

.check-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
}
.check-line input[type="checkbox"] { margin-top: 0.25rem; accent-color: var(--alert); }
.check-line a { color: var(--alert); text-decoration: none; font-weight: 600; }
.check-line a:hover { text-decoration: underline; }

/* Payment method selector */
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.pay-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.2s;
    background: var(--white);
}
.pay-option:has(input:checked) {
    border-color: var(--alert);
    background: #fef2f2;
    box-shadow: 0 6px 16px rgba(220,38,38,0.12);
}
.pay-option input[type="radio"] { accent-color: var(--alert); }
.pay-panel[hidden] { display: none; }

.submit-cta {
    width: 100%;
    justify-content: center;
    padding: 1.05rem 2rem;
    font-size: 1.05rem;
    margin-top: 1rem;
}
.submit-help {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 0.8rem;
    line-height: 1.5;
}

/* ============= SUCCESS ============= */
.success-hero { text-align: center; }
.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 20px 40px rgba(16,185,129,0.3);
}
.success-hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.success-section { background: var(--gray-100); padding-top: 3rem; }

.success-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.2rem;
}
.success-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.success-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.success-recap {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 1.8rem;
    margin-top: 2rem;
}
.success-recap h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}
.success-recap table {
    width: 100%;
    border-collapse: collapse;
}
.success-recap td {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}
.success-recap td:first-child {
    color: var(--gray-500);
    width: 35%;
}
.success-recap tr:last-child td { border-bottom: none; }
.success-next { text-align: center; margin-top: 2rem; }

/* ============= FOOTER ============= */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.5);
    padding: 4rem 2rem 0;
    font-size: 0.9rem;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-grid h4 {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.footer-grid h5 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-grid a:hover { color: white; }
.footer-grid p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}
.footer-bottom strong { color: white; font-weight: 700; }

/* ============= DEMO MODAL ============= */
.demo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.demo-modal.is-open { display: flex; }
.demo-modal[aria-hidden="false"] { display: flex; }
body.demo-locked { overflow: hidden; }

.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 22, 0.88);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.demo-frame {
    position: relative;
    width: min(95vw, 1040px);
    height: min(90vh, 720px);
    background: linear-gradient(135deg, #0f1a2e 0%, #1a2332 100%);
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.demo-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
}
.demo-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}
.demo-modal.is-open .demo-progress-bar.is-animating {
    animation: demo-progress 8s linear forwards;
}
@keyframes demo-progress {
    from { width: 0%; }
    to { width: 100%; }
}

.demo-close, .demo-prev, .demo-next {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
    font-family: inherit;
}
.demo-close:hover, .demo-prev:hover, .demo-next:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}
.demo-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
    line-height: 1;
}
.demo-prev, .demo-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
}
.demo-prev { left: 16px; }
.demo-next { right: 16px; }
.demo-prev:hover, .demo-next:hover { transform: translateY(-50%) scale(1.05); }

.demo-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.demo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 5rem;
}
.demo-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.demo-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}
.demo-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    text-align: center;
    padding: 0.6rem 1.2rem 0.4rem;
    max-width: 720px;
    line-height: 1.5;
}
.demo-caption strong { color: var(--accent-light); }

.demo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.demo-dot.is-active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ============= PHONE FRAME ============= */
.phone-frame {
    width: 280px;
    background: #1a1a1a;
    border-radius: 38px;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}
.phone-frame--dark .phone-screen {
    background: #0a0e1a;
    color: white;
}
.phone-screen {
    background: #fafbfc;
    border-radius: 30px;
    height: 540px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: #1a1a1a;
    border-radius: 14px;
    z-index: 5;
}
.phone-statusbar {
    padding: 14px 20px 4px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark);
    z-index: 1;
}
.phone-frame--dark .phone-statusbar { color: rgba(255, 255, 255, 0.85); }

.phone-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.phone-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}
.phone-avatar.small { width: 32px; height: 32px; font-size: 0.7rem; }
.phone-id strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 700;
}
.phone-id small {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ----- Slide 1 : SOS ----- */
.sos-screen {
    text-align: center;
}
.sos-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-top: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.sos-button-wrap {
    margin: 1.5rem auto;
    width: 160px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sos-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff5757, #c2410c);
    color: white;
    border: none;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.45), inset 0 -8px 20px rgba(0,0,0,0.18), inset 0 4px 10px rgba(255,255,255,0.25);
    cursor: pointer;
    z-index: 2;
    position: relative;
    animation: sos-press 2.4s ease-in-out infinite;
}
.sos-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(220, 38, 38, 0.4);
    animation: sos-pulse 2.4s ease-out infinite;
}
.sos-ring--2 { animation-delay: 0.8s; }
.sos-ring--3 { animation-delay: 1.6s; }
@keyframes sos-pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}
@keyframes sos-press {
    0%, 60%, 100% { transform: scale(1); }
    65% { transform: scale(0.92); }
    70% { transform: scale(1.04); }
}
.sos-help {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.5;
    padding: 0 1.2rem;
}
.sos-coords {
    margin-top: auto;
    padding: 0.8rem;
    font-size: 0.7rem;
    color: var(--gray-700);
    font-weight: 600;
    background: rgba(30, 91, 156, 0.06);
    border-top: 1px solid rgba(30, 91, 156, 0.12);
}

/* ----- Slide 2 : Chute ----- */
.fall-screen {
    text-align: center;
    padding: 0;
}
.fall-banner {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 2.4rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.fall-icon {
    font-size: 4.5rem;
    margin: 1rem 0;
    animation: fall-shake 1.6s ease-in-out infinite;
}
@keyframes fall-shake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
.fall-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}
.fall-countdown {
    background: rgba(234, 88, 12, 0.08);
    margin: 0 1rem 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(234, 88, 12, 0.3);
}
.fall-timer {
    display: block;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.fall-timer small { font-size: 1rem; font-weight: 600; margin-left: 0.2rem; }
.fall-countdown small {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.4rem;
}
.fall-btn {
    display: block;
    margin: 0.5rem 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
}
.fall-btn--ok {
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}
.fall-btn--alert {
    background: var(--accent);
    color: white;
}

/* ----- Slide 3 : Map ----- */
.map-screen {
    padding: 0;
    position: relative;
    background: #1f2937;
    overflow: hidden;
}
.map-grid {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 60% 40%, #2a3a5e 0%, #1a2332 60%),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 40px 40px;
}
.map-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 49%, rgba(234,88,12,0.18) 49.5%, rgba(234,88,12,0.18) 50.5%, transparent 51%) 0 0 / 200px 200px,
        linear-gradient(-45deg, transparent 49%, rgba(30,91,156,0.18) 49.5%, rgba(30,91,156,0.18) 50.5%, transparent 51%) 0 0 / 240px 240px;
    opacity: 0.5;
}
.map-trail span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.45);
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
    z-index: 2;
}
.map-pin {
    position: absolute;
    top: 35%;
    left: 52%;
    z-index: 3;
}
.map-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.3);
    transform: translate(-50%, -50%);
    animation: map-pulse 1.8s ease-out infinite;
}
@keyframes map-pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
.map-pin-dot {
    position: relative;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    text-align: center;
    line-height: 36px;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.55), 0 0 0 3px rgba(234, 88, 12, 0.25);
    z-index: 4;
}
.map-pin-label {
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.map-side {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 220px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    z-index: 5;
}
.map-side h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gray-500);
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.map-agent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.7rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid var(--gray-100);
}
.map-agent strong { display: block; font-size: 0.85rem; color: var(--dark); }
.map-agent small { display: block; font-size: 0.7rem; color: var(--gray-500); }
.map-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.78rem;
    color: var(--gray-700);
}
.map-stat b { color: var(--dark); font-weight: 700; }
.map-stat b.ok { color: var(--success); }

/* ----- Slide 4 : Notifications ----- */
.notif-screen {
    padding: 1.6rem 0.8rem;
    text-align: center;
    background: linear-gradient(180deg, #0a0e1a 0%, #1a2332 100%);
}
.notif-time {
    font-size: 3.4rem;
    font-weight: 200;
    color: white;
    line-height: 1;
    letter-spacing: -2px;
}
.notif-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.notif-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
}
.notif-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    text-align: left;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: notif-in 0.6s ease forwards;
}
.notif-card--sms { animation-delay: 0.2s; }
.notif-card--email { animation-delay: 1.4s; }
.notif-card--push { animation-delay: 2.6s; }
@keyframes notif-in {
    to { opacity: 1; transform: translateY(0); }
}
.notif-card--sms { border-left: 3px solid var(--accent); }
.notif-card--email { border-left: 3px solid var(--primary-light); }
.notif-card--push { border-left: 3px solid var(--success); }

.notif-card-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
}
.notif-card-head strong { font-size: 0.78rem; color: white; }
.notif-card-head small {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
}
.notif-card p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    margin: 0;
}

/* ============= BROWSER FRAME ============= */
.browser-frame {
    width: min(720px, 90%);
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.9rem;
    background: #2a2a2a;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
    flex: 1;
    background: #1a1a1a;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    text-align: center;
}
.browser-content {
    background: #f3f4f6;
    height: 480px;
    padding: 1.2rem 1.4rem;
    overflow: hidden;
    color: var(--gray-900);
    position: relative;
}
.browser-content h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}
.browser-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1rem 0 0.6rem;
}

/* ----- Slide 5 : Rounds ----- */
.rounds-card {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.rounds-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}
.rounds-card-head strong { font-size: 0.95rem; color: var(--dark); }
.rounds-tag {
    font-size: 0.65rem;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.rounds-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.rounds-block {
    flex: 1;
    background: var(--gray-100);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
}
.rounds-block small {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.rounds-block strong { font-size: 0.78rem; color: var(--dark); }
.rounds-arrow { color: var(--gray-500); font-size: 1rem; }
.rounds-active {
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 700;
}
.rounds-log-title { margin-top: 0.6rem !important; }
.rounds-log {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    overflow: hidden;
}
.rounds-log-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.78rem;
}
.rounds-log-row:last-child { border-bottom: none; }
.rounds-log-row--new {
    background: rgba(16, 185, 129, 0.08);
    animation: rounds-flash 1.6s ease;
}
@keyframes rounds-flash {
    0%, 100% { background: rgba(16, 185, 129, 0.08); }
    50% { background: rgba(16, 185, 129, 0.22); }
}
.rounds-log-time {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--gray-500);
    flex-shrink: 0;
}
.rounds-log-row > span:nth-child(2) { flex: 1; }
.rounds-log-status {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.rounds-log-status.ok {
    background: #ecfdf5;
    color: var(--success);
}

/* ----- Slide 6 : Dashboard ----- */
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.kpi {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
}
.kpi strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}
.kpi strong.alert { color: var(--accent); animation: kpi-pulse 1.6s ease infinite; }
@keyframes kpi-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.kpi small {
    display: block;
    font-size: 0.68rem;
    color: var(--gray-500);
    margin-top: 0.3rem;
    font-weight: 500;
}
.dash-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.78rem;
}
.dash-table th {
    background: var(--gray-100);
    padding: 0.55rem 0.8rem;
    text-align: left;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    font-weight: 700;
}
.dash-table td {
    padding: 0.55rem 0.8rem;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-700);
}
.dash-table td.alert {
    color: var(--accent);
    font-weight: 800;
}
.dash-table td.ok { color: var(--success); font-weight: 600; }
.dash-table td.paused { color: var(--warning); font-weight: 600; }
.dash-table tr.alert-row {
    background: rgba(234, 88, 12, 0.08);
    animation: dash-flash 1.8s ease infinite;
}
@keyframes dash-flash {
    0%, 100% { background: rgba(234, 88, 12, 0.08); }
    50% { background: rgba(234, 88, 12, 0.18); }
}

/* ============= DEMO RESPONSIVE ============= */
@media (max-width: 768px) {
    .demo-frame { height: 92vh; border-radius: 16px; }
    .demo-slide { padding: 0.6rem 1rem 0; }
    .demo-prev, .demo-next { width: 36px; height: 36px; font-size: 1.3rem; }
    .demo-prev { left: 8px; }
    .demo-next { right: 8px; }
    .demo-caption { font-size: 0.82rem; }
    .phone-frame { transform: scale(0.85); transform-origin: top center; }
    .browser-frame { transform: scale(0.78); transform-origin: top center; }
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    .features-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid, .addons-grid, .plan-selector { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all .3s cubic-bezier(.4,0,.2,1);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    section { padding: 4rem 1.2rem; }
    .hero h1 { font-size: 2.1rem; }
    .pricing-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; flex-direction: column; }
    .hero-buttons { flex-direction: column; }
    .features-grid, .security-grid, .addons-grid,
    .pricing-grid, .usecase-cards, .plan-selector,
    .form-row, .footer-grid { grid-template-columns: 1fr; }
    .pricing-card.is-primary { transform: none; }
    .workflow-pipeline { flex-wrap: wrap; justify-content: center; }
}

/* ===== Legal pages (CGV / RGPD) ===== */
.legal-section {
    padding: 3.5rem 0 4.5rem;
    background: var(--white);
}
.legal-content {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.98rem;
}
.legal-content .legal-intro {
    font-size: 1.05rem;
    color: var(--gray-900);
    background: var(--gray-100);
    border-left: 4px solid var(--alert);
    border-radius: 0 10px 10px 0;
    padding: 1.1rem 1.3rem;
    margin-bottom: 2rem;
}
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 2rem 0 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-300);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 0; }
.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.5rem;
}
.legal-content p { margin-bottom: 0.9rem; }
.legal-content ul {
    margin: 0 0 1rem;
    padding-left: 1.3rem;
    list-style: disc;
}
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--alert); font-weight: 600; text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-editor {
    margin-top: 2.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--gray-100);
    border-radius: 12px;
}
.legal-editor .legal-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.8rem;
    margin-bottom: 0;
}
.legal-back { margin-top: 2.5rem; }
