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

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(rgba(7, 26, 46, 0.82), rgba(5, 18, 33, 0.92)),
        url('../images/common/beach-bg.jpg') center/cover no-repeat fixed;
    color: #ffffff;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-wrapper {
    margin: 0 auto;
    padding: 20px 0;
}

/* 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, 0.85);
    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: 12px;
}

.nav-btn,
.admin-btn,
.submit-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-btn {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.nav-btn:hover,
.nav-btn.active {
    background: #f7b733;
    color: #12263d;
    transform: translateY(-2px);
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.admin-btn,
.submit-btn {
    background: #ff8c42;
    color: #fff;
    font-weight: 800;
}

.admin-btn:hover,
.submit-btn:hover {
    background: #ff7420;
    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;
    max-width: 100%;
}

.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;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-logo-wrap img {
    max-width: 90%;
    max-height: 90%;
    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-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
    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 1fr;
        grid-template-areas:
            "main main"
            "right right"
            "gallery gallery";
    }

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

    .site-footer {
        grid-template-columns: 1fr;
    }
}

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

    .header-left,
    .header-right {
        display: flex;
        justify-content: center;
    }

    .site-logo {
        margin: 0 auto;
    }

    .header-nav {
        justify-content: center;
    }

    .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;
    }
}

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

    .card {
        padding: 18px;
    }

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

    .header-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

