/* ===== VARIABLES & RESET ===== */
:root {
    --primary: #d97757;
    --primary-dark: #c05f3f;
    --primary-soft: #faf0eb;
    --bg: #ffffff;
    --bg-soft: #faf9f5;
    --text-main: #1f1e1d;
    --text-muted: #6b6a67;
    --border: #e8e6e1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Times New Roman', Times, Georgia, serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

section {
    padding: 90px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* ===== NAVBAR ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(31, 30, 29, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    font-style: italic;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-color: var(--bg-soft);
}

.hero-content {
    max-width: 750px;
    padding: 0 2rem;
}

.hero-salut {
    color: var(--primary);
    font-size: 1.05rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-main);
}

#hero h2 {
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 87, 0.3);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}

/* ===== À PROPOS ===== */
#about {
    background-color: var(--bg);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-text {
    flex: 1.5;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--text-main);
}

.about-info {
    flex: 1;
}

.about-info ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-info ul li {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.about-info ul li span {
    color: var(--primary);
    font-weight: 700;
    min-width: 90px;
}

/* ===== COMPÉTENCES ===== */
#skills {
    background-color: var(--bg-soft);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-category h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

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

.skill-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-soft);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(217, 119, 87, 0.12);
}

/* ===== PROJETS ===== */
#projects {
    background-color: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(31, 30, 29, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.project-tag {
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.project-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background-color: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.82rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-btn {
    background: var(--primary);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== CONTACT ===== */
#contact {
    background-color: var(--bg-soft);
    text-align: center;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(217, 119, 87, 0.15);
}

.contact-icon {
    font-size: 1.4rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

footer strong {
    color: var(--primary);
}

/* ===== ANIMATIONS SCROLL ===== */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== MENU MOBILE ===== */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation croix au clic */
.menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    nav ul.open {
        display: flex;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
