/* ============================================
   LAYOUT CSS - Structure globale
   ============================================ */

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo::before {
    content: '</>';
    color: var(--secondary);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    transition: all var(--transition-fast) ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-text .status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== Section commune ===== */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: attr(data-number);
    position: absolute;
    top: -20px;
    left: -30px;
    font-size: 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Footer ===== */
footer {
    background: var(--primary);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

footer p {
    color: var(--text-dim);
    margin: 0.5rem 0;
}

footer p:first-child {
    font-size: 1rem;
}

footer p:nth-child(2) {
    font-size: 0.9rem;
}

footer p:last-child {
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-medium) ease, transform var(--transition-medium) ease;
}

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

/* Bloc Pourquoi - Versions Desktop et Mobile */
.pourquoi-section {
    background: var(--bg-card);
    padding: 4rem 2rem;
    margin: 3rem 0;
    max-width: 100% !important;
}

.pourquoi-section > div {
    max-width: 1200px;
    margin: 0 auto;
}

.pourquoi-desktop {
    display: block;
}

.pourquoi-mobile {
    display: none;
}
