/* --- Variables et Reset --- */
:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --accent-color: #a9a9a9; /* Gris sobre pour le hover */
    --font-title: 'Archivo', sans-serif;
    --font-body: 'Archivo', sans-serif;
}

.press-start-2p-regular {
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 0 4%;
    padding-bottom: 80px; /* Espace pour le mini-lecteur */
}

/* --- Header et Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--text-color);
}

.logo a {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

nav a.active {
    border-bottom: 1px solid var(--text-color);
    font-weight: 500;
}


/* --- Contenu Principal et Onglets --- */
main {
    padding: 4rem 0;
}

.tab-content {
    display: none; /* Caché par défaut */
    animation: fadeIn 0.8s;
}

.tab-content.active {
    display: block; /* Affiché si actif */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 1rem;
}

p {
    max-width: 65ch; /* Améliore la lisibilité */
}


/* --- Page d'accueil spécifique --- */
.profile-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-intro p {
    margin: 0 auto;
}

.placeholder-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center; 
}

.placeholder {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1; 
}

.placeholder img,
.placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#design-placeholder img {
    object-fit: contain;
    padding: 1rem;
}


.placeholder:hover img,
.placeholder:hover video {
    transform: scale(1.05);
}

.placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.placeholder:hover .placeholder-overlay {
    opacity: 1;
}

.placeholder-overlay h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--background-color);
}


/* --- Onglet Documentaire Spécifique --- */
.docu-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.docu-video {
    flex: 1;
    min-width: 0;
}

.docu-video a {
    display: block;
    line-height: 0; 
    cursor: pointer;
}

.docu-video video {
    width: 100%;
}

.docu-text {
    flex: 1;
}

.docu-text h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.docu-text .button {
    margin-top: 1.5rem;
}


/* --- Onglet Photographie Spécifique --- */
.photo-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.photo-layout.reversed {
    flex-direction: row-reverse;
}

.photo-image {
    flex: 1;
    min-width: 0;
}

.photo-image img {
    width: 100%;
    display: block;
}

.photo-text {
    flex: 1;
}

.photo-text h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}


/* --- Onglet Design Spécifique --- */
.design-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.design-layout.reversed {
    flex-direction: row-reverse;
}

.design-image {
    flex: 1;
    min-width: 0;
}

.design-image img {
    width: 100%;
    display: block;
}

.design-text {
    flex: 1;
    transition: opacity 0.3s ease;
}

.design-text h4 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* AJOUT : Styles pour la grille d'images de design */
.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.design-grid img {
    width: 100%;
    height: auto;
    display: block;
}


/* --- Onglet Musique Spécifique --- */
.music-player-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.album-list {
    flex: 1;
}

.album-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
    border: 1px solid transparent;
}

.album-item:hover {
    background-color: #f0f0f0;
}

.album-item.active {
    border-color: var(--text-color);
}

.album-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.copyright {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.track-list {
    flex: 2;
}

.track-list-prompt {
    color: var(--accent-color);
}

.track-item {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.track-item:hover {
    background-color: #f0f0f0;
}

.track-item.playing {
    font-weight: bold;
    color: var(--accent-color);
}

.track-title {
    display: block;
}

.track-composer {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
}


/* --- Mini Lecteur Audio --- */
.mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    border-top: 1px solid var(--text-color);
    display: flex;
    align-items: center;
    padding: 0.5rem 4%;
    gap: 1rem;
    transition: transform 0.3s ease-in-out;
}

.mini-player.hidden {
    transform: translateY(100%);
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.player-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
}

.icon-pause.hidden, .icon-play.hidden {
    display: none;
}

.player-track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#current-track-composer {
    font-size: 0.8rem;
    color: var(--accent-color);
}

.player-volume {
    display: flex;
    align-items: center;
}

#volume-slider {
    cursor: pointer;
}


/* --- Onglet À Propos --- */
.about-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.profile-pic {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    background-color: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
}

.button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* --- Liste de contacts --- */
.contact-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: var(--accent-color);
}

.contact-icon {
    width: 24px;
    height: 24px;
}


/* --- Mentions Légales & Pop-up --- */
.footer-links {
    text-align: right;
    margin-top: 3rem;
}

#legal-link {
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: underline;
    cursor: pointer;
}

.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: flex-end; /* Aligne sur la droite */
    align-items: flex-start; /* Aligne en haut */
}

.modal.open {
    display: flex; /* Affiche le modal */
}

.modal-content {
    background-color: var(--background-color);
    margin: 0;
    padding: 2rem;
    width: 40%;
    max-width: 600px;
    height: 100%;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.modal-content h3, .modal-content h4 {
    font-family: var(--font-title);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.close-button {
    color: var(--accent-color);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-color);
}


/* --- Media Queries pour la responsivité --- */
@media (max-width: 768px) {
    body { padding: 0 5%; padding-bottom: 80px; }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.5rem; }

    .placeholder-container {
        grid-template-columns: 1fr;
    }

    .about-container, .music-item, .docu-layout, .photo-layout, .design-layout, .music-player-layout {
        flex-direction: column;
    }

    .photo-layout.reversed, .design-layout.reversed {
        flex-direction: column;
    }

    .modal-content {
        width: 90%;
        max-width: 90%;
    }

    .design-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Masquer les barres de défilement --- */
html {
  scrollbar-width: none; /* Pour Firefox */
}
body::-webkit-scrollbar { 
    display: none; /* Pour Chrome, Safari, and Opera */
}