/* --- BOUTON DOWNLOAD CV --- */
.download-btn {
    display: inline-block;
    background: var(--accent-purple);
    color: #fff;
    font-family: var(--font-text);
    font-size: 13px;
    font-weight: 400;
    padding: 13px 18px;
    border-radius: 3px;
    text-decoration: none;
    box-shadow: 0 8px 21px rgba(64, 0, 255, 0.3);
    letter-spacing: 1px;
    margin-top: 28px;
    transition: all 0.3s ease;
    border: none;
    align-self: flex-start;
}
.download-btn:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-3px);
}
.download-btn i {
    margin-right: 8px;
}
:root {
    --bg-color: #010005;
    --text-color: #FAFAFA;
    --accent-purple: #4000FF; 
    --accent-light: #7A4EFF;
    
    --font-headline: orpheuspro, serif; 
    --font-text: spectral, sans-serif; 
    --font-weight-thin: 200; 

    /* Fibonacci spacing scale */
    --sp-xs: 3px;
    --sp-sm: 5px;
    --sp-md: 8px;
    --sp-lg: 13px;
    --sp-xl: 21px;
    --sp-2xl: 34px;
    --sp-3xl: 55px;
    --sp-4xl: 89px;
    --sp-5xl: 144px;
}

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

html { height: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
    font-family: var(--font-text);
    color: var(--text-color);
    background-color: var(--bg-color);
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* --- UI FIXE --- */
.top-header {
    position: fixed;
    top: var(--sp-2xl);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-header.hidden { opacity: 0; }
.logo { pointer-events: auto; text-decoration: none; display: block; }
.logo img { width: var(--sp-3xl); height: auto; display: block; }

/* --- CONTACT INFO --- */
.contact-info {
    position: fixed;
    top: var(--sp-2xl);
    right: var(--sp-3xl);
    z-index: 100;
    text-align: right;
}
.contact-title {
    font-family: var(--font-text);
    font-size: 0.813rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--sp-md);
    color: var(--text-color);
}
.contact-detail {
    font-family: var(--font-text);
    font-size: 0.813rem;
    font-weight: var(--font-weight-thin);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.618;
    letter-spacing: 0.3px;
}

/* --- NAVIGATION --- */
.floating-nav {
    position: fixed;
    bottom: var(--sp-3xl);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--sp-sm);
    border-radius: 3px;
    z-index: 1000;
    box-shadow: 0 var(--sp-md) var(--sp-2xl) rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(21px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-nav.hidden { opacity: 0; pointer-events: none; }
.floating-nav ul { list-style: none; display: flex; gap: var(--sp-xs); margin: 0; padding: 0; align-items: center; }
.floating-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-text);
    font-size: 0.875rem;
    font-weight: 400;
    padding: var(--sp-lg) var(--sp-xl);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    line-height: 1;
    letter-spacing: 0.5px;
}
.floating-nav a.active {
    background: var(--accent-purple);
    color: #FFFFFF;
    box-shadow: 0 var(--sp-sm) var(--sp-lg) rgba(64, 0, 255, 0.35);
    font-weight: 500;
}
.floating-nav a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
}

/* --- CONTENU PRINCIPAL --- */
.about-section {
    padding-top: var(--sp-5xl);
    padding-bottom: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.about-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 var(--sp-3xl);
}

/* --- GRILLE (ratio doré ~1:2.618) --- */
.swiss-grid {
    display: grid;
    grid-template-columns: 233px 1fr;
    gap: var(--sp-4xl);
    align-items: start;
}

/* --- COLONNE GAUCHE --- */
.col-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #c4c4c4;
    border-radius: 0;
}

.author-name {
    font-family: var(--font-headline);
    font-size: 2.618rem;
    line-height: 1.05;
    font-weight: 400;
    font-style: italic;
    color: var(--text-color);
    margin-top: 18px;
}

/* --- COLONNE DROITE : ACCORDION --- */
.col-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: var(--sp-sm);
    overflow-y: auto;
    max-height: calc(100vh - var(--sp-5xl) - var(--sp-3xl));
    scrollbar-width: none;
}
.col-right::-webkit-scrollbar { display: none; }

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-xl) var(--sp-md);
    cursor: pointer;
    user-select: none;
    border-radius: 3px;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.accordion-item.active .accordion-header:hover {
    background-color: transparent;
}

/* Chevron */
.accordion-chevron {
    width: var(--sp-md);
    height: var(--sp-md);
    border-right: 1.5px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
    transform: rotate(45deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    flex-shrink: 0;
    margin-right: var(--sp-sm);
}

.accordion-header:hover .accordion-chevron {
    border-color: rgba(255, 255, 255, 0.7);
}

.accordion-item.active .accordion-chevron {
    transform: rotate(-135deg);
    border-color: var(--accent-light);
}

.accordion-label {
    display: inline-block;
    font-family: var(--font-text);
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1px;
    padding: var(--sp-md) 0;
    border-radius: 3px;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-header:hover .accordion-label {
    color: rgba(255, 255, 255, 0.85);
}

.accordion-item.active .accordion-label {
    color: #fff;
    background-color: var(--accent-light);
    padding: var(--sp-md) var(--sp-xl);
    letter-spacing: 0.5px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(64, 0, 255, 0.18);
    border: 1px solid rgba(122, 78, 255, 0.15);
    border-radius: 3px;
    margin-bottom: 0;
    padding: 0 var(--sp-2xl);
    opacity: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200vh;
    padding: var(--sp-2xl) var(--sp-2xl);
    margin-bottom: var(--sp-lg);
    opacity: 1;
    overflow: visible;
}

.accordion-content p {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.618;
    font-weight: var(--font-weight-thin);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    letter-spacing: 0.2px;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .swiss-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-3xl);
    }
    .col-left {
        max-width: 233px;
    }
    .contact-info {
        position: static;
        text-align: center;
        margin-top: var(--sp-4xl);
        margin-bottom: var(--sp-xl);
    }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        height: auto;
    }

    /* Header */
    .top-header {
        top: 21px;
    }
    .logo img {
        width: 55px;
    }

    /* Contact info */
    .contact-info {
        position: fixed;
        top: 18px;
        right: 21px;
        text-align: right;
        margin: 0;
        z-index: 100;
    }
    .contact-title {
        font-size: 0.7rem;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    .contact-detail {
        font-size: 0.68rem;
        line-height: 1.5;
    }

    /* Nav */
    .floating-nav {
        bottom: 21px;
        padding: 8px;
    }
    .floating-nav a {
        font-size: 19px;
        padding: 14px 26px;
    }

    /* Main section */
    .about-section {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 110px;
        overflow: visible;
    }

    .about-container {
        padding: 0 21px;
    }

    /* Grid -> single column centered */
    .swiss-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    /* Left column: centered */
    .col-left {
        max-width: none;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .about-photo {
        width: 160px;
        aspect-ratio: 3 / 4;
    }

    .author-name {
        font-size: 2rem;
        text-align: center;
        margin-top: 5px;
    }

    .download-btn {
        margin-top: 13px;
        font-size: 0.85rem;
        padding: 11px 16px;
        align-self: center;
    }

    /* Right column / accordion */
    .col-right {
        max-height: none;
        overflow-y: visible;
        padding-top: 0;
    }

    .accordion-header {
        padding: 18px 8px;
    }

    .accordion-label {
        font-size: 0.82rem;
    }

    .accordion-item.active .accordion-label {
        padding: 6px 16px;
    }

    .accordion-item.active .accordion-content {
        max-height: 60vh;
        padding: 21px;
        margin-bottom: 10px;
    }

    .accordion-content p {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .top-header { top: 15px; }
    .logo img { width: 50px; }

    .contact-info { top: 13px; right: 16px; }
    .contact-title { font-size: 0.65rem; }
    .contact-detail { font-size: 0.62rem; }

    .about-section { padding-top: 65px; padding-bottom: 100px; }
    .about-container { padding: 0 16px; }

    .about-photo { width: 140px; }
    .author-name { font-size: 1.7rem; }
    .download-btn { font-size: 0.8rem; padding: 10px 14px; }

    .accordion-header { padding: 15px 6px; }
    .accordion-label { font-size: 0.78rem; }
    .accordion-content p { font-size: 0.85rem; }

    .floating-nav a { font-size: 19px; padding: 14px 26px; }
}