:root {
    --primary: #c9a227;
    --primary-light: #f4e6b8;
    --primary-dark: #a1801c;

    --bg-dark: #0b2e22;
    --bg-dark-card: #123a2c;
    --bg-light: #f7f3ea;
    --bg-light-card: #ffffff;
    --bg-gray: #ececec;

    --text-on-dark: #f5f1e6;
    --text-muted-on-dark: #b9c9c0;
    --text-on-light: #182821;
    --text-muted-on-light: #5b6b62;

    --border-dark: rgba(245, 241, 230, 0.12);
    --border-light: rgba(24, 40, 33, 0.1);

    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.15), 0 2px 4px -2px rgb(0 0 0 / 0.15);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Jost', 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-on-light);
    line-height: 1.7;
    padding-top: 76px;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 76px;
    background: rgba(11, 46, 34, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.navbar-brand span { color: var(--primary); }
.navbar-nav { display: flex; gap: 1.8rem; }
.nav-link {
    text-decoration: none;
    color: var(--text-muted-on-dark);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    padding: 9rem 0 7rem;
    text-align: center;
    background: linear-gradient(rgba(6, 28, 20, 0.72), rgba(6, 28, 20, 0.82)), url('../images/texture-satin.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-on-dark);
    overflow: hidden;
}
.hero-logo { width: 78px; height: 78px; margin: 0 auto 1.8rem; display: block; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-bottom: 1.2rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}
.hero-tagline {
    font-size: 1.15rem;
    color: var(--primary-light);
    max-width: 700px;
    margin: 0 auto 1.3rem;
}
.hero-badge {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary-light);
    padding: 0.45rem 1.3rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #0b2e22;
    text-decoration: none;
    padding: 1rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.btn:hover { background-color: var(--primary-dark); transform: translateY(-2px); color: #fff; }
.btn-outline {
    background-color: transparent;
    color: var(--text-on-dark);
    border: 1.5px solid var(--text-muted-on-dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(255,255,255,0.05); }

/* ---------- SECTIONS ---------- */
.section { padding: 6rem 0; }
.section-dark { background-color: var(--bg-dark); color: var(--text-on-dark); }
.section-gray { background-color: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.78rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
}
.section-dark .section-eyebrow { color: var(--primary); }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 700;
}
.section-subtitle {
    color: var(--text-muted-on-light);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0.8rem auto 0;
}
.section-dark .section-subtitle { color: var(--text-muted-on-dark); }

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}
.about-photo {
    width: 100%;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
    object-fit: cover;
}
.about-text p { margin-bottom: 1.1rem; color: var(--text-muted-on-light); }
.about-text strong { color: var(--text-on-light); }
.about-highlight {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-light-card);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    font-style: italic;
    color: var(--text-on-light);
}
.domains-list { margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.domains-list li { list-style: none; display: flex; gap: 0.8rem; align-items: baseline; color: var(--text-muted-on-light); }
.domains-list .dot { color: var(--primary); font-size: 1.1rem; }

/* ---------- TIMELINE (parcours / formations) ---------- */
.timeline { max-width: 900px; margin: 0 auto; display: grid; gap: 1.6rem; }
.timeline-item {
    background: var(--bg-dark-card);
    border-radius: 18px;
    padding: 2.2rem 2.4rem;
    border: 1px solid var(--border-dark);
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.timeline-body { flex: 1; min-width: 240px; }
.timeline-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-on-dark); }
.timeline-date { color: var(--primary); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 0.7rem; display: block; }
.timeline-text { color: var(--text-muted-on-dark); font-size: 0.98rem; }
.timeline-logo { height: 46px; width: auto; max-width: 140px; background: #fff; padding: 8px 12px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }

/* ---------- FORMATIONS ---------- */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.formation-card {
    background: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
}
.formation-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text-on-light); }
.formation-card .school { color: var(--primary-dark); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.formation-card .years { color: var(--text-muted-on-light); font-size: 0.85rem; }

/* ---------- PROJECT CARDS ---------- */
.category-block { margin-bottom: 4rem; }
.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}
.project-card {
    background: var(--bg-light-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-media {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media img.logo-fit { width: auto; height: 55%; object-fit: contain; }
.project-media.no-image { background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-card)); }
.project-media.no-image::after { content: '✒'; font-size: 2rem; color: var(--primary); }
.project-body { padding: 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-on-light); }
.project-text { color: var(--text-muted-on-light); font-size: 0.95rem; flex: 1; }

/* ---------- CONTACT / FOOTER ---------- */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 5.5rem 0 3rem;
    text-align: center;
}
.footer-title { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 2.2rem; }
.contact-grid { display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.contact-card {
    padding: 0.9rem 1.8rem;
    background: var(--bg-dark-card);
    border-radius: 50px;
    color: var(--text-on-dark);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}
.contact-card:hover { background: var(--primary); color: #0b2e22; border-color: var(--primary); }
.copyright { color: var(--text-muted-on-dark); font-size: 0.85rem; }

/* ---------- SCROLL TOP LINK / PROJETS NAV ---------- */
.back-home { display: inline-block; margin-bottom: 2.5rem; color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.back-home:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .navbar-nav { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.4rem; }
    .timeline-item { padding: 1.6rem 1.8rem; }
}
