/* ========================================
   🎨 VARIABLES & BASE STYLES
   ======================================== */

:root {
    --primary: #ee2646;
    --secondary: #bc2551;
    --white: #FFFFFF;
    --black: #000000;
    --bg-light: #FFFFFF;
    --bg-dark: #0d0d0d;
    --text-light: #1a1a1a;
    --text-dark: #f5f5f5;
    --gray-light: #f8f8f8;
    --gray-dark: #1a1a1a;
    --gray-border: #e0e0e0;
    --shadow-color: rgba(238, 38, 70, 0.15);
    --shadow-hover: rgba(238, 38, 70, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --container-padding: 2rem;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: color-mix(
    in srgb,
    var(--secondary),
    transparent
  ) transparent;
}

/* =========================
   Scrollbar macOS-like
   ========================= */




/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  width: 3px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: color-mix(
    in srgb,
    var(--secondary),
    transparent
  );
  border-radius: 999px;
}

*::selection {
    background: var(--primary);
    color: var(--white);
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    position: relative;
}

body.dark-mode {
    background: var(--bg-dark);
    color: var(--text-dark);
    --gray-light: #1a1a1a;
    --gray-dark: #0d0d0d;
    --gray-border: #333;
    --shadow-color: rgba(238, 38, 70, 0.2);
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
}

body.dark-mode .noise-overlay {
    opacity: 0.05;
}

/* Typography */
.signature {
    font-family: 'Caveat', cursive;
    font-weight: 600;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}



/* ========================================
   🎯 HEADER & NAVIGATION
   ======================================== */

.header {
    position: sticky;
    top: 0;
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 30px var(--shadow-color);
    z-index: 1000;
    padding: 0.7rem 0;
    transition: var(--transition);
}

body.dark-mode .header {
    background: rgba(13, 13, 13, 0.95);
}

.header-content {
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px var(--shadow-color));
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 4px 12px var(--shadow-hover));
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
}

body.dark-mode .nav-link {
    color: var(--text-dark);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary);
}

/* Mobile Social Links - caché par défaut */
.mobile-social-links {
    display: none;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--gray-border);
}

body.dark-mode .mobile-social-links {
    border-color: #333;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Social Links in Header */
.social-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--gray-border);
    color: var(--text-light);
    transition: var(--transition);
    background: var(--bg-light);
}

body.dark-mode .social-icon {
    color: var(--text-dark);
    background: var(--bg-dark);
    border-color: #333;
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}


/* ========================================
   🏠 HOME PAGE - HERO SECTION
   ======================================== */

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding-top: 10px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    display: flex;
    
    gap: 4rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.hero-text {
    text-align: center;
}
.hero-tag {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

body.dark-mode .hero-tag  {
    color: var(--text-dark);
}

body.dark-mode .hero  {
    .gradient-text {
            -webkit-background-clip: text;
            -webkit-text-fill-color: var(--text-dark);
            background-clip: text;
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.title-name {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.glitch {
    animation: glitch-animation 8s infinite;
}

@keyframes glitch-animation {
    0%, 95%, 100% { transform: translate(0); }
    96% { transform: translate(-3px, 3px); text-shadow: 3px -3px 0 var(--secondary); }
    97% { transform: translate(3px, -3px); text-shadow: -3px 3px 0 var(--primary); }
    98% { transform: translate(-2px, -2px); text-shadow: 2px 2px 0 var(--secondary); }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    .gradient-text {
        -webkit-background-clip: text;
            -webkit-text-fill-color: var(--text-light);
            background-clip: text;
    }
}

.subtitle-line {
    display: block;
    color: var(--text-light);
    opacity: 0.8;
}

body.dark-mode .subtitle-line {
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 580px;
    opacity: 0.85;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* ========================================
   🏠 HOME PAGE - EXPERTISE SECTION
   ======================================== */

.expertise {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.title-number {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 1rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.9;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--gray-border);
    overflow: hidden;
}

body.dark-mode .expertise-card {
    background: var(--gray-dark);
    border-color: #333;
}

.expertise-card::before {
    content: attr(data-number);
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: var(--gray-light);
    opacity: 0.3;
    font-family: 'Caveat', cursive;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(238, 38, 70, 0.1),
        transparent
    );
    transition: var(--transition);
}

.expertise-card:hover .card-shine {
    left: 100%;
}

.expertise-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--primary);
}

.card-description {
    opacity: 0.85;
    line-height: 1.7;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.expertise-card:hover .card-accent {
    width: 100%;
}


/* ========================================
   🏠 HOME PAGE - RECENT PROJECTS
   ======================================== */

.recent-projects {
    padding: 8rem 0;
    background: var(--gray-light);
    position: relative;
}

body.dark-mode .recent-projects {
    background: var(--gray-dark);
}

.recent-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recent-project-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--gray-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.dark-mode .recent-project-card {
    background: var(--black);
    border-color: #333;
}

.recent-project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.recent-project-card .card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(238, 38, 70, 0.1),
        transparent
    );
    transition: var(--transition);
}

.recent-project-card:hover .card-shine {
    left: 100%;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
}

.project-tech {
    font-size: 1.05rem;
    color: var(--secondary);
    opacity: 0.9;
    letter-spacing: 1px;
}

.project-desc {
    flex: 1;
    line-height: 1.7;
    opacity: 0.85;
    font-size: 0.95rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    align-self: flex-start;
}

.project-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--shadow-hover);
}

.project-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-arrow {
    font-size: 1.3rem;
    transition: var(--transition);
}


/* ========================================
   🏠 HOME PAGE - TIMELINE PARCOURS
   ======================================== */

.parcours-timeline {
    padding: 8rem 0;
    position: relative;
}

.timeline-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(238, 38, 70, 0.05), rgba(188, 37, 81, 0.05));
    border-radius: 40px;
    border: 2px solid var(--gray-border);
    position: relative;
}

body.dark-mode .timeline-wrapper {
    background: linear-gradient(135deg, rgba(238, 38, 70, 0.1), rgba(188, 37, 81, 0.1));
    border-color: #333;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-step {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step:nth-child(odd) {
    flex-direction: row;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-step:nth-child(odd) .step-content {
    text-align: right;
    padding-right: 3rem;
}

.timeline-step:nth-child(even) .step-content {
    text-align: left;
    padding-left: 3rem;
}

.step-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px var(--bg-light), 0 5px 20px var(--shadow-hover);
    z-index: 2;
    animation: pulse-marker 2s infinite;
}

body.dark-mode .step-marker {
    box-shadow: 0 0 0 8px var(--bg-dark), 0 5px 20px var(--shadow-hover);
}

@keyframes pulse-marker {
    0%, 100% {
        box-shadow: 0 0 0 8px var(--bg-light), 0 5px 20px var(--shadow-hover);
    }
    50% {
        box-shadow: 0 0 0 12px var(--bg-light), 0 8px 30px var(--shadow-hover);
    }
}

body.dark-mode .timeline-step .step-marker {
    animation: pulse-marker-dark 2s infinite;
}

@keyframes pulse-marker-dark {
    0%, 100% {
        box-shadow: 0 0 0 8px var(--bg-dark), 0 5px 20px var(--shadow-hover);
    }
    50% {
        box-shadow: 0 0 0 12px var(--bg-dark), 0 8px 30px var(--shadow-hover);
    }
}

.marker-icon {
    font-size: 1.8rem;
    color: var(--white);
}

.step-content {
    flex: 1;
    max-width: 400px;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--gray-border);
    transition: var(--transition);
    position: relative;
}

body.dark-mode .step-content {
    background: var(--gray-dark);
    border-color: #333;
}

.step-content:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.timeline-step:nth-child(odd) .step-content::before {
    right: -30px;
}

.timeline-step:nth-child(even) .step-content::before {
    left: -30px;
}

.step-year {
    display: inline-block;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.step-details {
    list-style: none;
    padding: 0;
}

.timeline-step:nth-child(odd) .step-details {
    text-align: right;
}

.timeline-step:nth-child(even) .step-details {
    text-align: left;
}

.step-details li {
    position: relative;
    padding: 0.6rem 0;
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.95rem;
}

.timeline-step:nth-child(odd) .step-details li::before {
    content: '★';
    position: absolute;
    right: -1.5rem;
    color: var(--primary);
    font-size: 0.8rem;
}

.timeline-step:nth-child(even) .step-details li::before {
    content: '★';
    position: absolute;
    left: -1.5rem;
    color: var(--primary);
    font-size: 0.8rem;
}


/* ========================================
   🏠 HOME PAGE - SIGNATURE & CTA
   ======================================== */

.signature-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.signature-section::before {
    content: '★';
    position: absolute;
    font-size: 30rem;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: 'Caveat', cursive;
}

.signature-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.signature-visual {
    position: relative;
}

.signature-circle {
    width: 150px;
    height: 150px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.signature-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.signature-text {
    max-width: 500px;
}

.signature-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.signature-description {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--gray-light) 0%, transparent 70%);
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-tag {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}


/* ========================================
   📁 PROJECTS PAGE - SHOWCASE WITH IMG
   ======================================== */

.page-hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: calc(100vh - 90px);
  display: flex;
  justify-content: center;
}

/* Assure que le contenu reste au-dessus des effets */
.page-hero .page-hero-content{
  position: relative;
  z-index: 2;
}

/* Halo + vignette (remplace ton ::before) */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;

  background:
    radial-gradient(circle at 50% 35%, transparent 0%, var(--secondary) 100%);
  filter: blur(60px);
  pointer-events: none;
}

/* Image WebP + glow */
.page-hero::after{
  content:"";
  position: absolute;
  inset: 0;
  z-index: 1;

  background-image: url("../img/lipsherowhite.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  filter: saturate(1.15) contrast(1.01) drop-shadow(0 0 60px rgba(238,38,70,0.25));

  transform: translateY(10px) scale(1.02);
  transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .9s cubic-bezier(.2,.8,.2,1), opacity .9s;
  animation: page-hero-float 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes page-hero-float{
  0%,100% { transform: translateY(10px) scale(1.05); }
  50%     { transform: translateY(0px)  scale(1.04); }
}

@media (hover:hover){
  .page-hero:hover::after{
    transform: translateY(6px) scale(1.06);
    filter: saturate(1.25) contrast(1.08) drop-shadow(0 0 90px rgba(238,38,70,0.35));
    opacity: 0.8;
  }
}
body.dark-mode .page-hero::after{
background-image: url('../img/lipshero.webp');}
.container-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    background: #ffffffa0;
    max-width: calc(100vw - (var(--container-padding) * 2));
    border-radius: 20px;
    padding: 10px;
}
body.dark-mode .page-hero-content {
    background: #00000070;
}

.page-tag {
    display: inline-block;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.85;
    max-width: 700px;
    margin: 0 auto;
}

.projects-showcase {
    padding: 4rem 0 8rem;
}

.projects-showcase-grid {
    display: grid;
    gap: 4rem;
}

.showcase-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 30px;
    padding: 2rem;
    border: 2px solid var(--gray-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    align-items: center;
}

body.dark-mode .showcase-card {
    background: var(--gray-dark);
    border-color: #333;
}

.showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px var(--shadow-hover);
}

.showcase-card .card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(238, 38, 70, 0.08),
        transparent
    );
    transition: var(--transition);
}

.showcase-card:hover .card-shine {
    left: 100%;
}

.showcase-card:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.showcase-card:nth-child(even) .showcase-preview {
    order: 2;
}

.showcase-card:nth-child(even) .showcase-info {
    order: 1;
}

.showcase-preview {
    position: relative;
    border-radius: 0; /* Retire aussi le border-radius */
    background-color: transparent;
    overflow: visible; /* Important pour l'ombre drop-shadow */
    /* Pas de box-shadow ici */
}

.img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    width: 100%;
    padding: 10px;
    opacity: 1;
    background: transparent;
    overflow: visible;
}

.img-container img {
    width: 90%;
    border: none;
    transform: scale(1);
    transition: var(--transition);
    
    /* L'ombre est maintenant directement sur l'image */
    filter: drop-shadow(0 15px 40px rgba(238, 38, 70, 0.2));
}

.showcase-card:hover .img-container img {
    transform: scale(1.05);
    filter: drop-shadow(0 25px 60px rgba(238, 38, 70, 0.35));
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 20px;
}

.showcase-preview:hover .img-overlay {
    opacity: 1;
}

.preview-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 32px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.preview-link:hover {
    transform: scale(1.1);
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}

.link-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.preview-link:hover .link-icon {
    transform: rotate(45deg);
}

.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.showcase-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary);
}

.showcase-tech {
    font-size: 1.15rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.showcase-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
}

.showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    align-self: flex-start;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.showcase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.showcase-btn .btn-icon {
    font-size: 1.3rem;
    transition: var(--transition);
}

.showcase-btn:hover .btn-icon {
    transform: rotate(360deg) scale(1.2);
}


/* ========================================
   📞 CONTACT PAGE
   ======================================== */

.contact-page {
    padding: 4rem 0 8rem;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

.contact-intro {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Availability Banner on Contact Page */
.contact-intro .availability-banner {
    background: linear-gradient(135deg, rgba(238, 38, 70, 0.1), rgba(188, 37, 81, 0.1));
    padding: 2rem;
    border-radius: 25px;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

body.dark-mode .contact-intro .availability-banner {
    background: linear-gradient(135deg, rgba(238, 38, 70, 0.15), rgba(188, 37, 81, 0.15));
}

.contact-intro .availability-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(238, 38, 70, 0.1) 50%,
        transparent 70%
    );
    animation: glossy-shine 3s infinite;
}

.contact-intro .availability-banner .banner-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: pulse 2s infinite;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-intro .availability-banner .banner-content {
    position: relative;
    z-index: 1;
}

.contact-intro .availability-banner .banner-content h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-intro .availability-banner .banner-content p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.contact-intro .availability-banner .banner-content p:last-child {
    margin-bottom: 0;
}

.contact-intro .availability-banner .banner-highlight {
    background: rgba(238, 38, 70, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

body.dark-mode .contact-intro .availability-banner .banner-highlight {
    background: rgba(238, 38, 70, 0.2);
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--gray-border);
    transition: var(--transition);
}

body.dark-mode .detail-item {
    background: var(--gray-dark);
    border-color: #333;
}

.detail-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.detail-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.detail-content a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

body.dark-mode .detail-content a {
    color: var(--text-dark);
}

.detail-content a:hover {
    color: var(--primary);
}

/* Contact Form Section */
.contact-form-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    border: 2px solid var(--gray-border);
    box-shadow: 0 10px 40px var(--shadow-color);
    
}

body.dark-mode .contact-form-section {
    background: var(--gray-dark);
    border-color: #333;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.form-subtitle {
    font-size: 1.05rem;
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.required {
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-border);
    border-radius: 15px;
    background: var(--bg-light);
    color: var(--text-light);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--black);
    color: var(--text-dark);
    border-color: #444;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(238, 38, 70, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    border-radius: 2px;
}

.form-group input:focus ~ .input-border,
.form-group textarea:focus ~ .input-border {
    width: 100%;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.g-recaptcha {
    transform: scale(1);
    transform-origin: center;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 400px;
    height: 400px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-text,
.submit-btn .btn-icon {
    position: relative;
    z-index: 1;
}

.submit-btn .btn-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.submit-btn:hover .btn-icon {
    transform: rotate(360deg) scale(1.2);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 15px;
    display: none;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    color: #27ae60;
    background: rgba(46, 213, 115, 0.15);
    border: 2px solid #27ae60;
    display: block;
}

.form-message.error {
    background: rgba(238, 38, 70, 0.15);
    color: var(--primary);
    border: 2px solid var(--primary);
    display: block;
}


/* ========================================
   📖 ABOUT PAGE
   ======================================== */

.about-intro {
    padding: 6rem 0;
    background: var(--gray-light);
}

body.dark-mode .about-intro {
    background: var(--gray-dark);
}

.about-intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text-block {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    border: 2px solid var(--gray-border);
}

body.dark-mode .intro-text-block {
    background: var(--black);
    border-color: #333;
}

.intro-paragraph {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.intro-paragraph:last-child {
    margin-bottom: 0;
}

.intro-paragraph strong {
    color: var(--primary);
    font-weight: 700;
}

/* Journey Section */
.about-journey {
    padding: 8rem 0;
}

.journey-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.journey-tag {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.journey-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.journey-story {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    border: 2px solid var(--gray-border);
    margin-bottom: 2rem;
}

body.dark-mode .journey-story {
    background: var(--gray-dark);
    border-color: #333;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.story-paragraph:last-child {
    margin-bottom: 0;
}

.story-paragraph strong {
    font-weight: 700;
    color: var(--text-light);
}

body.dark-mode .story-paragraph strong {
    color: var(--text-dark);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.value-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    border: 2px solid var(--gray-border);
    text-align: center;
    transition: var(--transition);
}

body.dark-mode .value-card {
    background: var(--gray-dark);
    border-color: #333;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.value-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.value-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Journey Visual */
.journey-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visual-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 30px;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px var(--shadow-color);
}

.rugby-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.code-card {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.visual-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.visual-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.visual-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Availability Section - About Page */
.about-availability {
    padding: 6rem 0;
    background: var(--gray-light);
}

body.dark-mode .about-availability {
    background: var(--gray-dark);
}

.availability-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.availability-banner-large {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    border: 3px solid var(--primary);
    display: flex;
    gap: 2rem;
    align-items: start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow-hover);
}

body.dark-mode .availability-banner-large {
    background: var(--black);
}

.availability-banner-large::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(238, 38, 70, 0.05) 50%,
        transparent 70%
    );
    animation: glossy-shine 4s infinite;
}

.banner-icon-large {
    font-size: 4rem;
    color: var(--primary);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.banner-content-large {
    flex: 1;
}

.banner-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.banner-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.banner-text p:last-child {
    margin-bottom: 0;
}

.banner-text strong {
    color: var(--primary);
    font-weight: 700;
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 1.5rem 0;
    opacity: 0.3;
}

.banner-highlight {
    background: linear-gradient(135deg, rgba(238, 38, 70, 0.1), rgba(188, 37, 81, 0.1));
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.availability-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-text {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Skills Section */
.about-skills {
    padding: 8rem 0;
}

.skills-header {
    text-align: center;
    margin-bottom: 4rem;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    border: 2px solid var(--gray-border);
    transition: var(--transition);
}

body.dark-mode .skill-category {
    background: var(--gray-dark);
    border-color: #333;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-border);
    opacity: 0.85;
    transition: var(--transition-fast);
}

body.dark-mode .skills-list li {
    border-color: #333;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 10px;
}


/* ========================================
   🦶 FOOTER
   ======================================== */

.footer {
    background: var(--gray-light);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 2px solid var(--gray-border);
}

body.dark-mode .footer {
    background: var(--gray-dark);
    border-color: #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 100px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px var(--shadow-color));
}

.footer-tagline {
    font-size: 1.3rem;
    color: var(--primary);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.footer-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.footer-social-icon svg {
    width: 22px;
    height: 22px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

body.dark-mode .footer-nav a {
    color: var(--text-dark);
}

.footer-nav a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-info {
    font-size: 0.95rem;
}

.footer-rights {
    opacity: 0.7;
    margin-top: 0.5rem;
}


/* ========================================
   🔄 BUTTONS (GLOBAL)
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text, 
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.15rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}


/* ========================================
   📱 RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {

    .page-hero-content {
        padding: 8px;
        max-height: 90vh;
    }
    .hero-title {
        font-size: 4rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .visual-card {
        margin: 0 auto;
    }

    .signature-content {
        flex-direction: column;
        text-align: center;
    }

    .recent-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .timeline-wrapper {
        padding: 2rem;
    }

    .showcase-card,
    .showcase-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-card:nth-child(even) .showcase-preview {
        order: 1;
    }

    .showcase-card:nth-child(even) .showcase-info {
        order: 2;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }


    .journey-wrapper {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--bg-light);
        transition: var(--transition);
        padding: 3rem 2rem;
        z-index: 999;
    }

    body.dark-mode .nav {
        background: var(--bg-dark);
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    .social-links {
        display: none;
    }

    .header-actions {
        gap: 0.8rem;
    }
    
    .mobile-social-links {
            display: flex;
    }


    .mobile-social-icon {
        width: 55px;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: var(--white);
        transition: var(--transition);
        box-shadow: 0 5px 20px var(--shadow-color);
    }

    .mobile-social-icon:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 10px 30px var(--shadow-hover);
    }

    .mobile-social-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Animation d'apparition */
    @media (max-width: 768px) {
        .nav.active .mobile-social-links {
            animation: slideUp 0.5s ease-out 0.3s both;
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .visual-card {
        width: 280px;
        height: 280px;
    }

    .code-art {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 3rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .recent-projects {
        padding: 5rem 0;
    }

    .recent-projects-grid {
        grid-template-columns: 1fr;
    }

    .parcours-timeline {
        padding: 5rem 0;
    }

    .timeline-wrapper {
        padding: 1.5rem;
        border-radius: 25px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-step,
    .timeline-step:nth-child(odd),
    .timeline-step:nth-child(even) {
        flex-direction: column;
        padding-left: 80px;
        align-items: flex-start;
    }

    .step-marker {
        left: 30px;
    }

    .step-content,
    .timeline-step:nth-child(odd) .step-content,
    .timeline-step:nth-child(even) .step-content {
        text-align: left;
        padding: 1.5rem;
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .step-content::before {
        display: none;
    }

    .step-details,
    .timeline-step:nth-child(odd) .step-details,
    .timeline-step:nth-child(even) .step-details {
        text-align: left;
    }

    .step-details li::before,
    .timeline-step:nth-child(odd) .step-details li::before,
    .timeline-step:nth-child(even) .step-details li::before {
        left: -1.5rem;
        right: auto;
    }

    .projects-showcase {
        padding: 3rem 0 6rem;
    }

    .projects-showcase-grid {
        gap: 3rem;
    }

    .showcase-card {
        padding: 1.5rem;
        border-radius: 25px;
    }

    .showcase-title {
        font-size: 1.5rem;
    }

    .showcase-tech {
        font-size: 1rem;
    }

    .showcase-description {
        font-size: 0.95rem;
    }

    .contact-page {
        padding: 3rem 0 6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form-section {
        padding: 2rem;
    }

    .form-title {
        font-size: 1.7rem;
    }

    .g-recaptcha {
        transform: scale(0.85);
    }

    .about-intro,
    .about-journey,
    .about-availability,
    .about-skills {
        padding: 4rem 0;
    }

    .intro-text-block {
        padding: 2rem;
    }

    .journey-title {
        font-size: 2.2rem;
    }

    .journey-story {
        padding: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .availability-banner-large {
        flex-direction: column;
        padding: 2rem;
    }

    .banner-icon-large {
        font-size: 3rem;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .contact-intro .availability-banner {
        padding: 1.5rem;
    }

    .contact-intro .availability-banner .banner-icon {
        font-size: 2.5rem;
    }

    .contact-intro .availability-banner .banner-content h3 {
        font-size: 1.5rem;
    }

    .contact-intro .availability-banner .banner-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1.5rem;
    }
    .container {
        padding: 0 var(--container-padding);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .visual-card {
        width: 250px;
        height: 250px;
        min-height: 150px;
        padding: 2rem;
    }

    .project-name {
        font-size: 1.2rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .step-year {
        font-size: 1.5rem;
    }

    .showcase-card {
        padding: 1.2rem;
    }

    .showcase-title {
        font-size: 1.3rem;
    }

    .showcase-btn,
    .preview-link {
        width: 100%;
        justify-content: center;
    }

    .contact-page-wrapper{
        align-items: center;
        justify-content: center;
    }
    .availability-banner{
        max-width: calc(100vw - (var(--container-padding) * 2));
        width: 100%;
        margin-inline: auto;
    }

    .contact-form-section {
        padding: 1.5rem;
        max-width: calc(100vw - (var(--container-padding) * 2));
        width: 100%;
        margin-inline: auto;
    }

    .detail-item {
        padding: 1.2rem;
    }

    .detail-icon {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }

    .submit-btn {
        width: 100%;
    }

    .g-recaptcha {
        transform: scale(0.77);
    }

    .footer-social {
        gap: 0.8rem;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
    }

    .footer-social-icon svg {
        width: 20px;
        height: 20px;
    }

    .intro-paragraph,
    .story-paragraph,
    .banner-text p {
        font-size: 1rem;
    }

    .journey-title {
        font-size: 1.8rem;
    }

    .visual-icon {
        font-size: 3rem;
    }

    .visual-content h3 {
        font-size: 2rem;
    }
}
