/* ========================================
   VARIABLES (THÈME CLAIR)
   ======================================== */
:root {
    --bg-main: linear-gradient(160deg, #e3f2fd, #f0f4fa);
    --bg-card: #ffffff;
    --bg-nav: rgba(255,255,255,0.9);
    --bg-footer: #eef1f6;

    --text-main: #1f2933;
    --text-muted: #5f6c7b;

    --accent: #1e88e5;

    --shadow-soft: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-strong: 0 12px 30px rgba(0,0,0,0.12);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
}

nav a {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 6px 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    border-radius: 3px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}


/* ========================================
   HEADER
   ======================================== */
header {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(160deg, #c5d9f1, #e3f2fd);
}

.photo-header {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-strong);
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.6em;
    margin-bottom: 8px;
}

header p {
    font-size: 1.05em;
    color: var(--text-muted);
}

/* ========================================
   BOUTONS HEADER
   ======================================== */
.header-buttons {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 30px;
    min-width: 190px;
    text-align: center;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    box-shadow: 0 10px 25px rgba(30,136,229,0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30,136,229,0.45);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(30,136,229,0.08);
    transform: translateY(-3px);
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    max-width: 900px;
    margin: auto;
    padding: 90px 30px 60px;
    animation: fadeInUp 0.6s ease;
}

.section-title {
    font-size: 1.8em;
    color: var(--accent);
    margin-bottom: 24px;
    border-left: 5px solid var(--accent);
    padding-left: 12px;
}

/* ========================================
   TEXTE
   ======================================== */
section p,
section li {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* ========================================
   CARTES & BLOCS
   ======================================== */
.experience-item,
.soft-skill-block,
.hobby-item,
.contact-card,
.skill-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.experience-item:hover,
.soft-skill-block:hover,
.hobby-item:hover,
.contact-card:hover,
.skill-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.experience-item h3,
.soft-skill-block h3,
.hobby-item h3 {
    font-size: 1.2em;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ========================================
   BARRES DE COMPÉTENCES
   ======================================== */
.skill-bar {
    height: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.3);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.skill-level {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #42a5f5 0%,
        #64b5f6 25%,
        #1e88e5 50%,
        #1976d2 75%,
        #1565c0 100%
    );
    transition: width 0.8s ease-in-out;
}

.skill-item p,
.skill-item span {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.skill-item p strong {
    font-weight: 600;
    color: var(--accent);
}

/* ========================================
   TIMELINE – PARCOURS ACADÉMIQUE (CARTES)
   ======================================== */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 160px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding: 18px 24px 18px 40px;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 12px;
    height: calc(100% - 24px);
    width: 4px;
    background: var(--accent);
    border-radius: 4px;
}

.timeline-date {
    position: absolute;
    left: -160px;
    width: 140px;
    text-align: right;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95em;
}

.timeline-item p,
.timeline-item strong {
    margin: 0;
    color: var(--text-main);
    font-size: 0.95em;
    line-height: 1.6;
}

/* ========================================
   PARCOURS – STYLE LISTE PROPRE
   ======================================== */
.parcours-item {
    position: relative;
    padding-left: 26px;
}

.parcours-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 5px;
    height: calc(100% - 28px);
    background: var(--accent);
    border-radius: 4px;
}


/* ========================================
   POPUP CONTACT
   ======================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.popup-overlay:target {
    display: flex;
}

.popup-content {
    background: var(--bg-card);
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-strong);
    animation: popupFadeIn 0.4s ease;
}

.popup-content h3 {
    margin-bottom: 16px;
    color: var(--accent);
}

.popup-content p {
    margin-bottom: 24px;
    color: var(--text-main);
}

.popup-content a {
    color: white);
    font-weight: 600;
    text-decoration: none;
}

.popup-close {
    display: inline-block;
    margin-top: 10px;
    color: black);
    font-size: 0.9em;
    text-decoration: none;
    transition: 0.3s;
}

.popup-close:hover {
    color: var(--accent);
}

@keyframes popupFadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--bg-footer);
    padding: 28px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ========================================
   ANIMATION
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {

    header h1 {
        font-size: 2.2em;
    }

    section {
        padding: 60px 20px;
    }

    .btn {
        width: 100%;
        max-width: 260px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: 0;
        top: 0;
        height: 100%;
    }

    .timeline-date {
        position: relative;
        left: 0;
        width: auto;
        text-align: left;
        margin-bottom: 6px;
        font-size: 0.9em;
    }
}




