@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Optimisations Performance */
img {
    content-visibility: auto;
}

.projet-card,
.skill-content,
.formation-box,
.solft-skill {
    will-change: transform;
}

/* ========== ACCESSIBILITÉ ========== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bgdcolor);
    color: #00d4ff;
    padding: 15px 30px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10002;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* Focus States Améliorés */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #00d4ff;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Reduced Motion - Respecte les préférences utilisateur */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .page-loader {
        display: none !important;
    }
}

/* ========== EFFET PARALLAXE ========== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    will-change: transform;
}

/* ========== ANIMATIONS AVANCÉES ========== */

/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation pour les listes */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays pour stagger */
.stagger-item:nth-child(1) {
    transition-delay: 0s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.5s;
}

/* ========== HOVER EFFECTS AMÉLIORÉS ========== */

/* Glow effect on hover */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(0, 212, 255, 0.2);
}

/* Lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Tilt effect */
.hover-tilt {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-5px);
}

/* Shine sweep effect */
.hover-shine {
    position: relative;
    overflow: hidden;
}

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

.hover-shine:hover::after {
    left: 100%;
}

/* Border animation */
.hover-border {
    position: relative;
}

.hover-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: border-color 0.3s ease;
}

.hover-border:hover::before {
    border-color: var(--bdrcolor);
}

:root {
    /* Couleurs principales - Thème Clair */
    --bgdcolor: #012836;
    --bdrcolor: #00d4ff;
    --colorwhite: #ffffff;
    --primary-color: #012836;
    --secondary-color: #f2f8f9;
    --hover-color: #364a60;
    --text-color: #262626;
    --small-desc-color: #452c2c;
    --textcolor: #110445;
    --hovercolor: #00b4d8;

    /* Couleurs accent */
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0077b6 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 212, 255, 0.2);

    /* Ombres */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-accent: 0 10px 40px rgba(0, 212, 255, 0.15);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Thème Sombre */
[data-theme="dark"] {
    --secondary-color: #0a1929;
    --text-color: #e0e0e0;
    --textcolor: #ffffff;
    --glass-bg: rgba(10, 25, 41, 0.95);
    --glass-border: rgba(0, 212, 255, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] section {
    background: linear-gradient(180deg, #0a1929 0%, #0d2137 100%);
}

/* Section À Propos - Mode Sombre */
[data-theme="dark"] #about {
    background: linear-gradient(135deg, #0a1929 0%, #0d2137 50%, #0a1929 100%);
    position: relative;
}

[data-theme="dark"] #about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 119, 182, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Section Compétences - Mode Sombre */
[data-theme="dark"] #Skills {
    background: linear-gradient(180deg, #0d2137 0%, #0f2a47 50%, #0d2137 100%);
    position: relative;
}

[data-theme="dark"] #Skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Section Projets - Mode Sombre */
[data-theme="dark"] .Projets {
    background: linear-gradient(135deg, #0a1929 0%, #0f2a47 25%, #0d2137 50%, #0f2a47 75%, #0a1929 100%);
    position: relative;
}

[data-theme="dark"] .Projets::before {
    background: radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 216, 0.06) 0%, transparent 30%);
}

[data-theme="dark"] .titre {
    background: linear-gradient(135deg, #00d4ff 0%, #ffffff 50%, #00d4ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] .category-title {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 119, 182, 0.15) 100%);
}

/* Amélioration des textes en mode sombre */
[data-theme="dark"] .about p,
[data-theme="dark"] .about-pa {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .solft-skill {
    background: linear-gradient(145deg, #0d2137 0%, #14304a 100%);
    border-color: rgba(0, 212, 255, 0.25);
}

[data-theme="dark"] .formation-box {
    background: linear-gradient(145deg, #0d2137 0%, #14304a 100%);
}

/* ========== PAGE LOADER ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #012836 0%, #001a22 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    color: #00d4ff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
}

/* ========== SCROLL PROGRESS ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 10001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    width: 70px;
    height: 35px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    transition: all var(--transition-smooth);
    margin-right: 15px;
}

.theme-toggle:hover {
    border-color: var(--bdrcolor);
    background: rgba(0, 212, 255, 0.15);
}

.theme-icon {
    font-size: 1.1rem;
    transition: all var(--transition-smooth);
}

.theme-icon.sun {
    opacity: 1;
}

.theme-icon.moon {
    opacity: 0.4;
}

[data-theme="dark"] .theme-icon.sun {
    opacity: 0.4;
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
}

/* ========== MENU BURGER AMÉLIORÉ ========== */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.nav-burger.active .burger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.nav-burger.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-burger.active .burger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

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

    .theme-toggle {
        margin-right: 10px;
    }
}

/* Renitialisation */

body,
p,
h1,
h2,
h3 {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat';

}


section {
    background-color: var(--secondary-color);
    padding: 60px 40px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Barre de Navigation */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--glass-border);
    color: var(--textcolor);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-smooth);
}

nav:hover {
    box-shadow: var(--shadow-medium);
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 30px;
}

.logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.logo-nav:hover .logo {
    transform: scale(1.1);
}

.onglet {
    display: flex;
    gap: 20px;
}

.onglet a {
    text-decoration: none;
    color: var(--textcolor);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: all var(--transition-fast);
}

.onglet a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
}

.onglet a:hover {
    color: var(--hovercolor);
    background: rgba(0, 212, 255, 0.08);
}

.onglet a:hover::after {
    width: 80%;
}

.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .onglet {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: var(--colorwhite);
        border: 1px solid var(--bdrcolor);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .onglet.active {
        display: flex;
    }

    .nav-burger {
        display: block;
    }

    .logo-nav {
        font-size: 18px;
    }
}

/* Header */

header {
    background: url("../Background-web/background-blue-dark.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 60px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 40, 54, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--secondary-color) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.header-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    color: var(--colorwhite);
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.header-post {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--bdrcolor);
    margin: 0;
    animation: fadeInLeft 1s ease-out 0.4s both;
}

.header-desc {
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 35px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInLeft 1s ease-out 0.6s both;
}

.profil-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profil {
    width: 100%;
    max-width: 480px;
    height: auto;
    transition: all var(--transition-smooth);
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
}

.profil:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 212, 255, 0.2);
    border-color: var(--bdrcolor);
}

/* Button */
.header-btn {
    padding: 12px 30px;
    background-color: transparent;
    color: var(--colorwhite);
    border: 2px solid var(--bdrcolor);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.header-cv {
    margin-top: 40px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.header-cv a {
    text-decoration: none;
    color: var(--colorwhite);
}

.header-cv a:hover {
    color: var(--bdrcolor);
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--bdrcolor);
    transition: width 0.3s ease;
    z-index: -1;
}

.header-btn:hover {
    color: var(--colorwhite);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(98, 147, 200, 0.4);
}

.header-btn:hover::before {
    width: 100%;
}

/* Animation cursor */
.header-post::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--bdrcolor);
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media screen and (max-width: 768px) {
    .header-home {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        text-align: center;
    }

    .profil {
        width: 100%;
        max-width: 240px;
        height: auto;
        margin-bottom: 20px;
    }

    .header-name,
    .header-post {
        font-size: 1.5rem;
        margin: 0;
    }

    .header-desc {
        font-size: 1rem;
        margin: 10px 0;
    }
}

/* Titre */

.titre {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
    background: linear-gradient(135deg, #012836 0%, #00b4d8 50%, #012836 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    margin-bottom: 50px;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.titre::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

.titre:hover::after {
    width: 120px;
}

@media screen and (max-width: 768px) {
    .titre {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .titre {
        font-size: 1.5rem;
    }

}

/* Section à propos  */

.section-apropo {
    font-family: 'Poppins';
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.solft-skill img {
    width: 28px;
    height: 28px;
    transition: transform var(--transition-fast);
}

.solft-skill:hover img {
    transform: scale(1.2);
}

.solft-skill {
    padding: 1rem 0.8rem;
    background: linear-gradient(135deg, #012836 0%, #023e52 100%);
    border-radius: 16px;
    color: white;
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: var(--shadow-soft);
    width: 140px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

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

.solft-skill:hover::before {
    left: 100%;
}

.solft-skill:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-accent);
    border-color: var(--bdrcolor);
}

.solft-rigth {
    margin-right: 0;
}

.about {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    text-align: center;
}

.about p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Mise en page de paragraphe */

.about p span {
    font-weight: 600;
}

.about p a {
    text-decoration: underline;
    color: blue;
    font-weight: 600;
}

.about-solft {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s;
    margin-inline: 100px;
}

.about-pa:hover {
    color: #012836;
}

button:hover {
    background-color: var(--bdrcolor);
    color: var(--colorwhite);
}

.solft .solft-skill:hover {
    transform: scale(1.1, 1.1);
}

.solft:hover>.solft-skill:not(:hover) {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #0974f1;
}



/* Responsive design */
@media screen and (max-width: 768px) {
    .about {
        padding: 0 15px;
        margin: 20px auto;
    }

    .about p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }

    .about-solft {
        flex-direction: column;
        align-items: center;
        margin-inline: 20px;
    }

    .solft {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .solft-skill {
        width: 120px;
        padding: 0.75rem;
    }

    .about {
        margin-top: 20px;
        margin-left: 0;
        padding: 0 20px;
    }

    .about-pa {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .solft-skill {
        width: 100px;
        padding: 0.5rem;
    }

    .solft-skill p {
        font-size: 0.8rem;
    }

    .about-pa {
        font-size: 0.8rem;
    }

    .solft {
        display: flex;
    }
}

/*  section Formation */

.formation {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 50px;
    margin-top: 60px;
    flex-wrap: wrap;
    perspective: 1000px;
}

.formation-box {
    padding: 25px;
    background: linear-gradient(145deg, #012836 0%, #023e52 100%);
    width: 260px;
    height: auto;
    min-height: 280px;
    border-radius: 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.formation-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.formation-box:hover::before {
    opacity: 1;
}

.formation-box:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-accent), 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--bdrcolor);
}

.formation-box:active {
    transform: scale(0.98);
}

.formation-box img {
    width: 90px;
    height: 90px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform var(--transition-smooth);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.formation-box:hover img {
    transform: scale(1.1) rotate(3deg);
}

.formation .logoiti {
    width: 80px;
    height: 80px;
}

.formation-box h3 {
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    transition: color var(--transition-fast);
}

.formation-box:hover h3 {
    color: var(--bdrcolor);
}

.formation-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0;
    transition: color var(--transition-fast);
}

.formation-box:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.formation a {
    text-decoration: none;
}

.formation-box p:last-child {
    margin-bottom: 0;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .formation {
        gap: 20px;
    }

    .formation-box {

        max-width: 300px;
    }

    .formation-box h3 {
        font-size: 1.1rem;
    }

    .formation-box p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .formation {
        gap: 20px;
    }

    .formation-box {
        padding: 20px;
    }

    .formation-box img {
        width: 80px;
        height: 80px;
    }

    .formation-box h3 {
        font-size: 1rem;
    }

    .formation-box p {
        font-size: 0.75rem;
    }
}


/* SECTION MES COMPETENECS */

#Skills {
    padding: 80px 20px;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.Skill-contenaire {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.skill-content {
    background: linear-gradient(145deg, #012836 0%, #023e52 100%);
    border-radius: 20px;
    padding: 35px 25px;
    width: 320px;
    text-align: center;
    transition: all var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: var(--shadow-medium);
}

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

.skill-content:hover::before {
    left: 100%;
}

.skill-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

.skill-content:hover::after {
    transform: scaleX(1);
}

.skill-content:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-accent), 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--bdrcolor);
}

.skill-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #fff;
}

.skill-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.skill-groupe {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-data:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.skill-data img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
}

.skill-level {
    font-size: 0.7rem;
    color: #aaa;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .Skill-contenaire {
        flex-direction: column;
        align-items: center;
    }

    .skill-content {
        width: 100%;
        max-width: 300px;
        margin-left: 0;
    }

    .skill-box {
        grid-template-columns: repeat(2, 1fr);

    }

    .skill-title {
        font-size: 1.3rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .skill-level {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .skill-box {
        grid-template-columns: repeat(1, 1fr);
        /* 1 colonne sur très petits écrans */
    }
}

/* Section experiences */
.section-experiences {
    padding: 80px 20px;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
}

.section-experiences .titre {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c3e50;
    position: relative;
}

.section-experiences .titre::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6293c8, #384c6c);
    margin: 15px auto 0;
    border-radius: 2px;
}

.experience-contenaire {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Cards animations */
.slide-left {
    opacity: 0;
    transform: translateX(-50px) rotate(-5deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px) rotate(5deg);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slide-left.show,
.slide-right.show {
    opacity: 1;
    transform: translateX(0) rotate(0);
}

/* Card styles */
.card-experience {
    background-color: #ffffff;
    color: #2c3e50;
    padding: 30px;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    width: 280px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-experience:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: #2c3e50;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.small-desc {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #6293c8, #384c6c);
    border-radius: 0 15px 0 32px;
    transition: all 0.3s ease;
}

.go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
    font-size: 1.2rem;
}

.card-experience:before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, #6293c8, #384c6c);
    height: 40px;
    width: 40px;
    border-radius: 40px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.5s ease-out;
}

.card-experience:hover:before {
    transform: scale(35);
}

.card-experience:hover .small-desc {
    color: rgba(255, 255, 255, 0.9);
}

.card-experience:hover .card-title {
    color: #ffffff;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-title-center {
    text-align: center;
    margin-bottom: 20px;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #e0e0e0;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s ease-in-out;
    background: none;
    border: none;
    color: #333;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff0000;
}

.close-modal:focus {
    outline: 2px solid #015f6b;
    outline-offset: 2px;
}

.modal-titre {
    font-size: 1.3rem;
    color: #384c6c;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-date {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.modal-content ul {
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .experience-contenaire {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .card-experience {
        width: 100%;
        max-width: 300px;
    }

    .slide-left,
    .slide-right {
        transform: translateY(30px);
    }

    .section-experiences .titre {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .modal-content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 1.2rem;
    }
}

/* Section Projet Améliorer */

.Projets {
    background-color: var(--secondary-color);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.Projets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

/* Catégories de projets */
.projet-category {
    width: 100%;
    margin-bottom: 30px;
    margin-top: 20px;
}

.projet-category:first-of-type {
    margin-top: 0;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 40px;
    margin-top: 60px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(1, 40, 54, 0.08) 0%, rgba(0, 180, 216, 0.08) 100%);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all var(--transition-smooth);
}

.category-title:hover {
    background: linear-gradient(135deg, rgba(1, 40, 54, 0.12) 0%, rgba(0, 180, 216, 0.12) 100%);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 2rem;
}

.projet-cyber {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
    gap: 30px;
}

.projet-cyber .projet-card {
    max-width: 350px;
}

.projet-contenaire {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.projet-card {
    background: #012836;
    color: var(--colorwhite);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1;
}

.projet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.projet-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.3);
}

.projet-card:hover::before {
    opacity: 1;
}

.projet-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9);

}

.projet-card:hover .projet-card-image {
    transform: scale(1.05);
    filter: brightness(1);
}

.projet-card-title {
    font-size: 1.4rem;
    /* margin: 20px 0 10px; */
    color: #fff;
    transition: color 0.3s ease;
    font-weight: 600;
    padding: 0 20px;
}

.projet-card:hover .projet-card-title {
    color: #00a6ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.projet-card-description {
    padding: 0 20px 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projet-card:hover .projet-card-description {
    color: var(--colorwhite);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.projet-card-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    margin: 0 15px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.projet-card-icons img {
    width: 35px;
    height: 35px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(30%) brightness(0.9);
}

.projet-card-icons img:hover {
    transform: scale(1.2) translateY(-3px);
    filter: grayscale(0%) brightness(1.2);
}

.projet-card button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #012a32, #06557f 100%);
    color: var(--colorwhite);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.projet-card button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) rotate(45deg);
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.projet-card button:hover::after {
    opacity: 1;
}

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

.projet-card button:hover {
    background: linear-gradient(135deg, #00a6ff 0%, #0086ff 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.projet-card button:hover::before {
    left: 100%;
}

.projet-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}


/* Animation au scroll */

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

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

/* Responsive Design */

@media screen and (max-width: 1024px) {
    .projet-contenaire {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .Projets {
        padding: 60px 5%;
    }

    .titre {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .projet-contenaire {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

@media screen and (max-width: 480px) {
    .titre {
        font-size: 1.8rem;
    }

    .projet-card-title {
        font-size: 1.3rem;
    }

    .projet-card-description {
        font-size: 0.95rem;
    }

    .projet-card button {
        padding: 14px;
    }
}



/* Footer  */

.title-contact {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--colorwhite);
}

footer {
    background: linear-gradient(180deg, #012836 0%, #001a22 100%);
    color: var(--colorwhite);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
    padding: 80px 40px 50px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-forme {
    margin-left: 140px;
}

.footer-h1 {
    text-align: center;
    margin-top: 80px;
}

/* Styles pour les champs de formulaire */
input,
textarea {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: var(--colorwhite);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all var(--transition-smooth);
    box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

#form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-smooth);
}

#form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

#form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.hidden {
    display: none;
}

/* Style au survol et focus */
input:hover,
textarea:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

input:focus,
textarea:focus {
    border-color: var(--bdrcolor);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

input[type="submit"] {
    width: auto;
    min-width: 180px;
    background: var(--accent-gradient);
    color: var(--colorwhite);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.3);
}

input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.4);
    filter: brightness(1.1);
}


.logo-mail {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo-mail a {
    text-decoration: none;
    color: inherit;
    display: contents;
}


.glo {
    margin-top: 80px;
    margin-left: 60px;
}

.logo-contact .logo-mail img {

    width: 50px;
    height: 50px;
}

.logo-mail :hover {
    transform: scale(1.05);
}

a:hover {
    color: aqua;
}




@media screen and (max-width:761px) {

    footer {
        border-top: 5px solid aqua;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-mail {
        display: block;
        margin-bottom: 30px;
    }

    .footer-forme {
        margin-left: 0;
    }

    .glo {
        margin-top: 0;
        margin-left: 0;
    }

    .logo-contact .logo-mail img {

        width: 40px;
        height: 40px;
    }

    .logo-contact .copyright {
        margin-bottom: 20px;
    }

}


/* Menu styles */
.menu-burger {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.menu-burger.open {
    display: flex;
    opacity: 1;
}

.menu-liste {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.menu {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem 2rem;
    /* Plus d'espace en haut pour le bouton */
    list-style: none;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.close-icon:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: rgba(0, 0, 0, 0.1);
    filter: brightness(0) invert(0.2);
}

.menu li {
    margin: 1.5rem 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
}

.menu li:hover {
    transform: translateX(5px);
}

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

.menu li a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.menu li a:hover,
.menu li a:focus {
    color: #015f6b;
    background-color: #f5f5f5;
    border-radius: 6px;
}

.menu li a::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #015f6b;
    transition: height 0.3s ease;
    border-radius: 2px;
}

.menu li a:hover::before {
    height: 60%;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 2rem;
    font-weight: 300;
}

.no-scroll {
    overflow: hidden;
}

/* Active link style */
.menu li a.active {
    color: #015f6b;
    font-weight: 600;
}

.menu li a.active::before {
    height: 60%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-liste {
        max-width: 90%;
        padding: 1.5rem;
    }

    .menu {
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .close-icon {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .menu li a {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .menu-liste {
        padding: 1rem;
    }

    .menu {
        padding: 2rem 1rem 1rem;
        border-radius: 12px;
    }

    .menu li {
        margin: 1.2rem 0;
    }

    .menu li a {
        font-size: 1.1rem;
        padding: 0.5rem;
    }

    .close-icon {
        width: 32px;
        height: 32px;
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* BOUTTON SCROLL */

#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    background: var(--accent-gradient);
    color: var(--colorwhite);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    z-index: 1000;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

/* ========== AMÉLIORATIONS MOBILE GLOBALES ========== */

@media screen and (max-width: 768px) {

    /* Sections */
    section {
        padding: 40px 20px;
    }

    /* Titres */
    .titre {
        font-size: 1.8rem;
    }

    /* Grille projets */
    .projet-contenaire {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Compétences */
    .skill-content {
        padding: 15px;
    }

    /* Footer form */
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 14px;
    }

    /* Back to top button */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* Désactiver les effets hover sur mobile */
    .hover-lift:hover,
    .hover-tilt:hover {
        transform: none;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 30px 15px;
    }

    .titre {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.2rem;
        padding: 15px 20px;
    }

    /* Soft skills en colonne */
    .solft-skill {
        width: 100%;
        max-width: none;
    }

    /* Cards expérience */
    .card-experience {
        padding: 20px;
    }
}