/* =========================
THEME
========================= */
:root {
    --color-background: black;
    --color-background-galeries: white;
    --color-text: #ffffff;
    --color-text-soft: #d8c690;
    --color-title:#b8860b;
    --color-accent: #d8c690;
    --color-hover: #b8860b;
    --color-overlay: rgba(0,0,0,0.45);
    --color-popup-bg: rgba(0,0,0,0.9);
    --color-button-bg: rgba(0,0,0,0.5);
    --color-button-hover: rgba(255,255,255,0.2);
    --color-badge: rgb(113, 29, 224);
}

/* =========================
MOT DE PASSE
========================= */
.fenetre-connexion{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.connexion-box{
    background:white;
    padding:30px;
    border-radius:10px;
    text-align:center;
    min-width:300px;
}

.connexion-box input{
    width:90%;
    padding:10px;
    margin:15px 0;
    font-size:16px;
}

.boutons button{
    padding:8px 15px;
    margin:5px;
    cursor:pointer;
}
      
/* =========================
BASE
========================= */
body {
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    font-family: cambria, serif;
    padding-top: 15px;
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

a {
    color: var(--color-text);
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}

/* =========================
PAGES
========================= */
.page-accueil {
    background-image: url('Photos/2026.04.17_095a.jpg');
}

.page-contact {
    background-image: url('Photos/2026.04.17_095a.jpg');
}

.page-présentation {
    background-image: url('Photos/2026.04.17_095a.jpg');
}

.page-galerie {
    background-color: var(--color-background-galeries);
}

/* =========================
TYPOGRAPHIE
========================= */
h1 {
    font-family: Cormorant Garamond, serif;
    font-size: 35px;
    margin-bottom: 5px;
    line-height: 1;
    color: var(--color-title);
}

h2 {
    font-family: Cormorant Garamond, serif;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1;
    color: var(--color-text-soft);
}

h3,
h4 {
    color: var(--color-text-soft);
}

p {
    font-family: Cormorant Garamond, serif;
    font-size: 15px;
    color: var(--color-text-soft);
}

.intro {
    color: var(--color-text);
    text-align: center;
    font-style: italic;
    font-size: 30px;
}

.histoire {
    text-align: center;
    color: var(--color-text);
    font-size: 20px;
}

/* =========================
NAVIGATION
========================= */
/* logo */
.logo {
    position: absolute;
    top: 15px;
    left: 30px;
    text-align: left;
}

.logo h1 {
    margin: 0;
}

.logo p {
    margin: 5px 0 0 0;
}

/* menu-toggle */
.menu-toggle {
    display: none;
}

/* navigateur */
.titre {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-soft);
    font-size: 15px;
}

nav {
    position: sticky;
    top: 0;
    background:var(--color-background);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    z-index: 10000;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: var(--color-hover);
}

/* navigateur page-galerie */
.page-galerie nav {
    position: sticky;
    top: 0;
    background:var(--color-background-galeries);
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    z-index: 10000;
}

.page-galerie nav a {
    color: black;
}

.page-galerie nav a:hover {
    color:var(--color-hover)
}

.page-galerie .actif {
    text-decoration: underline;
    color: var(--color-title)
}

.actif {
    text-decoration: underline;
    color: var(--color-accent);
}

/* menu galeries */       
.menu-galeries {
    position: relative;
    display: inline-block;
}

.ligne-galeries {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    gap: 25px;
    padding: 15px 15px 15px 15px;
    border-radius: 15px;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
}

.ligne-galeries a {
    font-size: 15px;
    transition: 0.3s;
}
        
.ligne-galeries a:hover {
    color: var(--color-accent);
}

.menu-galeries:hover .ligne-galeries {
    display: flex;
}

.page-galerie .ligne-galeries {
    background:rgba(255, 255, 255, 0.95)
}

/* menu */
.menu-salsa,
.menu-concerts,
.menu-nature,
.menu-urbain {
    position: relative;
    padding-bottom: 20px;   /* zone tampon invisible */
}

/* sous-menu */
.sous-menu-salsa,
.sous-menu-concerts,
.sous-menu-nature,
.sous-menu-urbain {
    display: none;
    position: absolute;
    text-align: center;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px 25px 20px;
    background: rgba(0,0,0,0.95);
    border-radius: 15px;
    white-space: nowrap;
    z-index: 9999;
}

/* sous-menu page-galerie */
.page-galerie .sous-menu-salsa,
.page-galerie .sous-menu-concerts,
.page-galerie .sous-menu-nature,
.page-galerie .sous-menu-urbain {
    background:#ffffffdc
}

.menu-salsa:hover .sous-menu-salsa,
.menu-concerts:hover .sous-menu-concerts,
.menu-nature:hover .sous-menu-nature,
.menu-urbain:hover .sous-menu-urbain {
    display: flex;
}

/* =========================
GALERIES
========================= */
/* nouvelles photos accueil */
.new-pics {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.new-pics img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.3s;
}

.new-pics img:hover {
    transform: scale(1.06);
    border-radius: 20px;
}

.accueil-categorie {
    width: 300px;
    margin: 40px auto;
    display: inline-block;
}

/* badge nouveautés */        
.badge-new {
    position: absolute;
    top: 20px;
    left: -40px;
    background: var(--color-badge);
    color: var(--color-text);
    padding: 8px 50px;
    transform: rotate(-35deg);
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* galerie */
.galerie {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 50px;
    cursor: zoom-in;
}

.galerie img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: 0.3s;
}

.galerie img:hover {
    transform: scale(1.06);
    border-radius: 20px;
}

.categorie {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.categorie img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.3s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text);
    font-size: 15px;
    opacity: 0;
    transition: 0.3s;
}

.categorie:hover .overlay {
    opacity: 1;
}

.categorie:hover img {
    transform: scale(1.05);
}

/* =========================
FORMULAIRES
========================= */
#contact {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

#contact h2 {
    font-size: 48px;
    color: var(--color-accent);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.contact-button {
    width: auto;
    max-width: 90%;
    padding: 20px 35px;
    font-size: 18px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
    transition: 0.3s;
}

input,
textarea {
    width: 700px;
    max-width: 90%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-family: cambria, serif;
    background: rgba(255, 255, 255, 0.95);
    color: black;
}

textarea {
    height: 220px;
    resize: none;
}

/* =========================
FOOTER/INSTAGRAM
========================= */
footer {
    margin-top: 80px;
    padding-bottom: 30px;
    text-align: center;
    color: var(--color-text);
    font-size: 15px;
}

.instagram-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-overlay);
    color: var(--color-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s;
    z-index: 9999;
}

.instagram-float:hover {
    transform: scale(1.15);
    color: var(--color-hover);
    background: var(--color-overlay);
}

/* =========================
LIGHTBOX
========================= */
#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-popup-bg);
    justify-content: center;
    align-items: center;
    z-index: 20000;
}

#popup img {
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-in;
}

.popup-prev,
.popup-next {
    position: absolute;
    top: 50%;
    border: none;
    border-radius: 15px;
    color: var(--color-text);
    font-size: 50px;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    width: auto;
}

.popup-prev:hover,
.popup-next:hover {
    transform: scale(1.2);
    transition: 0.3s;
    color: var(--color-accent);
}

.popup-prev {
    left: 30px;
}

.popup-next {
    right: 30px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-text);
    background: transparent;
    font-size: 40px;
    cursor: pointer;
}

.popup-close:hover {
    color: var(--color-accent);
    transform: scale(1.2);
    transition: 0.3s;
}

#titreImage {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 8px 15px;
    border-radius: 10px;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .logo {
    position: static;
    text-align: center;
    margin-bottom: 20px;
}

    .galerie {
        grid-template-columns: repeat(4, 1fr);
    }

    h1 {
        font-size: 45px;
    }

    .overlay {
        font-size: 20px;
    }

    input,
    textarea {
    width: 80%;
    }
}

@media (max-width: 768px) {
    .logo {
    position: static;
    text-align: center;
    margin-bottom: 20px;
}

    nav {
        flex-direction: column;
        gap: 15px;
    }

    h1 {
        font-size: 32px;
    }

    h2,
    h3 {
        font-size: 28px;
    }

    p {
        font-size: 18px;
        padding: 0 15px;
    }

    .overlay {
        font-size: 12px;
    }

    .galerie {
        grid-template-columns: repeat(3, 1fr);
    }

    input,
    textarea {
        width: 90%;
    }

    body {
        padding-top: 40px;
        background-position: center;
    }

    #popup img {
        max-width: 95%;
        max-height: 85%;
    }
}