/* Import de la police */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-links a:hover {
    color: #666;
}

.presentation {
    padding: 2rem;
    text-align: center;
}

.presentation {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
}

.presentation-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.photo-artist img {
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.texte-artist {
    flex: 1;
    min-width: 300px;
}

.texte-artist h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.texte-artist p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.acces-oeuvres {
    padding: 2rem;
    background-color: #fff;
    text-align: center;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.categorie {
    background-color: #eee;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    color: #000;
    transition: background-color 0.3s;
}

.categorie:hover {
    background-color: #ccc;
}

footer {
    background-color: #fff;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #ddd;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

.oeuvre-card {
    background-color: #fff;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.slider {
    position: relative;
    width: 100%;
    height: 200px;
}

.slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider img.active {
    opacity: 1;
}

.oeuvre-info {
    padding: 1rem;
}

.oeuvre-info h3 {
    margin: 0;
    font-size: 1.2rem;
}

.voir-plus {
    display: inline-block;
    margin-top: 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
}

.voir-plus:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .texte-artist h1 {
        text-align: center;
    }

    .texte-artist p {
        text-align: justify;
    }
}

.galerie-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.galerie-container h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 250px;
    /* ou 200px si tu veux plus petit */
    object-fit: cover;
    /* coupe proprement l’image sans la déformer */
    display: block;
}


.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.card-body p {
    margin: 5px 0;
    font-size: 0.95em;
}

.type {
    font-style: italic;
    color: #666;
}

.dispo-yes {
    color: green;
    font-weight: bold;
}

.dispo-no {
    color: red;
    font-weight: bold;
}

/* Lightbox Overlay */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

#lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
}

.hidden {
    display: none;
}

/* --- Formulaire ajout d'œuvre --- */
.form-ajout {
    max-width: 500px;
    margin: 50px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-ajout h2 {
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    color: #5c6bc0;
}

.form-ajout label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.form-ajout input[type="text"],
.form-ajout input[type="number"],
.form-ajout input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.form-ajout input[type="checkbox"] {
    margin-right: 10px;
}

.form-ajout button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 25px;
    background-color: #e65835;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-ajout button:hover {
    background-color: #ea795d;
}

.form-ajout h1 {
    text-align: center;

}

.logo-img {
    height: 60px;
    /* ajuste selon ton design */
    width: auto;
}



/* Responsive */
@media (max-width: 600px) {
    .form-ajout {
        padding: 20px;
        margin: 30px auto;
    }
}

/* Tablettes */

@media (max-width: 768px) {

    /* Header et footer centrés */
    .header,
    .footer {
        text-align: center;
    }

    /* Menu en colonne */
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Colonnes / cards */
    .row {
        flex-direction: column;
        /* empile les colonnes */
        gap: 20px;
    }

    .col {
        flex: 1 1 100%;
        /* chaque card prend toute la largeur */
        margin-bottom: 15px;
    }

    /* Images et vidéos dans les cards */
    .card img,
    .card video {
        width: 100%;
        height: auto;
    }

    /* Titres et textes */
    h1,
    h2,
    h3,
    p {
        text-align: center;
        /* centrer le texte */
    }

    /* Boutons */
    .btn {
        width: 80%;
        margin: 10px auto;
        display: block;
    }

    /* Formulaires */
    form {
        width: 90%;
        margin: 0 auto;
    }

    input,
    textarea,
    select {
        width: 100%;
        margin-bottom: 10px;
    }
}



/* Smartphones */
@media (max-width: 480px) {
    /* Header */
    .header img {
        width: 80%;
        margin: 0 auto;
        display: block;
    }

    /* Menu */
    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .menu li {
        margin: 10px 0;
        text-align: center;
    }

    /* Cards / Colonnes */
    .row {
        flex-direction: column;
        gap: 15px;
    }

    .col {
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    .card img, .card video {
        width: 100%;
        height: auto;
    }

    /* Titres et textes */
    h1, h2, h3, p {
        text-align: center;
    }

    /* Boutons */
    .btn {
        width: 90%;
        margin: 10px auto;
        display: block;
    }

    /* Formulaires */
    form {
        width: 95%;
        margin: 0 auto;
    }

    input, textarea, select {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Footer centré */
    .footer {
        text-align: center;
    }
}




.footer-icons {
    text-align: center;
    margin-bottom: 10px;
}

.footer-icon {
    width: 30px;
    /* ajuste selon ton design */
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
}

.contact-direct {
    text-align: center;
    margin: 30px 0;
}

.btn-contact {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e65835;
    /* couleur du bouton */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #ea795d;
}

/* Section formulaire contact */
.form-contact {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.form-contact h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-contact label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-contact input[type="text"]:focus,
.form-contact input[type="email"]:focus,
.form-contact textarea:focus {
    border-color: #e65835;
    outline: none;
}

.form-contact button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #e65835;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-contact button:hover {
    background-color: #ea795d;
}

/* Messages de succès et d'erreur */
.form-contact p {
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}
.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
}
.pagination a.active {
    background: #333;
    color: #fff;
    font-weight: bold;
}

.boutons-admin {
    text-align: center; /* centrer les boutons */
    margin: 30px 0;     /* espace au-dessus et en dessous */
}

.btn-admin, .btn-logout {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #e65835; /* bleu */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-admin:hover {
    background-color: #0056b3; /* bleu plus foncé au survol */
}

.btn-logout {
    background-color: #dc3545; /* rouge */
}

.btn-logout:hover {
    background-color: #a71d2a; /* rouge foncé */
}
