* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.top-page {
    background-color: black;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.top-page p {
    font-size: 25px;
    color: white;
    font-weight: bold;
    margin: 0 0 15px 0;
    order: 2;
}

/* Logo dans l'en-tête - centré */
.logo {
    height: 100px;
    order: 1;
}

/* Menu hamburger - positionné en haut à gauche */
.menu-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Menu coulissant */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: #222;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.menu-toggle:hover + .side-menu,
.side-menu:hover {
    left: 0;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu li {
    border-bottom: 1px solid #444;
}

.side-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.side-menu a:hover {
    background-color: #333;
    color: #FFD700;
    padding-left: 40px;
}

/* Animation des barres du menu au survol */
.menu-toggle:hover span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle:hover span:nth-child(2) {
    opacity: 0;
}

.menu-toggle:hover span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .top-page {
        padding: 15px;
    }

    .logo {
        height: 80px;
    }

    .top-page p {
        font-size: 20px;
        margin: 0 0 10px 0;
    }

    .menu-toggle {
        top: 15px;
        left: 15px;
        padding: 8px;
    }

    .side-menu {
        width: 250px;
        left: -250px;
    }

    .side-menu a {
        font-size: 16px;
        padding: 15px 25px;
    }
}

/* mise en forme du lien téléphone de l'en tête */
.telephone {
    color: #f4f4f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.telephone:hover {
    color: #FFD700;
}

main {
    background: url("image/fond.png") no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.services {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.services ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.services li {
    flex-basis: 45%;
    margin: 10px 0;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 5px;
    text-align: center;
}

.contact {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
}

.contact h2 {
    text-align: center;
    text-decoration: underline;
    margin-bottom: 20px;
}

.contact ul {
    list-style-type: none;
}

.contact li {
    margin: 10px 0;
}

.contact a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #004080;
}

footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 840px) {
    .services ul {
        flex-direction: column;
    }

    .services li {
        flex-basis: 100%;
    }
}

/* Section galerie */
.gallery {
    text-align: center;
    padding: 20px;
}

.gallery h2 {
    margin-bottom: 20px;
}

.image-gare img {
    max-width: 80%;
    height: auto;
    margin: 10px auto;
    border-radius: 10px;
}

/*Responsive Carte intéractive*/
.map {
    text-align: center;
    margin: 20px auto;
}

.map iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 10px;
}