*,
::before,
::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    z-index: 1000;
}

.navbar {
    width: 100%;
    padding: 16px 12px 8px 12px;
    background-color: white;
    display: flex;
    flex-direction: row;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    align-items: center;
}

.menu {
    display: flex;
    gap: 48px;
    list-style: none;
    margin-left: 32px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.items a {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    padding-bottom: 4px;
}

.items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: black;
    transition: width 0.25s ease;
}

.items a:hover::after,
.items a.active::after {
    width: 100%;
}

.btn-margin-left {
    margin-left: auto;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: "inter", sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 0;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.dark::before {
    background-color: white;
}

.dark:hover {
    color: black;
}

.light::before {
    background-color: black;
}

.light:hover {
    color: white;
}

.white::before {
    background-color: white;
}

.white:hover {
    color: black;
}

.dark {
    background-color: black;
    color: white;
}

.light {
    background-color: white;
    color: black;
}

.white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* ===== HERO WRAPPER ===== */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 95vh;
    overflow: hidden;
}

.gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 24px;
    bottom: 88px;
    left: 32px;
    max-width: 779px;
    color: white;
    font-family: "Inter", sans-serif;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== TYPOGRAPHY ===== */
.title {
    font-family: "Playfair Display", serif;
    font-size: 64px;
    font-weight: 300;
    margin: 0;
}

.italic {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
}

.btn-container {
    display: flex;
    gap: 24px;
}

/* ===== ABOUT ME ===== */
.about-me {
    padding: 64px 32px;
}

.top-content {
    max-width: 450px;
    padding-bottom: 88px;
}

.label {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    color: grey;
}

.picture {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    display: flex;
    gap: 216px;
    padding-right: 176px;
}

.img {
    width: 300px;
}

.right-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.top-paragraphe {
    font-size: 32px;
}

.bottom-paragraphe {
    font-size: 24px;
}

.gras {
    font-weight: 500;
}

/* ===== CAROUSEL ===== */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 40px 20px;
}

.top-project {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    font-family: "playfair display", serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 400;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.carousel-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 32px;
}

.carousel-track {
    display: flex;
    cursor: grab;
    user-select: none;
    will-change: transform;
    gap: 16px;
}

.carousel-track.grabbing {
    cursor: grabbing;
}

.card {
    flex: 0 0 25vw;
    min-width: 260px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
}

.card[data-index="0"] .card-image {
    background-image: url(Ressources-IMG/Mockup/01.png);
    background-size: cover;
    background-position: center;
}

.card[data-index="1"] .card-image {
    background-image: url(Ressources-IMG/Mockup/02.png);
    background-size: cover;
    background-position: center;
}

.card[data-index="2"] .card-image {
    background-image: url(Ressources-IMG/Mockup/03.png);
    background-size: cover;
    background-position: center;
}

.card[data-index="3"] .card-image {
    background-image: url(Ressources-IMG/photos/06.jpg);
    background-size: cover;
    background-position: center;
}

.card-caption {
    padding: 14px 16px 24px 0;
}

.card-description {
    font-family: 'playfair display', serif;
    font-size: 24px;
    font-weight: 200;
    color: black;
    margin-bottom: 8px;
}

.card-name {
    font-family: "inter", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: grey;
}

.carousel-hint {
    width: 100%;
    height: 1px;
}

/* ===== FOOTER ===== */
.footer {
    padding-top: 80px;
    border-top: 1px solid #eee;
    overflow: hidden;
}

.footer-headline {
    font-size: 3.5rem;
    font-weight: 300;
    color: #888;
    padding: 0 5%;
    padding-top: 116px;
    margin-bottom: 80px;
}

.footer-headline em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #000;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 5%;
    padding-top: 56px;
    margin-bottom: 60px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.column {
    font-family: "inter", sans-serif;
    list-style: none;
    margin-left: 32px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.items-footer {
    display: inline-block;
    text-decoration: none;
    line-height: 1.6;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    color: inherit;
}

.items-footer:hover {
    border-bottom: 1px solid currentColor;
}

.items.linkedin {
    text-decoration: none;
    color: inherit;
    cursor: url('Ressources-IMG/Linkedin.png') 0 0, pointer;
}

.marquee-container {
    width: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: scroll 20s linear infinite;
    min-width: max-content;
}

.marquee-content span {
    font-family: "Inter", sans-serif;
    font-size: 8rem;
    font-weight: 400;
    text-transform: uppercase;
    padding-right: 50px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ==========================================================
   REVEAL — animations d'apparition
   ========================================================== */

/* Scroll reveal — toutes sections */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

/* Hero — caché au départ, déclenché par JS après le loader */
.hero-title,
.hero-sub,
.hero-btns {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* État visible */
.reveal.is-visible,
.hero-title.is-visible,
.hero-sub.is-visible,
.hero-btns.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   RESPONSIVE — TABLETTE  (max-width: 1024px)
   ========================================================== */
@media (max-width: 1024px) {

    /* Navbar */
    .menu {
        gap: 24px;
        margin-left: 16px;
    }

    /* Hero */
    .hero {
        left: 24px;
        right: 24px;
        max-width: calc(100% - 48px);
        bottom: 64px;
    }

    .title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* About */
    .picture {
        gap: 64px;
        padding-right: 0;
    }

    .img {
        width: 240px;
    }

    .top-paragraphe {
        font-size: 24px;
    }

    .bottom-paragraphe {
        font-size: 20px;
    }

    /* Carousel */
    .card {
        flex: 0 0 35vw;
    }

    /* Footer */
    .footer-headline {
        font-size: 2.5rem;
        padding-top: 80px;
        margin-bottom: 48px;
    }

    .marquee-content span {
        font-size: 6rem;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE  (max-width: 768px)
   ========================================================== */
@media (max-width: 768px) {

    /* --- Navbar --- */
    .navbar {
        padding: 12px 16px;
        flex-wrap: nowrap;
        gap: 0;
        align-items: center;
    }

    .menu {
        gap: 16px;
        margin-left: 0;
        font-size: 12px;
        flex-shrink: 1;
        min-width: 0;
    }

    .btn-margin-left {
        margin-left: auto;
        flex-shrink: 0;
        padding-left: 12px;
    }

    /* On réduit le bouton Contact sur mobile */
    .btn {
        padding: 10px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* --- Hero --- */
    .hero-wrapper {
        height: 100svh;
    }

    .hero {
        left: 20px;
        right: 20px;
        bottom: 48px;
        max-width: 100%;
        gap: 20px;
    }

    .title {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
    }

    .btn-container {
        flex-direction: column;
        gap: 12px;
    }

    /* --- About Me --- */
    .about-me {
        padding: 48px 20px;
    }

    .top-content {
        max-width: 100%;
        padding-bottom: 48px;
    }

    .picture {
        flex-direction: column;
        gap: 32px;
        padding-right: 0;
    }

    .img {
        width: 100%;
        max-width: 300px;
    }

    .right-content {
        gap: 24px;
    }

    .top-paragraphe {
        font-size: 20px;
        line-height: 1.4;
    }

    .bottom-paragraphe {
        font-size: 17px;
        line-height: 1.5;
    }

    /* --- Carousel --- */
    .section-header {
        padding: 24px 20px 16px;
    }

    .section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .carousel-outer {
        padding-top: 16px;
    }

    .card {
        flex: 0 0 72vw;
        min-width: 220px;
        max-width: 320px;
    }

    .card-description {
        font-size: 18px;
    }

    /* --- Footer --- */
    .footer-headline {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding-top: 64px;
        margin-bottom: 32px;
        line-height: 1.3;
    }

    .footer-columns {
        flex-direction: column;
        gap: 28px;
        padding-top: 32px;
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: 40px;
    }

    .column {
        margin-left: 0;
    }

    .marquee-content span {
        font-size: 3.5rem;
    }
}

/* ==========================================================
   RESPONSIVE — PETIT MOBILE  (max-width: 400px)
   ========================================================== */
@media (max-width: 400px) {

    .menu {
        gap: 12px;
        font-size: 12px;
    }

    .title {
        font-size: 28px;
    }

    .card {
        flex: 0 0 85vw;
    }

    .footer-headline {
        font-size: 1.4rem;
    }

    .marquee-content span {
        font-size: 2.5rem;
    }
}