/* LeClasseur Landing Page Styles */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0e1a;
    color: #e2e8f0;
    position: relative;
}

/* Animated gradient background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    z-index: 0;
}

/* Animated orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(96, 165, 250, 0.6);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 0;
}

/* Header */
header {
    padding: 1rem 3rem;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.logo-image {
    height: 120px;
    width: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.4));
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.6));
    transform: scale(1.05);
}

/* Main content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    gap: 1.25rem;
}

/* Video container */
.video-container {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(96, 165, 250, 0.3),
                0 0 60px rgba(59, 130, 246, 0.4);
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(96, 165, 250, 0.5),
                0 0 80px rgba(59, 130, 246, 0.6);
}

.video-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(15px);
    background-size: 200% 200%;
    animation: gradient-rotate 4s ease infinite;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper #youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hide YouTube overlays (title, channel info) that appear at start/end */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    gap: 1rem;
}

.play-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.6);
    animation: pulse-play 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s;
}

.play-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.8);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

@keyframes pulse-play {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.6);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 15px 50px rgba(59, 130, 246, 0.8);
    }
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #cbd5e1;
    text-align: center;
}

/* Headline */
.headline {
    font-size: 2.25rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0;
}

.headline-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    text-shadow: 0 0 40px rgba(96, 165, 250, 0.3);
    transition: opacity 0.8s ease-in-out;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* CTA Button */
.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 0.875rem 2.25rem;
    min-width: 280px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5),
                0 0 0 1px rgba(96, 165, 250, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#btn-text {
    transition: opacity 0.8s ease-in-out;
    display: inline-block;
    min-width: 180px;
    text-align: center;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.7),
                0 0 0 1px rgba(96, 165, 250, 0.8),
                0 0 40px rgba(59, 130, 246, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.google-login-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.google-icon {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    padding: 0.625rem 2rem;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.2);
    border-top: 1px solid rgba(96, 165, 250, 0.05);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.developed-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.developed-by:hover {
    opacity: 1;
}

.developed-by span {
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.madera-logo {
    height: 50px;
    width: auto;
    filter: brightness(0.9);
    transition: all 0.3s ease;
}

.madera-logo:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-height: 800px) {
    .logo-image {
        height: 90px;
    }
    .headline {
        font-size: 2rem;
    }
    .video-container {
        max-width: 500px;
    }
    main {
        gap: 1rem;
    }
    footer {
        padding: 0.5rem 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .logo-image {
        height: 40px;
    }
    main {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .headline {
        font-size: 2rem;
    }
    .google-login-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    .video-container {
        max-width: 100%;
    }
    footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    .madera-logo {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    .headline {
        font-size: 1.6rem;
    }
    .google-login-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    .madera-logo {
        height: 24px;
    }
}

/* Entrance animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-container {
    animation: fadeInScale 0.8s ease-out 0.2s backwards;
}

.headline {
    animation: fadeInScale 0.8s ease-out 0.4s backwards;
}

.google-login-btn {
    animation: fadeInScale 0.8s ease-out 0.6s backwards;
}