/* ========================================
   AEP — Alternative Event Production
   Modern single-page site
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #060a1a;
    --bg-alt: #0b1130;
    --surface: #111842;
    --border: rgba(96, 165, 250, 0.1);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --gradient: linear-gradient(135deg, #3b82f6, #818cf8);
    --gradient-text: linear-gradient(135deg, #60a5fa, #a78bfa);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #93c5fd; }
img { max-width: 100%; height: auto; display: block; }
strong { color: #f1f5f9; font-weight: 600; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(6, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.nav-logo:hover { color: #fff; }
.nav-logo img { filter: brightness(1.2); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }

.nav-cta {
    background: var(--gradient) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(129, 140, 248, 0.08), transparent),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(59, 130, 246, 0.06), transparent);
}

.hero-content { position: relative; z-index: 1; padding: 0 24px; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    background: rgba(59, 130, 246, 0.05);
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.hero-scroll a { color: var(--text-muted); }
.hero-scroll a:hover { color: var(--primary-light); }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

.btn-sm { padding: 8px 20px; font-size: 0.85rem; border-radius: 8px; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* --- Sections --- */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-muted);
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.stat:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.service-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 14px;
    margin-bottom: 24px;
    color: #fff;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Projects --- */
.project {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    transition: all var(--transition);
}
.project:last-child { margin-bottom: 0; }
.project:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.project-reverse { grid-template-columns: 1.2fr 1fr; }
.project-reverse .project-visual { order: 2; }
.project-reverse .project-content { order: 1; }

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-visual img {
    max-height: 280px;
    border-radius: var(--radius);
    object-fit: contain;
}

.project-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.project-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-socials {
    display: flex;
    gap: 12px;
}
.project-socials a {
    color: var(--text-muted);
    transition: all var(--transition);
}
.project-socials a:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* --- Contact --- */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-content .btn-lg {
    margin-bottom: 32px;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.contact-socials a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.contact-socials a:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-brand img { filter: brightness(0.8); }

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.footer-legal:hover { color: var(--primary-light); }

/* --- Modal Mentions légales --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}
.modal-close:hover { color: #fff; }

.modal h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
}

.modal h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: 24px;
    margin-bottom: 8px;
}

.modal p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.modal a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.about-stats .stat:nth-child(2) { transition-delay: 0.1s; }
.about-stats .stat:nth-child(3) { transition-delay: 0.2s; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .about-stats .stat { flex: 1; min-width: 140px; }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }
    .project-reverse .project-visual { order: 0; }
    .project-reverse .project-content { order: 0; }
    .project-visual img { max-height: 200px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(11, 17, 48, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .nav-links a {
        font-size: 1.05rem;
        padding: 14px 16px;
        width: 100%;
    }

    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .section { padding: 80px 0; }
    .section-header { margin-bottom: 40px; }

    .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .project { padding: 24px; }
    .stat { padding: 20px; }
    .stat-number { font-size: 2rem; }

    .contact-content .btn-lg {
        font-size: 0.85rem;
        padding: 14px 20px;
    }
}
