/* Réinitialisation des styles par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
    overflow-x: hidden;
}
/* Style pour le header */
header {
    background: #1f1f1f;
    padding: 1rem 0;
    border-bottom: 2px solid #ff6347;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 1s ease-in-out;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6347;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6347;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Style pour le bouton de connexion */
.login-btn {
    background: #ff6347;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #ff4500;
}


/* Style pour la section hero */
.hero {
    background: linear-gradient(135deg, #1f1f1f 0%, #121212 100%);
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem; /* Ajoute un padding pour éviter que le texte touche les bords */
}

.hero-content {
    width: 100%; /* Assure que le contenu prend toute la largeur disponible */
    max-width: 1200px; /* Limite la largeur maximale pour éviter un texte trop large */
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin: 0 auto; /* Centre le contenu */
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6347;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    opacity: 0.8;
}

.hero-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    background: linear-gradient(to right, #ff6347, #ff4500);
    color: #fff;
    border-radius: 30px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #ff4500, #ff6347);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.hero-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.hero-btn:active::after {
    opacity: 1;
}


/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Style pour les sections */
section {
    padding: 4rem 2rem;
    max-width: 960px;
    margin: 2rem auto;
}

section h2 {
    color: #ff6347;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff6347;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: #1f1f1f;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-item i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #ff6347;
    transition: transform 0.3s;
}

.skill-item:hover i {
    transform: scale(1.2);
}

.skill-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 20px;
    background: linear-gradient(to right, #ff6347, #ff4500);
    width: 0;
    border-radius: 0 5px 5px 0;
    transition: width 1s ease-out;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(5px);
    opacity: 0.5;
    pointer-events: none;
}

/* Style pour la section projets */
.projects {
    background: #1f1f1f;
    padding: 4rem 2rem;
    text-align: center;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-item {
    background: #121212;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.project-item h3 {
    font-size: 1.5rem;
    color: #ff6347;
    margin-bottom: 1rem;
}

.project-item p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    color: #ff6347;
    border: 2px solid #ff6347;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.project-link:hover {
    background: #ff6347;
    color: #fff;
}

/* Style pour la section contact */
.contact {
    background: #1f1f1f;
    padding: 4rem 2rem;
    text-align: center;
    color: #e0e0e0;
}
.contact p {
    font-size: 1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}
.contact-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    background: linear-gradient(to right, #ff6347, #ff4500);
    color: #fff;
    border-radius: 30px;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.contact-btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #ff4500, #ff6347);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Style pour le footer */
footer {
    background: #1f1f1f;
    color: #e0e0e0;
    text-align: center;
    padding: 1rem 0;
    border-top: 2px solid #ff6347;
    animation: fadeInUp 1s ease-in-out;
}

.social-links a {
    color: #e0e0e0;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ff6347;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation au défilement */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll-up {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view,
.animate-on-scroll-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.in-view .skill-progress {
    width: attr(data-progress %, 0);
}
