/* ============================================================
   STÉRÉO DISORDER — Lilou Gautier
   Refonte visuelle complète
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
    --sage: #b9cf9e;
    --sage-deep: #8fae6b;
    --pink: #f5a8d2;
    --pink-deep: #e87bb8;
    --ink: #16161a;
    --ink-soft: #3a3a42;
    --muted: #6b6b76;
    --paper: #f7f6f2;
    --paper-2: #efeee8;
    --white: #ffffff;
    --line: rgba(22, 22, 26, .08);
    --grad: linear-gradient(120deg, var(--sage) 0%, var(--pink) 100%);
    --grad-soft: linear-gradient(135deg, rgba(185, 207, 158, .14), rgba(245, 168, 210, .14));
    --shadow-sm: 0 8px 24px rgba(22, 22, 26, .06);
    --shadow-md: 0 24px 60px rgba(22, 22, 26, .10);
    --shadow-glow: 0 30px 70px rgba(143, 174, 107, .22);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --radius: 22px;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -.02em;
    line-height: 1.05;
}

::selection { background: var(--pink); color: var(--white); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 48px;
}

/* gradient text helper */
em, .grad-text {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== FX LAYERS (cursor, blobs, particles) ===== */
#gradientBlobs,
#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
#gradientBlobs { filter: blur(80px); opacity: .55; }
#particles { z-index: 1; opacity: .5; }

.cursor,
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
}
.cursor {
    width: 38px; height: 38px;
    border: 2px solid var(--sage-deep);
    transition: width .25s var(--ease), height .25s var(--ease),
                background .25s var(--ease), border-color .25s var(--ease);
}
.cursor.hover {
    width: 64px; height: 64px;
    background: rgba(245, 168, 210, .18);
    border-color: var(--pink-deep);
}
.cursor-dot {
    width: 6px; height: 6px;
    background: var(--ink);
}
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* floating words */
.floating-words {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.floating-words span {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: rgba(143, 174, 107, .10);
    white-space: nowrap;
    user-select: none;
}

/* scroll progress */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    width: 0%;
    background: var(--grad);
    z-index: 2000;
    border-radius: 0 4px 4px 0;
    transition: width .1s linear;
}

/* content sits above FX */
.navbar, .hero-content, .ticker, .showcase, .section,
.cascade-section, .footer { position: relative; z-index: 5; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 84px;
    background: rgba(247, 246, 242, .72);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 40px rgba(22, 22, 26, .05);
}
.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.01em;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: .92rem;
    font-weight: 600;
    position: relative;
    transition: color .3s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: width .35s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: .3s var(--ease);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 48px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(circle at 25% 30%, rgba(185, 207, 158, .35), transparent 45%),
        radial-gradient(circle at 75% 70%, rgba(245, 168, 210, .32), transparent 45%);
    z-index: 0;
    animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.12) translate(2%, -2%); }
}
.hero-content { z-index: 5; max-width: 900px; }
.hero-title {
    font-size: clamp(3.2rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: -.04em;
    margin-bottom: 28px;
}
.hero-line { display: block; }
.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 44px;
    font-weight: 500;
}
.hero-ctas {
    display: flex;
    gap: 22px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.cta-primary {
    display: inline-block;
    padding: 16px 38px;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
    box-shadow: var(--shadow-md);
}
.cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    background: var(--sage-deep);
}
.cta-link {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}
.cta-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--grad);
    transform: scaleX(.4);
    transform-origin: left;
    transition: transform .35s var(--ease);
}
.cta-link:hover::after { transform: scaleX(1); }

/* ===== TICKER ===== */
.ticker {
    background: var(--ink);
    color: var(--white);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-track {
    display: inline-flex;
    animation: ticker 30s linear infinite;
}
.ticker-track span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .02em;
    padding-right: 0;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== SHOWCASE (marquee cards) ===== */
.showcase {
    padding: 90px 0;
    overflow: hidden;
    background: var(--paper-2);
}
.showcase-track {
    display: flex;
    gap: 28px;
    padding: 0 48px;
    animation: showcaseScroll 36s linear infinite;
    width: max-content;
}
.showcase:hover .showcase-track { animation-play-state: paused; }
@keyframes showcaseScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 14px)); }
}
.showcase-card {
    flex: 0 0 340px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.showcase-emoji { font-size: 2.6rem; display: block; margin-bottom: 18px; }
.showcase-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.showcase-card p { font-size: .92rem; color: var(--muted); }

/* ===== SECTIONS ===== */
.section { padding: 130px 0; }
.section-alt { background: var(--paper-2); }

.section-intro { margin-bottom: 70px; max-width: 720px; }
.section-intro.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--sage-deep);
    margin-bottom: 22px;
    padding: 7px 16px;
    background: var(--grad-soft);
    border-radius: 50px;
}
.section-headline {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(24px);
}
.section-sub {
    font-size: 1.12rem;
    color: var(--muted);
    font-weight: 500;
}
.centered .section-sub { margin-left: auto; margin-right: auto; }

/* ===== ABOUT ===== */
.about-showcase {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 32px;
}
.brand-card {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.brand-card::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 70%; height: 80%;
    background: var(--grad);
    filter: blur(60px);
    opacity: .5;
}
.brand-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; position: relative; }
.brand-icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, .12);
    border-radius: 16px;
}
.brand-header h3 { font-size: 1.6rem; font-weight: 700; }
.brand-desc { color: rgba(255, 255, 255, .8); font-size: 1rem; margin-bottom: 28px; position: relative; }
.brand-meta { display: flex; flex-direction: column; gap: 10px; position: relative; }
.brand-meta span { font-size: .92rem; color: rgba(255, 255, 255, .75); font-weight: 500; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.info-card:first-child { grid-column: 1 / -1; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.info-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.info-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.info-card p { font-size: .9rem; color: var(--muted); }

.context-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.detail-block h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--sage-deep);
    margin-bottom: 12px;
}
.detail-block p { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }

/* ===== CASCADE ===== */
.cascade-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--ink);
    display: grid;
    place-items: center;
    min-height: 56vh;
}
.cascade-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    opacity: .35;
}
.cascade-text span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 9vw, 7rem);
    font-weight: 700;
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .10);
}
.cascade-overlay {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 36px 44px;
    background: rgba(22, 22, 26, .55);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cascade-overlay p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}
.cascade-overlay strong { color: var(--pink); }

/* ===== STUDY BLOCK ===== */
.study-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--sage-deep);
    padding: 46px;
    border-radius: var(--radius);
    margin: 50px 0;
    box-shadow: var(--shadow-sm);
}
.study-block h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.study-block p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 14px; }
.study-block strong { color: var(--ink); font-weight: 700; }

/* ===== TIMELINE ===== */
.process-timeline { display: grid; gap: 28px; margin: 70px 0; }
.timeline-step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 44px 44px 44px 110px;
    position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.timeline-step:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.timeline-step::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 5px; height: 100%;
    background: var(--grad);
    border-radius: var(--radius) 0 0 var(--radius);
}
.step-num {
    position: absolute;
    left: 38px; top: 40px;
    width: 48px; height: 48px;
    background: var(--grad);
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}
.timeline-step h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.timeline-step p { font-size: .95rem; color: var(--muted); }
.timeline-step strong { color: var(--ink); }

/* ===== CASE SKILLS / SKILLS / GENERIC CARD GRIDS ===== */
.case-skills { margin-top: 90px; }
.case-skills h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 48px; text-align: center; }

.case-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 26px;
    margin-top: 70px;
}
.skills-grid .skill-card { grid-column: span 2; }
/* centre les 2 cartes de la 2e rangée */
.skills-grid .skill-card:nth-child(4) { grid-column: 2 / span 2; }
.skills-grid .skill-card:nth-child(5) { grid-column: 4 / span 2; }

.case-skill, .skill-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.case-skill { text-align: center; }
.case-skill:hover, .skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(143, 174, 107, .4);
}
.skill-icon, .skill-emoji { font-size: 2.3rem; display: block; margin-bottom: 18px; }
.case-skill h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.case-skill p, .skill-card p { font-size: .9rem; color: var(--muted); }
.skill-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.skill-card strong { color: var(--ink); }
.skill-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 14px;
    background: var(--grad-soft);
    color: var(--sage-deep);
    font-size: .78rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ===== HARD SKILLS ===== */
.hard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
    margin-top: 20px;
}
.hard-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hard-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.hard-icon {
    display: inline-grid;
    place-items: center;
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--grad);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.hard-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.hard-card p { font-size: .9rem; color: var(--muted); }
.hard-card strong { color: var(--ink); }

/* ===== REFLECTION ===== */
.reflection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 70px;
}
.reflection-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 44px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.reflection-block:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.reflection-block.full-width { grid-column: 1 / -1; }
.reflection-block h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 26px; }
.reflection-list { list-style: none; display: grid; gap: 18px; }
.reflection-list li {
    font-size: .95rem;
    color: var(--muted);
    padding-left: 22px;
    position: relative;
}
.reflection-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grad);
}
.reflection-list strong { color: var(--ink); font-weight: 700; }

.apprentissage-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.apprentissage {
    background: var(--grad-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 28px 28px 76px;
    position: relative;
}
.apprentissage-icon {
    position: absolute;
    left: 22px; top: 24px;
    width: 40px; height: 40px;
    background: var(--grad);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}
.apprentissage p { font-size: .92rem; color: var(--ink-soft); }
.apprentissage strong { color: var(--ink); }
.reflection-block.full-width > p {
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.8;
}
.reflection-block.full-width strong { color: var(--ink); }

/* ===== FOOTER ===== */
.footer {
    background: var(--ink);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}
.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-copy { font-size: .88rem; color: rgba(255, 255, 255, .55); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container, .nav-container { padding: 0 32px; }
    .about-showcase { grid-template-columns: 1fr; }
    .reflection-grid, .apprentissage-items { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid .skill-card,
    .skills-grid .skill-card:nth-child(4),
    .skills-grid .skill-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .nav-links {
        position: fixed;
        top: 70px; right: 0;
        flex-direction: column;
        background: var(--paper);
        width: 70%; height: calc(100vh - 70px);
        padding: 40px 32px;
        gap: 28px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        box-shadow: -20px 0 60px rgba(0, 0, 0, .1);
        align-items: flex-start;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .section { padding: 80px 0; }
    .container, .nav-container { padding: 0 24px; }
    .context-details { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .timeline-step { padding: 36px 28px 36px 76px; }
    .step-num { left: 18px; top: 30px; width: 40px; height: 40px; font-size: 1.05rem; }
    .showcase-card { flex-basis: 280px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
