/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');

/* Structure de base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: url('adonis_salon.png') no-repeat center 20% fixed;
    background-size: cover;
    color: white;
    font-family: 'Arial', sans-serif;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    height: 150px;
    position: relative;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0));
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 120px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Dancing Script', cursive;
}

nav ul li a:hover {
    color: #8211ec;
}

/* Connexion */
.login-button {
    position: absolute;
    top: 20px;
    right: 50px;
}

/* Menu utilisateur */
.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
}

.user-menu {
    display: none;
    position: absolute;
    background-color: #222;
    right: 0;
    top: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.user-menu li a:hover {
    background-color: #6b00a5;
}

.user-info:hover .user-menu {
    display: block;
}

/* Section principale */
main {
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    flex: 1;
}

h1 {
    font-size: 3rem;
    margin-top: 0;
    animation: fadeIn 2s ease-in-out;
    font-family: 'Dancing Script', cursive;
}

.intro-text {
    font-size: 1.5rem;
    margin-top: 20px;
    animation: fadeIn 3s ease-in-out;
}

/* Animation fade-in */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Photos */
.photos {
    margin-top: 40px;
    animation: fadeIn 3s ease-in-out;
}

.photos h2 {
    font-size: 2rem;
}

.photo-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    width: 30%;
    border: 2px solid white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-item:hover {
    transform: scale(1.05);
}

/* Infos */
.infos {
    margin-top: 40px;
    text-align: left;
}

.infos ul {
    list-style: none;
    padding: 0;
}

.infos li {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.infos a {
    color: #ffffff;
    text-decoration: none;
}

.infos a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #222;
    padding: 10px;
    color: white;
    margin-top: auto;
}

/* Bouton de connexion */
.btn-login {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.btn-login:hover {
    color: #8211ec;
}

/* Message de confirmation de réservation */
.confirmation-message {
    background-color: #4caf50;
    color: white;
    padding: 15px 25px;
    margin: 20px auto;
    max-width: 90%;
    width: fit-content;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    animation: fadeOut 5s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.confirmation-message::before {
    content: "✅";
    font-size: 1.2rem;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox .close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox .close:hover {
    color: #bbb;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .confirmation-message {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .photo-container {
        flex-direction: column;
        align-items: center;
    }

    .photo-item {
        width: 90%;
    }
}
