/* ============================================================
   PORTFOLIO ALEXANDRE BARREY - MODERN GLASSMORPHISM (SISR)
   Design Unique, Fluide et Futursiste
   ============================================================ */

/* 1. Variables Globales & Reset */
:root {
    --bg-dark: #040509; /* Fond très sombre, presque noir */
    --bg-panel: rgba(255, 255, 255, 0.03); /* Panneau de verre ultra-fin */
    --border-glass: rgba(255, 255, 255, 0.08); /* Bordure discrète */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-neon: #00f2fe; /* Bleu Néon Électrique */
    --accent-glow: rgba(0, 242, 254, 0.3);
    --accent-purple: #4facfe; /* Dégradé vers violet/bleu */
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 2. Style Global Body */
body {
    background-color: var(--bg-dark);
    /* Léger motif de grille en arrière-plan pour le côté "Réseau" */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Outil pour masquer la barre de défilement tout en gardant le scroll */
::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}

/* 3. Navigation - Effet Verre Dépoli Flouté */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(4, 5, 9, 0.7);
    backdrop-filter: blur(20px); /* Flou puissant */
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: calc(100% - 40px); /* Espacement sur les côtés */
    max-width: 1400px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 100px; /* Bords très arrondis, style "pill" */
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Effet de lueur sur le logo */
    text-shadow: 0 0 10px var(--accent-glow);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

/* Soulignement animé au survol */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-neon);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 4. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

/* Dégradé lumineux flou derrière le texte */
.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.hero h1 span {
    /* Texte en dégradé */
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-neon));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero p {
    margin: 25px auto;
    max-width: 650px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* 5. Boutons - Style Minimaliste avec Lueur */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent-neon);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-neon);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    color: #040509;
    background-color: var(--accent-neon);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* 6. Sections et Grilles */
.section {
    padding: 120px 20px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: left; /* Aligné à gauche pour changer */
    margin-bottom: 60px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    padding-left: 20px;
}

/* Barre verticale accentuée à côté du titre */
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 80%;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-neon));
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* 7. Cartes Projets - Le cœur du design Unique */
.card {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Effet de lueur subtile qui se déplace au survol */
.card::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: var(--transition-smooth);
    top: -50px;
    right: -50px;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.card:hover h3 {
    color: var(--accent-neon);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* 8. Badges - Style Tech Épuré */
.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0 6px 8px 0;
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.card:hover .badge {
    border-color: rgba(0, 242, 254, 0.1);
    color: var(--text-primary);
}

/* 9. FORMULAIRE DE CONTACT - Style Minimaliste et Aligné (Correctif Complet) */
.contact-form {
    max-width: 650px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 25px; /* Espace entre les blocs */
    text-align: left;
}

/* Chaque champ est dans son propre container pour l'alignement */
.contact-form div {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espace entre le label et le champ */
}

.contact-form label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: 0 0 15px var(--accent-glow);
    background-color: rgba(0, 0, 0, 0.2);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Grosse barre bleue pour le bouton envoyer */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-neon));
    color: #040509;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 15px;
}

.btn-submit:hover {
    box-shadow: 0 10px 30px var(--accent-glow);
    transform: translateY(-3px);
}

/* 10. Footer - Panneau Flou en bas */
footer {
    background-color: var(--bg-panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    padding: 60px 20px;
    margin-top: 100px;
    border-top: 1px solid var(--border-glass);
}

.social-links {
    margin: 30px 0;
}

/* Style spécifique pour les liens sociaux */
.social-links .btn {
    border-color: var(--border-glass);
    color: var(--text-secondary);
    margin: 0 10px;
}

.social-links .btn:hover {
    border-color: var(--accent-neon);
    color: #040509;
    background-color: var(--accent-neon);
}

.copyright {
    color: #4b5563;
    margin-top: 25px;
    font-size: 0.8rem;
}

/* 11. Responsive Mobile */
@media (max-width: 768px) {
    nav {
        padding: 10px 20px;
        top: 10px;
        width: calc(100% - 20px);
        flex-direction: column;
        gap: 10px;
        border-radius: 20px;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}
