@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

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

body {
    font-family: 'Exo', sans-serif;
    overflow-x: hidden;
}

/* ========== NAVIGATION BAR ========== */
.barnav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #003459;
    height: 8vh;
    min-height: 60px;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.barnav h3 {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0;
}

/* Zone de recherche */
.recherche {
    padding: 5px 10px;
    border: 1px solid #0077b6;
    border-radius: 4px;
    outline: none;
    font-size: 0.9rem;
    min-width: 120px;
    max-width: 200px;
}

.recherche:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 4px rgba(0, 180, 216, 0.5);
}

/* Navigation */
.navigation {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.navigation li {
    position: relative;
}

.navigation li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.navigation li a:hover {
    color: #00b4d8;
}

/* Style des icônes */
.link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    height: 50px;
    border-radius: 25px;
    background-color: transparent;
    transition: background-color 0.3s, padding 0.3s;
    color: inherit;
    gap: 10px;
    overflow: hidden;
}

.navigation li a span {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
}

.navigation li:hover a span,
.navigation li a.active span {
    opacity: 1;
    visibility: visible;
}

.navigation li:hover .link {
    background-color: #0077b6;
    padding: 0 20px;
}

.navigation li a:hover .link {
    background-color: #0077b6;
}

.navigation li a.active:hover .link {
    background-color: #81d3ff;
}

.navigation li a.active:hover span {
    color: #00425e;
}

.navigation li a i {
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out;
}

.navigation li:hover a i {
    transform: scale(1.2);
}

.navigation li a.active .link {
    background-color: #33d8f9;
    padding: 0 20px;
}

.navigation li a.active span {
    color: #fff;
}

.navigation li a.active i {
    transform: scale(1.2);
}

/* ========== HOME SECTION ========== */
.Home {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 6% 3%;
    justify-content: space-between;
    background-color: #000;
    gap: 40px;
}

.Home .content {
    flex: 1;
    max-width: 900px;
}

.Home .content h4 {
    font-size: clamp(16px, 3vw, 20px);
    text-transform: capitalize;
    color: #fff;
    font-style: italic;
    letter-spacing: 1px;
}

.Home .content h1 {
    font-size: clamp(2rem, 8vw, 70px);
    text-transform: capitalize;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 10px 0;
}

.Home .content h1 span {
    color: #00b4d8;
}

.Home .content h3 {
    font-size: clamp(1.2rem, 4vw, 32px);
    text-transform: capitalize;
    color: #eee;
    letter-spacing: 1px;
    margin: 15px 0;
}

.Home .content p {
    color: #999;
    margin: 20px 0 30px;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.6;
}

.Home .content .btn {
    display: inline-block;
    padding: 12px 32px;
    border: double #00b4d8 6px;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    text-transform: capitalize;
    text-decoration: none;
    color: #00b4d8;
    position: relative;
    transition: .4s ease;
    z-index: 99;
}

.Home .content .btn:hover {
    color: #000;
}

.Home .content .btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: #00b4d8;
    transition: .4s ease-in-out;
    z-index: -1;
}

.Home .content .btn:hover::before {
    width: 100%;
}

.Home .content .link-social {
    position: absolute;
    bottom: 10%;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.Home .content .link-social a {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border: solid 3px #00b4d8;
    justify-content: center;
    align-items: center;
    color: #00b4d8;
    font-size: 23px;
    text-decoration: none;
    border-radius: 15px 0;
    position: relative;
    overflow: hidden;
    transition: .3s ease;
}

.Home .content .link-social a:hover {
    background-color: #00b4d8;
    color: #000;
}

.Home .content .link-social a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: #00b4d8;
    transition: .4s ease-in-out;
    z-index: -1;
}

.Home .content .link-social a:hover::before {
    width: 100%;
}

.Home .content .link-social a:nth-child(1) {
    background-color: #00b4d8;
    color: #000;
}

.Home img {
    flex-shrink: 0;
    width: clamp(250px, 40vw, 500px);
    height: clamp(250px, 40vw, 500px);
    cursor: pointer;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #00b4d8;
    transition: .4s linear;
}

.Home img:hover {
    transform: scale(1.1);
}


/* ========== PROJETS IMPORTANTS ========== */
 .carousel-container {
            max-width: 1400px;
            width: 100%;
            position: relative;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

        .carousel-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .carousel-header h1 {
            color: white;
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .carousel-header p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
        }

        .carousel {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            height: 500px;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
            height: 100%;
        }

        .project-card {
            flex: 0 0 100%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            display: flex;
            height: 100%;
            opacity: 0.8;
            transform: scale(0.98);
            transition: all 0.6s ease;
            cursor: pointer;
            position: relative;
        }

        .project-card.active {
            opacity: 1;
            transform: scale(1);
        }

        .project-media {
            flex: 1.2;
            position: relative;
            overflow: hidden;
            background: #f0f0f0;
        }

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

        .project-media iframe {
            width: 100%;
            height: 100%;
            border: none;
            transition: transform 0.6s ease;
        }

        .media-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
            opacity: 0;
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(2px);
        }

        .hover-icon {
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: #667eea;
            transform: scale(0.5);
            transition: all 0.4s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

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

        .project-card:hover .hover-icon {
            transform: scale(1);
        }

        .project-card:hover .project-media img,
        .project-card:hover .project-media iframe {
            transform: scale(1.05);
        }

        .project-content {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            position: relative;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
        }

        .project-type {
            display: inline-block;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            align-self: flex-start;
        }

        .project-title {
            font-size: 2.2rem;
            color: #333;
            margin-bottom: 15px;
            font-weight: bold;
            transition: color 0.3s ease;
        }

        .project-card:hover .project-title {
            color: #667eea;
        }

        .project-description {
            color: #666;
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 25px;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }

        .tag {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            border: 1px solid rgba(102, 126, 234, 0.2);
            transition: all 0.3s ease;
        }

        .project-card:hover .tag {
            background: rgba(102, 126, 234, 0.2);
            transform: translateY(-2px);
        }

        .project-links {
            display: flex;
            gap: 15px;
            margin-top: auto;
        }

        .project-link {
            padding: 12px 25px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            transform: translateY(10px);
            opacity: 0;
            animation: slideUp 0.6s ease forwards 0.2s;
        }

        .btn-secondary {
            background: transparent;
            color: #667eea;
            border: 2px solid #667eea;
            transform: translateY(10px);
            opacity: 0;
            animation: slideUp 0.6s ease forwards 0.4s;
        }

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

        .project-link:hover::before {
            left: 100%;
        }

        .project-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #5a6fd8, #6a4190);
        }

        .btn-secondary:hover {
            background: #667eea;
            color: white;
        }

        .carousel-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 30px;
        }

        .carousel-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            font-size: 1.2rem;
        }

        .carousel-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .carousel-dots {
            display: flex;
            gap: 10px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: white;
            transform: scale(1.2);
        }

        .carousel-progress {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            margin-top: 20px;
            overflow: hidden;
        }

        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
            transition: width 0.3s ease;
            width: 0%;
        }

        .media-type-indicator {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }

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

        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .project-card.active .project-content {
            animation: fadeInScale 0.6s ease-out;
        }

        @media (max-width: 768px) {
            .carousel {
                height: auto;
            }

            .project-card {
                flex-direction: column;
                min-height: 600px;
            }

            .project-media {
                height: 250px;
                flex: none;
            }

            .project-content {
                padding: 20px;
                flex: 1;
            }

            .project-title {
                font-size: 1.8rem;
            }

            .carousel-header h1 {
                font-size: 2rem;
            }

            .project-links {
                flex-direction: column;
            }

            .hover-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }
        }

/* ========== MOI SECTION ========== */
#Moi {
    background: linear-gradient(135deg, #0a192f, #1f4068);
    color: #f0f0f0;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    border-radius: 15px;
}

.presentation-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
    text-align: left;
}

.bio-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.bio-image {
    width: clamp(180px, 25vw, 220px);
    height: clamp(180px, 25vw, 220px);
    border-radius: 15px;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bio-image:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.bio-text {
    flex: 1;
    min-width: 300px;
    max-width: 900px;
    text-align: justify;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    background: #ffffff;
    color: #333;
    padding: clamp(20px, 5vw, 40px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bio-text h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 20px;
    color: #0077b6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.bio-text p {
    margin-bottom: 15px;
    font-weight: 400;
}

.bio-text strong {
    color: #0077b6;
    font-weight: 500;
}

/* ========== HARD SKILLS SECTION ========== */
#hard-skills {
    margin: 60px auto;
    text-align: center;
    max-width: 1100px;
    padding: 0 20px;
}

#hard-skills h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 30px;
    color: #023e8a;
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.skill label {
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #03045e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 20px;
    width: 100%;
    height: 18px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0%;
    background-color: #00b4d8;
    border-radius: 20px;
    transition: width 2s ease-in-out;
}

.animated {
    pointer-events: none;
}

/* Languages section */
.langue {
    background: #f1faff;
    padding: 20px;
    border-radius: 15px;
    margin-top: 50px;
}

.skill-language {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 40px);
    flex-wrap: wrap;
}

.alwayslanguages {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.alwayslanguages label {
    font-weight: 600;
    color: #03045e;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.flag-icon {
    width: 30px;
    height: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
}

/* ========== PROJECTS SECTION ========== */
#Projets {
    padding: 100px 20px 60px;
    text-align: center;
    background-color: #00171f;
    color: #fff;
}

#Projets h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 20px;
    color: #00b4d8;
    scroll-margin-top: 100px;
}

#Projets button {
    padding: 10px 20px;
    margin: 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border: none;
    border-radius: 5px;
    background-color: #00b4d8;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

#Projets button:hover {
    background-color: #0077b6;
}

#Projets button.active-btn {
    background-color: #0077b6;
    border: 2px solid #00b4d8;
}

#Projets button:active {
    transform: scale(0.95);
}

/* Grid des projets */
.rprojets {
    margin: 20px auto 0;
    opacity: 0;
    height: 0;
    max-width: 90%;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, height 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.rprojets.active {
    opacity: 1;
    height: auto;
}

.rprojets li {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #003459;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.rprojets li:hover {
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.5);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.rprojets li img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: crisp-edges;
    border-radius: 10px;
    backface-visibility: hidden;
    transition: transform 0.3s ease-in-out;
}

.rprojets li:hover img {
    transform: scale(1.1);
    opacity: 1;
    backface-visibility: hidden;
}

.rprojets li::after {
    content: attr(data-title);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 180, 216, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: bold;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.rprojets li:hover::after {
    transform: translateY(0);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
    color: #00171f;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    position: relative;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.modal-content h2 {
    color: #003459;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 15px;
}

.modal-content img {
    width: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin-top: 20px;
}

#modalLink {
    margin-top: 20px;
    display: inline-block;
    background-color: #00b4d8;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

#modalLink:hover {
    background-color: #0077b6;
}

.close {
    color: red;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: rgb(255, 0, 0);
    text-decoration: none;
}

/* ========== PARCOURS SECTION ========== */
#parcours {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

#parcours h2 {
    font-size: clamp(1.8rem, 4vw, 2rem);
    margin-bottom: 30px;
    color: #023e8a;
    text-align: center;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 60px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #f1faff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.timeline-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin: 0 0 8px;
    color: #0077b6;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.timeline-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ========== CONTACT SECTION ========== */
#Contact {
    background: linear-gradient(45deg, #003459 30%, #00b4d8);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-size: 1rem;
}

#Contact h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(20px, 5vw, 40px);
    margin: 20px 0;
    animation: fadeIn 1.5s ease-out both;
}

.footer-col {
    flex: 1 1 280px;
    max-width: 400px;
    min-width: 250px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    justify-content: center;
}

.footer-col ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    gap: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.2;
}

.footer-col ul li i {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
    margin-right: 4px;
}

.footer-col a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #90e0ef;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-link {
    display: inline-block;
    padding: 12px 20px;
    margin: 10px;
    background-color: #00b4d8;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: background-color 0.3s, transform 0.1s;
    border: none;
}

.button-link:hover {
    background-color: #0077b6;
    cursor: pointer;
}

.button-link:active {
    transform: scale(0.95);
}

#Contact p {
    margin-top: 20px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

#Contact p i {
    font-size: 1.2rem;
    margin-right: 5px;
}

/* ========== SCROLL TO TOP BUTTON ========== */
#scrollToTopBtn {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #00b4d8;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #0077b6;
    transform: scale(1.1);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablets (768px et moins) */
@media (max-width: 768px) {
    /* Navigation */
    .barnav {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .barnav h3 {
        order: 1;
    }
    
    .recherche {
        order: 2;
        width: 100%;
        max-width: none;
    }
    
    .navigation {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    .navigation li a {
        font-size: 0.9rem;
    }
    
    .link {
        height: 45px;
        padding: 0 15px;
    }

    /* Home Section */
    .Home {
        flex-direction: column;
        text-align: center;
        padding: 10% 5%;
        gap: 30px;
    }
    
    .Home .content {
        order: 2;
    }
    
    .Home img {
        order: 1;
        width: clamp(200px, 60vw, 350px);
        height: clamp(200px, 60vw, 350px);
    }
    
    .Home .content .link-social {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }

    /* Moi Section */
    .presentation-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .bio-text {
        text-align: justify;
    }

    /* Skills Section */
    .skill-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Projects Section */
    .rprojets {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    /* Timeline */
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .timeline-logo {
        width: 50px;
        height: 50px;
    }

    /* Contact */
    .footer-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        width: 100%;
        max-width: none;
    }
    
    .button-link {
        width: 100%;
        box-sizing: border-box;
        max-width: 300px;
    }

    /* Scroll button */
    #scrollToTopBtn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}

/* Mobile (480px et moins) */
@media (max-width: 480px) {
    /* Navigation */
    .barnav {
        padding: 10px;
    }
    
    .navigation {
        gap: 5px;
    }
    
    .link {
        height: 40px;
        padding: 0 8px;
    }
    
    .navigation li a span {
        font-size: 0.8rem;
    }

    /* Home */
    .Home {
        padding: 15% 5%;
    }
    
    .Home .content .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    /* Projects */
    .rprojets {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 95%;
    }
    
    #Projets button {
        padding: 8px 15px;
        margin: 3px;
        font-size: 0.8rem;
    }

    /* Modal */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 15px;
        width: 95%;
    }
    
    .modal-content img {
        max-height: 50vh;
    }

    /* Skills */
    .skill-language {
        gap: 15px;
    }
    
    .flag-icon {
        width: 25px;
        height: 17px;
    }

    /* Contact */
    .footer-col ul li {
        font-size: 0.9rem;
    }
    
    #scrollToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Très petits écrans (320px et moins) */
@media (max-width: 320px) {
    .barnav {
        padding: 8px;
    }
    
    .Home {
        padding: 20% 3%;
    }
    
    .rprojets {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-content {
        padding: 10px;
        width: 98%;
    }
    
    .timeline-item {
        padding: 15px;
    }
}