@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #d5d5d5;
    color: #111;
}

/* Header */
header {
    background-color: #1c1c1c;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.6s ease;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-left: auto;
    z-index: 2;
}

.logo {
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 8px 0;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #00C9A7, #007CFF);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #00C9A7;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Alignement des items du header à gauche */
.nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Menu burger */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px;
    transition: all 0.3s ease;
}

/* Responsive */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        display: none;
        padding: 20px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        text-align: center;
        margin: 10px 0;
    }

    .burger {
        display: flex;
    }
}

/* bouton pour télécharger le cv */
#cv-button {
    background: linear-gradient(to right, #00C9A7, #007CFF);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 201, 167, 0.2);
    margin-left: 40px;
    margin-right: 15px;
}

#cv-button:hover {
    background: linear-gradient(to right, #00A7B7, #0066B2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 201, 167, 0.3);
}
/* Pour le responsive */
@media screen and (max-width: 768px) {
    .cv-button {
        margin: 10px auto;
        display: inline-block;
    }

    header {
        flex-wrap: wrap;
        justify-content: space-between;
    }
}



/* Yeux qui bougent */

.eyes-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    left: clamp(20%, 50%, 50%);
}

.eyes {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.eye {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pupil {
    width: 16px;
    height: 16px;
    background: black;
    border-radius: 50%;
    position: absolute;
    transition: transform 0.05s linear;
}

@media screen and (max-width: 1920px) {
    .eyes-wrapper {
        left: 40%;
    }
}

@media screen and (max-width: 1650px) {
    .eyes-wrapper {
        left: 30%;
    }
}

@media screen and (max-width: 1400px) {
    .eyes-wrapper {
        left: 25%;
    }
}

/* Cacher les yeux sur petits écrans */
@media screen and (max-width: 1270px) {
    .eyes-wrapper {
        display: none;
    }
}


/* Rond qui suit la souris */
.cursor {
    width: 24px;
    height: 24px;
    border: 2px solid #555555;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background-color: rgba(255,255,255,0.1);
    transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
    z-index: 9999;
    mix-blend-mode: difference;
    backdrop-filter: blur(3px);
}


/* transition global du thème */
body, .about-block, header, nav ul li a, .section-title {
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* BOUTON CHANGEMENT DE THÈME */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background-color: #1c1c1c;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    background-color: #00C9A7;
    transform: scale(1.1);
}

.theme-toggle span {
    display: block;
    width: 26px;
    height: 26px;
    background-color: currentColor;
    mask: url('https://api.iconify.design/mdi/moon-waning-crescent.svg') no-repeat center;
    mask-size: cover;
    transition: transform 0.6s ease, mask 0.3s ease;
}

/* changement icône du bouton */
body.light .theme-toggle span {
    mask: url('https://api.iconify.design/mdi/white-balance-sunny.svg') no-repeat center;
    mask-size: cover;
    transform: rotate(180deg) scale(1.1);
}

/* MODE CLAIR */
body.light {
    background-color: #fef9f3;
    color: #111;
}

/* header qui ne change pas couleur */
body.light header {
    background-color: #1c1c1c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* footer */

.site-footer {
    background-color: #1c1c1c;
    color: #ccc;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.linkedin-logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) brightness(80%);
}

.linkedin-logo:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(100%);
}

.footer-copy {
    font-size: 15px;
    color: #888;
    text-align: center;
}