/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LANDING PAGE - MYL SOLUTIONS
   Plateforme de Formation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━ IMPORT FONTS ━━━ */
@font-face {
    font-family: 'Grimblade';
    src: url('./assets/fonts/Grimblade.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ━━━ CSS VARIABLES ━━━ */
:root {
    /* Colors */
    --blue-primary: #173363;
    --orange-primary: #E84A2D;
    --white-bg: #FFFFFF;
    --text-color: #173363;
    
    /* Typography */
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Grimblade', 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.875rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.25rem;
    --spacing-xl: 3rem;

    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ━━━ RESET & BASE ━━━ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--white-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ━━━ MAIN CONTAINER ━━━ */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ━━━ BRAND BADGE ━━━ */
.brand-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.2s forwards;
}

.brand-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ━━━ HERO SECTION ━━━ */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

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

/* ━━━ TYPOGRAPHY ━━━ */
.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 6.5vw, 4.5rem);
    font-weight: 400;
    color: var(--blue-primary);
    line-height: 1.05;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease-out 0.4s forwards;
}

.main-title .highlight {
    color: var(--orange-primary);
    display: inline-block;
}

.subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto var(--spacing-md);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

/* ━━━ STATUS BADGE ━━━ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    background-color: rgba(232, 74, 45, 0.08);
    border-radius: 50px;
    margin-top: var(--spacing-sm);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards, subtlePulse 3s ease-in-out 1.5s infinite;
}

/* ━━━ OPENING DATE ━━━ */
.opening-date {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--blue-primary);
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeInSoft 1s ease-out 1.2s forwards;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--orange-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--orange-primary);
    letter-spacing: 0.05em;
}

/* ━━━ HERO VISUAL ━━━ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: floatIn 1.4s ease-out 0.8s forwards;
}

.mylion {
    max-width: 100%;
    height: auto;
    width: 260px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mylion:hover {
    transform: translateY(-8px);
}

/* ━━━ SIGNATURE ━━━ */
.signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.signature-text {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.6;
}

.signature-logo {
    height: 40px;
    width: auto;
    opacity: 0.95;
    image-rendering: -webkit-optimize-contrast;
    transition: var(--transition-smooth);
}

.signature-logo:hover {
    opacity: 1;
}

/* ━━━ FOOTER ━━━ */
.footer {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    border-top: 1px solid rgba(23, 51, 99, 0.08);
}

.copyright {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
}

.copyright a {
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.copyright a:hover {
    color: var(--orange-primary);
}

/* ━━━ ANIMATIONS ━━━ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInSoft {
    from { opacity: 0; }
    to { opacity: 0.75; }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(232, 74, 45, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(232, 74, 45, 0);
    }
}

@keyframes subtlePulse {
    0%, 100% { background-color: rgba(232, 74, 45, 0.08); }
    50% { background-color: rgba(232, 74, 45, 0.12); }
}

/* ━━━ RESPONSIVE - MOBILE ━━━ */
@media (max-width: 767px) {
    .container {
        padding-top: 4rem;
    }
}

/* ━━━ RESPONSIVE - TABLET ━━━ */
@media (min-width: 768px) {
    .container {
        padding: var(--spacing-lg);
    }

    .brand-badge {
        top: var(--spacing-lg);
        left: var(--spacing-lg);
    }

    .mylion {
        width: 320px;
    }
}

/* ━━━ RESPONSIVE - DESKTOP (no scroll) ━━━ */
@media (min-width: 1024px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    /* Remonte légèrement le contenu pour équilibrer l'espace blanc supérieur */
    .container {
        justify-content: flex-start;
        padding-top: clamp(3rem, 8vh, 5rem);
    }

    .hero {
        grid-template-columns: 1.15fr 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content {
        text-align: left;
    }

    .description {
        margin: 0 0 var(--spacing-md) 0;
    }

    .signature {
        justify-content: flex-start;
        margin-top: var(--spacing-md);
    }

    .mylion {
        width: 100%;
        max-width: 360px;
    }
}

/* ━━━ RESPONSIVE - LARGE DESKTOP ━━━ */
@media (min-width: 1280px) {
    .mylion {
        max-width: 400px;
    }
}

/* ━━━ RESPONSIVE - SHORT VIEWPORTS ━━━ */
@media (min-width: 1024px) and (max-height: 720px) {
    .main-title {
        font-size: clamp(2rem, 4.5vw, 3.25rem);
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .description {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-sm);
    }

    .mylion {
        max-width: 280px;
    }

    .signature {
        margin-top: var(--spacing-sm);
    }
}

/* ━━━ ACCESSIBILITY ━━━ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
