@font-face {
    font-family: 'Aeonik';
    src: url("./assets/fonts/Aeonik_Reg.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AeonikBold';
    src: url("./assets/fonts/Aeonik_Bold.ttf");
    font-weight: bold;
    font-style: normal;
}

:root {
    --bg-color: #e0e5ec;
    --card-bg: #d4d8e0;
    --text-color: #000;
    --primary-color: #000;
    --accent-color: #fff;
    --timeline-line-color: #000;
    --font-main: 'Aeonik', sans-serif;
    --box-color-shadow: rgba(0, 0, 0, 0.3);
    --global-radius: 15px;
    --special-color: #2496ED;
    --size-text-normal: 1rem;
    --size-text-large: 1.2rem;
    --skill-label-color: #111;
    --skill-title-color: #2b2b2b;
    --mono-icon-color: #111;
    --mono-img-filter: none;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1e1e1e;
        --card-bg: #2e2e2e;
        --text-color: #fff;
        --primary-color: #fff;
        --accent-color: #000;
        --box-color-shadow: rgba(255, 255, 255, 0.3);
        --timeline-line-color: #fff;
        --skill-label-color: #f5f5f5;
        --skill-title-color: #e8e8e8;
        --mono-icon-color: #f5f5f5;
        --mono-img-filter: invert(1) brightness(1.15) contrast(1.1);
    }
}




html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}


header {
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-weight: bolder;
    font-family: "AeonikBold", sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.super-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 25px;
    border-radius: var(--global-radius);
    text-decoration: none;
    background-color: #000;
    color: #fff;
    box-shadow: none;
    font-weight: 600;
    font-size: var(--size-text-normal);
    outline: none !important;
    border: none !important;
}

.logo-link {
    text-decoration: none;
    color: #fff;
}

.super-button:hover {
    transform: translateY(-2px);
    color: #000;
    background-color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

main {
    margin-top: 60px;
    max-width: 950px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

main>section {
    background: var(--card-bg);
    border-radius: var(--global-radius);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: var(--size-text-large);
    margin-bottom: 20px;
    font-weight: bolder;
}

.hero-content h1 strong {
    font-weight: bold;
}

.hero-content p {
    margin-bottom: 15px;
    font-size: 1.27rem;
    text-align: justify;
}

.hero-content p .current-goal {
    font-weight: bold;
    color: var(--special-color);
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 25px;
    border-radius: var(--global-radius);
    text-decoration: none;
    box-shadow: none;
    font-weight: 600;
    font-size: var(--size-text-normal);
    outline: none !important;
}

.btn-primary {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: #000;
    background-color: #fff;
}

.hero-image {
    flex: 0 0 200px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--global-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: bolder;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #fff;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}


.timeline-marker {
    position: absolute;
    left: -19px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px var(--box-color-shadow);
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-radius: var(--global-radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 2px 2px 5px var(--box-color-shadow);
    justify-content: space-around;
    align-items: center;
}

.skills {
    list-style-type: circle;
    margin-left: 20px;
}

.skills-grid h4 {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.skills li {
    margin-bottom: 10px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    color: var(--skill-label-color); /* au lieu de #fff */
    min-width: 60px;
}

.skill i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.skill-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--skill-title-color);
}


/* Icônes noires => deviennent claires en dark */
.fa-symfony,
.fa-github {
    color: var(--mono-icon-color) !important;
}

/* Logos en <img> qui sont noirs (svg/png) */
.logo-mono {
    filter: var(--mono-img-filter);
}

.fa-php {
    color: #777BB4;
}

.fa-react {
    color: #61DAFB;
}

.fa-python {
    color: #3776AB;
}

.fa-java {
    color: #007396;
}

.fa-angular {
    color: #DD0031;
}

.fa-docker {
    color: #2496ED;
}

.fa-linux {
    color: #FCC624;
}

.skill img {
    width: 2rem;
    height: 2rem;
}


/* Projets  */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--global-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px var(--box-color-shadow);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--global-radius);
    margin-bottom: 15px;
}

.project-card .stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
}


.project-card .stack img {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0;
    cursor: pointer;

}


.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bolder;
    color: var(--text-color);
}

.project-card p {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: justify;
}

.project-card .action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
}

.action-buttons button {
    cursor: pointer;
    border: none !important;
}


.action-buttons i {
    font-size: var(--size-text-normal);
    margin-top: 5px;
    margin-left: 5px;
    rotate: -45deg;
}




/* Popups  */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.project-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: var(--card-bg);
    border-radius: var(--global-radius);
    padding: 20px;
    box-shadow: 0 4px 6px var(--box-color-shadow);
    z-index: 1000;
}

.popup-content {
    position: relative;
    padding: 20px;
    overflow: auto;
    max-height: 80vh;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bolder;
    color: var(--text-color);
}

.popup-content p {
    margin-bottom: var(--size-text-normal);
    font-size: var(--size-text-normal);
    text-align: justify;
}

.popup-content .popup-buttons {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}



.popup-buttons button.close {
    background-color: #fff;
    color: #000;
    cursor: pointer;
}


/*  Contact  */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: var(--card-bg);
    border-radius: var(--global-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px var(--box-color-shadow);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bolder;
    color: var(--text-color);
}

.info-card p {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: justify;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.info-card a {
    color: var(--text-color);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-card i {
    margin-right: 5px;
    color: var(--special-color);
}

.info-card a:hover i {
    color: var(--special-color);
}


.contact-form {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: var(--global-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px var(--box-color-shadow);
    transition: transform 0.3s ease;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form label {
    font-size: var(--size-text-normal);
    font-weight: bold;
    color: var(--text-color);
}

.form-group button {
    cursor: pointer;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.contact-form button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    padding: 10px 25px;
    font-size: var(--size-text-normal);
    font-weight: bold;
    border-radius: 5px;
    outline: none !important;
    border: none !important;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    font-size: var(--size-text-normal);
    font-weight: bold;
    color: #000;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 2px solid var(--special-color);
}


button#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
}

button#scroll-to-top:hover {
    background-color: #000;
    color: #fff;
}

.alert {
    padding: 10px;
    border-radius: var(--global-radius);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px var(--box-color-shadow);
    color: var(--text-color);
    font-size: var(--size-text-normal);
    font-weight: bold;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}



.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}

.alert svg {
    margin-right: 5px;
    width: 2rem;
    height: 2rem;
}



footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
}


/* Mobile Responsive */


@media (max-width: 768px) {
    .hero-card {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .skills-grid {
        justify-content: center;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    :root {
        --size-text-normal: 0.8rem;
        --size-text-large: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .project-card {
        margin-bottom: 15px;
    }

    .project-card p,
    .project-card a {
        font-size: 0.8rem;
    }

    .project-card h3 {
        font-size: 1rem;
    }


}