@font-face {
    font-family: 'Summer Vibes';
    src: url('Summer\ Vibes\ OTF.otf') format('opentype')
}

@font-face {
    font-family: 'Roboto';
    font-weight: 400;
    src: url('Roboto-Regular.ttf') format('truetype')
}

@font-face {
    font-family: 'Roboto';
    font-weight: 100;
    src: url('Roboto-Thin.ttf') format('truetype')
}

@font-face {
    font-family: 'Roboto';
    font-weight: 300;
    src: url('Roboto-Light.ttf') format('truetype');
}

body {
    font-family: 'Roboto';
    margin: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);
    border-bottom: 2px solid #015577;
    z-index: 99;
    position: fixed;
    width: 98%;
}

#menuToggle {
    display: none;
}

header img {
    height: 50px;
}

header h1 {
    font-family: 'Summer Vibes';
}

header h1 span {
    color: rgb(15, 161, 198);
}

header h1 span:last-child {
    color: rgb(1, 85, 119);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: rgb(1, 85, 119);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    transition: pointer;
}

nav a:hover {
    background-color: rgb(15, 161, 198);
    color: white;
}

main {
    padding-top: 120px;
}

section {
    padding: 20px;
    display: none;    
}

section:target {
    display: block;
}

section[id] {
    scroll-margin-top: 150px;
}

.banderole {
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    justify-items: center;
}

.gallery img {
    width: 300px;
    margin: 20px;
    transition: all 0.5s;
}

.gallery img:hover {
    width: 350px;
    margin: 10px
}

/* Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background: #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
}

.popup img {
    max-height: 40vh;
    height: auto;
    border-radius: 8px;
}

.popup img:first-child {
    max-height: 10vh;
}

#popup-image-img {
    max-height: 75vh;
    max-width: 80vw;
}

#popup-image .popup-content {
    max-width: 60%;
    display: flex;
    align-items: center;
}

#popup-image .popup-content div {
    margin: 25px;
}

.close-button {
    background-color: #ff5f57;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.apartenaire {
    color: -webkit-link;
    cursor: pointer;
    text-decoration: underline;
}

#fiche-contact {
    width: 300px;
    background-color: #f9f9f9; /* Couleur de fond douce */
    border-radius: 12px; /* Coins arrondis */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce */
    padding: 20px;
    text-align: center; /* Centrer le contenu */
    font-family: Arial, sans-serif;
    margin: 20px auto; /* Centrer horizontalement sur la page */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Effet au survol */
}

#fiche-contact:hover {
    transform: translateY(-5px); /* Légère élévation au survol */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Accentuation de l'ombre */
}

#fiche-contact img {
    width: 80px; /* Taille de l'image */
    height: 80px;
    
}

#fiche-contact h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px; /* Espacement avec les informations */
    font-weight: bold;
}

#fiche-contact p {
    margin: 10px 0;
    color: #333; /* Texte noir doux */
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fiche-contact p .icon {
    width: 20px; /* Taille de l'icône */
    height: 20px;
    margin-right: 8px; /* Espacement entre l'icône et le texte */
    vertical-align: middle;
    object-fit: contain;
}

#fiche-contact a {
    color: #0073e6; /* Couleur bleue pour le lien */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#fiche-contact a:hover {
    color: #005bb5; /* Couleur légèrement plus sombre au survol */
}

footer {
    text-align: center;
    padding: 10px;
    background-color: rgba(1, 85, 119, 0.9);
    color: white;
}

@media (max-width: 768px) {
    header {
        width: 91%;
    }
    nav {
        display: none;
    }

    ul {
        padding: 0;
        list-style-type: none;
    }

    ul li a {
        text-decoration: none;
        color: rgb(1, 85, 119);
        font-weight: bold;
        padding: 5px 10px;
    }

    #menuToggle {
        display: flex;
        flex-direction: column;
        position: relative;
        left: 25px;
        z-index: 1;
        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle input {
        display: flex;
        width: 40px;
        height: 32px;
        position: absolute;
        cursor: pointer;
        opacity: 0;
        z-index: 2;
    }

    #menuToggle span {
        display: flex;
        width: 29px;
        height: 2px;
        margin-bottom: 5px;
        position: relative;
        background: rgb(1, 85, 119);
        border-radius: 3px;
        z-index: 1;
        transform-origin: 5px 0px;
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                    opacity 0.55s ease;
    }

    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    #menuToggle input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(-3px, -1px);
        background: #36383F;
    }

    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    #menuToggle input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    #menu {
        position: absolute;
        width: 180px;
        height: 400px;
        box-shadow: 0 0 10px #85888C;
        margin: -50px 0 0 -50px;
        padding: 50px;
        padding-top: 125px;
        background-color: #F5F6FA;
        -webkit-font-smoothing: antialiased;
        transform-origin: 0% 0%;
        transform: translate(-100%, 0);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    #menu li {
        padding: 10px 0;
        transition-delay: 2s;
    }

    #menuToggle input:checked ~ ul {
        transform: none;
    }

    #popup-image .popup-content {
        max-width: 85%;
        overflow: auto;
        flex-direction: column;
    }

    .popup-content {
        overflow: auto;
    }

    .popup img {
        max-width: 80vw;
    }

}