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

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Cormorant+Garamond:wght@400;600&display=swap');

/* ===== AMBIANCE GENERALE ===== */

body.musee {
    margin: 0;
    background: radial-gradient(circle at center, #3a2c1a 0%, #1c140d 70%);
    font-family: 'Cormorant Garamond', serif;
    color: #f5e6c8;
}

/* ===== HERO MUSEE ===== */

.hero-musee {
    height: 100vh;
    background: #432301;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Effet lumière dramatique */
.lumiere {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,120,0.4) 0%, rgba(0,0,0,0) 70%);
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 6s infinite alternate ease-in-out;
}

@keyframes pulse {
    from { opacity: 0.6; transform: translateX(-50%) scale(1); }
    to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

.hero-content {
    position: relative;
    max-width: 700px;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 56px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color:#d4af37;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
}

/* ===== BOUTON STYLE OR ===== */

.btn-musee {
    padding: 15px 35px;
    background: linear-gradient(145deg, #d4af37, #a67c00);
    color: #2d1e10;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    transition: 0.4s ease;
}

.btn-musee:hover {
    transform: scale(1.08);
    background: linear-gradient(145deg, #f1c75b, #b8860b);
}

/* ===== SECTION AVEC CADRE DORE ===== */

.presentation-musee {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.cadre {
    max-width: 800px;
    padding: 50px;
    background: #2b1d12;
    border: 12px solid #a67c00;
    box-shadow: 
        0 0 40px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(255,215,0,0.2);
    text-align: center;
}

.cadre h2 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.cadre p {
    font-size: 20px;
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .cadre {
        padding: 30px;
    }
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* Header */
/* Navigation améliorée */
header {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

/* Liens */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

/* Effet soulignement animé */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #f0a500;
    left: 0;
    bottom: -5px;
    transition: 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Animation burger */
.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle span:nth-child(2) {
    opacity: 0;
}

.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-height: 576px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: #111;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transform: translateY(-200%);
        transition: transform 0.4s ease;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-active .nav-links {
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('images/art-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 20px;
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f0a500;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #cf8500;
}

/* Presentation */
.presentation {
    padding: 60px 0;
    text-align: center;
}

.presentation h2 {
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero {
        padding: 60px 0;
    }
}

/* SECTION RECHERCHE */
.search-section {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    background: #f9f9f9;
}

.search-container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.search-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #f0a500;
    outline: none;
    box-shadow: 0 0 8px rgba(240,165,0,0.3);
}

.input-group button {
    padding: 12px 20px;
    border: none;
    background: #f0a500;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.input-group button:hover {
    background: #cf8500;
}

.form-info {
    display: block;
    margin-top: 10px;
    color:#d4af37;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }

    .input-group button {
        width: 100%;
    }
}


/* TABLE */
table {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* En-tête */
thead {
    background: #111;
    color: white;
}

thead th {
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Lignes */
tbody tr {
    transition: 0.3s ease;
}

tbody tr:nth-child(even) {
    background: #f4f4f4;
}

tbody tr:hover {
    background: #fff3d6;
    transform: scale(1.01);
}

/* Cellules */
td {
    padding: 15px;
    text-align: center;
    font-size: 16px;
}

/* Images */
td img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #f0a500;
    transition: 0.3s ease;
}

td img:hover {
    transform: scale(1.1);
}

/* Lien retour */
a {
    display: block;
    text-align: center;
    margin: 30px 0;
    text-decoration: none;
    font-weight: bold;
    color: #f0a500;
    transition: 0.3s;
}

a:hover {
    color: #cf8500;
}

/* RESPONSIVE */
@media (max-width: 329px) {
    table {
        width: 95%;
    }

    thead {
        display: none;
    }

    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

    tr {
        margin-bottom: 20px;
        background: white;
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }

    td {
        text-align: left;
        padding: 8px 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
        color: #555;
    }
}

/* ===== POUSSIERE DANS LA LUMIERE ===== */

.poussiere {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.poussiere span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 220, 150, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 200, 120, 0.6);
    animation: flotter linear infinite;
}

/* Positions et durées différentes pour effet naturel */
.poussiere span:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.poussiere span:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.poussiere span:nth-child(3) { left: 40%; animation-duration: 15s; animation-delay: 4s; }
.poussiere span:nth-child(4) { left: 55%; animation-duration: 20s; animation-delay: 1s; }
.poussiere span:nth-child(5) { left: 70%; animation-duration: 14s; animation-delay: 3s; }
.poussiere span:nth-child(6) { left: 85%; animation-duration: 22s; animation-delay: 5s; }
.poussiere span:nth-child(7) { left: 15%; animation-duration: 17s; animation-delay: 6s; }
.poussiere span:nth-child(8) { left: 35%; animation-duration: 19s; animation-delay: 8s; }
.poussiere span:nth-child(9) { left: 60%; animation-duration: 16s; animation-delay: 7s; }
.poussiere span:nth-child(10){ left: 80%; animation-duration: 21s; animation-delay: 9s; }

/* Animation flottante */
@keyframes flotter {
    from {
        transform: translateY(100vh) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    to {
        transform: translateY(-10vh) scale(1.2);
        opacity: 0;
    }
}

/* HERO plus petit */
.petit-hero {
    height: 50vh;
}

/* SECTION RECHERCHE MUSEE */

.section-recherche-musee {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.cadre-recherche {
    background: #2b1d12;
    padding: 60px;
    border: 12px solid #a67c00;
    box-shadow:
        0 0 40px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(255,215,0,0.2);
    max-width: 700px;
    width: 100%;
}

/* FORMULAIRE */

.form-musee label {
    color: #f1c75b;
    display: block;
    font-size: 22px;
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.input-musee {
    display: flex;
    gap: 15px;
}

.input-musee input {
    flex: 1;
    padding: 15px;
    font-size: 18px;
    background: #f5e6c8;
    border: 2px solid #a67c00;
    border-radius: 8px;
    font-family: 'Cormorant Garamond', serif;
    transition: 0.3s ease;
}

.input-musee input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255,200,100,0.6);
    background: #fff3d6;
}

/* Bouton style or */
.input-musee button {
    padding: 15px 30px;
    background: linear-gradient(145deg, #d4af37, #a67c00);
    color: #2d1e10;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s ease;
}

.input-musee button:hover {
    transform: scale(1.08);
    background: linear-gradient(145deg, #f1c75b, #b8860b);
}

/* Responsive */
@media (max-width: 768px) {
    .input-musee {
        flex-direction: column;
    }

    .cadre-recherche {
        padding: 40px;
    }
}

/* ===== GALERIE MUSEE ===== */

.galerie-musee {
    padding: 80px 20px;
    text-align: center;
}

.galerie-musee h2 {
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 36px;
    margin-bottom: 40px;
}

/* CAROUSEL */

.carousel {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 20px;
}

.slide img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border: 12px solid #a67c00;
    box-shadow:
        0 0 40px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(255,215,0,0.2);
}

.slide p {
    margin-top: 15px;
    font-size: 20px;
}

/* BOUTONS */

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #f5e6c8;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background: #a67c00;
}

.prev { left: 10px; }
.next { right: 10px; }

/* MOBILE */

@media (max-width: 768px) {

    .slide img {
        max-height: 300px;
    }

    .prev, .next {
        font-size: 22px;
        padding: 8px 12px;
    }

    .galerie-musee h2 {
        font-size: 26px;
    }
}