/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #0a0d13;
    color: white;
    font-family: Arial, sans-serif;
}

/* En-tête */
header {
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Titre */
.titre {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Liens sociaux */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #000000;
}

/* Menu burger (mobile) */
.burger {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

/* Contenu principal */
/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    margin-top: 80px;
    padding: 4rem 0;
}

/* Section À propos */
.about-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.about-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #6d7486 0%, #0a0d13 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.8;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Section Compétences */
.skills-section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #fff;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    color: #ff914d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #ff914d;
    bottom: 0;
    left: 0;
    border-radius: 3px;
}

.skill {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.skill:hover {
    background: rgba(255, 255, 255, 0.05);
}

.skill:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    /* Assurer la visibilité sur mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    border-radius: 4px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Section Projets */
.projects-section {
    padding: 6rem 0;
    position: relative;
    background: rgba(10, 13, 19, 0.7);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #ff914d;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.project-content p {
    color: #d1d5db;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tags span {
    background: rgba(255, 145, 77, 0.1);
    color: #ff914d;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-link {
    display: inline-block;
    color: #fff;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Section Conclusion */
.conclusion-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,49,49,0.1) 0%, rgba(255,145,77,0.1) 100%);
    position: relative;
    overflow: hidden;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.conclusion-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.conclusion-section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.conclusion-section p {
    font-size: 1.2rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 49, 49, 0.4);
}

/* Pied de page */
.footer {
    background-color: #0a0d13;
    color: #d1d5db;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-link:hover {
    color: #ff914d;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #8b949e;
}

.footer-bottom i {
    color: #ff3131;
    margin: 0 0.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .conclusion-section h2 {
        font-size: 2rem;
    }
    
    .conclusion-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.about-image {
    width: 250px;
    height: 250px;
    min-width: 250px; /* Empêche la réduction de largeur */
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 1/1; /* Garantit un rapport hauteur/largeur de 1:1 */
    background: radial-gradient(circle at 50% 50%, #6d7486 0%, #0a0d13 100%);
    padding: 6px; /* Espace pour le dégradé */
    box-sizing: border-box;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Styles pour les icônes du header */

/* Styles pour les icônes du header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    padding: 1rem 2rem;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Styles responsifs */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media screen and (max-width: 900px) {
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card,
    .skill-category {
        max-width: 100%;
    }
}

/* Styles pour la version mobile */
@media screen and (max-width: 720px) {
    /* Styles pour les barres de compétences sur mobile */
    .skill-bar {
        height: 10px; /* Un peu plus épais sur mobile */
    }
    
    .skill {
        padding: 1.2rem;
    }
    
    .skill-info {
        font-size: 1rem;
    }
    
    .footer {
        position: relative;
        padding: 2rem 0;
        margin-top: 3rem;
        background-color: #333;
        z-index: 1000;
        background-color: rgba(51, 51, 51, 0.95);
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
    
    .footer-content {
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .social-links a {
        font-size: 1.8rem;
        margin: 0;
        text-align: center;
        min-width: 40px;
        color: white;
        transition: transform 0.3s ease;
    }
    
    .social-links a:active {
        transform: scale(0.9);
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding: 1rem 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        margin: 0;
        line-height: 1.4;
    }
}

/* Styles pour le footer */
.footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
}

/* Animation de chargement */
body.loaded {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

body:not(.loaded) {
    opacity: 0;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(90deg, #ff3131, #ff914d);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    font-size: 24px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Animation des barres de compétences */
@keyframes fillBar {
    from { width: 0; }
    to { width: var(--width); }
}

.skill-level {
    opacity: 0;
    transition: opacity 0.5s ease, width 1.5s ease;
}

.skill-level.animate {
    opacity: 1;
}

/* Responsive pour le menu burger */
@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(10, 13, 19, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease-in-out;
        z-index: 999;
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links a {
        margin: 20px 0;
        font-size: 1.5rem;
    }
}

/* Transition fluide pour les ancres */
html {
    scroll-behavior: smooth;
}

/* Styles pour le titre professionnel */
.job-title.typing-complete::after {
    content: '|';
    margin-left: 2px;
    opacity: 1;
    animation: blink 0.7s infinite;
    color: #4a90e2;
}

.job-title {
    font-size: 1.8rem;
    color: #4a90e2;
    min-height: 2.5rem;
    margin: 0.5rem 0 1.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.job-title::after {
    content: '|';
    margin-left: 2px;
    opacity: 1;
    animation: blink 0.7s infinite;
    color: #4a90e2;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.highlight {
    color: #4a90e2;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #4a90e2;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease-out;
}

h1:hover .highlight::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Désactiver l'animation de défilement pour les appareils qui préfèrent réduire les animations */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .skill-level {
        transition: none;
    }
}

/* Styles pour les cartes de projet avec animation au survol */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Animation d'apparition des sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Délai d'animation pour chaque section */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }

.about-image {
    transition: transform 0.3s ease;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
    color: #fff;
}

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.about-text h1 span {
    color: #ff914d;
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #a0a8b8;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.about-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:first-child {
    background: linear-gradient(90deg, #ff3131 0%, #ff914d 100%);
    color: white;
    border: 2px solid transparent;
}

.btn:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ff914d;
    color: #ff914d;
}

.btn-outline:hover {
    background: rgba(255, 145, 77, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-text h1 {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 1.3rem;
    }
    
    .about-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .social-links {
        display: none;
    }
    
    .burger {
        display: block;
    }
}