/* Local fonts imported via HTML index.html */

:root {
    --primary: #00ff99;
    --primary-glow: rgba(0, 255, 153, 0.3);
    --secondary: #00cc77;
    --bg-dark: #050505;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --glass: rgba(15, 15, 15, 0.7);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

html, body {
    font-family: 'Outfit', sans-serif;
}

html {
    font-size: 60%; /* Réduit de 62.5% pour un texte plus fin */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    width: 0.6rem;
}

html::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

html::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 1rem;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

section {
    padding: 10rem 9% 2rem;
    min-height: 100vh;
}

/* Glass Utility */
.glass-effect {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 2rem;
}

.heading {
    text-align: center;
    margin: 3rem 0;
    padding-bottom: 3rem;
    font-size: clamp(3rem, 6vw, 5rem); /* Taille fluide adaptée */
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.heading span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.heading span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 1.6rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5rem;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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: 0.5s;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px var(--primary-glow);
    background: var(--secondary);
}

.btn:hover::before {
    left: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(300px, 90%, 1200px);
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 5rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header .navbar {
    display: flex;
    gap: 1rem;
}

header .navbar a {
    padding: 1rem 2rem;
    font-size: 1.6rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

header .navbar a:hover,
header .navbar a.active {
    color: var(--primary);
}

header .navbar a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

header .navbar a:hover::after {
    width: 1.5rem;
}

#menu-bars {
    color: var(--text-main);
    font-size: 2.5rem;
    cursor: pointer;
    display: none;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 153, 0.05), transparent 70%);
}

.home #particles-js {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 100%;
    z-index: 0;
}

.home .content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 80rem;
}

.home .content img {
    height: 28rem;
    width: 28rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 255, 153, 0.4);
    box-shadow: 0 0 0 8px rgba(0, 255, 153, 0.07), 0 0 60px rgba(0, 255, 153, 0.2);
    margin-bottom: 3rem;
    padding: 0.5rem;
    background: var(--glass);
    animation: float 5s ease-in-out infinite;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.home .content img:hover {
    box-shadow: 0 0 0 12px rgba(0, 255, 153, 0.15), 0 0 80px rgba(0, 255, 153, 0.35);
    transform: translateY(-6px);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.home .content h3 {
    font-size: clamp(3.5rem, 6vw, 7rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.home .content h3 span {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.home .content p {
    font-size: 2.4rem;
    color: var(--text-muted);
    margin: 2rem 0;
}

/* About Section */
.about .row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.about .row .image {
    flex: 1 1 35rem;
    position: relative;
}

.about .row .image::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 3rem;
    background: linear-gradient(135deg, var(--primary), transparent, rgba(0,255,153,0.3));
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.about .row .image:hover::before {
    opacity: 1;
}

.about .row .image img {
    width: 100%;
    border-radius: 3rem;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about .row .image:hover img {
    transform: scale(1.03);
}

.about .row .content {
    flex: 1 1 50rem;
}

.about .row .content h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about .row .content h3 span {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0,255,153,0.3);
}

.about .row .content .info {
    font-size: 1.8rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: justify;
    border-left: 3px solid var(--primary);
    padding-left: 2rem;
}

.about .box-container, .about .box-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about .box, .about .progress {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about .box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,153,0.05), transparent);
    transition: left 0.6s ease;
}

.about .box:hover::before {
    left: 150%;
}

.about .box:hover {
    border-color: rgba(0,255,153,0.3);
    box-shadow: 0 8px 30px rgba(0,255,153,0.08);
    transform: translateY(-3px);
}

.about .box p {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.about .box p span {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0,255,153,0.2);
}

/* Education Section */
.education {
    position: relative;
    overflow: hidden;
    clip-path: inset(0); /* Essentiel pour contenir le pseudo-élément fixe */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.education::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.85)), url('../images/code_bg.png');
    background-size: cover;
    background-attachment: scroll; /* Doit être scroll ici car le parent fixed fait le travail */
    background-position: center;
    z-index: -1;
    pointer-events: none;
    transition: background 0.5s ease;
}

.education:hover::before {
    background: linear-gradient(rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.8)), url('../images/code_bg.png');
}

.education .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 3rem;
}

.education .column {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 2.5rem;
    border: 1px solid var(--border);
}

.education .title {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 700;
}

.education .box {
    padding: 2.5rem;
    border-left: 2px solid var(--border);
    position: relative;
    margin-bottom: 4rem;
    background: var(--glass);
    border-radius: 0 2rem 2rem 0;
    transition: var(--transition);
}

.education .box:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.education .box::before {
    content: '';
    position: absolute;
    top: 0; left: -1rem;
    height: 1.8rem; width: 1.8rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 10;
}

.education .box::after {
    content: '';
    position: absolute;
    top: -0.4rem; left: -1.4rem;
    height: 2.6rem; width: 2.6rem;
    border-radius: 50%;
    background: rgba(0, 255, 153, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 153, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 255, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 153, 0); }
}

.education .years {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.education .box p {
    font-size: 1.7rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tech-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid rgba(0, 255, 153, 0.2);
    border-radius: 5rem;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
}

/* Services Section */
.services {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.services .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
}

.services .box {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 4.5rem 3rem;
    border-radius: 2.5rem;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.services .box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,255,153,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.services .box:hover::before {
    opacity: 1;
}

.services .box:hover {
    background: rgba(0, 255, 153, 0.04);
    transform: translateY(-12px);
    border-color: rgba(0,255,153,0.4);
    box-shadow: 0 20px 50px rgba(0, 255, 153, 0.12), inset 0 1px 0 rgba(0,255,153,0.15);
}

.services .box i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    display: inline-block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.services .box:hover i {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 20px rgba(0,255,153,0.6));
}

.services .box h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.services .box p {
    font-size: 1.7rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
}

/* Portfolio Section */
.porfolio .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
}

.porfolio .box {
    height: 30rem;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.porfolio .box:hover {
    border-color: rgba(0,255,153,0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,153,0.2);
    transform: translateY(-5px);
}

.porfolio .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: brightness(0.9);
}

.porfolio .box:hover img {
    transform: scale(1.08);
    filter: brightness(0.5);
}

.porfolio .box .content {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,50,30,0.7) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.porfolio .box:hover .content {
    opacity: 1;
}

/* Skills Section */
.skills-section {
    padding: 10rem 9% 6rem;
    min-height: 100vh;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.skills-col-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    letter-spacing: 0.5px;
}

.skills-col-title i {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* Skill icon chips grid */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.8rem;
}

.skill-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 2rem;
    cursor: default;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-chip::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,255,153,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-chip:hover::before { opacity: 1; }

.skill-chip:hover {
    transform: translateY(-8px);
    border-color: rgba(0,255,153,0.4);
    box-shadow: 0 15px 35px rgba(0,255,153,0.1), inset 0 1px 0 rgba(0,255,153,0.1);
}

.skill-chip i {
    font-size: 3.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(0,255,153,0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.skill-chip:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 16px rgba(0,255,153,0.6));
}

.skill-chip span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

.skill-chip:hover span { color: var(--text-main); }

@media (max-width: 900px) {
    .skills-wrapper { grid-template-columns: 1fr; }
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .progress-bar {
        grid-template-columns: 1fr;
    }
}

.progress-bar .progress {
    margin-bottom: 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.progress-bar .progress:hover {
    border-color: rgba(0,255,153,0.25);
    box-shadow: 0 5px 25px rgba(0,255,153,0.07);
}

.progress-bar .progress h3 {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.progress-bar .progress h3 span {
    color: var(--primary);
    font-weight: 700;
}

.progress-bar .progress .bar {
    height: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 5rem;
    overflow: hidden;
}

.progress-bar .progress .bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 5rem;
    box-shadow: 0 0 12px var(--primary-glow);
    position: relative;
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    from { width: 0 !important; opacity: 0.4; }
    to { opacity: 1; }
}
/* Contact Section */
.contact-wrapper {
    max-width: 120rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* Infos à gauche, formulaire à droite */
    gap: 4rem;
    align-items: start;
}

/* Contact Info Grid - empilée verticalement */
.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3.5rem 2rem;
    border-radius: 2.5rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 153, 0.3);
    box-shadow: 0 15px 35px rgba(0, 255, 153, 0.1);
}

.contact-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.contact-card h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.7rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-link {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    text-shadow: 0 0 10px var(--primary-glow);
    letter-spacing: 1px;
}

/* Contact Form */
.contact-form-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.form-header img {
    height: 12rem;
    width: 12rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    padding: 0.5rem;
    background: var(--glass);
    transition: transform 0.3s ease;
}

.form-header img:hover {
    transform: scale(1.05) rotate(5deg);
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.input-field {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 2.2rem 1.8rem 0.8rem; /* Plus compact */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    font-size: 1.5rem; /* Écritures légèrement réduites */
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
}

.input-field label {
    position: absolute;
    top: 1.8rem; /* Ajusté */
    left: 1.8rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Floating Label Logic */
.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:not(:placeholder-shown) ~ label {
    top: 0.8rem;
    font-size: 1.2rem;
    color: var(--primary);
    background: rgba(10, 10, 10, 0.8);
    padding: 0 0.5rem;
    border-radius: 0.5rem;
}

.input-field input:focus,
.input-field textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 255, 153, 0.02);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.1);
}

.send-btn {
    width: 100%;
    padding: 1.8rem;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    cursor: pointer;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #000;
    border: none;
    border-radius: 1.5rem;
    transition: var(--transition);
}

.send-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.send-btn i {
    transition: transform 0.3s ease;
}

.send-btn:hover i {
    transform: translate(5px, -5px);
}

@media (max-width: 768px) {
    .input-group { grid-template-columns: 1fr; }
    .contact-form-container { padding: 3rem 2rem; }
    .contact-wrapper {
        grid-template-columns: 1fr; /* Empilement vertical sur mobile */
        gap: 4rem;
    }
}

/* Footer */
.footer {
    padding: 4rem;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    font-size: 1.8rem;
    color: var(--text-muted);
}

.footer span {
    color: var(--primary);
}

/* Back to Top */
#retour {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    height: 5rem;
    width: 5rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 999;
}

/* Media Queries */
@media (max-width: 991px) {
    html { font-size: 55%; }
    header { width: 95%; top: 1rem; }
    section { padding-top: 10rem; }
}

@media (max-width: 768px) {
    #menu-bars { display: initial; }
    header .navbar {
        position: absolute;
        top: 110%; left: 0; right: 0;
        background: var(--glass);
        backdrop-filter: blur(20px);
        flex-direction: column;
        border-radius: 2rem;
        border: 1px solid var(--border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }
    header.active .navbar {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    header .navbar a {
        display: block;
        padding: 2rem;
        font-size: 2rem;
        text-align: center;
    }
    .contact form .inputbox { grid-template-columns: 1fr; }
}

@media (max-width: 450px) {
    html { font-size: 50%; }
    .heading { font-size: 3.5rem; }
}

/* Toast Notification Premium */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem 3rem;
    border-radius: 5rem;
    border: 1px solid var(--primary);
    color: var(--text-main);
    font-size: 1.6rem;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 15px 35px rgba(0, 255, 153, 0.2);
    pointer-events: none;
}

.toast.show {
    bottom: 4rem;
    pointer-events: auto;
}

.toast i {
    color: var(--primary);
    font-size: 2rem;
}

/* ====================================
   Gallery Modal - Liquid Glass Effect
   ==================================== */
.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease;
}

.gallery-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-glass-card {
    position: relative;
    background: rgba(20, 20, 30, 0.55);
    border: 1px solid rgba(0, 255, 153, 0.25);
    border-radius: 3rem;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 0 60px rgba(0, 255, 153, 0.07);
    max-width: 85rem;
    width: 100%;
    overflow: hidden;
    animation: cardSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: var(--primary);
    color: #000;
    transform: rotate(90deg) scale(1.1);
}

.modal-img-wrapper {
    width: 100%;
    max-height: 55vh;
    overflow: hidden;
    border-radius: 2.5rem 2.5rem 0 0;
}

.modal-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0a0a0a;
}

.modal-caption {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 153, 0.12);
}

.modal-caption i {
    color: var(--primary);
    font-size: 2.2rem;
}

.modal-caption p {
    font-size: 1.7rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-caption strong {
    color: var(--primary);
}

.modal-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: var(--primary);
    border: 1px solid rgba(0, 255, 153, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-contact-link:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

@media (max-width: 450px) {
    .modal-glass-card { border-radius: 2rem; }
    .modal-caption { padding: 2rem 1.5rem; }
}

/* ====================================
   Skill Modal - Specific Styles
   ==================================== */
.skill-glass-card {
    max-width: 65rem;
    padding: 3.5rem;
    text-align: left;
}

.skill-modal-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.skill-modal-img {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.4);
    flex-shrink: 0;
}

.skill-modal-text {
    flex: 1;
}

.skill-modal-text h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-modal-text p {
    font-size: 1.7rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Interactivité des compétences */
.progress, .skill-chip {
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.skill-chip:hover {
    box-shadow: 0 5px 20px rgba(0, 255, 153, 0.3);
    border-color: var(--primary);
    transform: translateY(-5px);
}

@media (max-width: 650px) {
    .skill-modal-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}