/* ============================
   Variables & Reset
============================ */
:root {
    --primary: rgb(37, 139, 235);
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #ec4899;
    --dark: #1f2937;
    --dark-light: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --text: #334155;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.h {
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        /* font-family: 'DM Serif Display', serif; */

    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ============================
   Navigation
============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo img {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -4px;
    margin-right: 8px;
}



.nav-logo:hover {
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: .5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    justify-content: center;
    text-align: center;
    margin-top: -8px;
    width: 6rem;
    margin-left: 6rem;
}


.cv:hover {
    background-color: var(--primary-dark);
    transition: .3s;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
}

/* ============================
   Hero Section
============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    overflow: hidden;
    /* background: linear-gradient(135deg, #3ac4ed 0%, #1262ca 100%); */
    background-image: url("/images/projects/bg2.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* .gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
} */

/* .circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 148, 244, 0.6) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 0, 217, 0.918) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(4, 8, 230, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
} */

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 80%;
    max-width: 1000px;
    animation: fadeInUp 1.5s ease-out;
}

/* Photo de profil animée */
.hero-profile-image {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 9rem auto 0;
    animation: floatProfile 3s ease-in-out infinite;
    float: right;
}

.hero-profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
}

.profile-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.profile-ring-2 {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: pulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes floatProfile {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

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

.hero-title {
    margin-bottom: 1rem;

}
.hero-title,
.hero-subtitle, 
.hero-description {
    margin-left: 0;
} 

.greeting {
    display: flex;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    margin-top: 6rem;
    line-height: 2rem;
    opacity: 0.9;
}

.name {
    display: flex;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #b1fffb, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    display: flex;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #e7fffe, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {

    text-align: left;
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}



.hero-as {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}





.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    margin: 10 auto;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--white);
    color: #667eea;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.35);

}



.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px);
}



/* ========================== */







.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--white);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(250%); }
}



/* =========================
   RESPONSIVE MOBILE
   ========================= */
@media (max-width: 768px) {

    /* HERO STRUCTURE */
    .hero {
        min-height: 100vh;
        padding: 4rem 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .cv {
        width: 100%;
        margin-left: 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0;
        gap: 2rem;
    }

    /* IMAGE */
    .hero-profile-image {
        width: 180px;
        height: 180px;
        margin: 0 auto;
        float: none;
    }

    /* TITRES */
    .hero-title {
        margin: 0;
    }

    .navbar {
        opacity: .9;
    }
    .greeting {
        display: block;
        font-size: 1.3rem;
        line-height: 1.2;
        margin: 0;
    }

    .name {
        display: block;
        font-size: clamp(2rem, 6vw, 2.6rem);
        margin: .5rem 0;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        font-weight: 600;
        margin-top: -1.3rem;
        margin-bottom: -1rem;
        color: rgba(255, 255, 255, 0.95);
    }

    .hero-description {
        font-size: 1.05rem;
        max-width: 500px;
        margin: 0 auto .8rem;
        opacity: 0.9;
        text-align: center;
    }

    /* BOUTONS */
    .hero-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 3rem;
        width: 100%;
        text-align: center;
    }

    .btn {
        padding: .8rem 1.8rem;
        font-size: 1.1rem;
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    /* SCROLL INDICATOR */
    .scroll-indicator {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
        font-size: .9rem;
    }



}



/* ===== TECH MARQUEE SECTION ===== */
.tech-marquee-section {
  padding: 3rem 0 2.5rem;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.tech-marquee-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}

.tech-marquee-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary, #258beb);
  white-space: nowrap;
  opacity: 0.85;
}

.tech-marquee-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--primary, #258beb) 0%, transparent 100%);
  opacity: 0.25;
}

/* Wrapper avec masque de fondu sur les bords */
.tech-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tech-marquee-wrapper::before,
.tech-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.tech-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg, #fff) 0%, transparent 100%);
}

.tech-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg, #fff) 0%, transparent 100%);
}

/* Track animé */
.tech-marquee-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

.tech-marquee-track.paused {
  animation-play-state: paused;
}

/* Item individuel */
.tech-marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(37, 139, 235, 0.12);
  background: rgba(37, 139, 235, 0.04);
  backdrop-filter: blur(6px);
  cursor: default;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;
  min-width: 90px;
  user-select: none;
}

.tech-marquee-item:hover {
  transform: translateY(-6px) scale(1.06);
  border-color: rgba(37, 139, 235, 0.45);
  background: rgba(37, 139, 235, 0.1);
  box-shadow: 0 12px 32px rgba(37, 139, 235, 0.15),
              0 0 0 1px rgba(37, 139, 235, 0.2);
}

.tech-icon {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon i {
  font-size: 2rem;
}

.tech-name {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary, #666);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.tech-marquee-item:hover .tech-name {
  color: var(--primary, #258beb);
}

/* Animation */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Dark mode (si tu en as un) */
@media (prefers-color-scheme: dark) {
  .tech-marquee-wrapper::before {
    background: linear-gradient(90deg, #0d0d0d 0%, transparent 100%);
  }
  .tech-marquee-wrapper::after {
    background: linear-gradient(270deg, #0d0d0d 0%, transparent 100%);
  }
}



/* ============================
   Sections communes
============================ */
.section {
    padding: 6rem 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 100%;
}


@media (max-width: 768px) {
    .section {
        padding: 3rem 1.5rem;
    }
    .comp {
        width: 23rem;
        margin: auto;
    }

    .al {
        padding: 3rem 0;
    }
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text p{
    text-align: justify;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ============================
    WHATSAPP
=============================  */


.fa-square-whatsapp {
    font-size: 2rem;
    color: var(--secondary);
}
.fa-square-whatsapp:hover {
    color: rgb(37, 231, 11);
    transition: .3s;
}

/* ============================
   À propos
============================ */
.about-section {
    background: var(--light-gray);

}

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

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    margin: 2rem auto;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-download-cv:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}


.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text);
    
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ============================
   Projets
============================ */
.projects-section {
    padding: 4rem;
}

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

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    max-width: 24rem;
    border-bottom: 3px solid var(--primary);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(84, 84, 195, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    padding: 0.8rem 1.8rem;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
    color: var(--primary);
}

.project-description {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tag {
    padding: 0.4rem 0.9rem;
    background: var(--light-gray);
    color: var(--primary);
    font-size: 0.85rem;
    border-radius: 20px;
    font-weight: 600;
}





.like-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem ;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all .3s ease;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text);
    margin-top: .5rem;
}

.like-btn:hover {
    background: #ffe4e6;
    border-color: #fb7185;
    transform: translateY(-2px);
}

.like-btn.liked {
    background: #fecdd3;
    border-color: #e11d48;
}

.like-btn {
    transition: transform 0.2s;
}

.like-btn.liked {
    transform: scale(1.3);
    color: red;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}


.like-icon {
    font-size: 700;
    transition: transform .3s ease;
}


.like-count {
    font-weight: 700;
    color: #e11d48;
}

.like-btn-timeline {
    margin-top: 1rem;
}




.btn-load-more {
    display: block;
    margin: 0 auto;
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.btn-load-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================
   Compétences
============================ */
.skills-section {
    background: var(--light-gray);
}

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

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
        border-bottom: 3px solid var(--primary);

}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    color: var(--primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
}

.skill-icon {
    font-size: 1.3rem;
    text-align: center;
}

.skill-name {
    font-weight: 600;
    color: var(--text);
}

.skill-bar {
    grid-column: 2 / 3;
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0;
    transition: width 1s ease;
}

.skill-item.animate .skill-progress {
    width: var(--progress);
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.skill-badge {
    padding: 0.3rem 1.1rem;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    transition: var(--transition);
    margin-bottom: 2rem;
}

.skill-badge:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ============================
   Parcours (Timeline)
============================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    
}


.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    
    
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary);
    z-index: 2;
    
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
        border-bottom: 3px solid var(--primary);

}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--light-gray);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-light);
}

.timeline-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.timeline-description {
    color: var(--gray);
    line-height: 1.6;
}


/* ========================================
   VALUES SECTION
   ======================================== */
.values-section {
    padding: 5rem 4rem;
    background: rgba(160, 207, 255, 0.158);
}


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

.value-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-radius: 16px;
    border-bottom: 3px solid var(--primary)
}



.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    

}

.value-icon {
    font-size: 4rem;
    background: var(--light-gray);
    border-radius: 10px;
    width: 6rem;
    height: 6rem;
    justify-content: center;
    margin: 1rem auto;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}



/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.158);
    color: var(--text-dark);
    text-align: center;
}



.cta-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cta-buttons .btn-primary {
    background: rgb(0, 162, 255);
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid rgb(0, 162, 255);
    border-radius: 8px;
    text-decoration: none;
}

.cta-buttons .btn-secondary:hover {
    background: rgb(0, 162, 255);
    color: #ffffff;
}



/* ════════════════════════════════════════
   6. CONTACT
   ════════════════════════════════════════ */
.contact-ap-body {
    padding: 0 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-ap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e0ddd6;
    text-decoration: none;
    color: #353333;
    font-size: 0.83rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-ap-item:hover {
    background: #e8f0fb;
    border-color: #c2d9f5;
    transform: translateX(5px);
    color: #0a66c2;
}

.contact-ap-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: #e8f0fb;
}

.contact-ap-info small {
    display: block;
    font-size: 0.71rem;
    color: #999;
    font-weight: 400;
    margin-top: 1px;
}

/* Réseaux sociaux */
.socials-ap {
    display: flex;
    gap: 10px;
    padding: 0 26px 24px;
    flex-wrap: wrap;
}

.social-ap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f2ee;
    border: 1.5px solid #e0ddd6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    color:  #6b7280;
    transition: all 0.2s ease;
}

.social-ap-btn:hover {
    border-color:  #0a66c2;
    background: #e8f0fb;
    transform: translateY(-3px);
    color:  #0a66c2;
    box-shadow: 0 4px 10px rgba(10,102,194,0.15);
}

/* ============================
   Contact
============================ */
.contact-section {
    background: var(--light-gray);
    width: 100%;
    padding: 0 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    width: 100%;
    
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid var(--primary);

}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 10px;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    height: 3rem;
    background: transparent;
}

/* .social-link img {
    width: 100%;
    border-radius: 5px;
} */
.social-link i {
    font-size: 3rem;
}



.social-link:hover {
    transform: translateY(-5px);

}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--primary);
margin-bottom: 10rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);

}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    justify-content: center;
}

.btn-submit:hover {
    background: var(--primary-dark);
}



/* ============================
   Responsive
============================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .contact-info {
        max-width: 360px;
    }


    .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}



    .social-links {
    gap: 1.2rem;
}

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }



    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }

    .projects-section {
        padding: 4rem;
    }

    .project-card {
        max-width: 100%;
    }       
}







/* ============================
   Scrollbar Styling
============================ */
::-webkit-scrollbar {   
    width: 10px;
}   
::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}












