/* Hero Section */
#hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: block; /* Test avec block au lieu de flex */
    background-color: transparent; /* laisse voir le fond constellation global */
    z-index: 1;
}

.container {
    width: 100%;
}

/* Le fond constellation est désormais global (voir #particles-canvas dans app.css). */

.hero-grid {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 20px 0 30px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.badge-available {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 153, 255, 0.08);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.dot-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.dot-pulse::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ambient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
}

.orb-blue {
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    opacity: 0.07;
}

.orb-green {
    bottom: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--accent-green);
    opacity: 0.05;
}

/* Mockup */
.hero-visual {
    position: relative;
}

.mockup-container {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.mockup-frame {
    padding: 10px;
    border-radius: 12px;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid var(--border-glass);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.address-bar {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
}

.mockup-body {
    padding: 30px;
    min-height: 250px;
}

.mockup-skeleton div {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 15px;
}

.sk-title { width: 60%; height: 20px; }
.sk-line { width: 100%; height: 10px; }
.sk-btn { width: 30%; height: 30px; margin-top: 20px; background: var(--accent-blue) !important; opacity: 0.3; }

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    z-index: 1;
}

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

/* Sections Global */
.section-padding { padding: 120px 0; }
.bg-alt { background-color: transparent; } /* laisse voir le fond constellation global */
.section-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-subtitle small {
    display: block;
    margin-top: 8px;
    font-size: 0.88rem;
    opacity: 0.75;
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px !important;
}

.problem-box {
    padding: 40px;
    border-radius: 20px;
    background: rgba(15, 22, 41, 0.4);
}

.problem-box h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.problem-box ul li {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.icon { font-weight: bold; }
.avant .icon { color: #ff4b4b; }
.apres .icon { color: var(--accent-green); }
.apres { border: 1px solid rgba(0, 194, 124, 0.2); background: rgba(0, 194, 124, 0.03); }

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border-glass);
}

.timeline-item {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: var(--bg-cards);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-blue);
    flex-shrink: 0;
    z-index: 2;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 80px !important;
    margin-top: 40px; /* Ajout d'une marge pour détacher du titre si besoin */
}

.feature-card {
    padding: 40px;
    transition: 0.3s;
    margin-bottom: 20px; /* Sécurité supplémentaire pour le responsive */
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
}

/* Comparison Table */
.comparison-section {
    margin-top: 40px;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.comparison-table th, .comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-table th { font-family: var(--font-titles); }

.highlight {
    background: rgba(0, 153, 255, 0.05);
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
}

th.highlight {
    background: var(--accent-blue);
    color: white;
    border-radius: 12px 12px 0 0;
}


/* Final CTA */
.final-cta-box {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(8, 13, 26, 0.8), rgba(0, 153, 255, 0.1));
}

.final-cta-box h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; }
.final-cta-box p { font-size: 1.2rem; margin-bottom: 40px; color: var(--text-secondary); }

.btn-large { padding: 20px 40px; font-size: 1.2rem; }

.cta-reassurance {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Filet de sécurité pour le Hero : on l'affiche même sans JS si besoin, ou on s'assure qu'il est visible au chargement */
#hero .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}


/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; width: 100%; }
    .hero-subtitle, .hero-trust, .hero-ctas { margin-left: auto; margin-right: auto; justify-content: center; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 300px; }
    .problem-grid { grid-template-columns: 1fr; }
    .cta-reassurance { flex-direction: column; gap: 10px; }
}
