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

/* ================= BASE ================= */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #e0e0e0;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 0;
}

/* ================= HEADER ================= */
header {
    background-color: #000000;
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.6rem;
    letter-spacing: 2px;
    color: #E0D260;
}

/* ================= NAVIGATION ================= */
nav {
    margin-top: 15px;
}

nav ul.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    background: #000000;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #72aaff;
}

/* ================= MENU HAMBURGER ================= */
.menu-toggle {
    display: none;
    position: absolute;
    right: 20px;
    top: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

/* ================= SECTIONS ================= */
section {
    width: 100%;
    background-color: #000000;
    padding: 50px 0;
}

/* Titres alignés avec le contenu */
section h2 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #E0D260;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= SECTION CONTENT (TEXTE + IFRAME) ================= */
.section-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-content .text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.section-content .text p {
    margin-bottom: 15px;
}

.section-content .iframe-container {
    flex: 1;
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio */
}

.section-content .iframe-container.iframe-houdini {
    padding-top: 50%; /* iframe légèrement plus petite sur PC */
}

/* ================= IFRAME ================= */
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= FOOTER ================= */
footer {
    background-color: #000000;
    color: #aaaaaa;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ================= TABLETTE ================= */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 30px 15px;
    }

    .section-content {
        flex-direction: column;
        gap: 20px;
    }

    .iframe-container {
        width: 100%;
        padding-top: 56.25%;
    }

    .iframe-container.iframe-houdini {
        padding-top: 56.25%;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
    .menu-toggle {
        display: block;
    }

    nav ul.menu {
        display: none;
        flex-direction: column;
        background-color: #000000;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 15px 0;
    }

    nav ul.menu.active {
        display: flex;
    }

    nav ul.menu li {
        padding: 10px 0;
    }

    nav a {
        font-size: 1rem;
    }

    section {
        padding: 25px 15px;
    }

    section h2 {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-content {
        flex-direction: column;
        gap: 15px;
    }

    .section-content .iframe-container {
        order: -1; /* iframe au-dessus du texte */
        width: 100%;
        padding-top: 70%; /* iframe plus grande pour mobile */
    }

    .section-content .iframe-container.iframe-houdini {
        padding-top: 70%;
    }

    .section-content .text {
        font-size: 0.95rem;
        text-align: justify;
    }
}
