
:root {
    --rose-pale: #fce4ec;
    --rose-doux: #f8bbd0;
    --rose-vif: #f48fb1;
    --rose-profond: #e91e8c;
    --rose-nacre: #fdf0f5;
    --rose-ombre: #fce8f0;
    --rose-accent: #ff80ab;
    --rose-fonce: #c2185b;
    --blanc: #fff9fb;
    --texte: #3d1a28;
    --texte-doux: #8c4a6a;
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--rose-nacre);
    color: var(--texte);
    font-family: 'DM Mono', monospace;
    overflow-x: hidden;
    cursor: none;
}

/* CURSEUR CUSTOM */
.cursor {
    width: 16px; height: 16px;
    background: var(--rose-profond);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: multiply;
}
.cursor-ring {
    width: 40px; height: 40px;
    border: 1.5px solid var(--rose-vif);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, width 0.3s, height 0.3s;
}
body:hover .cursor { opacity: 1; }

/* FOND ANIMÉ */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: float-blob 12s ease-in-out infinite alternate;
}
.blob1 { width: 500px; height: 500px; background: var(--rose-doux); top: -100px; left: -150px; animation-delay: 0s; }
.blob2 { width: 400px; height: 400px; background: var(--rose-vif); top: 40%; right: -100px; animation-delay: 3s; }
.blob3 { width: 350px; height: 350px; background: #ffcdd2; bottom: -80px; left: 30%; animation-delay: 6s; }
.blob4 { width: 250px; height: 250px; background: var(--rose-accent); top: 20%; left: 50%; animation-delay: 9s; opacity: 0.3; }
@keyframes float-blob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.08); }
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    padding: 1.2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    background: rgba(253, 240, 245, 0.7);
    border-bottom: 1px solid rgba(244, 143, 177, 0.2);
    transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 40px rgba(233,30,140,0.08); }
.nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--rose-fonce);
    letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    text-decoration: none;
    color: var(--texte-doux);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--rose-fonce);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--rose-fonce); }
.nav-links a:hover::after { width: 100%; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 8rem 6rem 4rem;
    position: relative;
    z-index: 1;
}
.hero-tag {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--rose-vif);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-up 0.8s ease forwards 0.3s;
}
.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--texte);
    opacity: 0;
    animation: fade-up 0.8s ease forwards 0.5s;
}
.hero-name em {
    font-style: italic;
    color: var(--rose-fonce);
}
.hero-sub {
    font-size: 1rem;
    color: var(--texte-doux);
    margin-top: 2rem;
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    animation: fade-up 0.8s ease forwards 0.7s;
}
.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fade-up 0.8s ease forwards 0.9s;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* BOUTONS */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    transform: translateX(-100%);
    transition: transform 0.4s;
}
.btn:hover::before { transform: translateX(0); }
.btn-primary {
    background: var(--rose-fonce);
    color: #fff;
    box-shadow: 0 8px 30px rgba(194,24,91,0.3);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 40px rgba(194,24,91,0.4); }
.btn-outline {
    background: transparent;
    color: var(--rose-fonce);
    border: 1.5px solid var(--rose-vif);
}
.btn-outline:hover { background: var(--rose-doux); transform: translateY(-3px); }
.btn-ghost {
    background: rgba(248,187,208,0.4);
    color: var(--texte);
    border: 1px solid rgba(244,143,177,0.3);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--rose-doux); transform: translateY(-2px); }

/* SCROLL INDICATOR */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.5;
    animation: pulse-down 2s ease infinite;
}
.scroll-hint span { font-size: 0.65rem; letter-spacing: 0.1em; color: var(--texte-doux); }
.scroll-hint svg { width: 20px; color: var(--rose-vif); }
@keyframes pulse-down {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* SECTIONS COMMUNES */
section { position: relative; z-index: 1; }
.section-container { max-width: 1200px; margin: 0 auto; padding: 6rem 3rem; }
.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rose-vif);
    margin-bottom: 1rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--texte);
    margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--rose-fonce); }

/* PROJETS GRID */
#projets { background: linear-gradient(180deg, var(--rose-nacre) 0%, var(--rose-ombre) 100%); }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(244,143,177,0.25);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rose-vif), var(--rose-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.project-card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: 0 20px 60px rgba(233,30,140,0.12); border-color: var(--rose-vif); }
.project-card:hover::before { transform: scaleX(1); }
.project-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.project-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.project-desc { font-size: 0.78rem; color: var(--texte-doux); line-height: 1.7; margin-bottom: 1.5rem; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    background: var(--rose-pale);
    color: var(--rose-fonce);
    border: 1px solid var(--rose-doux);
}
.project-link {
    font-size: 0.72rem;
    color: var(--rose-fonce);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}
.project-link:hover { gap: 0.8rem; }

/* DOCUMENTATION */
#docs { background: var(--rose-pale); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.doc-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--rose-doux);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.doc-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(233,30,140,0.1); border-color: var(--rose-vif); }
.doc-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--rose-pale), var(--rose-doux));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.doc-title { font-family: 'Playfair Display', serif; font-size: 1rem; }
.doc-meta { font-size: 0.68rem; color: var(--texte-doux); }

/* RÉSEAUX */
#reseaux { background: linear-gradient(135deg, var(--rose-ombre), var(--rose-nacre)); }
.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1.5px solid transparent;
    text-decoration: none;
    color: var(--texte);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.social-btn:hover { transform: scale(1.06) rotate(1deg); border-color: var(--rose-vif); background: white; box-shadow: 0 20px 50px rgba(233,30,140,0.15); }
.social-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--rose-pale), var(--rose-doux));
    transition: transform 0.3s;
}
.social-btn:hover .social-icon { transform: rotate(-8deg) scale(1.1); }
.social-name { font-size: 0.8rem; letter-spacing: 0.05em; font-weight: 500; }
.social-handle { font-size: 0.65rem; color: var(--texte-doux); }

/* TERMINAL ABOUT */
#about { background: var(--rose-nacre); }
.terminal {
    background: #1a0a12;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
    max-width: 700px;
    margin: 0 auto;
}
.terminal-bar {
    background: #2d1020;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.terminal-dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-left: auto; letter-spacing: 0.1em; }
.terminal-body { padding: 2rem; font-size: 0.82rem; line-height: 2; }
.terminal-line { display: flex; gap: 0.8rem; }
.terminal-prompt { color: var(--rose-accent); }
.terminal-cmd { color: var(--rose-doux); }
.terminal-output { color: rgba(255,255,255,0.7); padding-left: 1.5rem; }
.terminal-cursor { display: inline-block; width: 8px; height: 1em; background: var(--rose-accent); animation: blink 1s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* STATS STRIP */
.stats-strip {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--rose-doux);
    justify-content: space-around;
}
.stat { text-align: center; }
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rose-fonce);
    line-height: 1;
}
.stat-label { font-size: 0.68rem; color: var(--texte-doux); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; }

/* FLOATING MARQUEE */
.marquee-section {
    padding: 2rem 0;
    background: var(--rose-fonce);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}
.marquee-item::after { content: '✦'; color: var(--rose-accent); font-style: normal; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem;
    background: #1a0a12;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}
footer span { color: var(--rose-accent); }

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* NOTIFICATION TOAST */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border: 1px solid var(--rose-doux);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 0.78rem;
    box-shadow: 0 10px 40px rgba(233,30,140,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.3rem; }

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(29,10,20,0.5);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    background: var(--rose-pale);
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--texte-doux);
    transition: background 0.2s;
}
.modal-close:hover { background: var(--rose-doux); }
.modal h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 1rem; color: var(--rose-fonce); }
.modal p { font-size: 0.82rem; color: var(--texte-doux); line-height: 1.8; margin-bottom: 1.5rem; }
.modal .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
    .hero { padding: 7rem 2rem 4rem; }
    .section-container { padding: 4rem 1.5rem; }
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1.2rem; }
}


