
/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   GLOBAL
========================= */
body {
    font-family: "Inter", Arial, sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    
}


h1, h2, h3 {
    font-weight: 600;
}

section {
    padding: 80px 10%;
}

/* =========================
   HEADER
========================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 10%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* NAV */
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #aaa;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    color: #fff;
}

/* CV BUTTON */
.cv-btn {
    padding: 6px 14px;
    background: #ffffff;
    color: #000;
    border-radius: 20px;
    font-weight: 500;
}

/* =========================
   HERO (BACKGROUND IMAGE)
========================= */
.hero {
    flex: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;

    background: url("images/green.jpg") center/cover;
}

/* Overlay sombre */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.4)
    );
}

/* Texte */
.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 3rem;
    line-height: 1.2;
}

.hero-text p {
    margin-top: 15px;
    color: #ccc;
}

/* Boutons */
.hero-buttons {
    margin-top: 25px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Bouton principal */
.btn {
    background: #ffffff;
    color: #000;
}

/* Bouton secondaire */
.btn.secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    margin-left: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================
   PROJETS
========================= */
#projets h2 {
    margin-bottom: 40px;
}

.projet {
    background: #1a1a1a;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    transition: 0.3s;
    
}

.projet:hover {
    transform: translateY(-5px);
}

.contexte {
    color: #888;
    font-size: 0.9rem;
}

.desc {
    margin-top: 10px;
}

/* TAGS */
.tags {
    margin-top: 10px;
}

.tags span {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 0 0;
    border-radius: 20px;
    font-size: 0.75rem;
}


.card:hover {
    transform: translateY(-5px);
}

/* =========================
   COULEURS COMPETENCES
========================= */
.c1 { background-color: #1f3b73; }   /* Comprendre */
.c2 { background-color: #2e7d32; }   /* Concevoir */
.c3 { background-color: #f9a825; color: #000; } /* Exprimer */
.c4 { background-color: #c62828; }   /* Développer */
.c5 { background-color: #6a1b9a; }   /* Entreprendre */

/* =========================
   CONTACT
========================= */
#contact {
    text-align: center;
}

#contact p {
    margin-top: 10px;
    color: #bbb;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #777;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    header {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        height: 80vh;
        text-align: center;
        justify-content: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .btn.secondary {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
}



/* GALERIE */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.paragraphe {
     background: #1a1a1a;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    transition: 0.3s;
}

.titre {
    padding-top: 2.5%;
    padding-bottom: 2.5%;
}

.contexte {
    color: white;
}

.ac {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #aaa;
    opacity: 0.8;
}

.paragraphe-img {
    margin-top: 15px;
    text-align: center;
}

.paragraphe-img img {
    width: 100%;
    max-height: 500px;
    object-fit:contain ;
    border-radius: 10px;
    transition: 0.3s;
}

.paragraphe-img img:hover {
    transform: scale(1.02);
}

/* légende */
.caption {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #aaa;
}

.carousel {
    position: relative;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.carousel img,
.carousel video {
    width: 100%;
    max-height: 500px;
    object-fit:contain ;
}

/* boutons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 5px;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}