/* Variables CSS pour le thème Midnight Tech (Professionnel & Créatif) */
:root {
    --primary-color: #6366f1; /* Indigo moderne */
    --secondary-color: #06b6d4; /* Cyan créatif */
    --background-dark: #0f172a; /* Bleu nuit profond */
    --text-light: #f8fafc; /* Blanc ardoise */
    --card-bg: rgba(30, 41, 59, 0.7); /* Gris bleu sombre translucide */
    --border-accent: rgba(99, 102, 241, 0.3);
}

/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-dark);
    background-image: url("https://www.transparenttextures.com/patterns/shippo.png");
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* En-tête */
.header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(99, 102, 241, 0.1));
    color: white;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-accent);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(99, 102, 241, 0.3);
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Contenu principal */
.main-content {
    flex: 1;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.sidebar, .main-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Ajoute de l'espace vertical entre les encadrements */
}

/* Bulles (Cartes) */
.section-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 16px; /* Retour à des bords plus nets */
    border: 1px solid var(--border-accent);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(99, 102, 241, 0.05); /* Ombre plus subtile */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

/* Reflet sur le haut de la carte (gardé pour le dégradé) */
.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

.section-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-accent);
    display: inline-block;
}

.section-card p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ddd;
}

/* Éléments du CV */
.cv-item p {
    margin-bottom: 0.7rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

.section-card:hover {
    transform: translateY(-5px); /* Effet de survol subtil */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.2);
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-accent);
    margin-top: 3rem;
}

.footer-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-home:hover {
    box-shadow: 0 0 15px var(--primary-color);
    transform: scale(1.05);
}

/* Responsivité Mobile */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .header h1 { font-size: 2.5rem; }
    .main-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-card h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 2rem; }
    .section-card { border-radius: 30px; }
    .section-card::before { left: 20px; width: 40px; }
    .main-content { gap: 1.5rem; }
}
