/* ============================================
   DESIGN SYSTEM
   Typographie : Monda
   H1 : 96px | H2 : 24px | Body : 16px
   Primary   : linear-gradient #000000 → #232323
   Secondary : #FFFFFF / #000000
   Neutral   : rgba(255,255,255,0.60) / rgba(255,255,255,0.30)
   ============================================ */

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

html { scroll-behavior: smooth; }

:root {
    --section-line-inset: 32px;
    --section-line-color: rgba(255,255,255,0.3);
}

body {
    font-family: 'Monda', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background-image: url(assets/Noise.png);
    padding-top: 32px;
}

/* ============================================
   HEADER / FOOTER
   ============================================ */
.header,
.footer {
    position: relative;
    z-index: 10;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.header {
    background: transparent;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
}

.header-line {
    height: 1px;
    margin: 0 var(--section-line-inset);
    background: var(--section-line-color);
}

.header-left,
.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.year {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
}

.portfolio-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
}

.header-right,
.footer-right {
    display: flex;
    gap: 12px;
}

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.nav-link:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.30);
}

/* ============================================
   MAIN
   ============================================ */
.main {
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 100px 40px 100px;
    margin: 0;
    border-bottom: none;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.30);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 24px 40px;
    flex: 1;
}

/* H1 — 96px, Monda */
.hero-title {
    font-family: 'Monda', sans-serif;
    font-weight: 400;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.10;
    text-align: left;
    letter-spacing: -0.02em;
    grid-column: 1;
    justify-self: start;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    margin-bottom: auto;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line-1 {
    margin-left: 60px;
    animation: slideInRight 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.title-line-2 {
    margin-left: 0;
    animation: slideInLeft 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.title-line-3 {
    margin-left: 60px;
    animation: slideInRight 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(-80px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-meta-right {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.60);
    grid-column: 2;
    text-align: right;
    align-self: start;
}

.meta-tag  { font-size: 16px; color: rgba(255,255,255,0.60); }
.meta-name { font-size: 16px; color: rgba(255,255,255,0.60); }
.meta-date { font-size: 16px; color: rgba(255,255,255,0.60); }

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
}

.hero-meta-left {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    color: rgba(255,255,255,0.60);
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    padding: 8px 24px;
    color: #000000;
    font-family: 'Monda', sans-serif;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 38%;
    min-width: 280px;
}
.cv-button:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-1px);
}

/* ============================================
   DESCRIPTION
   ============================================ */
.description {
    padding: 48px 40px;
    border-bottom: none;
    background: rgba(0,0,0,0.30);
    margin: 0;
    position: relative;
}
.description::after {
    content: '';
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.30);
}

.description-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.60);
    max-width: 900px;
    font-weight: 400;
}

.description-text-highlight {
    color: #FFFFFF;
}

/* ============================================
   COLUMNS
   ============================================ */
.columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 48px 40px;
    border-bottom: none;
    background: rgba(0,0,0,0.30);
    margin: 0;
    position: relative;
}
.columns::after {
    content: '';
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,0.30);
}

.column {
    padding: 0 40px;
    position: relative;
}
.column:first-child { padding-left: 0; }
.column:last-child  { padding-right: 0; }

.column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.30);
}

.column-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
    color: #FFFFFF;
}

.column-list {
    list-style: none;
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255,255,255,0.60);
}
.column-list li { transition: opacity 0.3s ease; }
.column-list li:hover { opacity: 1; }

.column-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.60);
    max-width: 320px;
}

/* ============================================
   PROJETS INTRO
   ============================================ */
.projects-intro {
    padding: 48px 40px 0;
    margin: 0;
    background: rgba(0,0,0,0.30);
}
.projects-intro-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FFFFFF;
}

/* ============================================
   PROJETS
   ============================================ */
.project {
    padding: 48px 40px;
    border-bottom: none;
    background: rgba(0,0,0,0.30);
    margin: 0;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: stretch;
}
.project-info-right {
    grid-template-columns: 1.3fr 1fr;
}
.project::after {
    content: '';
    position: absolute;
    left: var(--section-line-inset);
    right: var(--section-line-inset);
    bottom: 0;
    height: 1px;
    background: var(--section-line-color);
}
.project:last-of-type::after { display: none; }

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* H2 — 24px */
.project-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.60);
}

.project-icons { display: flex; gap: 8px; }

.icon-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    width: auto;
    height: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}
.icon-btn:hover {
    transform: translateY(-2px);
}

.icon-btn-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

/* Image projet avec vraie photo */
.project-image {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.60);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 0;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    align-self: stretch;
}
.project-image:hover {
    border-color: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.15),
                0 12px 40px rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.project-image:active { transform: translateY(0) scale(0.998); }

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.5s ease, filter 0.4s ease;
}
.project-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.08);
}

.project-list { list-style: none; color: rgba(255,255,255,0.60); }

.project-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: padding 0.3s ease;
}
.project-list li:last-child { border-bottom: none; }
.project-list li:hover { padding-left: 8px; }

.list-letter {
    color: rgba(255,255,255,0.60);
    font-size: 16px;
    letter-spacing: 0.1em;
}

/* ============================================
   A PROPOS
   ============================================ */
.about-section {
    padding: 48px 40px;
    margin: 0;
    background: rgba(0,0,0,0.30);
    position: relative;
}
.about-section::after {
    display: none;
}
.about-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: 32px;
}
.about-gallery {
    border: 1px solid rgba(255,255,255,0.60);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}
.about-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #FFFFFF;
    border-radius: 8px;
    padding: 8px 20px;
    font-family: 'Monda', sans-serif;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.about-button:hover {
    background: rgba(255,255,255,0.85);
}

/* ============================================
   FOOTER
   ============================================ */
.footer { margin-top: 40px; margin-bottom: 32px; font-size: 16px; }

/* Home : couche noire continue jusqu'en bas du footer */
.home .footer {
    background: rgba(0,0,0,0.30);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 40px;
    padding-bottom: 32px;
}
.footer .header-inner { padding: 18px 40px; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .hero-title { grid-column: 1; justify-self: start; }
    .title-line-1, .title-line-3 { margin-left: 30px; }
    .title-line-2 { margin-left: 0; }
    .hero-meta-right { grid-column: 1; text-align: left; }

    .columns { grid-template-columns: 1fr; gap: 40px; }
    .column {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding-bottom: 30px;
    }
    .column:last-child { border-bottom: none; }
    .column:not(:last-child)::after { display: none; }

    .header-inner, .footer .header-inner {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .main { padding: 20px; }
    .cv-button { width: auto; min-width: 0; }
    .hero-footer { flex-direction: column; gap: 20px; align-items: stretch; }

    .project,
    .project-info-right {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .project-info-right .project-image { order: 1; }
    .project-info-right .project-info { order: 2; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 32px; }
}
