/* --- CONFIGURATION GLOBALE --- */
:root {
    --accent: #ff7800; /* Ton orange signature */
    --bg: #050505;
    --card-bg: #111;
    --text-main: #ffffff;
    --text-dim: #888;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    line-height: 1.7;
}

/* --- BOUTON RETOUR --- */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 100;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: 0.3s;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* --- HEADER DU PROJET --- */
.project-hero {
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 10%;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin: 15px 0;
    line-height: 1.1;
}

/* --- GRILLE TECHNIQUE (FICHE) --- */
.tech-grid {
    display: flex;
    gap: 40px;
    padding: 30px 10%;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    background: #080808;
}

.tech-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tech-item strong {
    font-size: 1.1rem;
    color: white;
}

/* --- ZONE DE CONTENU --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 10%;
}

h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-top: 60px;
}

p {
    font-size: 1.1rem;
    color: #ccc;
}

.project-image {
    width: 100%;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid #333;
    transition: transform 0.3s;
}

.project-image:hover {
    transform: scale(1.02);
}








.site-footer {
    background-color: #0a0a0a;
    padding: 100px 5% 40px 5%;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1800px;
    margin: 0 auto;
}

/* Structure du bas */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo-footer {
    font-family: "Oi", serif;
    font-size: 1.5rem;
    font-weight: 100;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #888;
    line-height: 1.5;
}

/* Navigation en colonnes */
.footer-nav {
    display: flex;
    gap: 100px;
}

.nav-col h4 {
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.nav-col a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-col a:hover {
    color: #888;
    transform: translateX(5px);
}




.social-icons-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Le lien qui contient l'icône */
.social-icon-link {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease-out;
    transform: scale(1);
}

/* L'image de l'icône elle-même */
.social-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* --- EFFET AU SURVOL (:hover) --- */

.social-icon-link:hover {
    transform: scale(1.4); 
    transform: scale(1.2) translateY(-3px);
}

.social-icon-link:hover .social-icon {
    opacity: 1;
}




/* Barre de copyright tout en bas */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #444;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}


/* --- RESPONSIVE PAGES PROJETS --- */
@media (max-width: 768px) {
    /* Bouton Retour */
    .back-btn {
        top: 15px;
        left: 15px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    /* Hero Section */
    .project-hero {
        height: auto;
        padding: 100px 5% 30px 5%;
    }
    h1 { font-size: 2.2rem !important; }

    /* Grille Technique (Fiche) */
    .tech-grid {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 5%;
    }
    .tech-item {
        flex: 1 0 40%; /* Deux colonnes sur mobile */
    }

    /* Contenu Principal */
    .container {
        padding: 30px 5%;
        width: 100%;
    }
    h2 { font-size: 1.5rem; margin-top: 30px; }
    p { font-size: 0.95rem; }

    /* Badges de compétences */
    .project-skills { padding: 10px 5%; }
    .skills-wrapper { gap: 8px; }
    .skill-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    /* Footer spécial projet */
    .site-footer { padding: 60px 5% 20px 5%; }
}


.project-skills {
    padding: 20px 10%;
    margin-top: -20px; /* Pour le coller un peu au tech-grid */
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

/* Couleurs par catégorie (Basé sur ton profil) */
.skill-badge.ia { 
    border-color: #00d4ff; 
    color: #00d4ff; 
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.skill-badge.code { 
    border-color: var(--accent); /* Ton orange #ff7800 */
    color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.2);
}

.skill-badge.cyber { 
    border-color: #00ff88; 
    color: #00ff88; 
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.skill-badge.team { 
    border-color: #bd00ff; 
    color: #bd00ff;
}
