/* assets/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050810;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Couleurs principales cinéma */
:root {
    --bg-main: #050810;
    --bg-alt: #0c1220;
    --accent: #ffb100;   /* jaune projecteur */
    --accent2: #ff3b6b;  /* rose néon */
    --text-main: #f5f5f5;
    --text-muted: #c3cad8;
    --border-soft: #232a3b;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(0,0,0,0.6);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    background: radial-gradient(circle at top left, #191f35 0, #050810 35%, #03040a 100%);
    padding-bottom: 3rem;
}

/* NAVBAR */

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-clap {
    font-size: 1.6rem;
}

.logo-text {
    text-transform: uppercase;
    font-size: 0.9rem;
}

.logo-text .dot {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Burger (mobile) */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.burger span {
    width: 22px;
    height: 2px;
    background: #fff;
    transition: 0.25s;
}

/* HERO */

.hero {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

.hero-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-role {
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--accent);
}

.hero-text p {
    color: var(--text-muted);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #050810;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-soft);
}

.hero-photo {
    justify-self: center;
}

.hero-photo img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-soft);
    filter: contrast(1.05) saturate(1.1);
}

/* SECTIONS */

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.section-title p {
    color: var(--text-muted);
}

/* ABOUT */

.about {
    background: radial-gradient(circle at top right, #191f35 0, #050810 40%);
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 2rem;
}

.about-info {
    background: rgba(5, 8, 16, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.about-info h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-info li {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.about-info i {
    margin-right: 0.5rem;
    color: var(--accent);
}

/* CARDS (PROJETS) */

.projects {
    background: var(--bg-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -40%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,177,0,0.1) 0, transparent 60%);
    pointer-events: none;
}

.card-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-main);
    background: var(--accent);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
}

/* TIMELINE */

.experience {
    background: #050712;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-soft);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.8rem;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,177,0,0.2);
}

.timeline-content {
    padding-left: 0.6rem;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SKILLS */

.skills {
    background: var(--bg-main);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.skills-block {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.skills-block h3 i {
    margin-right: 0.5rem;
    color: var(--accent2);
}

.skills-block ul {
    padding-left: 1.2rem;
    margin: 0;
}

.skills-block li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* CONTACT */

.contact {
    background: radial-gradient(circle at bottom left, #191f35 0, #050810 45%);
}

.alert {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert.success {
    background: rgba(0, 150, 80, 0.12);
    border: 1px solid rgba(0, 150, 80, 0.4);
}

.alert.error {
    background: rgba(180, 40, 40, 0.12);
    border: 1px solid rgba(180, 40, 40, 0.4);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(5, 8, 16, 0.9);
    padding: 1.8rem 1.6rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    background: #050810;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    padding: 0.6rem 0.75rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
    color: #6d768b;
}

textarea {
    resize: vertical;
}

/* Champ anti-spam caché aux humains */
.honeypot {
    position: absolute;
    left: -9999px;
    visibility: hidden;
}

/* FOOTER */

.site-footer {
    text-align: center;
    padding: 1.4rem 1rem 1.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto;
    }
    .hero-photo {
        order: -1;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 1.5rem;
        background: #050810;
        border-radius: 12px;
        border: 1px solid var(--border-soft);
        padding: 0.8rem 1rem;
        display: none;
        flex-direction: column;
        gap: 0.8rem;
        box-shadow: var(--shadow-soft);
        z-index: 10;
    }
    .nav-links.nav-open {
        display: flex;
    }
    .burger {
        display: flex;
    }
    .hero {
        padding-top: 0;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
