@charset "utf-8";

/* Styles généraux */
html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
    touch-action: manipulation;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    overscroll-behavior: none;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    overflow: auto;
    background-color: #ffffff;
    background-image: url('https://www.jardincommunautairestfelicien.org/infographies/planjardins1920x1080.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    background-attachment: scroll;
    image-rendering: auto;
    -webkit-overflow-scrolling: touch;
}

body::-webkit-scrollbar {
    display: none;
}

.wrapper {
    width: 1920px;
    margin: 0 auto;
    max-width: none;
}

/* Menu et logos */
.menuWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 50, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10;
    box-sizing: border-box;
}

.logo {
    width: clamp(80px, 10vw, 120px);
    height: auto;
    flex-shrink: 0;
    max-width: 100%;
}

.menuButtons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    flex-grow: 1;
    padding: 0 10px;
    min-width: 0;
}

.menuButton {
    font-size: clamp(14px, 2vw, 20px);
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8);
    padding: 6px 8px;
    border-radius: 14px;
    background-color: rgba(0, 120, 0, 0.65);
    border: 0px solid #ccc;
    transition: background-color 0.3s ease;
}

.menuButton:hover {
    background-color: #C16000;
}

/* Liens */
.link-green {
    color: #54B420;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.link-green:hover {
    text-decoration: underline;
}

/* Pied de page */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    background-color: #f1f1f1;
    width: 100%;
    box-sizing: border-box;
}

/* Année */
.year {
    font-size: 30px;
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    font-family: Verdana, sans-serif;
    background: transparent;
    color: #69D586;
}

/* Pop-up */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    width: 90%;
    max-width: 900px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup iframe {
    width: 100%;
    height: 700px;
    border-radius: 8px;
}

.return-overlay {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

.return-button {
    display: inline-block;
    width: 150px;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #044400;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.return-button:hover {
    background-color: #63BD65;
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    body {
        background-size: contain;
        background-position: top center;
    }

    .menuButtons {
        flex-direction: column;
        align-items: center;
    }

    .menuButton {
        font-size: 16px;
        padding: 8px 12px;
    }

    .logo {
        width: 80px;
    }

    .popup iframe {
        height: 400px;
    }

    .return-button {
        width: 200px;
        padding: 16px;
        font-size: 1.25rem;
        border-radius: 8px;
    }
}