/* --- Variables & Réglages de base --- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #9b59b6; /* Violet inspiré de Lovebox */
    --primary-hover: #8e44ad;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-main: 'Poppins', sans-serif;
    --container-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* --- Typographie & Éléments Généraux --- */
h1, h2, h3 {
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 5rem 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--text-muted);
}
.btn-secondary:hover {
    background-color: white;
    color: var(--bg-color);
    border-color: white;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 1)), url('FondSiteFolio.jpg') no-repeat center center/cover;
}
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 1.5rem;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.social-links {
    font-size: 1.8rem;
}
.social-links a {
    color: var(--text-muted);
    margin: 0 0.75rem;
    transition: color 0.3s, transform 0.3s;
}
.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Compétences --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.skill-category h4 {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.skill-category span {
    display: inline-block;
    background: var(--surface-color);
    padding: 8px 15px;
    margin: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.portfolio-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}
.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.portfolio-item:hover img {
    transform: scale(1.05);
}

/* --- Créations (Cartes) --- */
.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.card-img {
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
    max-width: 200px;
    fill: white;
}
.card h3 {
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.card-link {
    font-weight: 600;
}

/* --- Contact & Footer --- */
#contact {
    text-align: center;
}
#contact p {
    margin-bottom: 2rem;
}
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #0c0c0c;
}

/* --- Lightbox (Popup Photo) --- */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-active {
    opacity: 1;
    visibility: visible;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}
.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem; color: white;
    cursor: pointer; background: none; border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .container { padding: 4rem 1rem; }
}
