﻿/* ========================= */
/* Corps de page             */
/* ========================= */
body {
    font-family: 'EB Garamond', serif !important;
    background-color: #F5F5F5 !important;
    color: #111111;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p, a, li, label, input, textarea, button {
    font-family: 'EB Garamond', serif !important;
    color: #111111;
    margin: 0 0 0.5em;
    padding: 0;
    background: none; /* supprime tout fond hérité */
}

/* ========================= */
/* Bandeau navigation global */
/* ========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff !important;
    border-bottom: 2px solid #d4a373;
    backdrop-filter: saturate(120%) blur(2px);
}

/* Nom artiste – version responsive */
.navbar-brand {
    font-family: 'Imprint MT Shadow', serif;
    font-size: 1.4rem; /* plus petit sur mobile */
    font-weight: 400;
    color: #5c3d2e;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90vw; /* s’adapte à presque toute la largeur de l’écran */
    transform: scaleY(1.05); /* pas d’élargissement horizontal sur mobile */
    transform-origin: left;
}

/* Élargir uniquement sur les écrans larges */
@media (min-width: 992px) {
    .navbar-brand {
        font-size: 1.8rem !important;
        transform: scaleX(2) scaleY(2) !important; /* élargissement horizontal */
        max-width: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
}

.navbar {
    flex-wrap: nowrap;
    overflow: visible;
}

/* Liens du menu */
.navbar-nav .nav-link {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #5c3d2e;
    transition: color 0.3s, border-bottom 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: #b85c38;
        border-bottom: 2px solid #b85c38;
    }

.nav-link.active {
    font-weight: bold;
    color: #b85c38;
    border-bottom: 2px solid #b85c38;
}

/* ========================= */
/* Mise en page d’accueil    */
/* ========================= */

.content-row {
    display: flex;
    flex-wrap: nowrap; /* pas de retour à la ligne */
    align-items: flex-start;
    gap: 40px;
    padding: 0 40px;
    margin-top: 30px;
}

.titre-actualites {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.actualites-col {
    flex: 0 0 320px;
}

.diaporama-col {
    flex: 1;
    min-width: 0;
    min-height: 800px; /* hauteur nécessaire pour le diaporama */
}

.actualite-item {
    margin-bottom: 1rem;
}

ul.actualites {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

.bio-accueil {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.45rem !important;
    line-height: 1.9 !important;
    color: #111111 !important;
    margin-bottom: 45px !important;
    white-space: pre-line !important;
    font-style: normal !important; /* clé : on enlève l’italique */
    font-weight: 400 !important;
    letter-spacing: -0.2px !important;
}

/* ========================= */
/* Diaporama                 */
/* ========================= */

#diaporama {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: 700px;
    position: relative;
    overflow: hidden;
    border: none; /* plus de bordure */
    border-radius: 0; /* angles droits */
    background-color: #F5F5F5; /* même fond que la page */
    box-shadow: none; /* suppression de l’ombre */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #diaporama .slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background-color: #F5F5F5;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        pointer-events: none;
        border: none;
    }

     #diaporama .slide.active {
         opacity: 1;
         pointer-events: auto;
         animation: zoomIn 10s ease-in-out infinite;
     }

    @keyframes zoomIn {
        0% {
            transform: scale(1);
        }

        100% {
         transform: scale(1.05);
        }
    }

    #diaporama:focus,
    #diaporama img:focus {
        outline: none;
        box-shadow: none;
    }

/* ========================= */
/* Responsive                */
/* ========================= */
@media (max-width: 768px) {

    .content-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
    }

    .actualites-col,
    .diaporama-col {
        width: 100%;
        max-width: 100%;
    }

    #diaporama {
        max-width: 100%;
        height: 350px;
        aspect-ratio: 1 / 1;
    }
}

/* ========================= */
/* Galerie centrée en Grid   */
/* ========================= */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin: 30px auto;
    max-width: 1600px;
    justify-items: center;
}

    .gallery-container.vertical {
        display: block;
    }

.gallery-item {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

    .gallery-item img.thumb {
        width: 100%;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        display: block;
        margin: 0 auto;
        transition: transform 0.3s ease;
    }

        .gallery-item img.thumb:hover {
            transform: scale(1.05);
        }

.gallery-caption h2 {
    font-size: 0.9em;
    font-weight: 500;
    margin: 6px 0 0;
    color: #5c3d2e;
    text-align: center;
}

.category-block {
    width: 100%;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #d4a373;
}

.gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(45deg, #fbe6d4, #fbe6d4 10px, #f3c9a9 10px, #f3c9a9 20px);
    border: 2px dashed #d4a373;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    color: #5c3d2e;
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    font-style: normal;
}

/* ========================= */
/* Galerie hiérarchique      */
/* ========================= */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

    .images-grid img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        transition: transform 0.3s ease;
    }

        .images-grid img:hover {
            transform: scale(1.05);
        }

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.subcategory {
    width: 220px;
    text-align: center;
}

    .subcategory img {
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.2);
        transition: transform 0.3s ease;
    }

        .subcategory img:hover {
            transform: scale(1.05);
        }

    .subcategory span {
        display: block;
        margin-top: 8px;
        font-weight: bold;
        font-family: 'Cormorant Garamond', serif;
        color: #5c3d2e;
    }


/* ========================= */
/* Page Biographie           */
/* ========================= */

.bio-layout {
    display: flex;
    flex-wrap: nowrap; /* empêche le texte de passer sous la photo */
    align-items: flex-start;
    gap: 40px;
    padding: 0 40px;
    margin-top: 30px;
}

.artist-photo {
    flex: 0 0 auto;
}

    .artist-photo img {
        max-width: 250px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 6px 14px rgba(0,0,0,0.25);
        display: block;
    }

/* Colonne texte */
.bio-text {
    flex: 1; /* prend toute la place restante */
    min-width: 0; /* évite les retours à la ligne forcés */
}

/* Responsive */
@media (max-width: 768px) {
    .bio-layout {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .artist-photo img {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* ========================= */
/* Scroll vertical des images */
/* ========================= */
.scroll-gallery {
    max-height: 80vh; /* hauteur max de la zone */
    overflow-y: auto; /* scroll vertical */
    padding-right: 10px;
}

    .scroll-gallery img {
        display: block;
        margin: 0 auto;
        max-width: 600px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .scroll-gallery div {
        margin-bottom: 25px;
        text-align: center;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.1em;
        color: #5c3d2e;
    }

/* =========================== */
/* Tableau des sous-catégories */
/* =========================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .table th, .table td {
        padding: 12px 16px;
        border: 1px solid #ddd;
        text-align: left;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.1em;
    }

    .table th {
        background-color: #f3c9a9;
        color: #5c3d2e;
        font-weight: bold;
    }

.table-hover tbody tr:hover {
    background-color: #fbe6d4;
}

/* ====== Liens sous-catégories ====== */
.table a {
    text-decoration: none;
    color: #5c3d2e;
    font-weight: 600;
    transition: color 0.3s ease;
}

    .table a:hover {
        color: #b85c38;
        text-decoration: underline;
    }

.page-categories .subcategories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.page-categories .subcategory {
    display: block;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 1rem;
    text-align: center;
    width: 300px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

    .page-categories .subcategory:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .page-categories .subcategory img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .page-categories .subcategory .category-name {
        margin-top: 0.5rem;
        font-size: 0.9rem;
        font-weight: 500;
        font-family: 'Playfair Display', serif;
    }

.vision-art p {
    color: #f0f0f0; /* blanc doux */
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* lisibilité renforcée */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================= */
/* Galerie - Modal & retour */
/* ========================= */

.btn-retour {
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 99999;
    background: rgba(0,0,0,0.4);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-retour:hover {
        background: rgba(0,0,0,0.7);
    }

.btn-close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2001;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-fullscreen {
    position: absolute;
    top: 10px;
    right: 50px;
    z-index: 2001;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-nav-modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    transition: background 0.3s ease, opacity 0.4s ease;
}

.btn-prev {
    left: 10px;
}

.btn-next {
    right: 10px;
}

.btn-nav-modal:hover {
    background: rgba(0,0,0,0.7);
}

/* ? Animation d’apparition de l’image dans la modale */
#modalImage {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#imageModal.show #modalImage {
    opacity: 1;
    transform: scale(1);
}

/* ? Animation d’apparition du titre dans la modale */
#modalTitle {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#imageModal.show #modalTitle {
    opacity: 1;
    transform: translateY(0);
}

#imageModal.show .btn-nav-modal {
    opacity: 1;
}

/* ? Animation du bouton de fermeture ? */
.btn-close-modal {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#imageModal.show .btn-close-modal {
    opacity: 1;
}

/* ? Animation du bouton plein écran */
.btn-fullscreen {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#imageModal.show .btn-fullscreen {
    opacity: 1;
}

/* 🎞️ Animation du fond de la modale (fade + zoom) */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal.fade.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* 🎨 Apparence claire et sans cadre */
.modal-content {
    background-color: #F5F5F5 !important;
    border: none !important;
    box-shadow: none !important;
}

.modal-body {
    background-color: #F5F5F5 !important;
    padding: 0 !important;
}

.modal-backdrop.show {
    background-color: #F5F5F5 !important;
    opacity: 1 !important;
}

#modalImage {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100%;
    height: auto;
}

/* ========================= */
/* Page Contact              */
/* ========================= */

.contact-hero {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

.contact-hero-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}

/* Titre de la page Contact */
.contact-hero {
    display: flex;
    align-items: center;
    height: 150px;
    width: 100%;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    padding-right: 2rem;
}

.contact-hero-img {
    height: 100%;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.contact-banner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    height: 100%;
    padding: 0 1rem;
    animation: fadeIn 1.5s ease-out forwards;
}

.contact-container {
    max-width: 650px;
    margin-top: 0;
    margin-bottom: 80px;
}

/* Bloc du formulaire */
.contact-form {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 20px;
}

/* Champs arrondis */
.rounded-input {
    border-radius: 6px;
}

/* Bouton arrondi */
.rounded-button {
    border-radius: 6px;
    font-size: 16px;
}

/* Animation fade-in */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s;
}

/* Largeur des champs */
.contact-form .form-control {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 15px auto;
    display: block;
}

/* Bouton centré */
.contact-form button {
    max-width: 200px;
    margin: 20px auto 0 auto;
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-hero {
        flex-direction: column;
        height: auto;
        padding-right: 0;
    }

    .contact-hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center top;
    }

    .contact-banner {
        width: 100%;
        font-size: 20px;
        padding: 1rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .contact-form {
        max-width: 100%;
    }
}


/* ========================= */
/* BIO — version unifiée     */
/* ========================= */
.bio-text {
    flex: 1;
    min-width: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3em;
    font-style: normal;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
    padding-right: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

/* ========================= */
/* Captions                  */
/* ========================= */

.gallery-caption {
    color: #000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    font-size: 1.1rem; /*Titre des dossiers de la galerie*/
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

.subcategory-caption {
    font-size: 0.9rem; /*Titre des catégories filles*/
    font-weight: 500;
    margin-top: 6px;
    font-family: 'Playfair Display', serif;
    color: #000;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.peinture-caption,
.peinture-caption * {
    color: #000 !important;
    text-decoration: none !important;
}

.peinture-taille {
    font-size: 0.6rem;
    color: #000;
}

/* ========================= */
/* Zones Actualités          */
/* ========================= */

.actualites,
.actualites * {
    color: #222222 !important;
}

/* ========================= */
/* Vision Art                */
/* ========================= */

.vision-art,
.vision-art * {
    color: #fff !important;
}

/* ========================= */
/* Form labels               */
/* ========================= */

form label.form-label {
    color: #333333;
    font-weight: 600;
}

/* ========================= */
/* Miniatures peintures      */
/* ========================= */

.painting-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

    .painting-thumb:hover {
        transform: scale(1.03);
    }

.painting-title {
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    color: #000;
    text-align: center;
    margin-top: 4px;
}

a[title="Espace privé"]:hover {
    opacity: 0.25 !important;
}

.toggle-icon {
    display: inline-block;
    margin-right: 4px;
    color: #555;
    transition: transform 0.2s ease;
}

.toggle-icon.rotated {
    transform: rotate(90deg);
}

.category-tree .category-tree,
.category-tree .paintings-container {
    display: none;
}

.category-tree .category-tree.expanded,
.category-tree .paintings-container.expanded {
    display: block;
}