:root {
    --french-blue: #0055A4;
    --french-red: #EF4135;
    --french-gold: #FFD700;
    --accent-gold: #FFD700;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--french-blue) 0%, var(--french-red) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.landing-header {
    background: linear-gradient(135deg, var(--french-blue), var(--french-red));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.landing-header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.landing-header p {
    margin: 1rem 0 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.flag-decoration {
    height: 8px;
    background: linear-gradient(90deg, var(--french-blue) 33%, white 33%, white 66%, var(--french-red) 66%);
    margin: 2rem 0 0 0;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0 3px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.language-btn:hover, .language-btn.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.landing-body {
    padding: 3rem 2rem;
}

.practice-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.practice-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

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

.practice-option:hover::before {
    left: 100%;
}

.practice-option:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--french-blue);
}

.practice-option.tef {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.practice-option.tef:hover {
    background: linear-gradient(135deg, var(--french-blue), #004080);
    color: white;
}

.practice-option.ai {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.practice-option.ai:hover {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    color: white;
}

.practice-option.culture {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.practice-option.culture:hover {
    background: linear-gradient(135deg, var(--french-gold), #ffb347);
    color: #333;
}

.practice-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.tef .practice-icon {
    background: linear-gradient(135deg, var(--french-blue), #004080);
    color: white;
}

.ai .practice-icon {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    color: white;
}

.culture .practice-icon {
    background: linear-gradient(135deg, var(--french-gold), #ffb347);
    color: #333;
}

.practice-option:hover .practice-icon {
    transform: scale(1.15) rotate(5deg);
}

.practice-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.practice-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.practice-btn {
    background: transparent;
    border: 2px solid currentColor;
    color: currentColor;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 1rem;
}

.practice-option:hover .practice-btn {
    transform: scale(1.05);
}

.practice-option.tef:hover .practice-btn {
    background: white;
    color: var(--french-blue);
    border-color: white;
}

.practice-option.ai:hover .practice-btn {
    background: white;
    color: #1976d2;
    border-color: white;
}

.practice-option.culture:hover .practice-btn {
    background: #333;
    color: white;
    border-color: #333;
}

.video-container {
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.newsletter-card {
    margin-top: 3rem;
    background: rgba(233, 236, 239, 0.5);
    border: 2px dashed var(--french-blue);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
}

.newsletter-card h3 {
    margin-bottom: 1rem;
}

#subscribeForm {
    margin-top: 1.5rem;
}

#subscriberEmail {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 300px;
}

.footer-info {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .landing-header h1 {
        font-size: 2.2rem;
    }
    
    .practice-options {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .practice-option {
        min-width: auto;
        max-width: none;
    }
    
    .landing-body {
        padding: 2rem 1rem;
    }
    
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 1rem;
    }
}