/* Déclaration de variables global */

:root {
    --bg-beige: #f4e9d8;
    --titre-brun: #a84300;
    --texte-noire: #2c3e50;
    --bg-gallerie: #f5f5f5;
    --hover-orange: #ffA500;
}

body {
    background: var(--bg-beige);
    color: var(--texte-noire);
    font-family: system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 40px;
}

header h1 {
    font-size: 40px;
    color: var(--titre-brun);
    margin-bottom: 15px;
}

header p {
    font-size: 19px;
    color: var(--texte-noire);
}

div {
    max-width: 800px;
    width: 100%;
    background: var(--bg-gallerie);
    border-radius: 15px;
    padding: 30px 30px; /*vertical horizontal*/
}

.art-item {
    display: none;
}

.art-item.active {
    display: block;
}

.art-item strong {
    color: var(--titre-brun);
    font-size: 22px;
    display: block;
    margin-top: 70px;
    text-align: center;
}

.art-item .description {
    margin-top: 30px;
    text-align: left;
}

.video-item video {
    height: 400px;
    width: 100%;
    cursor: pointer;
    display: block;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.art-item img{
    max-width: 100%;
    height: 400px;
    cursor: pointer;
    animation: fadeIn 1s ease-out forwards;
}

a {
    color: var(--titre-brun);
    text-decoration: none;
}

a:visited {
    color: var(--titre-brun);
}

a:hover,
a:visited:hover,
a:focus {
    color: var(--hover-orange);
}

a strong:hover {
    color: var(--hover-orange);
}

a:focus {
    outline: none;
}

footer {
    margin-top: auto;
    padding-top: 50px;
    font-size: 14px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    .galerie {
        padding: 20px 15px;
        margin: 0 10px;
    }
    .art-item img {
        height: 300px;
    }
    .video-item video {
        height: 300px;
    }
}
