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

:root {
    /* Le site n'a qu'un thème clair. Sans cette déclaration, un OS en mode sombre
       fait rendre les contrôles natifs (liste déroulée d'un <select>, barres de
       défilement…) sur fond sombre, alors que leur texte hérite de nos couleurs
       foncées : les options deviennent illisibles. */
    color-scheme: light;

    /* Brand — or du logo Vie de l'Hôtel + vert profond CodeTrail */
    --primary: #1f4d45;          /* vert CodeTrail */
    --primary-dark: #143530;
    --primary-light: #2e6b61;
    --accent: #a8823f;            /* or du logo, assombri pour le contraste sur blanc */
    --accent-dark: #8a6a2f;
    --accent-light: #d4b97a;      /* or du logo */
    --alert: #a8823f;
    --alert-dark: #8a6a2f;
    --alert-light: #d4b97a;
    --gift: #c2410c;              /* offres (essai, mois offerts) */
    --gift-bg: #fff4e6;
    --bg: #fafaf7;
    --dark: #16211f;
    --gray-900: #1e293b;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-100: #f4f3ef;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e5e2da;
    --gradient-1: linear-gradient(135deg, #1f4d45 0%, #2e6b61 50%, #d4b97a 100%);
    --gradient-2: linear-gradient(135deg, #0e211e 0%, #163a34 55%, #1f4d45 100%);
    --gradient-alert: linear-gradient(135deg, #a8823f 0%, #d4b97a 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 {
    flex-shrink: 0;
    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 {
    white-space: nowrap;
    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; }

/* Sélecteur de langue FR·PT : discret, la langue active en évidence. */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-lang a {
    font-size: 0.8rem;
    letter-spacing: 0.4px;
    color: var(--gray-700);
    opacity: 0.6;
}
.nav-lang a.is-active {
    opacity: 1;
    font-weight: 700;
    color: var(--primary);
}
.nav-lang-sep { color: var(--gray-700); opacity: 0.4; font-size: 0.8rem; }

.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(212,185,122,0.20) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,185,122,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(212,185,122,0.15);
    border: 1px solid rgba(212,185,122,0.35);
    color: #ecdcb4;
    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(31,77,69,0.08);
    border-color: rgba(31,77,69,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(168,130,63,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 { text-align: center; }
.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; }

.store-badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stores { margin-top: 2.5rem; }
.footer-stores { margin-top: 1.5rem; gap: 0.7rem; }
.footer-stores .store-badge { padding: 0.55rem 1.1rem 0.55rem 0.9rem; gap: 0.7rem; }
.footer-stores .store-badge svg { width: 24px; height: 24px; }
.footer-stores .store-badge-texte small { font-size: 0.6rem; }
.footer-stores .store-badge-texte strong { font-size: 0.9rem; }
.footer-stores .store-badge-texte em { font-size: 0.7rem; }

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.5rem 0.7rem 1.2rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
}
.store-badge:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
}
.store-badge svg { flex: none; width: 30px; height: 30px; }
.store-badge-texte { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge-texte small {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.store-badge-texte strong { font-size: 1.05rem; font-weight: 700; }
.store-badge-texte em {
    font-style: normal;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

/* ============= 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(168,130,63,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(168,130,63,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(31,77,69,0.08);
    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(168,130,63,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); }

/* Titre « Opérationnel en moins de 5 minutes » : le chrono appuie la promesse. */
.titre-chrono { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.chrono-icone {
    flex: none;
    width: 3.5rem; height: 3.5rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--accent);
}
.chrono-icone svg { width: 2rem; height: 2rem; }

/* Même promesse dans le sous-titre du hero, au fil du texte. */
.chrono-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-light);
    font-weight: 700;
    white-space: nowrap;
}
.chrono-inline svg { width: 1.15em; height: 1.15em; flex: none; }

.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(168,130,63,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(168,130,63,0.20);
}
.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(168,130,63,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; }
/* Prix et puces partagent un même bloc en ligne, centré dans la carte et aligné à
   gauche à l'intérieur : c'est la seule façon de faire commencer le « 9,90 € » et les
   puces sur la même verticale. Deux boîtes centrées séparément se caleraient chacune
   sur sa propre largeur, et les bords gauches ne tomberaient jamais au même endroit.
   La largeur du bloc est donc celle de la puce la plus longue. */
.flat-price-body {
    display: inline-block;
    text-align: left;
}
.flat-price-body .flat-price-amount { justify-content: flex-start; }
.flat-price-body .flat-price-bullets { align-items: flex-start; }
.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(168,130,63,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;
}
/* Six offres au catalogue : trois par ligne se lisent mieux qu'une bande de six
   cartes étroites, et le calibre croissant reste évident (1-3-5 puis 10-20-illimité). */
@media (min-width: 1025px) {
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
}
.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(168,130,63,0.20);
}
.plan-card--flex { background: var(--gray-100); }
.plan-card--base {
    background: var(--gray-100);
    border-style: dashed;
    border-color: var(--gray-500);
}
.plan-card--base .plan-from { font-size: 0.85rem; color: var(--gray-700); align-self: baseline; }
.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; }
/* L'attribut [hidden] doit l'emporter sur .plan-card { display:flex } */
.plan-card[hidden] { display: none; }

/* Bouton « Autres packs » */
.plans-more { display: flex; justify-content: center; margin: 1.6rem 0 0; }
.btn-more-packs {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--white); color: var(--dark);
    border: 1px solid var(--gray-300); border-radius: 999px;
    padding: 0.6rem 1.4rem; font-size: 0.92rem; font-weight: 700;
    cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-more-packs:hover { border-color: var(--gray-500); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.plans-more-chevron { transition: transform 0.2s; }
.btn-more-packs.is-open .plans-more-chevron { transform: rotate(180deg); }

.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); }
/* Seuil de rentabilité du pack : information sobre, sous le prix. Elle protège le
   visiteur d'un achat trop tôt — un pack à prix fixe reste plus cher que l'à-la-carte
   tant que le forfait de base couvre son besoin. */
.plan-breakeven {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: -0.2rem 0 0.6rem;
}

/* Dans le tunnel, la suggestion occupe toute la largeur sous le récapitulatif
   (sur la page tarifs elle est en colonne à côté du champ). */
.onboarding-reco {
    margin-top: 1rem;
    min-width: 0;
}

.quote-reco-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
/* « Non merci » : volontairement discret — c'est une sortie, pas une action mise
   en avant, et elle ne doit pas concurrencer le CTA du pack. */
.quote-reco-dismiss {
    background: none; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.82rem; font-weight: 600;
    color: #166534; opacity: 0.75; text-decoration: underline;
    padding: 0.5rem 0.2rem;
}
.quote-reco-dismiss:hover { opacity: 1; }

/* 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(168,130,63,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;
}
/* Civilité + prénom + nom : la civilité est un choix court, elle ne mérite pas
   le tiers de la ligne. */
.form-row--identity {
    grid-template-columns: 9rem 1fr 1fr;
}
/* Raison sociale + SIREN + TVA : le SIREN fait 9 chiffres, la raison sociale
   mérite la place restante. */
.form-row--company {
    grid-template-columns: 1.4fr 1fr 1.2fr;
}
.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 select,
.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);
}
/* Les exemples (adresse, ville…) doivent se lire comme des exemples : sans couleur
   déclarée, le gris par défaut du navigateur est assez foncé pour les faire passer
   pour une saisie déjà présente. */
.onboarding-form ::placeholder {
    color: var(--gray-400);
    opacity: 1; /* Firefox applique sinon une opacité par défaut qui délave la couleur */
}

/* Couleurs explicites sur le <select> et ses options : certains navigateurs
   reprennent celles du contrôle pour peindre la liste déroulée. */
.onboarding-form select { color: var(--dark); }
.onboarding-form select option { color: var(--dark); background: var(--white); }

.onboarding-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}
.onboarding-form input:focus,
.onboarding-form select:focus,
.onboarding-form textarea:focus {
    outline: none;
    border-color: var(--alert);
    box-shadow: 0 0 0 3px rgba(168,130,63,0.1);
}

/* Téléphone : indicatif pays et numéro sont deux champs distincts (transmis
   séparément à iubihub), présentés comme un seul contrôle. L'indicatif garde une
   largeur fixe pour que le numéro occupe tout le reste de la colonne. */
.phone-group {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
}
.onboarding-form .phone-group select { padding-inline: 0.6rem; }
@media (max-width: 480px) {
    .phone-group { grid-template-columns: 1fr; }
}

/* 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(168,130,63,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(168,130,63,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; }
/* Sigles expliqués : pointillé discret + infobulle native au survol. */
abbr[title] {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: help;
}

.footer-video {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.25);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.footer-video:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.45);
    color: var(--white);
}

.footer-bottom a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.75; text-decoration: underline; }

/* ============= 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-frame--video {
    width: min(95vw, 1100px);
    height: auto;
    background: #000;
}
.demo-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.demo-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.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-frame--video { height: auto; }
    .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); }
}

/* Menu + CTA + six langues ne tiennent pas sur une ligne en dessous de ~1150px :
   on passe au menu burger plutôt que de laisser les libellés se replier. */
@media (max-width: 1150px) {
    .nav-links { gap: 1.4rem; }
}
@media (max-width: 1024px) {
    .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;
    }
}

@media (max-width: 768px) {
    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; }
    .store-badges { flex-direction: column; }
    .store-badge { justify-content: center; }
    .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; }

/* ===== Comparatif logiciel vs matériel ===== */
.compare-section { background: var(--bg); padding: 5rem 0; }
.compare-scroll { overflow-x: auto; margin-top: 2.5rem; }
.compare-table {
    min-width: 640px;
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.compare-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: center;
}
.compare-row > span { padding: 0.95rem 1.2rem; font-size: 0.95rem; }
.compare-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.compare-head { background: var(--gray-100); }
.compare-head > span { font-weight: 800; color: var(--dark); font-size: 0.9rem; }
.compare-crit { font-weight: 700; color: var(--dark); }
.compare-them { color: var(--gray-500); }
.compare-them::before { content: "✕ "; color: var(--gray-300); font-weight: 700; }
.compare-us { color: var(--gray-900); background: rgba(234,88,12,0.05); }
.compare-us strong { color: var(--accent-dark); }
.compare-row:not(.compare-head) .compare-us::before { content: "✓ "; color: var(--success); font-weight: 800; }
.compare-head .compare-us { color: var(--accent-dark); background: rgba(234,88,12,0.1); }

.compare-obj-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 3.5rem 0 1.8rem;
}
.compare-obj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
    max-width: 960px;
    margin: 0 auto;
}
.compare-obj {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}
.compare-obj-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.compare-obj h4 { font-size: 1rem; font-weight: 800; color: var(--dark); margin: 0 0 0.4rem; }
.compare-obj p { font-size: 0.9rem; color: var(--gray-700); margin: 0; line-height: 1.5; }


/* =====================================================================
   VIE DE L'HÔTEL — offre temporaire, mise en avant de l'annuel, cartes
   ===================================================================== */

/* Bandeau « 1 mois d'essai gratuit » : fixé au-dessus de la navigation. */
:root { --trial-h: 42px; }
body:has(.trial-banner) { padding-top: var(--trial-h); }
body:has(.trial-banner) nav { top: var(--trial-h); }
.trial-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    height: var(--trial-h);
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    padding: 0 1rem;
    background: linear-gradient(90deg, #c2410c 0%, #ea580c 50%, #c2410c 100%);
    color: #fff; text-decoration: none; font-size: 0.92rem; white-space: nowrap; overflow: hidden;
}
.trial-banner:hover .trial-arrow { transform: translateX(3px); }
.trial-flash {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(255,255,255,0.18); border-radius: 999px;
    padding: 0.15rem 0.65rem; font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.trial-banner strong { font-weight: 900; font-size: 1rem; }
.trial-extra { opacity: 0.95; }
.trial-extra em { font-style: normal; font-weight: 800; }
.trial-arrow { transition: transform 0.15s; }
@media (max-width: 760px) { .trial-extra { display: none; } }

/* Clignotement : net mais pas agressif (pas d'extinction complète). */
.trial-blink { animation: trial-blink 1.1s steps(1, end) infinite; }
@keyframes trial-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.trial-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
    animation: trial-ping 1.4s ease-out infinite;
}
@keyframes trial-ping {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
    100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) {
    .trial-blink, .trial-dot, .trial-pill .trial-dot { animation: none; }
}

/* Pastille d'essai dans les héros (page tarifs, souscription). */
.trial-pill {
    display: inline-flex; align-items: center; gap: 0.55rem;
    background: var(--gift); color: #fff;
    padding: 0.5rem 1.2rem; border-radius: 999px;
    font-size: 0.95rem; font-weight: 600; margin-bottom: 1.4rem;
    box-shadow: 0 8px 24px rgba(194,65,12,0.35);
}
.trial-pill strong { font-weight: 900; }

/* Logos */
.hero-logo { width: min(360px, 80%); height: auto; display: block; margin: 0 0 2rem; }
.footer-logo { width: 190px; height: auto; display: block; margin-bottom: 1rem; }

/* Avantages de l'offre sous le titre de la page tarifs */
.pricing-perks {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.6rem 1.4rem; margin: 1.4rem 0 0; padding: 0; color: rgba(255,255,255,0.92);
}
.pricing-perks li { font-size: 0.98rem; }
.pricing-perks strong { color: #fff; }

/* « 2 mois offerts » : très visible, cliquable, et qui s'illumine en annuel. */
.billing-toggle { flex-wrap: wrap; margin-top: 2rem; }
.billing-opt { cursor: pointer; font-size: 1.05rem; }
.billing-gift {
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--gift-bg); color: var(--gift);
    border: 2px solid #fdba74; border-radius: 999px;
    padding: 0.4rem 1rem; font-size: 1.05rem; font-weight: 900;
    transform: rotate(-2deg);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 0.2s, background 0.2s, color 0.2s;
}
.billing-gift:hover { transform: rotate(0) scale(1.05); }
.billing-toggle.is-annual .billing-gift {
    background: var(--gift); color: #fff; border-color: var(--gift); transform: rotate(0) scale(1.08);
}
.billing-switch input:checked + .billing-slider { background: var(--gift); }
.billing-hint { margin: 0.9rem 0 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.billing-hint strong { color: #fff; }

/* Sélecteur Mensuel / Annuel dans chaque carte, synchronisé avec celui du haut. */
.card-billing {
    display: flex; gap: 0.25rem; margin: 0.4rem 0 1rem; padding: 0.25rem;
    background: var(--gray-100); border-radius: 999px;
}
.card-billing-opt {
    flex: 1; border: 0; border-radius: 999px; padding: 0.45rem 0.6rem;
    background: transparent; color: var(--dark); font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s, color 0.2s;
}
.card-billing-opt:hover { background: rgba(0,0,0,0.05); }
.card-billing-opt.is-active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.card-billing-opt[data-card-billing="year"].is-active { background: var(--gift); color: #fff; }
.card-billing-opt:focus-visible { outline: 2px solid var(--alert); outline-offset: 2px; }

/* Cartes : 3 packs + « sur mesure » */
@media (min-width: 1025px) {
    .plans-grid--four { grid-template-columns: repeat(4, 1fr); }
}
.plan-card--featured { border-color: var(--accent); box-shadow: 0 18px 44px rgba(168,130,63,0.22); }
.plan-badge { background: var(--accent); }
.plan-card--custom { background: var(--gray-100); border-style: dashed; border-color: var(--gray-500); }
.plan-amount--text { font-size: 1.7rem; }
.plan-saving {
    display: flex; align-items: center; gap: 0.4rem;
    background: var(--gift-bg); color: var(--gift);
    border-radius: 10px; padding: 0.45rem 0.7rem; margin: 0.2rem 0 0.6rem;
    font-size: 0.85rem; font-weight: 600; transition: background 0.2s, color 0.2s;
}
.plan-saving strong { color: var(--gift); font-weight: 900; }
.plan-saving.is-active { background: var(--gift); color: #fff; }
.plan-saving.is-active strong { color: #fff; }

/* Récapitulatif de souscription */
.pack-recap-gift {
    background: var(--gift-bg); color: var(--gift); border-radius: 10px;
    padding: 0.6rem 0.8rem; margin: 0.6rem 0; font-weight: 600;
}
.pack-recap-upsell {
    display: block; margin: 0.8rem 0 0.2rem; padding: 0.6rem 0.8rem;
    border: 2px dashed #fdba74; border-radius: 10px;
    background: var(--gift-bg); color: var(--gift); text-decoration: none; font-weight: 600;
}
.pack-recap-upsell:hover { background: #ffedd5; }

/* Accueil : hôtellerie / restauration */
.split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.split-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 18px;
    padding: 2rem; box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.split-card h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 0.8rem; }
.split-card p { color: var(--gray-700); line-height: 1.6; margin-bottom: 1rem; }
.split-card ul { list-style: none; padding: 0; }
.split-card li { padding: 0.3rem 0; color: var(--gray-700); }

/* Héros de la page tarifs : tout centré (pastille, titre, avantages, bascule). */
.pricing-hero .section-container { text-align: center; }
.pricing-hero .pricing-subtitle { margin-left: auto; margin-right: auto; }
