body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    color: #f5f5f5;
    overflow-x: hidden;
}
#loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
    /* Texte */
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: larger;
}

.loader-text::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
    font-size: larger;
}

.spinner {
    border: 8px solid #eee;
    border-top: 8px solid #ff6b00;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.spinner-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

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

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
  }

body.loaded #loader {
    opacity: 0;
    visibility: hidden;
}
header, section, footer {
    padding: 10px 20px; /* Avant c'était 60px */
    max-width: 1000px;
    margin: auto;
    position: relative;
}
.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #1a1a1a;
    border-bottom: 5px solid #ff6b00;
}

.banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    opacity: 0.6;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f5f5f5;
}

.banner-text h1 {
    font-size: 2.8em;
    margin: 0;
    color: #ff6b00;
}

.banner-text p {
    font-size: 1.5em;
    margin-top: 10px;
    color: #ffffff;
}

nav {
    background: #000;
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
nav a {
    color: #ff6b00;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ff4500;
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background-color: #ff6b00;
    border-radius: 2px;
}
.nav-links {
    display: flex;
    gap: 20px;
}

.overlay-burger {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 8;
}
.overlay-burger.active {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3 {
    color: #ff6b00;
}
h2{
    font-size: xx-large;
}
p{
    font-size: large;
}
.intro {
    text-align: center;
}
.intro img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px;
    box-shadow: 0px 4px 20px rgba(255, 107, 0, 0.5);
    transition: transform 0.3s ease;
}
.intro img:hover {
    transform: scale(1.1);
}
.skills, .experience, .reflection, .references, .contact {
    margin-top: 40px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* centrage vertical */
    gap: 30px;
    padding: 40px 0;
}

.skill-card {
    width: 120px; /* plus large */
    height: 120px; /* plus haut pour centrer verticalement */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
  
.skill-card:hover {
transform: translateY(-8px);
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
  
.skill-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.skill-card p {
    margin: 0;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #f5f5f5;
}

.skills h3{
    text-align: center;
    margin-bottom: 0;
    font-size: x-large;
}

section {
    background: #1e1e1e;
    margin-bottom: 40px;
    border-radius: 20px;
    box-shadow: 0px 4px 20px rgba(255, 69, 0, 0.2);
    animation: fadeInUp 1s ease;
}
.project {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    background: #161616;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.project:hover {
    transform: translateY(-5px);
}
.project-media {
    width: 220px;
    height: 140px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
}
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
.project-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.project-description h3 {
    margin: 0;
    color: #ff6b00;
}
.project-description p {
    margin-top: 5px;
    color: white;
}
.video-container {
    position: relative;
    width: 200px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    background: #cbd5e0;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
footer {
    text-align: center;
    font-size: 0.9em;
    color: #aaa;
    padding-bottom: 20px;
}
.btn {
    background: #ff6b00;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.btn:hover {
    background: #ff4500;
    transform: scale(1.05);
}
.shape {
    position: absolute;
    background: rgba(255, 107, 0, 0.15);
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}
.shape.small {
    width: 100px;
    height: 100px;
}
.shape.medium {
    width: 150px;
    height: 150px;
}
.shape.large {
    width: 200px;
    height: 200px;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media screen and (max-width: 768px) {
    h2, h3, p{
        text-align: center;
    }
    
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: #000;
        text-align: center;
        gap: 10px;
        padding: 10px 0;
        z-index: 9;
    }
    .nav-links.active {
        display: flex !important;
    }
    .burger {
        display: flex;
    }
    .project-media {
        width: 100vw;
        max-width: 400px;
        height: 220px;
        margin: 0 auto 16px auto;
        border-radius: 18px;
        overflow: hidden;
        background: #181818;
        box-shadow: 0 8px 24px rgba(255,107,0,0.18), 0 1.5px 8px rgba(0,0,0,0.12);
    }
    .project-media img,
    .project-media video,
    .project-media iframe {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px;
        display: block;
    }
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        background: #000;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 10px;
        border: 1px solid #ff6b00;
        border-radius: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    nav {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
    }
    nav > div:last-child {
        display: flex;
        flex-direction: column;
    }
    nav a {
        margin: 10px 0;
    }
    .banner-text h1 {
        font-size: 1.8em;
    }
    .banner-text p {
        font-size: 1em;
    }
    .skills-grid {
        gap: 15px;
    }
    .skill-card {
        width: 90px;
        height: 90px;
        padding: 10px;
    }
    .skill-card img {
        width: 60px;
        height: 60px;
    }
    .project {
        flex-direction: column;
        align-items: flex-start;
    }
    .project-media,
    .project-description {
        width: 100%;
    }
    .intro img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }
    header, section, footer {
        padding: 10px 10px;
    }
    h2 {
        font-size: 1.5em;
    }
    p {
        font-size: 1em;
    }
    .project-media {
        height: 160px;
        max-width: 98vw;
    }
}