/* ===== Variables ===== */
:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --dark-light: #2a2a2a;
    --white: #f5f5f5;
    --white-pure: #ffffff;
    --rose: rgb(208, 71, 128);
    --rose-light: rgba(208, 71, 128, 0.15);
    --rose-dark: rgb(170, 50, 100);
    --gold: #c9a84c;
    --gold-light: rgba(201, 168, 76, 0.15);
    --gray: #888;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', Arial, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--white);
    background-color: var(--black);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--rose);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s, padding 0.3s;
}

.navbar.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.nav-logo:hover {
    color: var(--rose) !important;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rose);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--rose);
}

/* Hamburger */
.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: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('img/hero-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero-small {
    min-height: 50vh;
    background-position: center top;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--black) 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    color: var(--white-pure);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--rose);
}

.hero-title.page-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #ccc;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ===== Button ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid var(--rose);
    color: var(--white) !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: var(--rose);
    color: var(--white-pure) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(208, 71, 128, 0.3);
}

.btn-outline {
    border-color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.3);
}

/* ===== Sections ===== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white-pure);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--rose);
    margin: 0.8rem auto 0;
}

.section-title-left {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--white-pure);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: #ccc;
    max-width: 600px;
    margin: -1.5rem auto 3rem;
    font-size: 0.95rem;
}

/* ===== About ===== */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(0.2);
    transition: filter 0.3s;
}

.about-image img:hover {
    filter: grayscale(0);
}

.about-text {
    margin-bottom: 3rem;
}

.about-lead {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    color: var(--white-pure);
}

.about-text p {
    margin-bottom: 1rem;
    color: #ccc;
}

.about-text strong {
    color: var(--rose);
}

.about-text em {
    color: var(--gold);
    font-style: normal;
}

.about-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.highlight {
    text-align: center;
    padding: 1.5rem;
}

.highlight-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rose);
    line-height: 1.2;
}

.highlight-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cards-2 {
    max-width: 700px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    display: block;
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    color: var(--white);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--rose);
    box-shadow: 0 16px 40px rgba(208, 71, 128, 0.15);
    color: var(--white);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.92rem;
    color: #bbb;
    line-height: 1.8;
}

.card-link {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.card:hover .card-link {
    color: var(--gold);
}

/* ===== Cours detail page ===== */
.cours-content {
    max-width: 750px;
    margin: 0 auto;
}

.cours-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.cours-description {
    margin: 2rem 0;
}

.cours-description p {
    color: #ccc;
    margin-bottom: 1rem;
}

.cours-description strong {
    color: var(--rose);
}

.cours-description em {
    color: var(--gold);
    font-style: normal;
}

.cours-description h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white-pure);
    margin: 2rem 0 1rem;
}

.cours-description ul {
    list-style: none;
    padding: 0;
}

.cours-description li {
    color: #ccc;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cours-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 2px;
    background: var(--rose);
}

.cours-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--dark) 0%, #1a0a12 100%);
}

.cta-text {
    color: #ccc;
    font-size: 1.05rem;
    max-width: 500px;
    margin: -1.5rem auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Planning ===== */
.planning-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.planning-table {
    width: 100%;
    border-collapse: collapse;
}

.planning-table th,
.planning-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.planning-table th {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rose);
}

.planning-table td {
    font-size: 0.95rem;
    color: #ccc;
}

.planning-table td:first-child {
    font-weight: 500;
    color: var(--white-pure);
}

.planning-table tbody tr {
    transition: background 0.3s;
}

.planning-table tbody tr:hover {
    background: var(--rose-light);
}

/* ===== Widget ===== */
.widget-container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 400px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2rem;
}

.widget-placeholder {
    text-align: center;
    color: var(--gray);
    padding: 4rem 2rem;
    font-style: italic;
}

/* ===== Contact Page ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.form-intro {
    color: #ccc;
    margin-bottom: 2rem;
    font-size: 0.92rem;
}

/* Form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rose);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--rose);
    cursor: pointer;
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.82rem;
    color: #aaa;
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Contact sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 4px;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.92rem;
    color: #ccc;
    line-height: 1.6;
}

.contact-item a {
    color: var(--rose);
}

.contact-item a:hover {
    color: var(--gold);
}

/* Map */
.map-wrapper iframe {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(0.5) contrast(1.1);
    transition: filter 0.3s;
}

.map-wrapper iframe:hover {
    filter: grayscale(0) contrast(1);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--black);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--rose);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--rose);
}

.footer-address {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.footer-address a {
    color: #aaa;
}

.footer-address a:hover {
    color: var(--rose);
}

.footer p:last-child {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== Fade-in animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background: var(--dark);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.open {
        right: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        gap: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .planning-table th,
    .planning-table td {
        padding: 1rem 0.8rem;
    }

    .footer-links {
        gap: 0.8rem;
    }
}
