/* ===== RESET / BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    margin: 0;
    padding-inline: 40px;
    padding-top: 80px;
    overflow-x: hidden;
}

/* ===== TITRE DE PAGE ===== */
.page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
}

/* ===== TITRES FLUIDES ===== */
h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
}

h2 {
    font-size: clamp(1.3rem, 2.5vw + 0.8rem, 2rem);
}

h3 {
    font-size: clamp(1rem, 1.5vw + 0.6rem, 1.5rem);
}

p, li{
    font-size: clamp(0.9rem, 1vw + 0.6rem, 1.1rem);
}

/* ===== LIENS ===== */
a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* ===== LIEN RETOUR ===== */
.lien-retour {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* ===== EN-TETE ===== */
.en_tete {
    height: 80px;
    position: fixed;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    padding: 10px;
    box-sizing: border-box;
    z-index: 2000;
}

.logo {
    height: 60px;
}

.menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: auto;
    padding: 0;
    gap: 15px;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    background-color: #444;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #666;
}

.submenu {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #555;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 5px;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.submenu li a {
    padding: 8px 12px;
    display: block;
    color: white;
}

.submenu li a:hover {
    background-color: #777;
}

.dropdown:hover .submenu {
    display: block;
}

.bouton_contact a {
    background-color: #d9534f;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.bouton_contact a:hover {
    background-color: #c9302c;
}

/* Caché par défaut, visible seulement en mobile */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== EN-TETE MOBILE ===== */
@media (max-width: 768px) {

    .en_tete {
        justify-content: center;
    }

    .bouton_contact {
        display: none;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
    }

    .menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #222;
        flex-direction: column;
        display: none;
        z-index: 2500;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu > li > a {
        display: block;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid #333;
        padding: 15px 20px;
        box-sizing: border-box;
    }

    .submenu {
        position: static;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: #1a1a1a;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .dropdown.open > .submenu {
        max-height: 500px;
    }

    .submenu li a {
        border-radius: 0;
        border-bottom: 1px solid #2a2a2a;
        padding: 12px 30px;
    }
}
