/* -------------------- RESET -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -------------------- BODY -------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
}

/* -------------------- NAVIGATION -------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    transition: 0.25s ease;
    position: relative;
}

nav a:hover {
    color: #00bcd4;
    transform: scale(1.08);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #00bcd4;
    transition: width 0.25s ease;
}

nav a:hover::after {
    width: 100%;
}

/* -------------------- TITRES -------------------- */
h1, h2, h3, h4 {
    color: #2c3e50;
    text-align: center;
    margin-top: 80px;
}

h1 {
    font-size: 2.3em;
}

h2 {
    font-size: 2em;
    margin-top: 60px;
    text-align: center;
    
    padding-bottom: 5px;
}

h3 {
    font-size: 1.6em;
    margin-top: 40px;
    color: #34495e;
}

h4 {
    font-size: 1.2em;
    margin-top: 30px;
    color: #2e8b57;
}

/* -------------------- TEXTES -------------------- */
p, ul {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 1.05em;
}

ul {
    padding-left: 40px;
}

.description {
    font-style: italic;
}

/* -------------------- IMAGES -------------------- */
img {
    display: block;
    margin: 25px auto;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.15);
    z-index: 2;
}

/* -------------------- LIGHTBOX -------------------- */
.lightbox {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px white;
}

.close-btn {
    color: white;
    font-size: 1.2rem;
    background-color: #444;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #222;
}

/* -------------------- MENU SECONDAIRE -------------------- */
.menu {
    text-align: center;
    margin: 40px auto 20px auto;
}

.submenu a {
    display: inline-block;
    margin: 0 15px;
    padding: 10px 20px;
    background-color: #00bcd4;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.submenu a:hover {
    background-color: #0097a7;
}

/* -------------------- RESPONSIVE -------------------- */
@media screen and (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    nav a {
        margin: 5px 0;
    }

    h1, h2, h3, h4 {
        margin-top: 60px;
    }
}
