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

:root {
    --grid-columns: 12;
    --grid-gap: clamp(12px, 1.5vw, 24px);
    --page-margin: clamp(24px, 5vw, 100px);
    --section-spacing-title: clamp(40px, 6vw, 100px);
    --section-spacing: clamp(25px, 3vw, 25px);
    --color-bg: #141414;
    --color-text: #f5f1ed;
    --color-muted: #9c9c9c;
    --font-serif: "Cormorant Infant", serif;
    --font-mono: "Red Hat Mono", monospace;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-serif);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
p {
    font-family: var(--font-mono);
}

nav a {
    color: #dddddd;
    text-decoration: none;
    transition: opacity 0.3s;
}

/* ==================== LAYOUT ==================== */
.container {
    margin: 0 auto;
    padding: 0 var(--page-margin);
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: var(--grid-gap);
    margin-bottom: var(--section-spacing);
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.title {
    margin-top: var(--section-spacing-title);
    margin-bottom: var(--section-spacing-title);
}

/* ==================== HERO ==================== */
.hero {
    margin-top: clamp(20px, 6vw, 100px);
    margin-bottom: clamp(20px, 6vw, 100px);
}

.hero-title {
    font-size: clamp(40px, 7vw, 100px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: clamp(8px, 1vw, 16px);
}

.hero-subtitle {
    font-size: clamp(13px, 1.3vw, 18px);
    font-weight: 400;
    font-style: italic;
    color: #666;
}

/* ==================== IMAGE CONTAINERS ==================== */
.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* background: #ff4337; */
}

/* Aspect ratios via padding-top trick */
.image-container::before {
    content: '';
    display: block;
    width: 100%;
}

.aspect-16-9::before { padding-top: 56.25%; }
.aspect-4-3::before  { padding-top: 75%; }
.aspect-1-1::before  { padding-top: 100%; }
.aspect-3-4::before  { padding-top: 133.33%; }

.image-content {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

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

/* ==================== GRADIENTS ==================== */
.gradient-1 {
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 25%, #ff8c5a 50%, #4a90e2 75%, #6a5acd 100%);
}

.gradient-2 {
    background: linear-gradient(180deg, #ff4500 0%, #ff6b35 40%, #4a90e2 70%, #2d5f8d 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #b8e6ff 0%, #a8d5ff 50%, #6ab7ff 100%);
}

/* ==================== INTRO TEXT ==================== */
.intro-text {
    font-size: clamp(2rem, 4vw, 7.5rem);
    line-height: 0.9;
    font-weight: 200;
}

/* ==================== TEXT OVERLAY ==================== */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(35px, 5.5vw, 75px);
    font-weight: 300;
    color: white;
    letter-spacing: 0.15em;
    text-align: center;
    z-index: 10;
    mix-blend-mode: difference;
}

.hero-image .image-content {
    background: linear-gradient(135deg, #1a5f7a 0%, #4a7c8f 50%, #e8b4a0 100%);
}

/* ==================== PROJECT INFO ==================== */
.project-info {
    padding: clamp(15px, 2vw, 30px) 0;
}

.project-title {
    font-size: clamp(20px, 2.5vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.2em;
    letter-spacing: -0.01em;
    font-style: italic;
}

.project-description {
    font-size: clamp(11px, 1.1vw, 14px);
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 1.5em;
}

/* ==================== STATS ==================== */
.project-stats {
    display: flex;
    gap: clamp(30px, 4vw, 60px);
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 100px;
}

.stat-number {
    font-size: clamp(20px, 4.5vw, 34px);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    margin-bottom: 0.2em;
}

.stat-label {
    font-size: clamp(9px, 0.9vw, 11px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    font-family: var(--font-mono);
}

.surtitle {
    font-family: var(--font-mono);
    margin-bottom: 1.2em;
    font-weight: 300;
    color: var(--color-muted);
    font-size: clamp(13px, 0.9vw, 17px);
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: clamp(15px, 2vw, 30px);
}

/* ==================== LARGE TEXT ==================== */
.large-text-container {
    padding: clamp(40px, 6vw, 100px) clamp(20px, 3vw, 50px);
    position: relative;
    aspect-ratio: 16 / 9;
}

.large-text {
    font-size: clamp(42px, 9vw, 140px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.large-text.dark  { color: rgba(139, 0, 0, 0.5); }
.large-text.light { color: rgba(255, 255, 255, 0.9); }

/* ==================== CONTENT CARD ==================== */
.content-card {
    background: white;
    padding: clamp(20px, 2.5vw, 40px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-size: clamp(10px, 0.95vw, 12px);
    line-height: 1.8;
    position: absolute;
    max-width: clamp(200px, 25vw, 350px);
}

.card-top-left    { top: clamp(8%, 12%, 15%);    left: clamp(5%, 6%, 8%); }
.card-bottom-left { bottom: clamp(8%, 12%, 15%); left: clamp(5%, 6%, 8%); }

/* ==================== MISC ELEMENTS ==================== */
.dark-box {
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-card {
    background: linear-gradient(135deg, #8b0000 0%, #ff4500 100%);
    width: 60%;
    height: 70%;
    border-radius: 8px;
}

.black-box {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2%;
}

.gradient-strip {
    background: linear-gradient(180deg, #ff4500 0%, #ff6b35 50%, #4a90e2 100%);
    width: 45%;
    height: 85%;
}

.centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.red-square {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #8b0000 0%, #ff4500 50%, #ff6b35 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(11px, 1.8vw, 16px);
    text-align: center;
    font-weight: 600;
    padding: 1em;
}

.white-card {
    background: white;
    padding: clamp(1em, 2vw, 1.5em);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.card-title    { font-weight: 700; font-size: clamp(13px, 1.8vw, 18px); margin-bottom: 0.5em; }
.card-subtitle { font-size: clamp(9px, 0.95vw, 11px); color: #666; }

.bottom-text {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: clamp(9px, 1.1vw, 13px);
    text-align: center;
    max-width: 80%;
}

.corner-text {
    position: absolute;
    bottom: 15%;
    right: 10%;
    font-size: clamp(9px, 0.95vw, 12px);
    font-weight: 400;
    letter-spacing: normal;
    opacity: 0.8;
}

.motion-blur {
    background: linear-gradient(90deg, #f5f1ed 0%, #fff 50%, #f5f1ed 100%);
    position: relative;
}

.blur-effect {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.photo-card {
    background: linear-gradient(135deg, #d4b5ff 0%, #e8d5ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    background: white;
    padding: clamp(1.5em, 2.5vw, 2em);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.photo-inner {
    width: clamp(60px, 8vw, 80px);
    height: clamp(80px, 10vw, 100px);
    background: linear-gradient(135deg, #8b0000 0%, #ff4500 100%);
}

/* ==================== PRODUCT ITEMS ==================== */
.product-item {
    position: relative;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-link .image-content {
    transition: transform 0.6s ease;
}

.product-link:hover .image-content {
    transform: scale(0.95);
}

.product-label {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5em 1.5em;
    font-size: clamp(9px, 0.9vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.product-bg-1 {
    background: #f5f1ed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-bg-3 {
    background: linear-gradient(180deg, #8b4513 0%, #a0522d 50%, #6b4423 100%);
}

.product-logo {
    width: 70%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: clamp(14px, 1.8vw, 22px);
    position: absolute;
}

/* ==================== FOOTER ==================== */
footer {
    padding: clamp(30px, 4vw, 60px) 0;
    text-align: center;
    font-size: clamp(9px, 0.9vw, 11px);
    color: #999;
}

/* ==================== MARQUEE ==================== */
/*
 * Fix du saut : on utilise deux copies identiques.
 * On translate de -50% sur la totalité (les 2 copies font 2x la largeur d'une copie).
 * Puisque les deux copies sont exactement identiques et se suivent,
 * à -50% on est revenu au point de départ → loop sans saut.
 */
.marquee {
    position: absolute;
    width: 100%;
    /* overflow: hidden; */
    white-space: nowrap;
    font-size: clamp(4rem, 10vw, 10rem);
    color: white;
    font-weight: bold;
    pointer-events: none;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
    will-change: transform;
}

.marquee-track .content {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: 200;
    flex-shrink: 0;
}

.marquee-track span {
    padding: 0 0.6rem;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ==================== NEXT CASE ==================== */
#next-case {
    margin-top: 10rem;
    position: relative;
}

.next-img {
    grid-column: 5 / 9;
}

/* ==================== CURSOR ==================== */
* { cursor: none !important; }

.cursor {
    width: 2rem;
    height: 2rem;
    /* width: 3rem;
    height: 3rem; */
    background: white;
    border: 1px solid white;
    border-radius: 50%;
    position: fixed;
    left: 0;
    top: 0;
    margin-left: -1.5rem;
    margin-top: -1.5rem;
    pointer-events: none;
    /* mix-blend-mode: difference; */
    z-index: 1001;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.link-grow {
    background: transparent !important;
    border-color: white;
}

.cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.link-grow::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Masquer le cursor custom sur les appareils tactiles */
@media (pointer: coarse) {
    * { cursor: auto !important; }
    .cursor { display: none; }
}

/* ==================== DOT ==================== */
.dot {
    position: fixed;
    width: 45px;
    height: 45px;
    top: -1em;
    left: -1em;
    fill: #f368e0;
    opacity: 0;
    transform: scale(0);
    transform-origin: 50% 50%;
    user-select: none;
    pointer-events: none;
    z-index: 99;
    mix-blend-mode: difference;
}

/* ==================== TAB BAR ==================== */
.tab-bar {
    position: fixed;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 10px 40px rgb(47 47 47 / 5%);
    backdrop-filter: blur(30px);
    background-color: rgb(94 94 94 / 20%);
    width: clamp(250px, 20%, 400px);
    border-radius: 10px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.tab-bar.hidden {
    opacity: 0;
    visibility: hidden;
}

.nav-list {
    display: flex;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    list-style: none;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    transition: all 0.3s ease;
}

.nav-link {
    display: block;
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    font-weight: 400;
    white-space: nowrap;
    font-family: var(--font-mono);
    mix-blend-mode: difference;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
}

.nav-active {
    background-color: var(--color-dark);
}

.nav-active .nav-link {
    color: #f9f9f9;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .col-md-6  { grid-column: span 6; }
    .col-md-12 { grid-column: span 12; }
}

@media (max-width: 768px) {
    :root {
        --grid-columns: 6;
        --page-margin: 20px;
    }

    .col-sm-6 { grid-column: span 6; }
    .col-sm-3 { grid-column: span 3; }

    .next-img {
        grid-column: 2 / 6;
    }

    .tab-bar {
        width: 90%;
        max-width: 350px;
    }
}

/* START ANIM */
.headerImg {
/* margin-top: -20rem; */
/* scale: 1.2; */
left: 0px;
top: 0px;
z-index: 100;
animation-name: dropHeaderL;
animation-iteration-count: 1;
animation-timing-function: ease-out;
animation-duration: 0.7s;
animation-delay: 0s;
}
@keyframes dropHeaderL {
0% {transform: translateY(-23%); scale: 1.2;}
100% {-moz-transform: translateY(0); scale: 1;}
}
@keyframes dropHeaderL {
0% {transform: translateY(-23%); scale: 1.2;}
100% {transform: translateY(0); scale: 1;}
}

@media (max-width: 1024px) {
.marquee {
    overflow-x: hidden;
}
}

@media (max-width: 768px) {
  .marquee {
      overflow-x: hidden;
  }
  }
