body {
    margin: 0;
    padding: 0;
    font-family: 'vera_humana', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-color: #f0f0f0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 15px 15px;
}

html {
    scroll-behavior: smooth;
}

/* les fonts */

@font-face {
    font-family: 'Satoshi';
    src: url('font/Satoshi-Variable.ttf') format('truetype');
    font-weight: 650;
    font-style: normal;
}

@font-face {
    font-family: 'vera_humana';
    src: url('font/Verah___.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'vera_humana_bold';
    src: url('font/Verahb__.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

.italic {
    font-style: italic;
}

/* Page "home" */

/* nav bar */

.nav_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #bdbdbd94;
    border-bottom: solid black 2px;
    font-size: 15px;
}

#logo_me {
    height: 3em;
    background-color: rgb(255, 255, 249);
    margin-left: 10pxem;
    transition: ease 0.1s;
}

#logo_me:hover {
    transform: scale(1.1);
}

.icon {
    width: 1em;
    vertical-align: middle;
}

#nav_bar_right {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2em;
    font-size: 1.5em;
}

.link_nav_bar {
    text-decoration: none;
    color: rgb(19, 19, 19);
}

#work_nav_bar {
    background-color: rgb(255, 255, 249);
    padding: 10px 1em;
    border-radius: 99px;
    color: #ff9999;
    font-family: 'vera_humana_bold', sans-serif;

}

#work_nav_bar_div {
    transition: transform 0.2s ease;
    margin-right: 7px
}

#work_nav_bar_div:hover {
    transform: scale(1.08);
}

/* bandeau */

.bandeau {
    overflow: hidden;
    background-color: black;
    color: white;
    padding: 4px 0;
    white-space: nowrap;
    font-size: 15px;
}

.bandeau_track {
    display: inline-flex;
    gap: 4em;
    animation: scroll 20s linear infinite;
    font-family: 'Satoshi';
}

.bandeau_track span::before {
    content: "✦";
    /* séparateur décoratif, change si tu veux */
    margin-right: 4em;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* hero image */

.hero {
    position: relative;
    line-height: 0;
}

#heroimage {
    width: 100%;
    display: block;
}

#hero_content {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

#txt_heroimage {
    font-size: 150px;
    color: rgba(255, 255, 249, 0.6);
    font-family: 'Satoshi';
    margin: 0;
    white-space: nowrap;
    margin-top: 1.9em;
}

#cta_hero_image {
    background-color: rgb(255, 255, 249);
    padding: 10px 1em;
    border-radius: 99px;
    color: #ff9999;
    font-family: 'vera_humana_bold', sans-serif;
    font-size: 15px;
    border: none;
    cursor: pointer;
    margin-top: 3.5em;
    transition: transform 0.2s ease;
    font-size: 1.5em;
}

#cta_hero_image>a {
    text-decoration: none;
    color: #ff9999;
    font-size: 20px;
}

#cta_hero_image:hover {
    transform: scale(1.08);
}

#lien_cta_hero_image {
    text-decoration: none;
    color: rgb(255, 153, 153);
}

/* section présentation */

#présentation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: solid black 2px;
    background-color: #bdbdbd94;
    color: #504646;
    padding-bottom: 110px;
    padding-top: 75px;
}

#pp_moi {
    width: 15em;
    border-radius: 150px;
    border: solid white 5px;
}

#présentation-div1 {
    display: flex;
    align-items: start;
    flex-direction: column;

    font-size: 20px;

}

#italic {
    font-style: italic;
    margin-bottom: 15px;
}

#h2_présentation {
    color: #504646;
}

/* carrousel */

#section_carrousel {
    background-color: black;
    position: relative;

}


#carrousel_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    padding: 2em;
    margin-bottom: 0;
}

#titre_carroussel {
    font-size: 50px;
    margin: 0;
    flex-shrink: 0;
    position: static;
    text-shadow: 0px 0px 9px #000000;
    margin-left: 1em;
}

.carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 900px;
}

.h2_home {
    font-family: 'Satoshi';
    color: white;
    margin: 0;
    padding: 15px 0;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    max-height: 500px;
    border-radius: 5px;
}

.carousel_track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel_track img {
    min-width: 100%;
    height: 500px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: white;
}

.carousel_btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 99px;
    flex-shrink: 0;
}

.carousel_btn img {
    display: block;
    width: 2em;
}

#prev {
    left: 16px;
}

#next {
    right: 16px;
}

.carousel_dots {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    position: absolute;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: rgb(255, 255, 249);
}

.carrousel_fond {
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.divenplus {
    display: flex;
    align-items: center;
    margin-right: 10em;
}

#line_blanc_work {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom left;
}

/* la section 2 */

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


/* ── HERO ── */

.hero-inner {
    display: flex;
    min-height: 100vh;
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
    padding: 5%;
    align-items: center;
}

/* Left column */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: var(--green-accent);
    padding: 0.1em 0.35em;
}

.hero-desc {
    margin-top: 0.75rem;
    max-width: 450px;
    padding: 0.5rem;
    text-align: justify;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero-cta {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    overflow: hidden;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    border: 1px solid #000;
    border-radius: 9999px;
    background: #fff;
    color: #000;
    padding: 0.25rem 1rem 0.25rem 0.25rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.5s, color 0.5s;
}

.btn-contact:hover {
    background: #000;
    color: #fff;
}

.btn-contact:hover .btn-icon {
    background: #fff;
    color: #000;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.5s, color 0.5s;
}

/* Right column — image */
.hero-image-wrap {
    display: flex;
    width: 100%;
    max-width: 50%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-image-frame {
    position: relative;
    display: flex;
    max-height: 580px;
    min-height: 450px;
    min-width: 350px;
    max-width: 650px;
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* ── PAST WORKS ── */
.works {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 2.5rem 1.5rem;
}

.works-title {
    font-family: 'Satoshi';
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 400;
}

.works-divider {
    margin: 1rem 0;
    height: 1px;
    width: 80%;
    background: #000;
}

/* Masonry-style grid */
.works-grid {
    margin-top: 2rem;
    column-count: 3;
    column-gap: 2.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: var(--border-radius-card);
    background: var(--card-bg);
    padding: 1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    break-inside: avoid;
    width: 450px;
    margin-bottom: 2.5rem;
    background-color: rgb(255, 255, 249);
}

.card-img-wrap {
    height: 300px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.04);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Satoshi';
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-link:hover {
    text-decoration: underline;
}

/* ── ANIMATIONS ── */
.reveal-hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}

.reveal-hero-text:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-hero-text:nth-child(2) {
    animation-delay: 0.25s;
}

.reveal-hero-text:nth-child(3) {
    animation-delay: 0.4s;
}

.reveal-hero-text:nth-child(4) {
    animation-delay: 0.55s;
}

.reveal-hero-img {
    opacity: 0;
    transform: scale(0.96);
    animation: fadeIn 0.9s ease 0.3s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1280px) {
    .hero-inner {
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .hero-image-wrap {
        max-width: 100%;
    }

    .hero-image-frame {
        max-height: 320px;
        min-height: 180px;
        width: 320px;
        min-width: 320px;
    }

    .works-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }

    .card {
        width: 100%;
        max-width: 400px;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .works-grid {
        column-count: 1;
    }

    .card {
        max-width: 100%;
    }
}

/* footer */

footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #504646;
    background-color: #bdbdbd94;
    padding: 2em 4em;
}

#footer_center {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#footer_center a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    line-height: 0;
}

.icon_footer {
    width: 2em;
    height: 2em;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.icon_footer:hover {
    transform: scale(1.2);
}

footer div a:hover {
    transform: scale(1.2);
}

footer div a:hover::after {
    width: 100%;
}

.footer_fond {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#line_blanc_footer {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom left;
}

#footer_logo {
    width: 3em;
}

.icon_footer {
    width: 2em;
    margin: 25px;
}

footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#footer_left {
    justify-content: flex-start;
}

#footer_tagline {
    margin: 0;
    font-size: 0.95em;
}

.icon_footer {
    width: 2em;
    transition: transform 0.2s ease;
    display: block;
}

.icon_footer:hover {
    transform: scale(1.2);
}

#footer_right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4em;
}

#footer_right p {
    margin: 0;
    font-size: 0.85em;
}

#footer_logo {
    width: 3em;
}

#line_blanc_footer {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom right;
}

/* Pages enfants */

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    flex: 1;
}

.portfolio-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1080px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    scroll-margin-top: 80px;
}

.portfolio-card:target {
    animation: bumpEffect 0.6s ease;
}

@keyframes bumpEffect {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.03);
    }

    60% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

.image-body {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-title {
    font-family: 'Satoshi', sans-serif;
    font-weight: 500;
    margin: 0;
}

.image-desc {
    line-height: 1.6;
    color: #666;
    margin: 0;
    font-size: 15px;
}

.image-div-portfolio {
    flex: 0 0 auto;
    width: 160px;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vidéo-div-portfolio {
    flex: 0 0 auto;
    width: auto;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 100%px;
    border: none;
    display: block;
}

.image-div-portfolio:hover {
    transform: scale(1.03);
}

.card-link {
    font-family: 'vera_humana_bold';
}

.image-div-portfolio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* pour les pop up image */

.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.85);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;

    z-index: 9999;
}

.lightbox:target {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.close {
    position: absolute;
    inset: 0;
}

.compétences {
    font-style: italic;
    color: #b6b6b6;
    font-size: 15px;
}

.nav-bar-enfant {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #bdbdbd94;
    border-bottom: solid black 2px;
    font-size: 15px;
}

.page-title-enfant {
    margin-top: 2em;
    font-family: 'Satoshi';
}

/* scroll horizontal */

.portfolio-card-scrollable {
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1080px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    scroll-margin-top: 80px;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.scroll-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    flex: 1;
    padding: 5px;
}

.images-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* cache la scrollbar */
}

.images-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.scroll-btn:hover {
    transform: scale(1.1);
}

.vidéo-div-portfolio iframe {
    width: 480px;
    height: 270px;
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {

    .nav_bar {
        position: relative;
        padding: 8px 12px;
    }

    .burger {
        display: block;
    }

    #nav_bar_right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #bdbdbd94;
        border-bottom: solid black 2px;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        z-index: 999;
    }

    #nav_bar_right.open {
        display: flex;
    }

    #work_nav_bar {
        padding: 8px 1em;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    /* ── HERO ── */
    #heroimage {
        height: 60vh;
        object-fit: cover;
        object-position: center top;
    }

    #txt_heroimage {
        font-size: 2.8rem;
        margin-top: 0;
        text-align: center;
    }

    #hero_content {
        top: 65%;
        gap: 0.75rem;
        width: 90%;
    }

    #cta_hero_image {
        margin-top: 1.5rem;
    }

    .nav-bar-enfant {
        position: static;
        padding: 8px 12px;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .page-title-enfant {
        margin-top: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .main h1 {
        margin: 0.8rem 0 0.5rem 0 !important;
    }

    .main {
        padding-top: 4rem !important;
    }

    /* ── PRÉSENTATION ── */
    #présentation {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    #pp_moi {
        width: 9em;
    }

    #présentation-div1 {
        font-size: 16px;
        align-items: center;
    }

    /* ── CARROUSEL ── */
    #section_carrousel {
        padding: 1.5rem 0;
    }

    #carrousel_wrapper {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    #titre_carroussel {
        font-size: 2rem;
        text-align: center;
        margin-left: 0;
    }

    .divenplus {
        flex-direction: row;
        margin-right: 0;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .carousel {
        max-width: 85vw;
        max-height: 300px;
    }

    .carousel_track img {
        height: 300px;
    }

    .carousel_btn img {
        width: 1.5em;
    }

    /* ── WORKS GRID : 1 colonne ── */
    .works {
        padding: 1.5rem 1rem;
    }

    .works-grid {
        column-count: 1;
        width: 100%;
    }

    .card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.2rem;
    }

    .card-img-wrap {
        height: 200px;
    }

    /* ── FOOTER ── */
    footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    footer div {
        justify-content: center;
    }

    #footer_right {
        flex-direction: column;
        align-items: center;
    }

    .footer_fond {
        display: none;
    }

    /* ── PAGES ENFANTS : portfolio cards ── */

    .page-title-enfant {
        margin-top: 4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .portfolio-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .image-body {
        flex: unset;
        width: 100%;
    }

    .portfolio-card {
        flex-wrap: wrap;
    }

    .image-div-portfolio {
        width: calc(50% - 0.75rem);
    }

    .images-wrapper .image-div-portfolio {
        width: 140px;
        flex-shrink: 0;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 90vh;
    }

    .portfolio-card-scrollable {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        overflow-x: hidden;
    }

    .scroll-container {
        width: 100%;
        gap: 0.3rem;
    }

    .scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .images-wrapper .image-div-portfolio {
        width: 120px;
        flex-shrink: 0;
    }

    .vidéo-div-portfolio {
        width: 100%;
    }

    .vidéo-div-portfolio iframe {
        width: 100%;
        height: 200px;
    }

    .nav-bar-enfant .burger {
        display: block;
    }

    .nav-bar-enfant #nav_bar_right {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #bdbdbd94;
        border-bottom: solid black 2px;
        padding: 1rem 1rem;
        gap: 1.2rem;
        z-index: 999;
    }

    .nav-bar-enfant #nav_bar_right.open {
        display: flex;
    }

    .nav-bar-enfant {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }
}