:root {
    --bg-color: #0c0c0c;
    --card-bg: #161616;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #e2725b;
    --font-main: 'Montserrat', sans-serif;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo { font-weight: 900; font-size: 1.5rem; color: var(--text-color); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--accent-color); }

/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.hero-content h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.hero-content h2 { font-size: 1.5rem; font-weight: 300; color: var(--text-muted); margin-bottom: 2rem; }

/* Boutons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(194, 65, 12, 0.4); 
    transition: all 0.3s ease;
}

.btn-primary:hover { 
    background-color: transparent; 
    box-shadow: 0 0 25px rgba(194, 65, 12, 0.7);
}

.btn-secondary {
    border: 2px solid white;
    margin-left: 1rem;
}

.btn-secondary:hover { background-color: white; color: var(--bg-color); }
.btn-sm { font-size: 0.8rem; padding: 0.5rem 1rem; margin-left: 0; }

/* Grille Projets */
.section-padding { padding: 6rem 10%; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

/* Images Projets */
.card-img-holder {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #222;
    border-bottom: 1px solid #222;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img { transform: scale(1.05); }

/* Infos Projets */
.project-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.project-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; flex-grow: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tags span {
    font-size: 0.75rem;
    background: #252525;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: #ddd;
}

/* Section Compétences */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border-color: var(--accent-color);
}

.skill-card h3 { 
    color: var(--accent-color); 
    margin-bottom: 1.5rem; 
}

.skill-card li { 
    margin-bottom: 0.8rem; 
    color: var(--text-muted); 
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.skill-card li:hover {
    color: var(--text-color); 
    transform: translateX(10px); 
}

/* Section Contact */
.contact-section { 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-section p {
    margin-bottom: 2rem;
    max-width: 600px;
}

.contact-actions { 
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-actions .btn-secondary {
    margin-left: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show { display: block; opacity: 1; }

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 0 40px rgba(15, 51, 255, 0.15);
    animation: slideUp 0.4s ease;
}

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

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover { color: var(--accent-color); }

.modal-header { margin-bottom: 1.5rem; border-bottom: 1px solid #333; padding-bottom: 1rem; }
.modal-header h2 { font-size: 1.8rem; color: var(--text-color); margin-bottom: 0.5rem;}

.modal-main-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #000;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.modal-text h3, .modal-gallery h3 { color: var(--accent-color); margin-bottom: 0.5rem; margin-top: 1.5rem; }
.modal-description { line-height: 1.8; color: #ddd; }

.modal-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.modal-actions .btn-secondary { margin-left: 0; }

/* Galerie Modale */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.gallery-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.gallery-img:hover { transform: scale(1.05); border-color: var(--accent-color); }

/* Analyse Box */
.analysis-box h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.analysis-box p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.analysis-tags {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.analysis-tags li {
    background: #252525;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #fff;
}

/* Accueil : Profil */
.hero-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-title-wrapper h1 {
    margin-bottom: 0;
}

.hero-profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.hero-glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(194, 65, 12, 0.25) 0%, rgba(12, 12, 12, 0) 70%); 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    border-radius: 50%;
    animation: pulseGlow 5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Section À Propos */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image-col {
    flex: 1;
}

.about-img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 12px;
    border: 2px solid var(--accent-color);
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(194, 65, 12, 0.15); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: floatImage 6s ease-in-out infinite;
}

.about-img:hover {
    box-shadow: 0 15px 40px rgba(194, 65, 12, 0.4); 
    animation-play-state: paused; 
    transform: translateY(-10px) scale(1.02);
}

@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.about-text-col {
    flex: 1.5;
    text-align: left;
}

.about-subtitle {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    display: block;
}

.about-text-col p {
    color: #ccc;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

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

.about-actions {
    margin-top: 2rem;
}

/* Badges Projets */
.project-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.p-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(2px);
}

.p-badge.favorite {
    background-color: rgba(255, 107, 0, 0.9);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.p-badge.wip {
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--text-muted);
    border: 1px solid #444;
}

/* Animations Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Mobile */
@media (max-width: 800px) {
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    .about-image-col {
        width: 100%;
    }
    .about-img {
        width: 100%;
        max-width: 300px;
    }
    .about-text-col {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    .nav-links { display: none; } 
    .hero-content h1 { font-size: 2.5rem; }
    .hero-title-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .btn-secondary {
        margin-left: 0;
        display: block; 
        width: 100%; 
        text-align: center;
    }
}