/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-green: #CCCC65;
    --color-pink: #F299C1;
    --color-yellow: #FDCC68;
    --color-violet: #9999CC;
    --color-orange: #F39669;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-star: #8F7FD1;
    --font-text: 'Poppins', sans-serif;
    --font-title: 'TitleFont', 'Poppins', sans-serif;
    --nav-font-size: clamp(17px, 1.1806vw, 30px);
    --side-padding-mobile: 32px;
    --side-padding-desktop: 90px;
    --max-content-width: 1728px;
}

@font-face {
    font-family: 'TitleFont';
    src: url('../fonts/Yourbold-Demo.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-text);
    color: var(--color-black);
    background: var(--color-white);
    overflow-x: hidden;
    line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--side-padding-mobile);
}

.empty-msg {
    padding: 40px;
    color: #999;
    font-style: italic;
}

.page-wrapper { position: relative; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: relative; z-index: 50; background: var(--color-white); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--side-padding-mobile);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}
.header-tag { font-size: var(--nav-font-size); font-weight: 400; }
.main-nav { display: none; gap: 38px; font-size: var(--nav-font-size); }

.burger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--color-black); display: block; }

.mobile-nav { display: none; flex-direction: column; background: var(--color-white); padding: 0 var(--side-padding-mobile) 24px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid #eee; font-size: var(--nav-font-size); }

@media (min-width: 1024px) {
    .header-inner { padding: 18px var(--side-padding-desktop); }
    .main-nav { display: flex; }
    .burger { display: none; }
    .mobile-nav { display: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; }

.hero-bg { position: relative; z-index: 0; width: 100%; }
.hero-bg-img { width: 100%; height: auto; display: block; }

.hero-sticker { position: absolute; z-index: 3; width: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.1)); }
.sticker-1 { top: 10%; right: 20%; }
.sticker-2 { top: 18%; right: 8%; }

.hero-content { position: absolute; top: 0; left: 0; width: 100%; z-index: 2; padding: 100px var(--side-padding-mobile) 70px; }

.hero-title {
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-text { max-width: 480px; font-size: 15px; }

@media (min-width: 768px) {
    .hero-content { padding: 140px var(--side-padding-desktop) 90px; }
    .hero-title { font-size: clamp(72px, 5vw, 128px); }
    .hero-text { font-size: clamp(18px, 1.25vw, 32px); max-width: 560px; }
    .hero-sticker { width: 56px; }
}

.btn-hero-wrap {
    position: absolute;
    left: var(--side-padding-mobile);
    right: var(--side-padding-mobile);
    bottom: -24px;
    z-index: 5;
}
.btn-primary.btn-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: var(--color-violet);
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    color: var(--color-black);
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
}
.arrow-down { font-size: 15px; line-height: 1; }

@media (min-width: 768px) {
    .btn-hero-wrap { left: var(--side-padding-desktop); right: var(--side-padding-desktop); bottom: -27px; }
    .btn-primary.btn-hero { padding: 16px 28px; font-size: clamp(17px, 1.1806vw, 30px); gap: 14px; border-radius: 60px; }
    .arrow-down { font-size: clamp(18px, 1.25vw, 32px); }
}

/* ==========================================================================
   ZONE ENTRE LE HERO ET LE FOOTER
   ========================================================================== */
.main-content-wrap { position: relative; }

.decor-star-edge {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-star);
    -webkit-mask-image: url('../img/star.svg');
    mask-image: url('../img/star.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    opacity: .85;
    z-index: 1;
}
.decor-star-top { top: 14px; }
.decor-star-bottom { bottom: 14px; }

@media (min-width: 768px) {
    .decor-star-edge { width: 26px; height: 26px; }
    .decor-star-top { top: 22px; }
    .decor-star-bottom { bottom: 22px; }
}

/* ==========================================================================
   SECTIONS GENERIQUES
   ========================================================================== */
.section { position: relative; z-index: 2; padding: 48px 0; background: transparent; }
.section-label { display: inline-block; font-weight: 800; font-size: 18px; margin-bottom: 24px; }

@media (min-width: 768px) {
    .section { padding: 72px 0; }
    .section-label { font-size: clamp(24px, 1.667vw, 43px); margin-bottom: 40px; }
}

/* ==========================================================================
   CAROUSEL PROJETS
   ========================================================================== */
.carousel-wrap {
    position: relative;
    padding: 0 var(--side-padding-mobile);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

.carousel-track {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.project-card-wrap {
    display: flex;
    flex-direction: column;
    flex: 0 0 220px;
    scroll-snap-align: start;
    cursor: pointer;
}

.project-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 23px;
    overflow: hidden;
    transition: transform .2s ease;
}
.project-card-wrap:hover .project-card { transform: translateY(-4px); }
.project-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.project-title-line {
    margin-top: 16px;
    padding-top: 0;
    padding-bottom: 8px;
    border-top: none;
    border-bottom: 1px solid var(--color-black);
}
.project-title-item { font-weight: 600; font-size: 15px; text-transform: uppercase; }

.carousel-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 3;
    font-size: clamp(16px, 1.111vw, 28px);
}
.arrow-left { left: 6px; }
.arrow-right { right: 6px; }

@media (min-width: 768px) {
    .carousel-wrap { padding: 0 var(--side-padding-desktop); }
    .carousel-track { gap: 30px; }
    .project-card-wrap { flex: 0 0 360px; }
    .project-card { height: 460px; }
    .project-title-line { margin-top: 20px; padding-top: 0; padding-bottom: 10px; }
    .project-title-item { font-size: clamp(20px, 1.389vw, 36px); }
    .carousel-arrow { width: 52px; height: 52px; }
    .arrow-left { left: 14px; }
    .arrow-right { right: 14px; }
}

/* ==========================================================================
   GRILLE PHOTOS
   ========================================================================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 16px;
    padding: 0 var(--side-padding-mobile);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

.photo-card-wrap {
    position: relative;
    cursor: pointer;
    height: 100%;
    border-radius: 23px;
}

.photo-card-wrap.bento-big { grid-row: span 2; }
.photo-card-wrap.bento-wide { grid-column: span 2; }

.photo-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 23px;
    overflow: hidden;
}
.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    pointer-events: none;
}
.photo-card-wrap:hover .photo-card img { transform: scale(1.05); }

.photo-card-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    border-radius: 23px;
    transition: background .25s ease;
    z-index: 1;
    pointer-events: none;
}
.photo-card-wrap:hover::before { background: rgba(0,0,0,.45); }

.photo-card-wrap::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .4px;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.photo-card-wrap:hover::after { opacity: 1; }

@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 24px;
        padding: 0 var(--side-padding-desktop);
    }
    .photo-card-wrap::after { font-size: clamp(18px, 1.25vw, 32px); }
}

@media (min-width: 1024px) {
    .photo-grid { grid-auto-rows: 240px; }
}

/* ==========================================================================
   A PROPOS
   ========================================================================== */
.about-grid {
    display: block;
    position: relative;
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--side-padding-mobile);
}
.about-text { max-width: 480px; margin: 16px 0 24px; font-size: 15px; }
.btn-pill { display: inline-block; padding: 14px 28px; border-radius: 40px; font-weight: 600; font-size: clamp(14px, 0.972vw, 25px); }
.btn-yellow { background: var(--color-yellow); }

.skills-wrap { margin-top: 32px; }
.skills-list { margin: 0; }
.skills-list li { padding: 26px 0; border-bottom: 2px solid var(--color-yellow); font-weight: 500; font-size: 15px; }

@media (min-width: 1024px) {
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 0 var(--side-padding-desktop); }
    .about-text { font-size: clamp(18px, 1.25vw, 32px); }
    .skills-wrap { margin-top: 0; width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
    .skills-list li { font-size: clamp(18px, 1.25vw, 32px); padding: 20px 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { position: relative; }
.footer-media { position: relative; width: 100%; }
.footer-bg-img { width: 100%; height: auto; display: block; }

.footer-sticker { position: absolute; width: 40px; z-index: 2; filter: drop-shadow(0 4px 8px rgba(0,0,0,.1)); }
.sticker-a { top: 8%; left: 38%; }
.sticker-b { top: 14%; left: 55%; }

.footer-content-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.footer-title {
    font-family: var(--font-title);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-size: 44px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { border-bottom: 2px solid transparent; }
.footer-links a:hover { border-color: var(--color-black); }

@media (min-width: 768px) {
    .footer-title { font-size: clamp(88px, 6.111vw, 156px); margin-bottom: 40px; }
    .footer-links { font-size: clamp(20px, 1.389vw, 36px); gap: 40px; }
}

/* ==========================================================================
   MODAL PROJET
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}
.modal-overlay.open { display: flex !important; }

.modal-project {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    max-width: 680px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.modal-media {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-green);
}

@media (min-width: 768px) {
    .modal-media { height: 360px; }
}

.modal-media-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.modal-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
}
.modal-slide.active { opacity: 1; }
.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-nav {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    z-index: 2;
    font-size: 17px;
    flex-shrink: 0;
}

.modal-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.modal-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    transition: all .25s ease;
}
.modal-dots span.active {
    width: 22px;
    height: 7px;
    border-radius: 4px;
    background: var(--color-white);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.modal-body-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.modal-body-head h3 {
    font-family: var(--font-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 22px;
}

.modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--color-white);
    flex-shrink: 0;
}

.modal-body p {
    font-size: 15px;
    margin-bottom: 20px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}
.modal-body hr { border: none; border-top: 1px solid #eee; margin-bottom: 16px; }

.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.modal-tags span { color: var(--color-violet); font-weight: 500; }
.modal-tags span:not(:last-child)::after { content: ''; margin-left: 8px; color: #ccc; }

/* ==========================================================================
   MODAL PHOTOSET
   ========================================================================== */
.modal-photoset {
    background: var(--color-white);
    border-radius: 32px;
    padding: 32px;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.modal-photoset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.modal-photoset-header h3 {
    font-family: var(--font-text);
    font-weight: 700;
    font-size: 26px;
    color: var(--color-black);
    margin: 0;
    text-transform: none;
}

.modal-photoset-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #E0E0E0;
    background: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
    flex-shrink: 0;
}
.modal-photoset-close:hover { background: #F5F5F5; }

.modal-photoset-body {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-photoset-viewport {
    width: 100%;
    overflow: hidden;
}

.modal-photoset-track {
    display: flex;
    transition: transform .35s ease;
}

.modal-photoset-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.modal-photoset-page img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: transform .15s ease;
}
.modal-photoset-page img:hover { transform: scale(1.03); }

.photoset-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid #E0E0E0;
    font-size: 16px;
    flex-shrink: 0;
    transition: opacity .15s ease;
}
.photoset-nav:first-child {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.photoset-nav:last-child {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}
.photoset-nav:disabled,
.photoset-nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.photoset-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.photoset-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all .25s ease;
}
.photoset-dots span.active {
    width: 22px;
    height: 8px;
    border-radius: 4px;
    background: var(--color-black);
}

@media (max-width: 600px) {
    .modal-photoset-page { grid-template-columns: repeat(2, 1fr); }
    .modal-photoset { padding: 24px; }
    .photoset-nav { width: 36px; height: 36px; font-size: 14px; }
}

/* ==========================================================================
   LIGHTBOX PHOTOS
   ========================================================================== */
#photoLightbox {
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-direction: row;
    gap: 24px;
}
#photoLightbox img { max-width: 80vw; max-height: 85vh; object-fit: contain; border-radius: 12px; }
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    font-size: 16px;
    z-index: 2;
}
.lightbox-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: none;
    font-size: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   LIGHTBOX  mdia + compteur
   ========================================================================== */
.lightbox-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.lightbox-counter {
    display: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    background: rgba(0,0,0,.35);
    padding: 4px 16px;
    border-radius: 20px;
}
