/* ============================================================
   STYLES GLOBAUX
   ============================================================ */

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #1A1A1A;
}

.font-mono {
    font-family: 'Fira Code', monospace;
}

.stat-number {
    font-family: 'Fira Code', monospace;
    font-size: 3.2rem;
    font-weight: 600;
    color: #FFD700;
    line-height: 1;
}

/* ============================================================
   COULEURS PERSONNALISÉES - JAUNE
   ============================================================ */

.border-yellow {
    border-color: #FFD700;
}
.bg-yellow {
    background-color: #FFD700;
}
.text-yellow {
    color: #FFD700;
}
.hover\:bg-yellow:hover {
    background-color: #FFD700;
    color: black;
}
.hover\:text-yellow:hover {
    color: #FFD700;
}

/* ============================================================
   TRANSITIONS
   ============================================================ */

.transition-custom {
    transition: all 0.2s ease;
}

/* ============================================================
   BARRE DE PROGRESSION DE LECTURE (mobile)
   ============================================================ */

#scroll-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9998;
    display: none;
    transition: opacity 0.3s ease;
}

#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: #FFD700;
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@media (max-width: 767px) {
    #scroll-progress {
        display: block;
    }
}

@media (min-width: 768px) {
    #scroll-progress {
        display: none !important;
    }
}

/* ============================================================
   BOUTON BACK TO TOP
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #FFD700;
    color: black;
    font-weight: 700;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    font-family: 'Inter', sans-serif;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    background: #E6C200;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

#back-to-top:active {
    transform: scale(0.97);
}

@media (max-width: 767px) {
    #back-to-top {
        bottom: 80px;
        right: 20px;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* ============================================================
   OVERLAY MENU
   ============================================================ */

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 215, 0, 0.95);
    backdrop-filter: blur(4px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
}

.menu-overlay.active {
    display: flex;
}

.menu-overlay a {
    color: #1A1A1A;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.4rem 1.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
    border-bottom: 2px solid transparent;
}

.menu-overlay a:hover {
    color: #000000;
    transform: scale(1.05);
}

.menu-overlay .close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #1A1A1A;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.menu-overlay .close-btn:hover {
    transform: rotate(90deg);
    color: #000000;
}

.menu-overlay .cta-btn {
    background-color: #000000;
    color: white;
    padding: 0.7rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.menu-overlay .cta-btn:hover {
    background-color: #333333;
    color: white;
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* ============================================================
   ANIMATIONS POUR LES FORMES (section Projets)
   ============================================================ */

@keyframes float-1 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
    100% { transform: translate(0, 0); }
}
@keyframes float-2 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-25px, 15px); }
    100% { transform: translate(0, 0); }
}
@keyframes float-3 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
    100% { transform: translate(0, 0); }
}
@keyframes float-4 {
    0% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(-30px, -10px) rotate(90deg); }
    100% { transform: translate(0, 0) rotate(45deg); }
}
@keyframes float-5 {
    0% { transform: translate(0, 0) rotate(12deg); }
    50% { transform: translate(25px, -25px) rotate(45deg); }
    100% { transform: translate(0, 0) rotate(12deg); }
}
@keyframes float-6 {
    0% { transform: translate(0, 0) rotate(-12deg); }
    50% { transform: translate(-20px, 20px) rotate(30deg); }
    100% { transform: translate(0, 0) rotate(-12deg); }
}
@keyframes float-7 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(40px, 10px); }
    100% { transform: translate(0, 0); }
}
@keyframes float-8 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-35px, -15px); }
    100% { transform: translate(0, 0); }
}
@keyframes float-9 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(15px, -30px); }
    100% { transform: translate(0, 0); }
}
@keyframes float-10 {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-15px, 25px); }
    100% { transform: translate(0, 0); }
}

.animate-float-1 { animation: float-1 6s ease-in-out infinite; }
.animate-float-2 { animation: float-2 8s ease-in-out infinite; }
.animate-float-3 { animation: float-3 7s ease-in-out infinite; }
.animate-float-4 { animation: float-4 9s ease-in-out infinite; }
.animate-float-5 { animation: float-5 5s ease-in-out infinite; }
.animate-float-6 { animation: float-6 7s ease-in-out infinite; }
.animate-float-7 { animation: float-7 6s ease-in-out infinite; }
.animate-float-8 { animation: float-8 8s ease-in-out infinite; }
.animate-float-9 { animation: float-9 10s ease-in-out infinite; }
.animate-float-10 { animation: float-10 5s ease-in-out infinite; }

/* ============================================================
   ANIMATION DÉFILEMENT LOGOS
   ============================================================ */

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ============================================================
   ANIMATIONS AU SCROLL (AJOUTÉ)
   ============================================================ */

/* Classes pour les animations de type fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de fondu + remontée pour les compétences */
.competence-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.competence-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation de glissement pour les projets */
.project-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.project-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animation pour les cartes hover */
.card-hover {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.card-hover.visible {
    opacity: 1;
    transform: translateY(0);
}