/* === SPEAKERS ANIMÉS (logos SuperCollider) === */
.parcour-speaker {
    position: fixed;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    z-index: 0;
    transition: all 2s ease;
    pointer-events: auto;
}

.parcour-speaker img {
    width: 60%;
    max-width: 60px;
    height: auto;
    display: block;
    opacity: 0.5;
}

.parcour-speaker a {
    display: block;
    text-decoration: none;
}

.parcour-speaker a:hover img {
    opacity: 1;
}

/* === ACCEUIL SECTION === */
.acceuil {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2vh, 3vw, 4vh);
    align-items: start;
}

.acceuil img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    clip-path: polygon(20% 0%, 0% 30%, 100% 100%, 90% 70%);
}

.acceuil p {
    grid-column: 1 / -1;
    text-align: center;
}

/* === BODY === */
body {
    background-image: url("assets/glitch/glitch_4.jpg");
    background-size: 50%;
    background-blend-mode: exclusion;
    background-position: center;
    background-color: hsl(315, 48%, 86%);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    text-shadow: rgb(0, 0, 0) 2px 1px;
    margin: 0;
    padding: 2vh 2vw;
    overflow-x: hidden;
}

/* === LAYOUT PRINCIPAL === */
.main-layout {
    display: flex;
    align-items: stretch;
    flex-direction: row;
    min-height: 100vh;
    gap: 2vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* === NAVBAR === */
.navbar {
    flex: 0 0 15vw;
    min-width: 180px;
    max-width: 220px;
    position: sticky;
    top: 2vh;
    align-self: flex-start;
    z-index: 2;
    background-color: hsl(295, 80%, 10%);
    border: 1px solid rgb(255, 251, 251);
    padding: 1.5vh 1vw;
    margin: 0.5vh 0;
    display: flex;
    flex-direction: column;
    gap: 1vh;
}

.navbar a {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1.2vh 2vw;
    text-align: center;
    text-decoration: none;
    color: rgb(255, 255, 255);
    text-shadow: rgb(0, 0, 0) 2px 1px;
    background: rgba(241, 187, 187, 0.679);
    border: 1px solid rgb(241, 187, 187);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    letter-spacing: 1px;
    transition: all 0.2s ease;
    margin: 0.5vh 0;
    min-height: 3.5vh;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.navbar a:hover {
    background: rgba(241, 187, 187, 0.4);
    transform: translateX(5px);
}

.navbar a:active {
    transform: scale(0.95);
}

/* === CONTENU WELCOME === */
.welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90vh;
    width: 90vw;
    max-width: 1400px;
    align-self: center;
    color: rgb(255, 255, 255);
    text-shadow: rgb(17, 12, 12) 2px 1px;
    text-align: justify;
    background: rgba(50, 8, 50, 0.836);
    border: 1px solid rgba(255, 255, 255, 0.774);
    padding: 3vh 3vw;
    z-index: 2;
    overflow-y: auto;
}

p {
    font-size: clamp(1rem, 1.05vw, 1.3rem);
    letter-spacing: clamp(0.015px, 1vw, 0.05px);
    margin: 1vh 1vw;
}

.english {
    font-style: italic;
    letter-spacing: clamp(3px, 0.5vw, 0.2px);
    text-align: end;
    font-size: clamp(0.2rem, 2.0vw, 1.3rem);
}

/* === BIO SECTION === */
.bio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: clamp(2vh, 3vw, 4vh);
    align-items: start;
    max-width: 100%;
    padding: clamp(1vh, 2vw, 3vh);
}

.bio img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    clip-path: polygon(20% 0%, 0% 30%, 100% 100%, 85% 70%);
    border: 1px solid rgb(0, 0, 0);
    grid-column: 2;
}

.bio p, .bio div {
    font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.3rem);
    line-height: clamp(1.6, 1.5 + 0.05vw, 1.9);
    letter-spacing: clamp(0.3px, 0.05vw, 0.8px);
    margin: 0;
    padding: clamp(1vw, 2vw, 3vw);
    text-align: justify;
    text-wrap: pretty;
    font-style: normal;
    grid-column: 1;
    min-width: 200px;
    overflow-wrap: break-word;
}

.spacer-bio {
    height: clamp(3vh, 4vw, 6vh);
    width: 100%;
    display: block;
}

/* === PORTFOLIO MENU === */
.portfolio-menu {
    display: flex;
    flex-direction: column;
    gap: clamp(1vh, 1.5vw, 2vh);
    width: 100%;
}

.accordion-toggle {
    display: none;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(1.2vh, 1.5vw, 1.5vh) clamp(2vw, 2.5vw, 3vw);
    text-align: center;
    text-decoration: none;
    color: rgb(255, 255, 255);
    text-shadow: rgb(0, 0, 0) 2px 1px;
    background: rgba(241, 187, 187, 0.679);
    border: 1px solid rgb(241, 187, 187);
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.accordion-title:hover {
    background: rgba(241, 187, 187, 0.4);
    transform: translateX(5px);
}

.accordion-title:active {
    transform: scale(0.95);
}

.accordion-title .icon {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: bold;
    transition: transform 0.3s ease;
}

#toggle-1:checked ~ .portfolio-menu label[for="toggle-1"] .icon,
#toggle-2:checked ~ .portfolio-menu label[for="toggle-2"] .icon,
#toggle-3:checked ~ .portfolio-menu label[for="toggle-3"] .icon,
#toggle-4:checked ~ .portfolio-menu label[for="toggle-4"] .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(50, 8, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
}

#toggle-1:checked ~ .portfolio-menu #content-1,
#toggle-2:checked ~ .portfolio-menu #content-2,
#toggle-3:checked ~ .portfolio-menu #content-3,
#toggle-4:checked ~ .portfolio-menu #content-4 {
    max-height: 4000px;
    overflow-y: auto;
    transition: max-height 0.5s ease-in;
}

.accordion-content::-webkit-scrollbar {
    width: 8px;
}

.accordion-content::-webkit-scrollbar-track {
    background: rgba(50, 8, 50, 0.8);
}

.accordion-content::-webkit-scrollbar-thumb {
    background: rgba(241, 187, 187, 0.6);
    border-radius: 4px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
    background: rgba(241, 187, 187, 0.8);
}

/* === ARTICLE WRAPPER === */
.article-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(2vh, 3vw, 4vh);
    overflow-x: hidden;
}

.article-hero-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto clamp(2vh, 3vw, 4vh) auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.article-hero-image:hover img {
    opacity: 1;
}

.article-hero-image figcaption {
    background: rgba(50, 8, 50, 0.8);
    color: rgb(255, 255, 255);
    padding: 1vh 2vw;
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.article-wrapper h2 {
    color: rgb(241, 187, 187);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: 2px;
    margin: clamp(3vh, 4vw, 5vh) 0 clamp(1.5vh, 2vw, 2vh) 0;
    padding-bottom: 0.5vh;
    border-bottom: 1px solid rgba(241, 187, 187, 0.3);
}

.article-wrapper h3 {
    color: rgb(255, 255, 255);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: 1px;
    margin: clamp(2vh, 3vw, 4vh) 0 clamp(1vh, 2vw, 1.5vh) 0;
}

.article-wrapper p {
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    line-height: clamp(1.7, 1.6 + 0.05vw, 2);
    letter-spacing: clamp(0.3px, 0.05vw, 0.8px);
    margin: 0 0 clamp(1.5vh, 2vw, 2.5vh) 0;
    color: rgb(255, 255, 255);
    text-align: justify;
}

.article-wrapper a {
    color: rgb(241, 187, 187);
    text-decoration: none;
    border-bottom: 1px dashed rgba(241, 187, 187, 0.5);
    transition: all 0.2s ease;
}

.article-wrapper a:hover {
    color: rgb(255, 255, 255);
    border-bottom-style: solid;
    text-decoration: underline;
}

blockquote {
    border-left: 4px solid rgba(241, 187, 187, 0.6);
    padding: clamp(1.5vh, 2vw, 2.5vh) clamp(2vw, 3vw, 4vw);
    margin: clamp(2vh, 3vw, 4vh) 0;
    font-style: italic;
    font-size: clamp(1.05rem, 1.1vw, 1.25rem);
    background: rgba(50, 8, 50, 0.5);
    border-radius: 0 4px 4px 0;
    color: rgb(241, 187, 187);
}

.highlight {
    background: rgba(241, 187, 187, 0.15);
    border: 1px solid rgba(241, 187, 187, 0.4);
    padding: clamp(1.5vh, 2vw, 2.5vh) clamp(2vw, 3vw, 4vw);
    border-radius: 4px;
    margin: clamp(2vh, 3vw, 4vh) 0;
    font-size: clamp(1.05rem, 1.1vw, 1.2rem);
}

.tableaux-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1vh, 2vw, 2vh);
}

.tableaux-list li {
    background: rgba(50, 8, 50, 0.6);
    padding: clamp(1vh, 1.5vw, 2vh) clamp(1vw, 2vw, 3vw);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5vh, 2vw, 3vh);
    margin: clamp(2vh, 3vw, 4vh) 0;
}

.tech-card {
    background: rgba(50, 8, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(1.5vh, 2vw, 2.5vh);
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    background: rgba(50, 8, 50, 0.8);
}

.tech-card h4 {
    color: rgb(241, 187, 187);
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    margin: 0 0 clamp(1vh, 1.5vw, 2vh) 0;
}

.tech-card p {
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    margin: 0;
    text-align: left;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1vh, 2vw, 2vh);
    margin: clamp(3vh, 4vw, 5vh) 0 0 0;
    padding-top: clamp(2vh, 3vw, 4vh);
    border-top: 1px solid rgba(241, 187, 187, 0.3);
}

.project-links a {
    background: rgba(241, 187, 187, 0.2);
    border: 1px solid rgba(241, 187, 187, 0.6);
    padding: clamp(1vh, 1.5vw, 2vh) clamp(2vw, 3vw, 4vw);
    border-radius: 4px;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    transition: all 0.2s ease;
}

.project-links a:hover {
    background: rgba(241, 187, 187, 0.4);
    transform: translateX(3px);
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    .bio {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .bio img {
        max-width: 60%;
    }
    
    .welcome {
        width: 95vw;
        min-height: 80vh;
        text-align: center;
        padding: 2vh 2vw 4vh 2vw;
    }
    
    .accordion-content {
        max-height: none;
        overflow-y: visible;
    }
    
    .article-hero-image {
        max-width: 100%;
    }
    
    .article-hero-image img {
        max-height: 350px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-layout {
        padding: 1vh 2vw;
    }
    
    .navbar {
        padding: 2vh 2vw;
    }
    
    .welcome {
        padding: 2vh 3vw 4vh 3vw;
    }
    
    .spacer-bio {
        height: 40px;
    }
}

/* === SECTION CYBERFLEMME - Styles complémentaires === */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1.5vh, 2vw, 3vh);
    margin: clamp(2vh, 3vw, 4vh) 0;
}

.tech-card {
    background: rgba(50, 8, 50, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: clamp(1.5vh, 2vw, 2.5vh);
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
    background: rgba(50, 8, 50, 0.8);
}

.tech-card h4 {
    color: rgb(241, 187, 187);
    font-size: clamp(1rem, 1.3vw, 1.3rem);
    margin: 0 0 clamp(1vh, 1.5vw, 2vh) 0;
}

.tech-card p {
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    margin: 0;
    text-align: left;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}
