@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary: #38bdf8;
    --card: rgba(17, 24, 39, 0.85);
    --text: #e5e7eb;
    --muted: #9ca3af;
}

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

body {
    font-family: Inter, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #020024, #000);
    overflow-x: hidden;
}

/* BACKGROUND */
.background span {
    position: fixed;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #38bdf8, #6366f1);
    opacity: 0.15;
    filter: blur(120px);
    animation: float 22s infinite alternate;
}

.background span:nth-child(1) { top: 10%; left: 10%; }
.background span:nth-child(2) { top: 70%; left: 20%; }
.background span:nth-child(3) { top: 40%; left: 70%; }
.background span:nth-child(4) { top: 80%; left: 80%; }
.background span:nth-child(5) { top: 20%; left: 60%; }

@keyframes float {
    to { transform: translate(60px, -80px); }
}

/* HERO */
.hero {
    text-align: center;
    padding: 6rem 1.5rem;
}

.hero span { color: var(--primary); }

.hero h1 { font-size: 2.6rem; }

.hero p {
    max-width: 700px;
    margin: 1.5rem auto 0;
    color: var(--muted);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1.5rem;
}

/* CARDS */
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
}

h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.date {
    color: var(--muted);
    font-size: 0.9rem;
}

/* TECH COLUMNS */
.tech-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.tech-column {
    background: linear-gradient(145deg, #020617, #0f172a);
    border-radius: 14px;
    padding: 1.3rem;
    border: 1px solid rgba(56,189,248,0.25);
    transition: transform 0.3s ease;
}

.tech-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(56,189,248,0.25);
}

.tech-column h3 {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: #c7d2fe;
}

/* SKILLS */
.skill {
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: rgba(2,6,23,0.8);
    transition: all 0.25s ease;
}

.skill:hover {
    color: var(--primary);
    transform: translateX(6px);
}

/* REVEAL */
.reveal {
    opacity: 0;
    animation: reveal 1.2s ease forwards;
}

@keyframes reveal {
    to { opacity: 1; }
}

.muted { color: var(--muted); }

/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.1rem; }
}

/* TEXTE ANIMÉ HERO */
#animated-title {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.15em;
}

#animated-title span {
    display: inline-block;
    color: #38bdf8; /* couleur initiale visible */
    text-shadow: 0 0 8px rgba(56,189,248,0.6);
    transition: 
        color 0.5s ease,
        text-shadow 0.5s ease,
        transform 0.5s ease;
}
