:root {
    --bg-dark: #0a0a0b;
    --bg-panel: rgba(20, 25, 30, 0.7);
    --accent: #03bcff;
    --accent-glow: rgba(3, 188, 255, 0.3);
    --text-main: #f1f1f7;
    --text-muted: #c7c7c7;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
}

section a, .bio-text a {
    text-decoration: none; 
    color: inherit;     
    cursor: pointer;     
}

section a:hover {
    color: var(--accent); 
}

a {
    text-decoration: none !important; 
    color: inherit !important;       
}

a:visited {
    color: inherit !important;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 1000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: slideDown 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 15px;
}
.notification.success {
    background-color: #10b981; 
    color: white;
}
.notification.error {
    background-color: #ef4444; 
    color: white;
}
.close-btn {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
}

@keyframes slideDown {
    from { top: -100px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

#nav_princip {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); 
}

.link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

header {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#showreel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-dark));
    z-index: 0;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

#titre {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#titre2 {
    font-size: 2rem;
    font-weight: 300;
    margin-top: -10px;
    color: var(--text-muted);
}

.subtitle {
    margin-top: 20px;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-main);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}
.section-title.center {
    text-align: center;
    border-left: none;
}

#myself {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px;
    margin: 100px 0;
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
}

#etan {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.bio-text p {
    font-size: 1.1rem;
    color: #ddd;
}

.skills-section {
    margin: 100px 0;
    overflow: hidden; 
}

.slider {
    height: 150px;
    margin: auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
}

.slide-track {
    display: flex;
    width: calc(250px * 10); 
    animation: scroll 20s linear infinite;
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.slide img {
    max-height: 80px;
    min-height: 70px;
    filter: brightness(90%); 
    transition: filter 0.3s;
}

.slide:hover img {
    filter: brightness(130%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } 
}

#projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 100px;
}

.card {
    background: var(--bg-panel);
    border-radius: 15px;
    overflow: hidden;
    width: 300px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 5px;
    color: var(--accent);
}

#formulaire {
    background: var(--bg-panel);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 800px;
    margin: 0 auto 100px auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.input-group {
    flex: 1;
    margin-bottom: 20px;
}

.full-width {
    width: 100%;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.etoile { color: var(--accent); }

input, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.travail_mmi{
    width: 50% !important;
}

#boutton {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.1s;
}

#boutton:hover {
    background: white;
}

footer {
    padding: 40px;
    background: #050505;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.link-small {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.social-icon img {
    height: 30px;
    filter: invert(1);
}

.footer-section {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-download {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
}

.cv-download:hover {
    background: rgba(3, 188, 255, 0.1);
    transform: scale(1.05);
}

.cv-icon {
    font-size: 1.5rem;
}

.cv-text {
    text-decoration: none;
}

.back-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.back-to-top:hover {
    color: var(--accent);
}

.arrow-icon {
    height: 15px;
    width: 15px;
    display: block;
    object-fit: contain;
    filter: invert(0.3) sepia(1) saturate(5) hue-rotate(-10deg) brightness(1.1);
    transition: filter 0.3s ease;
}

.back-to-top:hover .arrow-icon {
    filter: invert(0.2) sepia(1) saturate(6) hue-rotate(-15deg) brightness(1.2);
    transform: translateY(-3px);
}

.top-text {
    text-decoration: none;
}

@media (max-width: 768px) {
    #titre { font-size: 3rem; }
    #myself { flex-direction: column; text-align: center; padding: 30px; }
    .form-row { flex-direction: column; gap: 0; }
    #nav_princip { gap: 15px; font-size: 0.8rem; }
}