/* ==========================================================
   HOME — Design moderne (chargé uniquement sur index.php)
   ========================================================== */

.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HERO ===== */
.home-hero {
    position: relative;
    padding: 5rem 0 4rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

/* Blobs décoratifs flous en fond */
.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    animation: blob-float 18s ease-in-out infinite;
}
.hero-bg-blob--1 {
    width: 400px; height: 400px;
    background: #c4b5fd;
    top: -100px; left: -150px;
}
.hero-bg-blob--2 {
    width: 350px; height: 350px;
    background: #fbcfe8;
    top: 50px; right: -100px;
    animation-delay: -6s;
}
.hero-bg-blob--3 {
    width: 300px; height: 300px;
    background: #fed7aa;
    bottom: -100px; left: 30%;
    animation-delay: -12s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -40px) scale(1.08); }
    66%      { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6d28d9;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08);
}
.hero-badge__dot {
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
    50%      { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #1e1b4b;
    margin: 0 0 1.5rem;
}
.hero-title__accent {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #4b5563;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

/* ===== BOUTONS MODERNES ===== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-modern--primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-modern--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-modern--primary svg { transition: transform 0.25s ease; }
.btn-modern--primary:hover svg { transform: translateX(4px); }

.btn-modern--ghost {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #4c1d95;
    border: 1.5px solid rgba(139, 92, 246, 0.2);
}
.btn-modern--ghost:hover {
    background: #fff;
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.btn-modern--lg {
    padding: 1.15rem 2.25rem;
    font-size: 1.1rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}
.hero-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-trust__item svg { color: #8b5cf6; }

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    padding: 2rem 1rem;
    margin: 2rem 0 5rem;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.06);
}
.stats-bar__item { text-align: center; padding: 0 1rem; }
.stats-bar__num {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stats-bar__label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}
.stats-bar__divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

/* ===== SECTION HEAD ===== */
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b5cf6;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e1b4b;
    line-height: 1.15;
    margin: 0 0 1rem;
}
.section-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
}

/* ===== FEATURES MODERN ===== */
.features-section { padding: 2rem 0 5rem; }
.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-modern {
    position: relative;
    display: block;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    isolation: isolate;
}
.feature-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--feature-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.feature-modern:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.feature-modern:hover::before { opacity: 1; }

.feature-modern__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--feature-icon-bg);
    color: var(--feature-icon-color);
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}
.feature-modern:hover .feature-modern__icon {
    transform: scale(1.05) rotate(-3deg);
}
.feature-modern h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.5rem;
}
.feature-modern p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.feature-modern__arrow {
    color: var(--feature-icon-color);
    font-weight: 700;
    font-size: 1.25rem;
    opacity: 0.5;
    transition: all 0.25s ease;
}
.feature-modern:hover .feature-modern__arrow {
    opacity: 1;
    transform: translateX(4px);
    display: inline-block;
}

/* Variantes couleurs */
.feature-modern--violet { --feature-icon-bg: #ede9fe; --feature-icon-color: #7c3aed; --feature-glow: linear-gradient(135deg, #faf5ff 0%, #fff 100%); }
.feature-modern--pink   { --feature-icon-bg: #fce7f3; --feature-icon-color: #db2777; --feature-glow: linear-gradient(135deg, #fdf2f8 0%, #fff 100%); }
.feature-modern--teal   { --feature-icon-bg: #ccfbf1; --feature-icon-color: #0d9488; --feature-glow: linear-gradient(135deg, #f0fdfa 0%, #fff 100%); }
.feature-modern--orange { --feature-icon-bg: #fed7aa; --feature-icon-color: #ea580c; --feature-glow: linear-gradient(135deg, #fff7ed 0%, #fff 100%); }
.feature-modern--blue   { --feature-icon-bg: #dbeafe; --feature-icon-color: #2563eb; --feature-glow: linear-gradient(135deg, #eff6ff 0%, #fff 100%); }
.feature-modern--green  { --feature-icon-bg: #d1fae5; --feature-icon-color: #059669; --feature-glow: linear-gradient(135deg, #ecfdf5 0%, #fff 100%); }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 3rem 0 5rem; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.step-card {
    position: relative;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.1);
    border-color: transparent;
}
.step-card__number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}
.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.5rem;
}
.step-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== PRIVACY ===== */
.privacy-section { padding: 2rem 0 5rem; }
.privacy-card {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
    border-radius: 24px;
    border: 1px solid rgba(139, 92, 246, 0.12);
    margin-bottom: 1.5rem;
}
.privacy-card__icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}
.privacy-card__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.75rem;
}
.privacy-card__content p {
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 1.25rem;
}
.privacy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.privacy-tag {
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.8);
    color: #6d28d9;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.medical-notice {
    padding: 1.25rem 1.5rem;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}
.medical-notice strong { color: #92400e; }

/* ===== FINAL CTA ===== */
.final-cta { padding: 2rem 0 5rem; }
.final-cta__inner {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 32px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.final-cta__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
    z-index: -1;
}
.final-cta__inner h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.final-cta__inner p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 2rem;
}
.final-cta .btn-modern--primary {
    background: #fff;
    color: #8b5cf6;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.final-cta .btn-modern--primary:hover {
    background: #faf5ff;
    transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .home-hero { padding: 3rem 0 2rem; }
    .stats-bar {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.5rem 1rem;
        margin-bottom: 3rem;
    }
    .stats-bar__item { flex: 1 1 40%; padding: 0.5rem; }
    .stats-bar__divider { display: none; }
    .privacy-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }
    .final-cta__inner { padding: 3rem 1.5rem; border-radius: 24px; }
    .hero-trust { gap: 1rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-modern { justify-content: center; }
}
