:root {
    --beige-clair: #F5F5DC;
    --beige-moyen: #E5D3B3;
    --marron-doux: #6F4E37;
    --marron-profond: #3D2B1F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--beige-clair); color: #2C1E16; line-height: 1.6; overflow-x: hidden; }

/* Curseur */
.cursor {
    width: 20px; height: 20px; border: 2px solid var(--marron-doux);
    border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: transform 0.1s ease;
}
.cursor.hovered { transform: translate(-50%, -50%) scale(2.5); background: rgba(111, 78, 55, 0.1); }

/* Navigation */
.navbar {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; z-index: 1000; background: rgba(245, 245, 220, 0.95);
    backdrop-filter: blur(10px);
}
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--marron-profond); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--marron-doux); }

/* Boutons Navigation Projets */
.nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--marron-doux); color: white; border: none;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    z-index: 10; font-size: 1.2rem; transition: 0.3s;
}
.prev-btn { left: -50px; }
.next-btn { right: -50px; }
.nav-btn:hover { background: var(--marron-profond); transform: translateY(-50%) scale(1.1); }

/* Sections */
.section { padding: 100px 8%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.dark-section { background: var(--marron-profond); color: white; }
.section-title { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 50px; text-align: center; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* Cartes & Slider */
.projects-horizontal { 
    display: flex; gap: 30px; overflow-x: auto; padding: 20px 0; 
    scroll-behavior: smooth; scrollbar-width: none;
}
.projects-horizontal::-webkit-scrollbar { display: none; }

.card {
    min-width: 350px; background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s;
}
.card:hover { transform: translateY(-10px); }
.card-img { height: 200px; background: var(--beige-moyen); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 25px; }

/* Compétences & Certifs */
.skills-row { display: flex; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.skill-category { flex: 1; background: rgba(255,255,255,0.05); padding: 30px; border-radius: 15px; min-width: 250px; }
.skill-badge { display: inline-block; padding: 8px 15px; margin: 5px; border-radius: 20px; font-size: 0.9rem; background: var(--beige-moyen); color: var(--marron-profond); transition: 0.3s; }
.cert-card { background: white; padding: 15px 25px; border-radius: 10px; color: var(--marron-profond); font-weight: 600; transition: 0.3s; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 15px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(229,211,179,0.2); border-radius: 10px; color: white; margin-bottom: 15px; outline: none;
}
.btn-submit { width: 100%; padding: 15px; background: var(--beige-moyen); border: none; border-radius: 10px; font-weight: bold; cursor: pointer; transition: 0.3s; }

/* Reveal & Hero */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.show { opacity: 1; transform: translateY(0); }
.hero-section h1 { font-family: 'Playfair Display', serif; font-size: 5rem; }
#backToTop { position: fixed; bottom: 30px; right: 30px; padding: 15px; background: var(--marron-doux); color: white; border: none; border-radius: 50%; cursor: pointer; display: none; z-index: 1000; }

@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 3rem; }
    .prev-btn, .next-btn { display: none; }
}