*,
*:before,
*:after {
  box-sizing: border-box;
}

@font-face {
    font-family: 'Junicode';
    src: url('fonts/Junicode.ttf');
}

@font-face {
    font-family: 'ATypewriter';
    src: url('fonts/ATypewriter.ttf');
}

body {
    font-family: 'ATypewriter', monospace, sans-serif;
    font-size: 1.2rem;
    color: #0D0D0D;
    line-height: 1.6;
    background-color: #EDEDED;
    overflow-x: hidden;
    padding-top: 130px;
    cursor: url('images/cursor/cursor4.png'), auto;
    margin: 0;
}

h1, h2, h3 {
    font-family: 'Junicode', serif, sans-serif;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #EDEDED;
    z-index: 1000;
    border-bottom: 2px solid #0D0D0D;
    transition: box-shadow 0.3s ease;
}

.logo-corner {
    position: absolute;
    top: 15px;
    left: 20px;
    z-index: 1001;
}

.logo-corner h1 {
    font-size: 1.8rem;
    margin: 0;
}

.logo-corner h1 a {
    color: #0D0D0D;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-corner h1 a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.nav-bar {
    font-family: 'Junicode', monospace, sans-serif;
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    border-bottom: 1px solid #0D0D0D;
    flex-wrap: wrap;
}

.nav-bar a {
    color: #0D0D0D;
    text-decoration: none;
    font-size: 1.5rem;
    transition: opacity 0.3s;
    margin: 0 15px;
}

.nav-bar a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.scrolling-banner {
    width: 100%;
    overflow: hidden;
    background-color: #0D0D0D;
    color: #EDEDED;
    padding: 7px 0;
    position: relative;
}

.scrolling-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
    will-change: transform;
}

.scrolling-content span {
    display: inline-block;
    padding: 0 20px;
    font-size: 1.2rem;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
    padding: 0;
}

.artists-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2px;
    height: calc(100vh - 130px);
    background-color: #0D0D0D;
}

/* liste des artistes */
.artists-list-panel {
    background-color: #EDEDED;
    border-right: 3px solid #0D0D0D;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.artists-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.artist-item {
    padding: 20px 15px;
    border-bottom: 1px solid #0D0D0D;
    cursor: url('images/cursor/cursor4.png'), pointer;
    transition: all 0.3s ease;
    background-color: #EDEDED;
}

.artist-item:hover {
    background-color: #D9D9D9;
    padding-left: 20px;
    box-shadow: inset 3px 0 0 #0D0D0D;
}

.artist-item.active {
    background-color: #0D0D0D;
    color: #EDEDED;
    box-shadow: inset 4px 0 0 #EDEDED;
}

.artist-item h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

/* détails de l'artiste */
.artist-details-panel {
    background-color: #EDEDED;
    padding: 40px;
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
}

.details-content {
    max-width: 100%;
}

.artist-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0D0D0D;
}

.artist-header h2 {
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

/* bio */
.biography-section {
    margin-bottom: 40px;
}

.biography-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.biography-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
    margin: 0;
    color: #0D0D0D;
}

/* sélection d'œuvres */
.works-section {
    margin-top: 40px;
}

.works-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border: 0px solid #0D0D0D;
    aspect-ratio: 1;
    background-color: #D9D9D9;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.85);
    color: #EDEDED;
    padding: 10px;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-caption {
    transform: translateY(0);
}

/* Footer */
footer {
    font-family: 'ATypewriter', monospace, sans-serif;
    color: #0D0D0D;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    border-top: 2px solid #0D0D0D;
    background-color: #EDEDED;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

footer .links-container {
    margin: 0;
    padding: 0;
    gap: 15px;
}

footer p {
    margin: 0;
}

footer a {
    font-family: 'ATypewriter', monospace, sans-serif;
    color: #0D0D0D;
    text-decoration: underline;
    font-size: 1rem;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.5;
    cursor: url('images/cursor/cursor4.png'), auto;
}

.links-container {
    display: flex;
    justify-content: center;
    padding: 10px 30px;
    gap: 20px;
    flex-wrap: wrap; 
    margin: 10px 20px;
    transition: all 0.3s;
}

.links-container :hover {
    transform: scale(1.05);
    cursor: url('images/cursor/cursor4.png'), auto;
}

.links-container .logo-reseaux img {
    height: 30px;
    width: auto;
    transition: opacity 0.3s;
}

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

@media (max-width: 1200px) {
    body {
        padding-top: 175px;
    }

    .fixed-header {
        width: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
    }

    .logo-corner {
        position: static;
        text-align: center;
        padding: 12px 15px;
        border-bottom: 2px solid #0D0D0D;
    }

    .logo-corner h1 {
        font-size: 1.8rem;
    }

    .nav-bar {
        gap: 20px;
        padding: 12px 20px;
    }

    .nav-bar a {
        font-size: 1.25rem;
    }

    .artists-container {
        grid-template-columns: 1fr 2fr;
        gap: 0;
        height: auto;
        min-height: 70vh;
    }

    .artist-details-panel {
        padding: 30px;
    }

    .artist-header h2 {
        font-size: 1.8rem;
    }

    .biography-section p {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    body {
        padding-top: 200px;
    }

    .artists-container {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
    }

    .artists-list-panel {
        max-height: 300px;
        border-right: none;
        border-bottom: 3px solid #0D0D0D;
    }

    .artists-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0;
        padding: 0;
    }

    .artist-item {
        border-right: 1px solid #0D0D0D;
        border-bottom: 1px solid #0D0D0D;
        padding: 15px 10px;
        text-align: center;
    }

    .artist-item h3 {
        font-size: 1.1rem;
    }

    .artist-item .specialite {
        font-size: 0.8rem;
    }

    .artist-details-panel {
        padding: 25px;
    }

    .artist-header h2 {
        font-size: 1.6rem;
    }

    .works-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 680px) {
    body {
        padding-top: 60px;
        font-size: 1.05rem;
    }

    .fixed-header {
        position: static;
        width: 100%;
    }

    .logo-corner {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1001;
        padding: 10px 0;
        background-color: #EDEDED;
    }

    .logo-corner h1 {
        font-size: 1.5rem;
    }

    .nav-bar {
        position: relative;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 15px 5px 20px;
        margin: 0;
    }

    .nav-bar a {
        font-size: 1.1rem;
        padding: 5px 0;
        width: 100%;
        text-align: left;
        border-bottom: 2px solid #0D0D0D;
    }

    .nav-bar a:last-child {
        border-bottom: none;
    }

    .artists-container {
        grid-template-columns: 1fr;
        gap: 0;
        height: auto;
        min-height: auto;
    }

    .artists-list {
        grid-template-columns: 1fr;
    }

    .artist-item {
        border-right: none;
        padding: 15px;
        text-align: left;
    }

    .artist-item h3 {
        font-size: 1rem;
    }

    .artist-item .specialite {
        font-size: 0.8rem;
    }

    .artist-details-panel {
        padding: 20px;
        min-height: auto;
    }

    .artist-header h2 {
        font-size: 1.4rem;
    }

    .biography-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .work-item {
        border: 1px solid #0D0D0D;
    }
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #D9D9D9;
}

::-webkit-scrollbar-thumb {
    background: #0D0D0D;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}