:root {
    --bg-color: #0e0e0e;
    --text-white: #ffffff;
    --text-gray: #c3c5c9;
    --accent-color: #ffbd42;
}


/* tel jusqu'à 761px */
/* tablette de 761px jusqu'à 980px */
/* ordinateur au dessus de 980px */



* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

html{
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    font-family: 'Inter', 'Roboto', sans-serif;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -50;
    background-image: radial-gradient(
        circle at 75% 35%, 
        rgba(255, 102, 0, 0.36) 0%, 
        rgba(255, 102, 0, 0.32) 10%, 
        transparent 60% 
    );
    background-repeat: no-repeat;
    background-size: cover;
}


.hero-bg-img, 
.global-bg {
    transition: filter 0.6s ease, opacity 0.6s ease;
}

body.blur-mode .hero-bg-img {
    filter: blur(8px) grayscale(40%); 
    opacity: 0.6;
}

body.blur-mode .global-bg {
    filter: blur(10px);
}


body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-20%, -50%);
    width: 120vw;  
    height: 120vh; 
    background: radial-gradient(circle, rgba(255, 140, 66, 0.15) 0%, rgba(0,0,0,0) 65%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

header {
    top: 20px; 
    right: 3%;
    z-index: 1000;
}

header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav a i {
    font-size: 1.4rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

header nav a:hover i {
    color: var(--text-white);
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

header .btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 20px; 
    font-size: 0.7rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: var(--text-white);
    z-index: 1;
}

header .btn:hover {
    background-color: var(--text-white);
    color: black;
    border-color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.nav-text {
    display: none;
}

nav ul {
    position: fixed;
    bottom: 20px; 
    left: 50%;
    transform: translateX(-50%); 
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 6px 8px;
    border-radius: 50px; 
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    list-style: none; 
    margin: 0;
}


nav ul{
    gap: 30px;
}

nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    padding: 5px 0px;
    border-radius: 30px; 
}

@media (min-width: 761px) {
    .nav-text {
        display: inline-block;
        font-size: 1rem; 
    }

    nav ul li a {
        padding: 8px 15px;
        color: var(--text-white);
    }
}

nav ul li:first-child a {
    padding-left: 20px;
}

nav ul li:last-child a {
    padding-right: 20px;
}

nav ul li a.active {
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

#home {
    margin-top: 50px;
    margin-bottom: 30px;
    min-height: 80vh;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding-left: 10%; 
    box-sizing: border-box;
}

#home img{
    margin-top: -60px;
    margin-bottom: 20px;
}

#home h1 {
    color: var(--accent-color); 
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

#home h2 {
    font-size: 2.3rem;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 40px;
    font-weight: 700;
}

.infos {
    display: grid;
    grid-template-columns: repeat(1, auto); 
    gap: 20px 50px; 
    margin-bottom: 50px;
    width: max-content; 
}

.info {
    display: flex;
    align-items: center;
    gap: 12px; 
}

.info i {
    color: var(--accent-color); 
    font-size: 1.3rem;
}

.info a {
    color: var(--text-gray);
    font-size: 1rem;
    transition: 0.3s ease;
}

.info a:hover {
    color: var(--text-white);
}

.more-projets {
    display: inline-block;
    background-color: var(--text-white);
    color: #000;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    width: fit-content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.more-projets:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

#experiences {
    margin-left: 0;
    padding: 60px 20px 60px 20px;
    max-width: 100%;
    box-sizing: border-box; 
    overflow: hidden;
}

.section-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.1;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    top: 75px;
    bottom: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item h2 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: 35px;
}

.timeline-item::before {
    content: ''; 
    position: absolute;
    left: -25px; 
    top: 69px; 
    width: 10px;
    height: 10px;
    background-color: var(--accent-color); 
    border-radius: 50%; 
    box-shadow: 0 0 10px rgba(255, 189, 66, 0.4); 
}

.timeline-item:nth-child(2)::before {
    top: 12px; 
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
}

.timeline-header h3 {
    color: var(--accent-color);
    font-size: 27px;
}

.timeline-header span {
    color: var(--text-white);
    font-size: 12px;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 17px;
    color: var(--text-white);
    font-weight: 100;
}

.timeline-header .role {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.timeline-header .date {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1rem;
}

.company {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 20px 0;
}

.description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.sub-title {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-preview {
    width: 100%;
    height: 150px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .timeline-header {
        flex-direction: row; 
        justify-content: space-between;
        align-items: baseline;
    }
    
    .section-title {
        font-size: 4rem;
    }
}

#skills {
    padding: 60px 20px;
    margin-left: 10px;
    max-width: 95%;
}

.skill-category {
    margin-bottom: 40px;
}

.category-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--accent-color);
}

.skill-list {
    display: flex;
    flex-wrap: wrap; 
    gap: 12px; 
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: var(--text-gray);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; 
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag i {
    font-size: 1.1rem;
    color: var(--text-white); 
    transition: color 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 189, 66, 0.1); 
    border-color: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-tag:hover i {
    color: var(--accent-color);
}


#projets {
    padding: 60px 20px;
    margin-left: 10px;
    max-width: 95%;
    padding-bottom: 100px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    height: auto; 
    min-height: 100%;
    background-color: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px; 
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-date {
    display: block;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap; 
    gap: 8px;
    margin-bottom: 25px;
}

.tech-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 5px 12px;
    border-radius: 6px; 
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--text-white);
    color: black; 
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-project:hover {
    background-color: var(--accent-color); 
    color: white;
    box-shadow: 0 0 15px rgba(255, 189, 66, 0.4);
}

@media (min-width: 700px) {
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1200px) {
    .projects-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
}

#links {
    /* Prend toute la place restante, centré verticalement et horizontalement */
    min-height: 60vh; /* Hauteur mini pour aérer */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    margin-left: 10px; /* Si tu as gardé le décalage timeline */
    max-width: 95%;
}

.contact-container {
    max-width: 600px; /* On limite la largeur pour que le texte reste lisible */
    margin-bottom: 80px; /* Espace avant le footer */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* LE BADGE "CONTACT" (La pilule blanche) */
.contact-badge {
    background-color: var(--text-white);
    color: black;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 30px;
    display: inline-block;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* LE TITRE */
.contact-title {
    color: var(--text-white);
    font-size: 3.5rem; /* Très gros titre */
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* LE TEXTE */
.contact-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* LE LIEN EMAIL */
.email-link {
    color: var(--text-white);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Soulignement discret */
    transition: all 0.3s ease;
    margin-left: 5px;
}

.email-link:hover {
    color: var(--accent-color); /* Devient orange au survol */
    border-color: var(--accent-color);
}

/* LES ICÔNES SOCIALES EN LIGNE */
.social-row {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-row a {
    color: var(--text-gray);
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-row a:hover {
    color: var(--accent-color);
    transform: translateY(-5px); /* Petite animation de saut */
}


/* --- FOOTER --- */
footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    padding-bottom: 100px;
}

footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* --- RESPONSIVE TABLETTE & ORDI --- */
@media (min-width: 600px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    }
}

@media (min-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur grand écran */
    }
}