/* Base & Variables */
:root {
    /* Couleurs inspirées du logo */
    --color-navy: #07152b;
    --color-navy-light: #12284c;
    --color-gold: #d5861b;
    --color-gold-hover: #b87114;
    
    --color-bg-light: #f8fafc;
    --color-bg-white: #ffffff;
    --color-text: #334155;
    --color-text-muted: #64748b;

    /* Typographie */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Ombres & Transitions */
    --shadow-sm: 0 4px 6px -1px rgba(7, 21, 43, 0.05), 0 2px 4px -1px rgba(7, 21, 43, 0.03);
    --shadow-md: 0 10px 25px -3px rgba(7, 21, 43, 0.1), 0 4px 6px -2px rgba(7, 21, 43, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(7, 21, 43, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: splash-pulse 2s infinite ease-in-out;
}

.splash-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.splash-skip {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.splash-screen:hover .splash-skip {
    opacity: 0.9;
}

@keyframes splash-pulse {
    0% {
        transform: scale(0.97);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
    100% {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* Typography Highlights */
.highlight {
    color: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-gold);
    color: white;
    border-color: var(--color-gold);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 115px;
    transition: height 0.3s;
}

.navbar.scrolled .nav-container {
    height: 85px;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s;
}

.navbar.scrolled .logo-img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-navy);
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-links .btn {
    color: white; /* overwrite primary btn color */
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background: radial-gradient(circle at top right, #ffffff, var(--color-bg-light));
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-glass);
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-10px);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-line {
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
}
.mockup-line.short { width: 70%; }

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    margin: 30px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.bar {
    flex: 1;
    background-color: var(--color-navy);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}
.bar:nth-child(even) { background-color: var(--color-gold); }

.bar.h-1 { height: 40%; }
.bar.h-2 { height: 70%; }
.bar.h-3 { height: 50%; }
.bar.h-4 { height: 90%; }

.mockup-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-navy);
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

.section-heading {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.feature-card {
    background: var(--color-bg-light);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--color-bg-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(7, 21, 43, 0.05);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.bg-navy { background-color: var(--color-navy); }
.bg-gold { background-color: var(--color-gold); }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background-color: var(--color-navy);
    color: white;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    color: #cbd5e1;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.input-email {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.input-email:focus {
    box-shadow: 0 0 0 3px rgba(213, 134, 27, 0.3);
}

/* Footer */
.footer {
    background-color: #030a17; /* Very dark navy */
    color: #94a3b8;
    padding: 80px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-container {
        flex-direction: column;
    }
}

/* Coming Soon Mode */
body.coming-soon-active nav,
body.coming-soon-active header,
body.coming-soon-active section,
body.coming-soon-active footer {
    display: none !important;
}

body.coming-soon-active #coming-soon {
    display: flex !important;
}

.coming-soon-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff, var(--color-bg-light));
    padding: 3rem 0;
}

.coming-soon-container {
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease;
}

.coming-soon-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.badge {
    background-color: rgba(213, 134, 27, 0.1);
    color: var(--color-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coming-soon-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.coming-soon-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
}

.coming-soon-form {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .coming-soon-content h1 {
        font-size: 2.25rem;
    }
    
    .coming-soon-form {
        flex-direction: column;
    }
}

/* Masquage de l'inscription si désactivée dans la config */
body.registration-disabled .registration-element {
    display: none !important;
}
