* {
    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;
}



.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin-bottom: 30px;
}

    main {
    background-color: yellow;
    background-image: url("image/fond.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    padding: 20px;
}

/* Dimenssionement Image */

.galerie {
    padding: 20px;
    text-align: center;
}

.galerie h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
}

.galerie div {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
    gap: 20px;
    justify-items: center; /* centre les images dans leurs colonnes */
    margin-bottom: 30px;
}

.galerie img {
    width: 100%;
    max-width: 600px; /* limite la taille des images */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.galerie img:hover {
    transform: scale(1.05);
}

/* Responsive Photo */

@media (max-width: 768px) {
    .galerie div {
        grid-template-columns: 1fr; /* une seule colonne */
    }
}
