/* Page d'accueil — voir tokens.css pour les couleurs, tailles et espacements. */

/* ==========================================================================
   Hero Section (Clean, Bold, Slogan & Promise Front and Center)
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.15fr 0.95fr;
        gap: 4rem;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-content {
        align-items: flex-start;
        text-align: left;
        max-width: none;
        margin: 0;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    background: var(--status-success-bg);
    border: 1px solid var(--status-success-border);
    color: var(--status-success-text);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.badge-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--status-success);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (max-width: 479.98px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    .hero-promise {
        font-size: var(--text-xl);
    }
    .hero-subtitle {
        font-size: var(--text-base);
    }
}

@media (max-width: 479.98px) {
    .hero-title {
        font-size: var(--text-2xl);
    }
    .hero-promise {
        font-size: var(--text-lg);
    }
}

/* Mot-clé de référencement placé dans le H1, au-dessus du slogan. */
.hero-title-kicker {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hero-slogan-gradient {
    background: var(--brand-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-promise {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.35;
    margin-bottom: 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .hero-promise {
        font-size: var(--text-2xl);
    }
}

.hero-subtitle {
    font-size: var(--text-lg);
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
    width: 100%;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-cta-group {
        justify-content: flex-start;
    }
}

@media (max-width: 479.98px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: var(--text-base);
    }
}

.hero-trust-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-trust-list {
        align-items: flex-start;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-secondary);
    justify-content: center;
}

@media (min-width: 1024px) {
    .trust-item {
        justify-content: flex-start;
    }
}

.trust-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--status-success-bg);
    color: var(--status-success-text);
    font-size: var(--text-xs);
    font-weight: 800;
}

/* ==========================================================================
   Hero Visual Interactive Demo Card (3-Mode Showcase)
   ========================================================================== */
.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.interactive-card-wrapper {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-xl);
    padding: 1.75rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 479.98px) {
    .interactive-card-wrapper {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }
}

@media (max-width: 479.98px) {
    .interactive-card-wrapper {
        padding: 0.75rem;
    }
}

.mode-cash-active .interactive-card-wrapper {
    border-color: var(--cash-soft-border);
    box-shadow: 0 20px 45px -10px rgba(245, 158, 11, 0.15), 0 8px 20px -4px rgba(15, 23, 42, 0.05);
}

.mode-cache-active .interactive-card-wrapper {
    border-color: var(--cache-soft-border);
    box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.15), 0 8px 20px -4px rgba(15, 23, 42, 0.05);
}

.mode-invisible-active .interactive-card-wrapper {
    border-color: var(--invisible-soft-border);
    box-shadow: 0 20px 45px -10px rgba(71, 85, 105, 0.18), 0 8px 20px -4px rgba(15, 23, 42, 0.05);
}

/* Toggle Switcher at top of card */
.demo-card-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
}

.badge-cash {
    background: var(--cash-soft-bg);
    color: var(--cash-text);
    border: 1px solid var(--cash-soft-border);
}

.badge-cache {
    background: var(--cache-soft-bg);
    color: var(--cache-text);
    border: 1px solid var(--cache-soft-border);
}

.badge-invisible {
    background: var(--invisible-soft-bg);
    color: var(--invisible-text);
    border: 1px solid var(--invisible-soft-border);
}

.anti-fake-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.pill-green {
    color: var(--status-success-text);
    background: var(--status-success-bg);
    border-color: var(--status-success-border);
}

.mode-tri-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-subtle);
    padding: 0.3rem;
    border-radius: var(--radius-full);
    gap: 0.25rem;
}

.mode-tab-btn {
    border: none;
    background: transparent;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

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

.mode-tab-btn.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.mode-tab-btn.mode-cash-btn.active {
    color: var(--cash-text);
}

.mode-tab-btn.mode-cache-btn.active {
    color: var(--cache-text);
}

.mode-tab-btn.mode-inv-btn.active {
    color: var(--invisible-text);
}

/* Avatar Visual Section — trois visuels dédiés (Cash / Caché / Invisible) */
.demo-visual-box {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: var(--radius-lg);
    background: var(--palette-slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

/* Trois visuels dédiés, superposés : le contrôleur duality-toggle pose la classe
   view-cash | view-cache | view-invisible sur .demo-visual-box, le crossfade est ici. */
.demo-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.demo-art-svg {
    width: 100%;
    height: 100%;
    max-height: 190px;
}

/* Repli si le JS n'a pas encore tourné : l'avatar Cash est visible par défaut. */
.demo-art--cash {
    opacity: 1;
}

/* Mode actif → son visuel apparaît, les autres disparaissent. */
.view-cash .demo-art--cash,
.view-cache .demo-art--cache,
.view-invisible .demo-art--invisible {
    opacity: 1;
}

.view-cache .demo-art--cash,
.view-invisible .demo-art--cash {
    opacity: 0;
}

/* CACHÉ : le même avatar, flouté (cohérent avec la règle RM-31). */
.demo-art--cache .demo-art-svg {
    filter: blur(10px);
}

/* INVISIBLE : fond hachuré discret, figure en retrait. */
.demo-art--invisible {
    background: repeating-linear-gradient(45deg,
        var(--invisible-soft-bg) 0 6px,
        transparent 6px 14px);
}

/* Le « ? » de la figure anonyme : reflet cyan du mode Invisible (token --invisible-accent). */
.art-inv-mark {
    fill: var(--invisible-accent);
    font-family: var(--font-display);
    font-weight: 800;
}

.visual-badge-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-inverted);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

/* Card Content Panels */
.profile-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-meta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.profile-name-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--palette-green-700);
    color: var(--text-inverted);
    font-size: var(--text-xs);
}

.profile-location {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 600;
}

.profile-bio {
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-secondary);
    min-height: 4.2rem;
}

.profile-tags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}

@media (max-width: 479.98px) {
    .profile-tags-grid {
        gap: 0.35rem;
    }
}

.profile-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.15rem;
    min-height: 56px;
    height: 100%;
}

@media (max-width: 479.98px) {
    .profile-tag {
        padding: 0.4rem 0.25rem;
    }
}

.tag-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.tag-value {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: center;
}

.demo-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.btn-card-action {
    width: 100%;
    padding: 0.75rem;
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-full);
}

.btn-cash-action {
    background: var(--cash-gradient);
    color: var(--text-inverted);
}

.btn-cache-action {
    background: var(--cache-gradient);
    color: var(--text-inverted);
}

.btn-invisible-action {
    background: var(--invisible-gradient);
    color: var(--text-inverted);
}

/* ==========================================================================
   Public Live Stats Section (Section 14 du Cahier des Charges)
   ========================================================================== */
.stats-section {
    padding: 3rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Sous le seuil d'affichage des compteurs : la tuile Premium seule, centrée. */
.stats-grid-4.stats-grid-4--seule {
    grid-template-columns: minmax(0, 22rem);
    justify-content: center;
}

.stat-card {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.stat-highlight {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-highlight-cash {
    color: var(--cash-text);
}

.stat-highlight-cache {
    color: var(--cache-text);
}

.stat-highlight-inv {
    color: var(--invisible-text);
}

/* Tuile « Membres cash / cachés / invisibles » : 3 nombres côte à côte, un cran plus petits */
.stat-highlight-modes {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1) var(--space-2);
    font-size: var(--text-2xl);
}

/* Précision sous un libellé de tuile (ex. « actifs actuellement ») */
.stat-sous-titre {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Tuile offre Premium : places restantes dans le palier en cours */
.stat-places {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--cache-text);
}

.stat-separateur {
    font-weight: var(--weight-regular);
    color: var(--text-muted);
}

/* Tuile « Membres en ligne » : vert partagé avec le badge « en ligne » des photos */
.stat-highlight-live {
    color: var(--status-success-text);
}

/* Indicateur « en direct » : pastille pulsante + libellé au-dessus des tuiles */
.stats-live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: 0 0 1.25rem;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stats-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--status-success);
    animation: stats-live-pulse 2s ease-in-out infinite;
}

@keyframes stats-live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.75);
    }
}

/* Changement de valeur (polling 5 s) : court effet « flash » sur le chiffre */
.stat-valeur-animee {
    animation: stat-valeur-flash 0.6s ease;
}

@keyframes stat-valeur-flash {
    from {
        opacity: 0.35;
        transform: translateY(-4px);
    }

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

.stat-title-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   3 Modes Detailed Presentation Section
   ========================================================================== */
.section-padding {
    padding: 5.5rem 0;
}

@media (max-width: 639.98px) {
    .section-padding {
        padding: 3.5rem 0;
    }
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem auto;
}

@media (max-width: 639.98px) {
    .section-header {
        margin-bottom: 2.25rem;
    }
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 479.98px) {
    .section-title {
        font-size: var(--text-2xl);
    }
    .section-subtitle {
        font-size: var(--text-base);
    }
}

@media (max-width: 479.98px) {
    .section-title {
        font-size: var(--text-2xl);
    }
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Responsive 3 Modes Grid */
.modes-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .modes-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mode-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.mode-card-invisible {
    border-top: 5px solid var(--invisible-primary);
}

.mode-card-cache {
    border-top: 5px solid var(--cache-primary);
}

.mode-card-cash {
    border-top: 5px solid var(--cash-primary);
}

.mode-card-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}

.mode-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.icon-inv-bg { background: var(--invisible-soft-bg); color: var(--invisible-text); }
.icon-cache-bg { background: var(--cache-soft-bg); color: var(--cache-text); }
.icon-cash-bg { background: var(--cash-soft-bg); color: var(--cash-text); }

.mode-card-tag {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 0.25rem;
}

.mode-card-desc {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 4.5rem;
}

.mode-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.mode-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.check-icon {
    font-weight: 800;
    color: var(--status-success-text);
}

/* ==========================================================================
   Anti-Fake & Security Section (Score 0-100 & Protection)
   ========================================================================== */
.anti-fake-section-bg {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* ─── Grille des deux cartes de score (Certification + Popularité) ─────── */
.anti-fake-card-wrapper {
    background: var(--bg-body);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    margin-bottom: 3.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .anti-fake-card-wrapper {
        grid-template-columns: 1fr 1fr;
        padding: 2.5rem;
    }
}

/* ─── Carte de score générique ────────────────────────────────────────────── */
.score-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid transparent;
    box-shadow: var(--shadow-sm);
}

.score-card--cert {
    border-top-color: var(--status-success);
}

.score-card--pop {
    border-top-color: var(--palette-amber-500);
}

.score-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.score-card-icon {
    font-size: var(--text-2xl);
    line-height: 1;
    flex-shrink: 0;
}

.score-card-heading {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.score-card-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.score-card--cert .score-card-eyebrow {
    color: var(--status-success-text);
}

.score-card--pop .score-card-eyebrow {
    color: var(--palette-amber-700);
}

.score-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.score-card-range {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.score-card-desc {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.score-card-levels {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-subtle);
}

.score-card-level-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.score-card-gauge {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.score-bar-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    font-weight: 700;
}

.score-track {
    height: 10px;
    width: 100%;
    background: var(--bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-fill-green {
    height: 100%;
    background: linear-gradient(90deg, var(--status-success), var(--palette-green-700));
    border-radius: var(--radius-full);
}

.score-fill-orange {
    height: 100%;
    background: linear-gradient(90deg, var(--status-warning), var(--palette-orange-700));
    border-radius: var(--radius-full);
}

.score-fill-red {
    height: 100%;
    background: linear-gradient(90deg, var(--status-danger), var(--palette-red-700));
    border-radius: var(--radius-full);
}

/* ─── Popularité : identité visuelle doré / ambre / ardoise ─────────────── */
.score-fill-pop-high {
    height: 100%;
    background: linear-gradient(90deg, var(--palette-amber-400), var(--palette-amber-500));
    border-radius: var(--radius-full);
}

.score-fill-pop-medium {
    height: 100%;
    background: linear-gradient(90deg, var(--palette-amber-200), var(--palette-amber-400));
    border-radius: var(--radius-full);
}

.score-fill-pop-low {
    height: 100%;
    background: linear-gradient(90deg, var(--palette-slate-300), var(--palette-slate-400));
    border-radius: var(--radius-full);
}

/* Pastilles de niveau — Popularité (complète .dot--success/warning/danger) */
.dot--pop-high { background: var(--palette-amber-500); }
.dot--pop-medium { background: var(--palette-amber-400); }
.dot--pop-low { background: var(--palette-slate-400); }

/* Texte coloré — Popularité (complète .text-success/warning/danger) */
.text-pop-high { color: var(--palette-amber-700); }
.text-pop-medium { color: var(--palette-amber-700); }
.text-pop-low { color: var(--text-muted); }

.security-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .security-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.pillar-icon {
    font-size: var(--text-2xl);
    margin-bottom: 0.25rem;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.pillar-desc {
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ==========================================================================
   How It Works Steps (4 Steps)
   ========================================================================== */
.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 900;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin: 0 auto;
}

.step-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.step-desc {
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Étiquette « Exemple fictif » : les exemples ne doivent jamais passer pour de vrais avis */
.testimonial-exemple {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-full);
}

.testimonial-quote {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
    width: 100%;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--text-base);
}

.author-role {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================================================
   High-Converting CTA Banner
   ========================================================================== */
.cta-banner-wrapper {
    background: var(--brand-gradient);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    color: var(--text-inverted);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.25);
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-banner-badge {
    display: inline-block;
    padding: 0.35rem 0.95rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    margin: 0 auto 1.25rem auto;
}

.cta-banner-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-banner-title {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 639.98px) {
    .cta-banner-wrapper {
        padding: 2.25rem 1rem;
        border-radius: var(--radius-lg);
        margin-bottom: 3.5rem;
    }
    .cta-banner-title {
        font-size: var(--text-2xl);
    }
    .cta-banner-subtitle {
        font-size: var(--text-base);
        margin-bottom: 1.5rem;
    }
    .btn-cta-light {
        width: 100%;
        max-width: 320px;
        padding: 0.85rem 1rem;
        font-size: var(--text-base);
        white-space: normal;
        text-align: center;
    }
}

.cta-banner-subtitle {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.92;
    line-height: 1.6;
}

.btn-cta-light {
    background: var(--palette-white);
    color: var(--palette-indigo-700);
    font-size: var(--text-lg);
    font-weight: 800;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-cta-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    background: var(--palette-slate-50);
}

.cta-guarantee-text {
    font-size: var(--text-sm);
    opacity: 0.85;
    margin-top: 1.25rem;
    font-weight: 600;
}

/* Couleurs des dégradés SVG (les attributs SVG ne lisent pas les variables CSS) */
.stop-palette-amber-400 { stop-color: var(--palette-amber-400); }
.stop-palette-indigo-400 { stop-color: var(--palette-indigo-400); }
.stop-palette-indigo-500 { stop-color: var(--palette-indigo-500); }
.stop-palette-orange-700 { stop-color: var(--palette-orange-700); }
.stop-palette-rose-500 { stop-color: var(--palette-rose-500); }
.stop-palette-slate-400 { stop-color: var(--palette-slate-400); }
.stop-palette-slate-700 { stop-color: var(--palette-slate-700); }
.stop-palette-violet-500 { stop-color: var(--palette-violet-500); }

.section-bordered {
    background: var(--bg-body);
    border-top: 1px solid var(--border-subtle);
}

.demo-art-svg {
    max-width: 100%;
}

/* ─── Guides et conseils (maillage interne) ─── */
.home-guides {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1024px) {
    .home-guides {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-guide {
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.home-guide__lien {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-decoration: none;
}

.home-guide__lien:hover,
.home-guide__lien:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-guide__resume {
    margin: 0.5rem 0 0;
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.home-guides__tous {
    margin-top: 1.5rem;
    text-align: center;
}

.home-guides__tous a {
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
