* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(201, 207, 174, 0.82), rgba(0, 0, 0, 0.92)),
        url('../images/common/beach-bg.jpg') center/cover no-repeat fixed;
    color: #ffffff;
    min-height: 100vh;
}

.site-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 12px;
}

.btn_fb {
    color:#f7b733;
    text-align:center;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 12px 22px;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    width:80px;
}

.btn_fb:hover {
    color:#ffffff;
}

/* HEADER */
.site-header {
    display: grid;
    grid-template-columns: 120px 1fr 140px;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(10, 20, 35, 1);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.site-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.nav-btn,
.admin-btn,
.submit-btn {
    padding: 12px 18px;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    width:80px;
    text-align:center;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-btn {
    color: #fac854;
}

.nav-btn:hover,
.nav-btn.active {
    color: #fff;
    transform: translateY(-2px);
    font-size:2.2rem;
}

.nav-btn.active {
    position: relative;
    color: #fff;
    transform: translateY(-2px);
    font-size: 2.2rem;
    overflow: hidden;
}

/* Bordure animée rotative */
.nav-btn.active::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: conic-gradient(
        from 0deg,
        transparent,
        #f7b733,
        transparent 30%
    );
    animation: rotateBorder 2s linear infinite;
    z-index: 0;
}

/* Fond intérieur */
.nav-btn.active::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: rgba(10, 20, 35, 1);
    z-index: 1;
}

/* Contenu au-dessus */
.nav-btn.active i,
.nav-btn.active span {
    position: relative;
    z-index: 2;
}

/* Animation */
@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}


.admin-btn,
.submit-btn {
    color: #ca1e1e;
    font-weight: 800;
}

.link {
    color:white;
    padding-right:20px;
    font-size:2em;
}
.link:hover {
    color:#fac854;
}
.admin-btn:hover,
.submit-btn:hover {
    color: #4723cc;
    transform: translateY(-2px);
}

/* GRID GLOBAL */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1.2fr;
    grid-template-areas:
        "main main right"
        "gallery gallery gallery";
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: rgba(10, 20, 35, 0.82);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
    padding: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.main-section {
    grid-area: main;
}

.right-section {
    grid-area: right;
}

.gallery-section {
    grid-area: gallery;
}

.section-title-wrap h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd166;
}

.intro-text {
    color: rgba(255,255,255,0.88);
    margin-bottom: 22px;
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-card {
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.08);
}

.info-card h2 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #7bdff2;
}

.info-card p {
    line-height: 1.6;
    color: rgba(255,255,255,0.90);
}

/* PARTENAIRES */
.right-section h2 {
    margin-bottom: 16px;
    color: #ffd166;
}

.partners-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.10);
}

.partner-logo-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-card span {
    font-weight: 700;
}

/* GALERIE */
.gallery-header {
    margin-bottom: 16px;
}

.gallery-header h2 {
    color: #ffd166;
    margin-bottom: 5px;
}

.gallery-header p {
    color: rgba(255,255,255,0.82);
}

.gallery-section {
    grid-area: gallery;
    width: 100%;
    overflow: hidden;
}

.gallery-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
    animation: scrollGallery 40s linear infinite;
}

.gallery-slider:hover .gallery-track {
    animation-play-state: paused;
}

.gallery-item {
    width: 300px;
    height: 220px;
    overflow: hidden;
    border-radius: 18px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-empty {
    padding: 20px;
    color: #fff;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}

/* FOOTER */
.site-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-col h3 {
    color: #ffd166;
    margin-bottom: 10px;
}

.footer-col p {
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.modal-backdrop.active {
    display: flex;
}

.modal-box {
    width: min(420px, 100%);
    background: #12263d;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.12);
}

.modal-box h2 {
    margin-bottom: 18px;
    color: #ffd166;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.admin-form {
    display: grid;
    gap: 12px;
}

.admin-form label {
    font-weight: 700;
}

.admin-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main main"
            "right right"
            "gallery gallery";
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
    .header-nav {
        justify-content: center;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }

.nav-btn,
.admin-btn,
.submit-btn {
    padding: 0px;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-btn {
    color: #fac854;
}

}

@media (max-width: 820px) {
    .site-header {
        text-align: center;
    }


    .site-logo {
        margin: 0 auto;
    }

    .header-nav {
        justify-content: center;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap:0px;
        padding:0px;
    }

    .home-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "right"
            "gallery";
    }

    .gallery-item {
        width: 240px;
        height: 180px;
    }

    .section-title-wrap h1 {
        font-size: 1.6rem;
    }

   .nav-btn,
.admin-btn,
.submit-btn {
    padding: 0px;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-btn {
    color: #fac854;
}

}

@media (max-width: 540px) {
    .site-wrapper {
    width: 100%;
    padding: 8px;
}

    .card {
        padding: 18px;
    }

    .nav-btn,
    .admin-btn,
    .submit-btn {
        width: 100%;
    }

    .header-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap:0px;
        padding:0px;
        font-size:0.8em;
    }

    .gallery-item {
        width: 200px;
        height: 150px;
    }

    .nav-btn,
.admin-btn,
.submit-btn {
    padding: 0px;
    background-color: transparent;
    border: none;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-btn {
    color: #fac854;
}

.nav-btn:hover,
.nav-btn.active {
    color: #fff;
    transform: translateY(-2px);
    font-size:2em;
}
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr;
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

@media (max-width: 820px) {
    .gallery-section,
    .gallery-slider {
        width: 100%;
        overflow: hidden;
    }

    .gallery-item {
        width: 240px;
        height: 180px;
    }
}

@media (max-width: 540px) {
    .gallery-section,
    .gallery-slider {
        width: 100%;
        overflow: hidden;
    }

    .gallery-track {
        gap: 10px;
    }

    .gallery-item {
        width: 180px;
        height: 135px;
    }
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

.weather-box {
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.weather-box h2 {
    margin-bottom: 14px;
    color: #ffd166;
    font-size: 1.2rem;
}

.weather-current {
    display: grid;
    gap: 14px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weather-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.weather-temp {
    font-size: 2rem;
    font-weight: 800;
    color: #7bdff2;
    line-height: 1;
}

.weather-desc {
    margin-top: 6px;
    color: rgba(255,255,255,0.92);
    font-weight: 600;
}

.weather-details p,
.weather-unavailable {
    margin: 6px 0;
    color: rgba(255,255,255,0.88);
}