/* Nouvelle palette inspirée du drapeau coréen */
:root {
    --white: #ffffff;
    --red: #cd2e3a;
    --blue: #0047a0;
    --black: #010101;
    --light-blue: #b3c7e3;
    --light-red: #f8d7da;
    --primary: var(--black);
    --secondary: var(--red);
    --accent: var(--blue);
    --light: var(--white);
    --dark: #343a40;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Noto Sans KR", sans-serif;
    font-weight: 700;
}

/* NAVBAR */
.navbar {
    background-color: var(--primary) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    color: var(--white) !important;
}
.navbar-brand span {
    color: var(--secondary) !important;
}
.nav-link {
    color: var(--white) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
    font-weight: 500;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}
.nav-link:hover {
    color: var(--accent) !important;
}
.nav-link:hover::after {
    width: 100%;
}

/* HERO MODERNISÉ AVEC THÈME CORÉEN */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 20%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 25%
        );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 1.5rem;
    text-align: center;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--white);
}
.hero .highlight {
    color: var(--white);
    position: relative;
    display: inline-block;
}
.hero .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    background-color: var(--white);
    border-radius: 2px;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.hero-buttons .btn {
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary {
    background-color: var(--white);
    border: none;
    color: var(--blue);
}
.btn-primary:hover {
    background-color: var(--red);
    color: var(--white);
    transform: translateY(-3px);
}
.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* Animation lettres coréennes */
.korean-letters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.korean-letter {
    position: absolute;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 2.5rem;
    opacity: 0.15;
    color: var(--white);
    animation: float 15s infinite linear;
}
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* COURS */
#courses {
    padding: 6rem 0;
    background-color: var(--white);
}
.course-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: var(--white);
}
.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
}
.card-body {
    padding: 1.8rem;
}
.card-body h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.card-body p {
    color: #666;
    margin-bottom: 1.8rem;
    min-height: 60px;
}
.course-level {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(to right, var(--red), var(--blue));
    color: var(--white);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.btn-outline-dark {
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}
.btn-outline-dark:hover {
    background: var(--blue);
    color: var(--white);
}

/* À PROPOS */
#about {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}
.about-img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px var(--red);
}
.about-img:hover {
    transform: scale(1.02);
}
#about h2 {
    margin-bottom: 1.8rem;
    color: var(--primary);
}
#about ul {
    padding-left: 0;
}
#about li {
    list-style: none;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
}
#about li i {
    color: var(--red);
    font-size: 1.3rem;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}
.feature-box {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--light-blue);
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.feature-box i {
    font-size: 3rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
}
.feature-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* TÉMOIGNAGES */
#testimonials {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}
.testimonial-card {
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--blue);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}
.testimonial-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid var(--red);
}
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--blue);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: var(--red);
}

/* CONTACT */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--red), var(--blue));
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
            circle at 10% 20%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 30%
        );
    pointer-events: none;
}
.contact-section .section-title::after {
    background: var(--white);
}
.form-control {
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    background: var(--white);
}

/* FOOTER */
footer {
    padding: 3rem 0 2rem;
    background: var(--primary);
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 1.5rem;
    color: var(--white);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s;
}
.social-icons a:hover {
    background: var(--red);
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .korean-letter {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 85vh;
        min-height: 500px;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.8rem;
    }
    .korean-letter {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
