/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #0f1419;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffd700;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}   

.hero-greeting {
    font-size: 1.2rem;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.name-part {
    display: block;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.cursor {
    animation: blink 1s infinite;
}
/* Animation pour le curseur clignotant */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #0f1419;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-secondary:hover {
    background: #ffd700;
    color: #0f1419;
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #0f1419;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-background {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 20px;
    transform: rotate(5deg);
}

.profile-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-10px);
}

.profile-decoration {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.4s forwards;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #ffd700;
}

/* Animation pour le mouvement de la flèche */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

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

/* Sections */
section {
    padding: 6rem 0;
    background: #1a202c;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-number {
    display: inline-block;
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
    position: relative;
}

.section-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: #0f1419;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-card {
    background: #1a202c;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0,0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 1rem;
}

.about-card p {
    color: #a0aec0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-card p a {
    color: #ffd700;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-card p a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    background: #1a202c;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-highlights {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: #1a202c;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease, border-color 0.35s ease;
}

.about-highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.3);
}

.about-highlight-item:nth-child(2) {
    margin-left: 1.75rem;
}

.about-highlight-item:nth-child(3) {
    margin-left: 3.5rem;
}

.about-highlight-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #0f1419;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.25);
}

.about-highlight-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.3rem;
}

.about-highlight-text h4 a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-highlight-text h4 a:hover {
    color: #ff8c00;
    text-decoration: underline;
}

.about-highlight-text p {
    color: #a0aec0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Skills Section */
.skills-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.skill-category {
    background: #0f1419;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.skill-category-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #0f1419;
    font-size: 1.1rem;
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.4rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 10px;
    transition: background 0.25s ease;
}

.skill-item:hover {
    background: rgba(255, 215, 0, 0.06);
}

.skill-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.skill-name {
    font-weight: 500;
    font-size: 0.92rem;
    color: #e2e8f0;
}

.skill-percent {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.skill-bar {
    height: 6px;
    background: #2d3748;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* Projects Section */
.projects {
    background: #0f1419;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #1a202c;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Mockups réalistes : chaque capture s'affiche entière, dans son contexte
   (fenêtre de navigateur pour le web, châssis de téléphone pour le mobile),
   plutôt que recadrée à l'aveugle dans un rectangle qui ignore ses proportions. --- */
.mockup {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.mockup-browser {
    width: 100%;
    background: #11151c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #0c0f14;
}

.mockup-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.mockup-bar span:nth-child(1) { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }

.mockup-browser .mockup-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mockup-phone {
    height: 100%;
    display: flex;
    background: #11151c;
    border-radius: 26px;
    padding: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-phone .mockup-screen {
    position: relative;
    height: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: 18px;
    overflow: hidden;
}

.mockup-phone .mockup-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 14px;
    background: #11151c;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.mockup-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-placeholder {
    transform: scale(1.04);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffd700;
    color: #0f1419;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #ff8c00;
    color: #0f1419;
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-category {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-category a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.project-category a:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Style spécifique pour le lien Azelie */
.project-category a[href="#"] {
    color: #ffd700 !important;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1rem;
}

.project-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.project-title a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    transition: width 0.3s ease;
}

.project-title a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.project-title a:hover::before {
    width: 100%;
}

.project-description {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #0f1419;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: fit-content;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f1419;
    font-size: 1.2rem;
}

.contact-details h4 {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.contact-details a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ff8c00;
}

.contact-details span {
    color: #a0aec0;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: #0f1419;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 2px solid #2d3748;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: #e2e8f0;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: #a0aec0;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    font-size: 0.85rem;
    color: #ffd700;
}

.form-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-bar,
.form-group textarea:focus ~ .form-bar {
    width: 100%;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Footer */
.footer {
    background: #0f1419;
    color: #e2e8f0;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    background: transparent;
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.footer-social .social-link:hover {
    background: #ffd700;
    color: #0f1419;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #0f1419;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-highlight-item:nth-child(2),
    .about-highlight-item:nth-child(3) {
        margin-left: 0;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .profile-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ============================================================
   PREMIUM ENHANCEMENTS
   Ajouts non destructifs : profondeur, motion design, micro-interactions.
   Conserve la palette et la structure existantes.
   ============================================================ */

/* --- Hero : mesh gradient animé + parallaxe souris --- */
.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 20% 25%, rgba(255, 215, 0, 0.14), transparent 60%),
        radial-gradient(500px circle at 82% 20%, rgba(255, 140, 0, 0.12), transparent 60%),
        radial-gradient(650px circle at 50% 95%, rgba(255, 215, 0, 0.08), transparent 60%);
    filter: blur(30px);
    animation: meshDrift 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

@keyframes meshDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}

.hero-image {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* --- Révélation au scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Boutons : lumière dynamique + magnétisme --- */
.btn,
.social-link {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.social-link i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.18) rotate(-6deg);
}

/* --- Section titres : soulignement animé au survol du numéro --- */
.section-number {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-header:hover .section-number {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

/* --- Projets : profondeur, reflet, tilt --- */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -160%;
    width: 55%;
    height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::before {
    left: 160%;
}

.projects-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.btn-more {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.35);
}

.btn-more:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #0f1419;
    transform: translateY(-2px);
}

.btn-more .fa-chevron-down {
    transition: transform 0.3s ease;
}

.btn-more.is-open .fa-chevron-down {
    transform: rotate(180deg);
}

.project-card.project-extra {
    display: none;
}

.project-card.project-extra.is-shown {
    display: block;
}

/* --- Respect des préférences de mouvement réduit --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-text,
    .hero-image {
        transform: none !important;
    }
}

/* ============================================================
   STUDIO POLISH PASS
   Détails de finition : continuité de scroll, texte cinétique,
   lumière volumétrique, profondeur, interactions raffinées.
   Chaque effet sert une intention précise (voir commentaires).
   ============================================================ */

/* --- Barre de progression : matérialise l'avancement de lecture --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
    z-index: 1001;
    will-change: width;
}

/* --- Indicateur de navigation glissant : ancre la position dans le parcours --- */
.nav-links {
    position: relative;
}

.nav-indicator {
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: left 0.45s cubic-bezier(0.65, 0, 0.35, 1),
                width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}

@media (max-width: 768px) {
    .nav-indicator {
        display: none;
    }
}

/* --- Continuité entre sections : évite les coupures nettes de fond --- */
section {
    position: relative;
}

section:not(.hero)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 70%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.35), transparent);
}

/* --- Curseur personnalisé : renforce la sensation de produit soigné (desktop uniquement) --- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2000;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #ffd700;
    transition: opacity 0.25s ease;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255, 215, 0, 0.5);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease, background 0.3s ease, opacity 0.25s ease;
}

.cursor-ring.is-active {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 215, 0, 0.9);
    background: rgba(255, 215, 0, 0.08);
}

body.cursor-ready.cursor-visible .cursor-dot,
body.cursor-ready.cursor-visible .cursor-ring {
    opacity: 1;
}

body.cursor-ready,
body.cursor-ready a,
body.cursor-ready button,
body.cursor-ready .project-card {
    cursor: none;
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* --- Hero : lumière volumétrique derrière le portrait --- */
.profile-container {
    z-index: 0;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25), transparent 65%);
    filter: blur(50px);
    z-index: -1;
    animation: spotlightPulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes spotlightPulse {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

/* --- Texte cinétique : le nom se met au point lettre par lettre --- */
.hero-name.split-active {
    opacity: 1;
    animation: none;
    transform: none;
}

.hero-name .char {
    display: inline-block;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: charIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Variantes de révélation non répétitives --- */
.reveal[data-reveal="blur"] {
    transform: translateY(24px);
    filter: blur(10px);
}

.reveal[data-reveal="blur"].is-visible {
    filter: blur(0);
}

.reveal[data-reveal="tilt"] {
    transform: perspective(900px) rotateX(10deg) translateY(26px);
    transform-origin: top center;
}

.reveal[data-reveal="tilt"].is-visible {
    transform: perspective(900px) rotateX(0deg) translateY(0);
}

.reveal[data-reveal="left"] {
    transform: translateX(-44px);
}

.reveal[data-reveal="left"].is-visible {
    transform: translateX(0);
}

.reveal[data-reveal="right"] {
    transform: translateX(44px);
}

.reveal[data-reveal="right"].is-visible {
    transform: translateX(0);
}

/* --- Cartes secondaires : reflet de verre qui suit le curseur (profondeur légère, sans tilt) --- */
.sheen-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease, border-color 0.4s ease;
}

.sheen-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.sheen-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.25);
}

.sheen-card:hover::after {
    opacity: 1;
}

/* --- États hover mémorables --- */
.tech-tag {
    transition: transform 0.25s ease, background 0.25s ease,
                border-color 0.25s ease, box-shadow 0.25s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

/* --- Magnétisme raffiné : suivi fluide en survol, rebond élastique au relâché --- */
.btn.is-magnetic,
.social-link.is-magnetic {
    transition: box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn.is-settling,
.social-link.is-settling {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:active {
    transform: scale(0.95);
}

/* --- Ajustements responsives des ajouts studio --- */
@media (max-width: 768px) {
    section:not(.hero)::before {
        width: 82%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    body.cursor-ready,
    body.cursor-ready a,
    body.cursor-ready button {
        cursor: auto;
    }

    .hero-name .char {
        opacity: 1;
        filter: none;
        transform: none;
        animation: none;
    }

    .reveal[data-reveal="blur"],
    .reveal[data-reveal="tilt"],
    .reveal[data-reveal="left"],
    .reveal[data-reveal="right"] {
        transform: none;
        filter: none;
    }
}