@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 90px;
}

:root {
    --bg-deep: #020508;
    --accent-blue: #00e5ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-dim: #a0c0c0;
    --border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(0, 229, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(0, 80, 120, 0.15) 0%, transparent 40%),
        linear-gradient(180deg, #020508 0%, #05121d 50%, #020205 100%);
    background-attachment: fixed;
    color: var(--text-main); font-family: 'Inter', sans-serif; line-height: 1.6;
}

nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 8%; position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(2, 5, 8, 0.85); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); }
nav ul { display: flex; list-style: none; gap: 30px; }
nav ul li a { text-decoration: none; color: var(--text-dim); font-size: 0.9rem; transition: 0.3s; }
nav ul li a:hover { color: var(--accent-blue); }

.hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

.avatar-circle { 
    width: 180px; 
    height: 180px; 
    background: #000; 
    border-radius: 50%; 
    border: 2px solid rgba(0, 229, 255, 0.4); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-bottom: 25px; 
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.25); 
    overflow: hidden; 
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AJOUT : Style du bouton CV */
.cv-container {
    margin-top: 10px;
    margin-bottom: 20px;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cv:hover {
    background: var(--accent-blue);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 2rem; 
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--accent-blue);
    transform: scale(1.2); 
    text-shadow: 0 0 15px var(--accent-blue);
}

.role { font-size: 1.8rem; font-weight: 600; background: linear-gradient(90deg, #fff, var(--accent-blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }

section { padding: 100px 8% 60px; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-weight: 700; }

.grid-3, .grid-3-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

.grid-projects { 
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.grid-projects .project-card {
    flex: 1 1 calc(33.333% - 30px); 
    min-width: 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-projects .project-card .project-links {
    margin-top: auto;
    padding-top: 15px;
}

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 30px; backdrop-filter: blur(12px); transition: 0.4s; }
.card:hover { border: 1px solid rgba(0, 229, 255, 0.3); transform: translateY(-5px); background: rgba(255, 255, 255, 0.06); }

.icon-circle { width: 45px; height: 45px; background: rgba(0, 229, 255, 0.1); border-radius: 10px; display: flex; justify-content: center; align-items: center; color: var(--accent-blue); margin-bottom: 20px; }
.badge { background: #1a1a1a; padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; color: var(--accent-blue); font-weight: 600; }

.skill-details { max-height: 0; overflow: hidden; transition: 0.5s ease; opacity: 0; }
.skill-card.active .skill-details { max-height: 300px; opacity: 1; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.details-link { cursor: pointer; color: var(--text-dim); font-size: 0.85rem; margin-top: 20px; display: block; text-decoration: underline; }

.tags { display: flex; gap: 10px; margin-bottom: 20px; }
.tags span { background: #121212; border: 1px solid var(--border); color: var(--text-dim); padding: 6px 15px; border-radius: 30px; font-size: 0.85rem; }
.mobilise-container { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 25px; display: flex; align-items: center; gap: 8px; }
.badge-comp { background: #ffffff; color: #000; font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; }
.project-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 1rem; }

.contact-container { 
    display: grid; 
    grid-template-columns: 1.3fr 1fr; 
    gap: 40px; 
    align-items: stretch;
}

.contact-left-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.linkedin-badge-container {
    flex-shrink: 0;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item { display: flex; align-items: center; gap: 15px; }
.contact-item i { width: 45px; height: 45px; background: #0a0a0a; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid var(--border); color: var(--accent-blue); flex-shrink: 0; }

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-form input, .contact-form textarea { width: 100%; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border); padding: 15px; border-radius: 12px; color: #fff; margin-bottom: 20px; outline: none; font-family: inherit; }
.btn-send { background: var(--accent-blue); color: #000; padding: 15px; border-radius: 12px; border: none; font-weight: 700; width: 100%; cursor: pointer; transition: 0.3s; margin-top: auto; }
.btn-send:hover { box-shadow: 0 0 20px var(--accent-blue); }

footer { text-align: center; padding: 50px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.8rem; }

@media (max-width: 900px) { 
    .grid-3, .grid-3-3, .grid-projects, .contact-container { grid-template-columns: 1fr; } 
    .contact-left-wrapper { flex-direction: column; text-align: center; }
    .contact-item { flex-direction: column; text-align: center; }
}

.proof-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}
.proof-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--accent-blue);
}

/* 2. Rendre les badges C1, C2... des projets survolables */
.badge-comp {
    background: #ffffff;
    color: #000;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.badge-comp:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

/* 3. Animation d'impact visuel flash quand on clique sur un lien menant à un projet ou une compétence */
.card:target {
    border: 1px solid var(--accent-blue) !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35) !important;
    transform: scale(1.02);
}