:root {
    --accent: #0078d7;
    --bg: #f9f9f9;
    --text: #222;
    --white: #fff;
    --shadow: 0 4px 12px rgba(0,0,0,0.07);
    --success: #22b573;
    --success-dark: #18995c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* === HEADER & NAVIGATION === */
header {
    background: var(--white);
    box-shadow: 0 2px 18px rgba(0,120,215,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 25px 25px;
    transition: box-shadow 0.2s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--accent);
    letter-spacing: 2px;
}

#nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    background: #f7faff;
    padding: 0.6rem 2.2rem;
    border-radius: 25px;
    box-shadow: 0 1px 8px rgba(0,120,215,0.04);
}

#nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.04rem;
    letter-spacing: 0.5px;
    padding: 0.45rem 1.1rem;
    border-radius: 16px;
    transition: background 0.18s, color 0.18s;
    position: relative;
}

#nav-links li a:hover,
#nav-links li a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,120,215,0.09);
    text-decoration: none;
}

.burger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* === SECTIONS === */
.section {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.accueil {
    text-align: center;
    background: linear-gradient(120deg, #e0ecff 0%, #f9f9f9 100%);
}

.accent {
    color: var(--accent);
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.7rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,120,215,0.08);
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #005fa3;
}

.btn-tableau {
    display: inline-block;
    margin-top: 1.2rem;
    background: var(--success);
    color: #fff;
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(34,181,115,0.10);
    transition: background 0.18s, transform 0.18s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}
.btn-tableau:hover {
    background: var(--success-dark);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
    text-decoration: none;
}

.btn-download {
    display: inline-block;
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,120,215,0.08);
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
    cursor: pointer;
    margin-top: auto;
    align-self: center;
    margin-bottom: 0.5rem;
}
.btn-download:hover {
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}

/* === PROJETS === */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.projet-card {
    background: var(--bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 370px;
}
.projet-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,120,215,0.10);
}
.projet-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.projet-card p {
    flex: 1 1 auto;
    margin-bottom: 1rem;
}


.veille-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.veille-item {
    background: #f0f7ff;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(0,120,215,0.06);
    padding: 1.2rem;
    transition: transform 0.18s;
}
.veille-item:hover {
    transform: translateY(-6px) scale(1.03);
}
.veille-item h3 {
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.veille-item a {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--accent);
    font-weight: bold;
    text-decoration: underline;
    font-size: 0.97rem;
}

/* === SECTION CV === */
.cv {
    text-align: center;
}
.cv .btn {
    margin-top: 1.2rem;
    font-size: 1.1rem;
    padding: 0.8rem 2.2rem;
}

/* === CONTACT INFOS === */
.contact-infos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #f0f7ff;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,120,215,0.08);
    font-size: 1.15rem;
    transition: transform 0.18s, box-shadow 0.18s;
}
.contact-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,120,215,0.13);
}
.contact-item i {
    font-size: 1.6rem;
    color: var(--accent);
}
.contact-item span {
    color: var(--text);
    font-weight: 500;
}

/* === SKILLS === */
.skills {
    margin-top: 2rem;
}
.skill {
    margin-bottom: 1.2rem;
}
.skill span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.skill-bar {
    background: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 14px;
}
.skill-level {
    background: linear-gradient(90deg, var(--accent), #62b6ff);
    height: 100%;
    border-radius: 8px;
    transition: width 1s;
}

/* === FORMULAIRE === */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
input, textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #cfd8dc;
    font-size: 1rem;
    background: #f7f7f7;
    resize: none;
}
textarea {
    min-height: 100px;
}
#form-message {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--accent);
}

/* === FOOTER === */
footer {
    background: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    color: #888;
    margin-top: 2rem;
    font-size: 0.95rem;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    nav {
        padding: 1rem;
    }
    .section {
        margin: 2rem 1rem;
        padding: 1.2rem;
    }
}
@media (max-width: 700px) {
    #nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--white);
        flex-direction: column;
        width: 200px;
        gap: 1.5rem;
        padding: 2rem 1rem;
        box-shadow: var(--shadow);
        border-radius: 0 0 0 20px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    #nav-links.open {
        opacity: 1;
        pointer-events: all;
    }
    .burger {
        display: block;
    }
}
/* === VEILLE TECHNOLOGIQUE== */
.veille-horizontale {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f0f7ff;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0,120,215,0.06);
    padding: 1.8rem 2rem;
    margin-top: 2rem;
    transition: transform 0.18s;
}
.veille-horizontale:hover {
    transform: translateY(-6px) scale(1.02);
}
.veille-img img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,120,215,0.11);
}
.veille-contenu {
    flex: 1;
}
.veille-contenu h3 {
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.veille-contenu a {
    display: inline-block;
    margin-top: 0.9rem;
    color: var(--accent);
    font-weight: bold;
    text-decoration: underline;
    font-size: 1rem;
    transition: color 0.18s;
}
.veille-contenu a:hover {
    color: #005fa3;
}

@media (max-width: 700px) {
    .veille-horizontale {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1rem;
        gap: 1.2rem;
    }
    .veille-img img {
        width: 100px;
        height: 100px;
    }
}

/* === FLUX RSS VEILLE === */
#rss-veille {
    margin-top: 2.5rem;
    background: #f8fbff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,120,215,0.07);
    padding: 1.5rem 2rem;
}
#rss-veille h3 {
    color: var(--accent);
    margin-bottom: 1.1rem;
    font-size: 1.15rem;
}
#rss-feed {
    list-style: none;
    padding-left: 0;
}
#rss-feed li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e3eaf3;
    font-size: 1.01rem;
}
#rss-feed li:last-child {
    border-bottom: none;
}
#rss-feed a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.17s;
}
#rss-feed a:hover {
    color: #005fa3;
    text-decoration: underline;
}
#rss-feed span {
    color: #888;
    font-size: 0.93em;
    margin-left: 0.5em;
}
.btn-sort {
    background: #e0e8ef;
    color: var(--accent);
    border: 1px solid #c4d4e7;
    font-size: 0.98rem;
    padding: 0.5rem 1.3rem;
    margin-bottom: 1.1rem;
    margin-right: 1rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.btn-sort:hover {
    background: var(--accent);
    color: #fff;
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;            
    height: 18px;
    border-radius: 50%;
    background: #0078d7;     
    opacity: 0.85;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition:
        top 0.10s cubic-bezier(.25,.8,.25,1),
        left 0.10s cubic-bezier(.25,.8,.25,1),
        background 0.18s,
        transform 0.15s;
}


.fade-in-section {
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.8s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
  }
  
  .fade-in-section.is-visible {
    opacity: 1; 
    transform: translateY(0); 
  }

  