/* ==========================================================================
   PORTFOLIO THOMAS AUER-WINUM - Esthétique Apple Pro Sombre
   Design minimaliste, ultra-contrasté, haut de gamme
   ========================================================================== */

/* === VARIABLES CSS APPLE PRO === */
:root {
    --couleur-fond-primaire: #0A0A0A;
    --couleur-texte-primaire: #FFFFFF;
    --couleur-accent: #FF6600;
    --couleur-texte-secondaire: #8A8A8E;
}

/* === RESET MODERNE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

*:focus {
    outline: none;
}

button, a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

html {
    font-size: 62.5%;
    scroll-behavior: auto; /* Désactivé - géré par JavaScript */
    height: 100%;
    scroll-padding-top: 8rem; /* Espace pour le header fixe */
}


/* === TYPOGRAPHIE APPLE PRO SOMBRE === */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "SF Pro Display", Helvetica, Arial, sans-serif;
    background-color: var(--couleur-fond-primaire);
    color: var(--couleur-texte-primaire);
    line-height: 1.6;
    font-weight: 400;
    font-size: 1.8rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Désactiver le momentum scrolling sur iOS pour un contrôle total */
    -webkit-overflow-scrolling: touch;
}

/* === NAVIGATION HEADER APPLE MODERNE === */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    height: 6rem;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
    pointer-events: auto; /* S'assurer que le header capture les clics */
}

.nav-header * {
    pointer-events: auto; /* S'assurer que tous les enfants captent les clics */
}

.nav-content {
    width: 100%;
    max-width: 98rem;
    margin: 0 auto;
    padding: 0 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--couleur-texte-primaire);
    text-decoration: none;
    letter-spacing: -0.022em;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 13rem;
    height: 100%;
}

/* Logo icône (TA) - visible dans la section hero */
.logo-icon {
    position: absolute;
    left: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}

/* Texte complet - caché dans la section hero */
.logo-text {
    position: absolute;
    left: 0;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.022em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-1rem);
}

/* Quand on scroll (classe ajoutée par JS) */
.nav-header.scrolled .logo-icon {
    opacity: 0;
    transform: translateX(1rem);
}

.nav-header.scrolled .logo-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-logo:hover {
    opacity: 1;
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1001; /* Au-dessus du nav-header */
}

.nav-menu::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.nav-menu li:hover {
    padding-left: 0;
    border-bottom: none;
}

.nav-menu a {
    color: var(--couleur-texte-primaire);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.008em;
    padding: 0 1.6rem;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 0.2rem;
    background: var(--couleur-accent);
    border-radius: 0.1rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.nav-menu a:hover {
    opacity: 1;
}

.nav-menu a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Menu mobile - Style Apple */
.nav-toggle {
    display: none;
    width: 1.7rem;
    height: 1.7rem;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.2rem 0;
}

.nav-toggle span {
    width: 100%;
    height: 1px;
    background: var(--couleur-texte-primaire);
    transition: all 0.2s ease;
    transform-origin: center;
}

/* === LAYOUT APPLE PRO MINIMALISTE === */
section {
    padding: 15vh 10vw;
    width: 100%;
    position: relative;
    background-color: var(--couleur-fond-primaire);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: none;
    overflow-x: clip;
    scroll-margin-top: 25rem;
}

/* Backgrounds variés pour chaque section - Subtil */
#header {
    background: linear-gradient(135deg, #0A0A0A 0%, #121212 100%);
}

#about {
    background: linear-gradient(180deg, #0D0D0D 0%, #0A0A0A 100%);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 120% 100% at top right, rgba(255, 102, 0, 0.12) 0%, rgba(255, 102, 0, 0.04) 30%, transparent 70%);
    pointer-events: none;
}

#projects {
    background: #0A0A0A;
    position: relative;
}

#projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
        radial-gradient(ellipse 120% 100% at bottom left, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.03) 30%, transparent 70%);
    pointer-events: none;
}

#education {
    background: linear-gradient(180deg, #0A0A0A 0%, #0F0F0F 100%);
    position: relative;
}

#education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 100% 80% at center, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.04) 25%, transparent 80%);
    pointer-events: none;
}

#contact {
    background: linear-gradient(135deg, #0F0F0F 0%, #0A0A0A 100%);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 150% 100% at top center, rgba(255, 102, 0, 0.14) 0%, rgba(255, 102, 0, 0.06) 20%, rgba(255, 102, 0, 0.02) 40%, transparent 65%);
    pointer-events: none;
}

/* Animation fluide et progressive pour les sections */
section .section-content {
    will-change: opacity, transform;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section:not(.visible) .section-content {
    opacity: 0;
    transform: translateY(8rem) scale(0.95);
}

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

.section-content {
    max-width: 120rem;
    margin: 0 auto;
    text-align: center;
}

.section-subtitle {
    font-size: 1.9rem;
    color: var(--couleur-texte-secondaire);
    margin: 1.5rem auto 0;
    max-width: 70rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* === HEADER HERO MONUMENTAL === */
#header {
    padding: 20vh 10vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Background défini plus haut avec les autres sections */
    /* Header visible par défaut au chargement */
    opacity: 1;
    transform: translateY(0);
}

#header .section-content {
    display: flex;
    align-items: center;
    gap: 8rem;
    max-width: 140rem;
}

/* === TITRES MONUMENTAUX APPLE PRO === */
h1 {
    font-size: clamp(6rem, 10vw, 16rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--couleur-texte-primaire);
    margin: 0 0 2rem 0;
    text-align: left;
}

/* Conteneur de texte dans le header */
.header-text {
    flex: 1;
}

h2 {
    font-size: clamp(4rem, 8vw, 12rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--couleur-texte-primaire);
    margin: 0 0 6rem 0;
    text-align: center;
}

h3 {
    font-size: clamp(2.4rem, 4vw, 4.8rem);
    line-height: 1.2;
    font-weight: 600;
    color: var(--couleur-texte-primaire);
    margin: 0 0 2rem 0;
}

h4 {
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--couleur-accent);
    margin: 0 0 1.6rem 0;
}

/* Sous-titre hero élégant */
.subtitle {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    color: var(--couleur-texte-secondaire);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* Photo de profil à côté du texte - Détourage amélioré */
.profile-photo {
    width: 40rem;
    height: 40rem;
    object-fit: cover;
    border-radius: 0rem;
    
    /* Amélioration du détourage intérieur et extérieur */
    filter: 
        brightness(1)           /* Éclaircir légèrement le sujet */
        contrast(1.50)             /* Augmenter le contraste pour séparer sujet/fond */
        saturate(1.2)              /* Saturation légère pour renforcer les couleurs */
        drop-shadow(0 0 2rem rgba(0, 0, 0, 0.9))  /* Ombre proche pour nettoyer les bords */
        drop-shadow(0 3rem 8rem rgba(0, 0, 0, 0.7)); /* Ombre éloignée pour la profondeur */
    
    /* Dégradé subtil sur les bords pour fondre dans le fond */
    -webkit-mask-image: radial-gradient(ellipse 98% 98% at center, black 70%, rgba(0,0,0,0.3) 95%, transparent 100%);
    mask-image: radial-gradient(ellipse 98% 98% at center, black 70%, rgba(0,0,0,0.3) 95%, transparent 100%);
    
    /* Optimisations */
    flex-shrink: 0;
    position: relative;
    
    /* Améliorer le rendu */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Overlay pour assombrir les zones résiduelles du fond */
.profile-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 60% at center, transparent 0%, transparent 50%, rgba(10, 10, 10, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Effet de vignette pour masquer encore plus les bords */
.profile-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0rem;
    box-shadow: 
        inset 0 0 10rem 3rem rgba(10, 10, 10, 0.5),    /* Vignette interne forte */
        inset 0 0 5rem 1rem rgba(10, 10, 10, 0.3);      /* Vignette interne douce */
    pointer-events: none;
    z-index: 2;
}

/* === PARAGRAPHES ÉLÉGANTS === */
p {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    line-height: 1.6;
    font-weight: 400;
    color: var(--couleur-texte-primaire);
    margin: 0 auto 3rem;
    max-width: 80rem;
    text-align: center;
}

.text-secondary {
    color: var(--couleur-texte-secondaire);
}

/* === PHOTO HACKATHON - BANNIÈRE AMÉLIORÉE === */
.hackathon-banner {
    position: relative;
    width: 100%;
    max-width: 120rem;
    height: 35rem;
    border-radius: 2rem;
    overflow: hidden;
    margin: 4rem auto 4rem;
    box-shadow: 
        0 0 8rem rgba(255, 102, 0, 0.2),
        0 0 4rem rgba(255, 102, 0, 0.12),
        0 2rem 6rem rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hackathon-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hackathon-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.95) contrast(1.12) saturate(1.1);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 4rem;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.75) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hackathon-banner:hover .banner-overlay {
    opacity: 1;
}

.banner-label {
    font-size: 2.2rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 
        0 0 3rem rgba(255, 255, 255, 0.8),
        0 0 1.5rem rgba(255, 255, 255, 0.6),
        0 0.2rem 0.8rem rgba(0, 0, 0, 0.9);
}

/* === SECTION À PROPOS - NOUVEAU DESIGN === */
.about-container {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    max-width: 120rem;
    margin: 5rem auto 0;
    padding: 0;
}

.about-main {
    flex: 1;
    text-align: left;
}

.about-main p {
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.text-intro {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--couleur-texte-primaire);
    line-height: 1.7;
    margin-bottom: 4rem;
}

/* === ENCART STAGE MIS EN VALEUR === */
.stage-highlight {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 4rem 4.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 102, 0, 0.08) 0%,
        rgba(30, 30, 30, 0.6) 50%,
        rgba(18, 18, 18, 0.9) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 102, 0, 0.25);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 102, 0, 0.15),
        0 4px 16px rgba(255, 102, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de lumière d'ambiance */
.stage-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%, 
        rgba(255, 102, 0, 0.15) 0%, 
        transparent 50%
    );
    opacity: 0.6;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Bordure animée */
.stage-highlight::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 2rem;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 102, 0, 0.5) 0%,
        rgba(255, 102, 0, 0.1) 50%,
        rgba(255, 102, 0, 0.3) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.stage-highlight:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 102, 0, 0.4);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(255, 102, 0, 0.25),
        0 8px 24px rgba(255, 102, 0, 0.2);
}

.stage-highlight:hover::before {
    opacity: 1;
}

.stage-highlight:hover::after {
    opacity: 1;
}

.stage-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 7rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--couleur-accent) 0%, #ff8533 100%);
    border-radius: 1.6rem;
    box-shadow: 
        0 0 40px rgba(255, 102, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stage-highlight:hover .stage-icon {
    transform: scale(1.08) rotateZ(-3deg);
    box-shadow: 
        0 0 60px rgba(255, 102, 0, 0.6),
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.stage-icon svg {
    width: 3.6rem;
    height: 3.6rem;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.stage-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stage-label {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--couleur-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
    position: relative;
}

.stage-label::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, var(--couleur-accent), transparent);
    border-radius: 1px;
}

.stage-text {
    font-size: 1.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.75;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--couleur-accent);
    font-style: italic;
    margin: 3.5rem 0;
    text-shadow: 0 0 2rem rgba(255, 102, 0, 0.4);
    line-height: 1.5;
}

.text-secondary {
    font-size: 1.8rem;
    color: var(--couleur-texte-secondaire);
    font-weight: 300;
    line-height: 1.8;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === BADGE HACKTHEBOX - CÔTÉ SANS CADRE === */
.htb-badge-container {
    flex-shrink: 0;
    margin-top: 6rem;
}

.htb-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 22rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.htb-badge:hover {
    transform: translateY(-1rem) scale(1.05);
}

.htb-logo {
    width: 4.5rem;
    height: 4.5rem;
    color: #9bff00;
    filter: drop-shadow(0 0 1.2rem rgba(155, 255, 0, 0.5));
    transition: all 0.5s ease;
}

.htb-badge:hover .htb-logo {
    filter: drop-shadow(0 0 2.5rem rgba(155, 255, 0, 0.8));
    transform: rotateY(360deg) scale(1.08);
}

.htb-logo.animate-flip {
    animation: flipBadge 0.8s ease-out;
}

@keyframes flipBadge {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
        filter: drop-shadow(0 0 3rem rgba(155, 255, 0, 0.9));
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

.htb-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.htb-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--couleur-texte-primaire);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.htb-rank {
    font-size: 2rem;
    font-weight: 800;
    color: #9bff00;
    letter-spacing: 0.25em;
    text-shadow: 
        0 0 2rem rgba(155, 255, 0, 0.7),
        0 0 1rem rgba(155, 255, 0, 0.5);
    font-family: 'Courier New', 'Consolas', monospace;
    text-transform: uppercase;
}

/* === RESPONSIVE À PROPOS === */
@media (max-width: 968px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        padding: 0 2rem;
    }
    
    .about-main {
        text-align: center;
    }
    
    .htb-badge-container {
        position: relative;
        top: 0;
    }
    
    .text-intro {
        font-size: 1.9rem;
    }
    
    .text-highlight {
        font-size: 2.2rem;
    }
    
    .text-secondary {
        font-size: 1.6rem;
    }
    
    .stage-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 3rem 2.5rem;
    }
    
    .stage-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .stage-icon svg {
        width: 2.8rem;
        height: 2.8rem;
    }
    
    .stage-text {
        font-size: 1.7rem;
    }
}

/* === LISTES MINIMALISTES === */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 90rem;
    margin: 0 auto;
}

li {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    transition: all 0.3s ease-out;
}

li:last-child {
    border-bottom: none;
}

li:hover {
    padding-left: 2rem;
    border-bottom: 1px solid var(--couleur-accent);
}

li h3 {
    color: var(--couleur-texte-primaire);
    text-align: left;
}

li p {
    text-align: left;
    font-size: 1.8rem;
    color: var(--couleur-texte-secondaire);
    margin: 1rem 0;
}

/* === CAROUSEL DE PROJETS - STYLE APPLE PRO === */
.carousel-container {
    position: relative;
    max-width: 95rem;
    margin: 4rem auto 0;
    padding: 0 7rem;
    overflow: visible;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 65rem;
    perspective: 1000px;
    overflow: visible;
}

.project-card {
    background: linear-gradient(145deg, 
        rgba(18, 18, 18, 0.95) 0%, 
        rgba(12, 12, 12, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.6rem;
    padding: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%) scale(0.85);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.4s,
                filter 0.4s ease;
    pointer-events: none;
    box-shadow: 
        0 0.8rem 3.2rem rgba(0, 0, 0, 0.4),
        0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
    filter: blur(0) brightness(1);
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.2rem;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.9) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    display: none;
}

.project-card:hover::before,
.project-card.active::before {
    opacity: 0;
    display: none;
}

/* Halo animé qui parcourt les contours */
/* Halo animé qui parcourt les contours */
.project-card::after {
    content: '';
    position: absolute;
    inset: -0.3rem;
    border-radius: 1.6rem;
    padding: 0.3rem;
    background: conic-gradient(
        from var(--angle, 0deg),
        rgba(255, 102, 0, 0.4),
        rgba(255, 170, 68, 0.7) 90deg,
        rgba(255, 215, 0, 0.8) 180deg,
        rgba(255, 136, 51, 0.7) 270deg,
        rgba(255, 102, 0, 0.4) 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 15;
    animation: rotate-border 1.5s linear infinite;
    animation-play-state: paused;
    filter: blur(0.5px);
    will-change: transform;
    transform: translateZ(0);
}

@keyframes rotate-border {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.project-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

/* Image du projet */
.project-card-image {
    width: 100%;
    height: 32rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(20, 20, 20, 1) 0%, 
        rgba(15, 15, 15, 1) 100%);
    display: block;
    margin-bottom: -0.1rem;
}

.project-card-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top,
        rgba(12, 12, 12, 1) 0%,
        rgba(12, 12, 12, 0.8) 40%,
        transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.project-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.project-card-image img {
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center 10%;
    filter: brightness(0.7) contrast(1.2) saturate(0.85);
    transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter;
    backface-visibility: hidden;
    transform: translateZ(0);
    display: block;
}

.project-card:hover .project-card-image img,
.project-card.active .project-card-image img {
    filter: brightness(0.8) contrast(1.25) saturate(1);
}

.project-card.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0s linear 0s,
                filter 0.3s ease,
                box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease;
    pointer-events: auto;
    z-index: 3;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 8rem rgba(255, 255, 255, 0.08),
        0 0 4rem rgba(255, 255, 255, 0.06),
        0 1.6rem 6.4rem rgba(0, 0, 0, 0.6),
        0 0.8rem 1.6rem rgba(0, 0, 0, 0.4),
        0 0 0 0.1rem rgba(255, 102, 0, 0.15) inset;
    filter: blur(0) brightness(1);
    cursor: pointer;
}

.project-card.active:hover {
    transform: translateX(0) scale(1.03) translateY(-0.5rem);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 12rem rgba(255, 255, 255, 0.15),
        0 0 6rem rgba(255, 255, 255, 0.12),
        0 2.5rem 8rem rgba(0, 0, 0, 0.7),
        0 1.2rem 2.5rem rgba(0, 0, 0, 0.5),
        0 0 0 0.15rem rgba(255, 255, 255, 0.3) inset,
        0 0 4rem rgba(255, 255, 255, 0.1);
    filter: blur(0) brightness(1.08) contrast(1.03);
}

.project-card.prev {
    opacity: 0.3;
    visibility: visible;
    transform: translateX(-45%) scale(0.85);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s,
                filter 0.4s ease;
    pointer-events: none;
    z-index: 1;
    filter: blur(0) brightness(1);
}

.project-card.next {
    opacity: 0.3;
    visibility: visible;
    transform: translateX(45%) scale(0.85);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s,
                filter 0.4s ease;
    pointer-events: none;
    z-index: 1;
    filter: blur(0) brightness(1);
}

/* Cartes encore plus loin - cachées */
.project-card.prev-2,
.project-card.next-2 {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

.project-card.prev-2 {
    transform: translateX(-100%) scale(0.7);
}

.project-card.next-2 {
    transform: translateX(100%) scale(0.7);
}

/* Contenu de la carte */
.project-card-content {
    padding: 4rem 4.5rem 4.5rem;
    background: linear-gradient(145deg, 
        rgba(18, 18, 18, 0.95) 0%, 
        rgba(12, 12, 12, 0.98) 100%);
    position: relative;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project-card-header h3 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--couleur-texte-primaire);
    margin: 0 0 0 -3.5rem;
    line-height: 1.2;
    flex: 1;
    letter-spacing: -0.03em;
}

.project-card.active .project-card-header h3 {
    background: linear-gradient(90deg, 
        #ff6600 0%,
        #ffaa44 15%,
        #ffd700 30%,
        #ffaa44 45%,
        #ff6600 60%,
        #ff8833 75%,
        #ffd700 90%,
        #ff6600 100%);
    background-size: 150% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s linear infinite;
    filter: brightness(1.5) saturate(1.4) drop-shadow(0 0 2.5rem rgba(255, 102, 0, 0.5));
}

@keyframes gradient-shift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.project-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--couleur-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.5);
    transform: translateY(-0.1rem);
}

.project-description {
    font-size: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 2rem 0 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.project-tech {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.project-tech span {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--couleur-texte-secondaire);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.project-tech span:hover {
    background: rgba(255, 102, 0, 0.12);
    border-color: rgba(255, 102, 0, 0.35);
    color: var(--couleur-accent);
    transform: translateY(-0.2rem);
}

/* Indicateur de rotation */
.rotation-indicator {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    color: rgba(255, 102, 0, 0.8);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card.active .rotation-indicator {
    opacity: 1;
}

.rotation-indicator svg {
    width: 100%;
    height: 100%;
}

.rotation-indicator .progress-ring {
    stroke-dashoffset: 113;
    transition: none;
}

/* Décalage vertical des images pour certains projets */
.project-card[data-project="0"] .project-card-image img, /* Inquisitor */
.project-card[data-project="2"] .project-card-image img, /* Minishell */
.project-card[data-project="3"] .project-card-image img, /* Notion */
.project-card[data-project="4"] .project-card-image img  /* Vaccine */ 
.project-card[data-project="7"] .project-card-image img  /* Oignon */ 
.project-card[data-project="6"] .project-card-image img  /* OTP */ {
    
    
    object-position: center 40% !important;
    transform: translateY(-10%) translateZ(0) !important;
}

/* Boutons de navigation du carousel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--couleur-texte-primaire);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: var(--couleur-accent);
    color: var(--couleur-accent);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn svg {
    width: 2.4rem;
    height: 2.4rem;
}

/* Indicateurs (points) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 4rem;
}

.indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
}

.indicator.active {
    background: var(--couleur-accent);
    width: 2.4rem;
    border-radius: 0.4rem;
}

/* Lien GitHub */
.github-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 6rem;
    text-decoration: none;
    color: var(--couleur-texte-primaire);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.github-link:hover {
    opacity: 1;
    transform: translateY(-0.4rem);
}

.github-icon {
    width: 4.8rem;
    height: 4.8rem;
    color: var(--couleur-texte-primaire);
    filter: drop-shadow(0 0 2rem rgba(255, 255, 255, 0.15))
            drop-shadow(0 0 4rem rgba(255, 255, 255, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.github-link:hover .github-icon {
    filter: drop-shadow(0 0 4rem rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 8rem rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 2rem rgba(255, 255, 255, 0.6));
    transform: scale(1.1);
}

.github-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--couleur-texte-secondaire);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.github-link:hover .github-text {
    color: #FFFFFF;
}

/* === BLOCS ÉDUCATION APPLE PRO === */
.education-block {
    margin: 8rem 0;
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.education-block:last-child {
    border-bottom: none;
}

.htb-stats {
    margin: 4rem 0 6rem;
}

.htb-stats p {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--couleur-accent);
}

/* === SECTION CONTACT === */
.contact-info {
    margin: 6rem auto 8rem;
    max-width: 65rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 3.5rem 4rem 4.5rem;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(30, 30, 30, 0.6) 0%,
        rgba(20, 20, 20, 0.8) 50%,
        rgba(15, 15, 15, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Écran de calculatrice */
.contact-display {
    width: 100%;
    padding: 2.5rem 3rem;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(15, 15, 15, 0.95) 100%
    );
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.5) inset,
        0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Effet LCD */
.contact-display::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.01) 2px,
        rgba(255, 255, 255, 0.01) 4px
    );
    pointer-events: none;
}

/* Lueur d'écran */
.contact-display::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.contact-display-text {
    display: block;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation du texte quand il change */
.contact-display-text.updating {
    animation: textFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes textFade {
    0% { 
        opacity: 1; 
        transform: translateY(0);
    }
    50% { 
        opacity: 0;
        transform: translateY(-5px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Couleurs de l'écran selon le bouton survolé */
.contact-buttons:has(.contact-btn-gmail:hover) ~ .contact-display .contact-display-text {
    color: #EA4335;
    text-shadow: 
        0 0 15px rgba(234, 67, 53, 0.6),
        0 0 30px rgba(234, 67, 53, 0.3);
}

.contact-btn-linkedin:hover ~ .contact-display .contact-display-text,
.contact-buttons:has(.contact-btn-linkedin:hover) ~ .contact-display .contact-display-text {
    color: #0A66C2;
    text-shadow: 
        0 0 15px rgba(10, 102, 194, 0.6),
        0 0 30px rgba(10, 102, 194, 0.3);
}

.contact-buttons:has(.contact-btn-github:hover) ~ .contact-display .contact-display-text {
    color: #FFFFFF;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.3);
}

.contact-buttons:has(.contact-btn-htb:hover) ~ .contact-display .contact-display-text {
    color: #9FEF00;
    text-shadow: 
        0 0 15px rgba(159, 239, 0, 0.6),
        0 0 30px rgba(159, 239, 0, 0.3);
}

.contact-buttons:has(.contact-btn-cv:hover) ~ .contact-display .contact-display-text {
    color: #FF0040;
    text-shadow: 
        0 0 15px rgba(255, 0, 64, 0.6),
        0 0 30px rgba(255, 0, 64, 0.3);
}

/* Conteneur des boutons */
.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

/* Effet de lumière d'ambiance subtil */
.contact-info::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 2.5rem;
    background: linear-gradient(
        135deg,
        rgba(255, 102, 0, 0.15) 0%,
        rgba(10, 102, 194, 0.15) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(159, 239, 0, 0.15) 75%,
        rgba(255, 0, 64, 0.15) 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: -1;
}

.contact-info:hover::before {
    opacity: 0.3;
}

.contact-info:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-btn {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.contact-btn svg {
    width: 4.2rem;
    height: 4.2rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Halo effect au hover */
.contact-btn::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(
        circle at center, 
        currentColor 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Bordure animée */
.contact-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(
        135deg,
        currentColor 0%,
        transparent 50%,
        currentColor 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
}

.contact-btn:hover {
    transform: translateY(-0.8rem) scale(1.15);
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 60px currentColor,
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.contact-btn:hover::before {
    opacity: 0.15;
}

.contact-btn:hover::after {
    opacity: 0.6;
}

.contact-btn:hover svg {
    transform: scale(1.2) rotateZ(-5deg);
}

/* Email - Rouge Gmail */
.contact-btn:nth-child(1) {
    color: #EA4335;
}

.contact-btn:nth-child(1):hover {
    background: rgba(234, 67, 53, 0.1);
}

/* Gmail - Multicolore (ne pas appliquer de couleur, garder les couleurs du SVG) */
.contact-btn-gmail {
    color: #EA4335 !important; /* Pour le halo et les effets, utiliser le rouge Gmail */
}

.contact-btn-gmail svg {
    filter: drop-shadow(0 2px 8px rgba(234, 67, 53, 0.3));
}

.contact-btn-gmail:hover {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1) 0%, rgba(66, 133, 244, 0.1) 100%);
}

.contact-btn-gmail:hover svg {
    filter: drop-shadow(0 2px 12px rgba(234, 67, 53, 0.5));
}

/* LinkedIn - Bleu LinkedIn */
.contact-btn-linkedin {
    color: #0A66C2 !important;
}

.contact-btn-linkedin:hover {
    background: rgba(10, 102, 194, 0.1);
}

/* GitHub - Blanc/Gris GitHub */
.contact-btn-github {
    color: #FFFFFF !important;
}

.contact-btn-github:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* HackTheBox - Vert HTB */
.contact-btn-htb {
    color: #9FEF00 !important;
}

.contact-btn-htb:hover {
    background: rgba(159, 239, 0, 0.1);
}

/* CV - Rouge vif */
.contact-btn-cv {
    color: #FF0040 !important;
}

.contact-btn-cv:hover {
    background: rgba(255, 0, 64, 0.1);
}

.contact-info p {
    font-size: 2rem;
    line-height: 1.6;
    margin: 2rem 0;
    color: var(--couleur-texte-primaire);
    display: none;
}

.contact-info strong {
    color: var(--couleur-accent);
    font-weight: 600;
}

/* === BOUTONS CTA APPLE PRO === */
#downloads {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 6rem auto;
}

#downloads h3 {
    margin-bottom: 4rem;
    color: var(--couleur-texte-primaire);
}

#downloads a {
    display: inline-block;
    padding: 2rem 4rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--couleur-texte-primaire);
    text-decoration: none;
    border: 2px solid var(--couleur-texte-primaire);
    border-radius: 0.8rem;
    background: transparent;
    transition: all 0.3s ease-out;
    min-width: 30rem;
    text-align: center;
}

#downloads a:hover {
    background-color: var(--couleur-accent);
    border-color: var(--couleur-accent);
    color: var(--couleur-fond-primaire);
    transform: translateY(-0.2rem);
}

/* === RESPONSIVE DESIGN APPLE PRO === */
@media (max-width: 1200px) {
    section {
        padding: 12vh 8vw;
    }
    
    #header {
        padding: 15vh 8vw;
    }
    
    .nav-content {
        padding: 0 3rem;
    }
}

@media (max-width: 768px) {
    section {
        min-height: auto;
        padding: 10vh 6vw;
    }
    
    /* Animations plus rapides sur mobile */
    section .section-content {
        transition: opacity 0.8s ease-out,
                    transform 0.8s ease-out;
    }
    
    #header {
        padding: 12vh 6vw;
        min-height: 90vh;
    }
    
    #header .section-content {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }
    
    h1 {
        text-align: center;
    }
    
    .subtitle {
        text-align: center;
    }
    
    .profile-photo {
        width: 30rem;
        height: 30rem;
    }
    
    li {
        padding: 3rem 0;
        text-align: center;
    }
    
    li:hover {
        padding-left: 0;
    }
    
    li h3, li p {
        text-align: center;
    }
    
    /* Carousel responsive */
    .carousel-container {
        padding: 0 5rem;
    }
    
    .project-card-content {
        padding: 3rem;
    }
    
    .project-card-image {
        height: 24rem;
    }
    
    .project-card-header h3 {
        font-size: 2.6rem;
    }
    
    .project-description {
        font-size: 1.6rem;
    }
    
    .carousel-btn {
        width: 4rem;
        height: 4rem;
    }
    
    .carousel-btn svg {
        width: 2rem;
        height: 2rem;
    }
    
    #downloads {
        gap: 1.5rem;
    }
    
    #downloads a {
        min-width: 25rem;
        padding: 1.5rem 3rem;
    }
    
    /* Navigation mobile - Apple Style */
    .nav-content {
        padding: 0 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 6rem;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        height: auto;
        padding: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        height: auto;
        border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1.6rem 2.2rem;
        font-size: 1.7rem;
        font-weight: 400;
        height: auto;
        opacity: 0.9;
        justify-content: flex-start;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(0.3rem, 0.3rem);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(0.3rem, -0.3rem);
    }
}

@media (max-width: 480px) {
    section {
        padding: 8vh 4vw;
    }
    
    #header {
        padding: 10vh 4vw;
    }
    
    .profile-photo {
        max-width: 25rem;
    }
    
    .education-block {
        margin: 6rem 0;
        padding: 4rem 0;
    }
    
    /* Carousel ultra-compact */
    .carousel-container {
        padding: 0 4.5rem;
    }
    
    .project-card-content {
        padding: 2.5rem;
    }
    
    .project-card-image {
        height: 20rem;
    }
    
    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-card-header h3 {
        font-size: 2.2rem;
    }
    
    .project-tag {
        font-size: 1.1rem;
        padding: 0.5rem 1.2rem;
    }
    
    .project-description {
        font-size: 1.6rem;
        margin: 1.5rem 0 2rem;
    }
    
    .project-tech {
        gap: 0.8rem;
        margin-top: 2rem;
    }
    
    .project-tech span {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
    
    .carousel-btn {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .carousel-btn svg {
        width: 1.8rem;
        height: 1.8rem;
    }
    
    .carousel-indicators {
        margin-top: 3rem;
        gap: 1rem;
    }
}
