@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');

/* ==========================================================================
   1. FONTS & TYPOGRAPHIE
   ========================================================================== */
@font-face {
  font-family: "Manosque";
  src: url("./assets/fonts/Manosque/Manosque-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Glacier";
  src: url("./assets/fonts/Glacier/Glacier-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

.krona-one-regular {
  font-family: "Krona One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.archivo {
  font-family: "Archivo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

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

:root {
  --font-ui: "Manosque", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg: #f5f6f3;
  --ink: #1a1a1a;
  --muted: #7a7a78;
  --bg-color: #0b0d12;
  --text-main: #f3f4f6;
  --accent-cyan: #00f2fe;
  --accent-purple: #4facfe;
  --glow-color: rgba(0, 242, 254, 0.4);
  --g: 10px;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: var(--bg);
  overscroll-behavior: none;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   PRELOADER (ÉCRAN DE CHARGEMENT)
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: var(--ink);
  color: var(--bg);
  z-index: 99999; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  font-family: var(--font-title);
  user-select: none;
  pointer-events: all;
}

.preloader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.preloader-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-counter {
  font-size: clamp(4.5rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  font-variant-numeric: tabular-nums; 
}

.preloader-bottom {
  width: 100%;
}

.preloader-bar-container {
  width: 100%;
  height: 2px;
  background-color: rgba(245, 246, 243, 0.15);
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--bg);
}

@media (max-width: 768px) {
  .preloader {
    padding: 20px;
  }
  .preloader-top {
    font-size: 10px;
  }
}
/* ==========================================================================
   3. NAVIGATION & EN-TÊTE (HEADER, LANGUES, MENU, BURGER)
   ========================================================================== */


.header-top-container {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 1000;
}

.header-top-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.header {
  text-decoration: none;
  color: var(--ink);
}

.header.top {
  font-family: var(--font-title);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.langue {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.langue button {
  background: transparent;
  border: none;
  font-family: var(--font-title);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.langue button:hover {
  opacity: 0.6;
}

.main-nav {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title {
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}

.active-nav {
  color: #1a73e8 !important;
}


.rolling-text {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  overflow: hidden;
  color: var(--ink);
}

.rolling-text a {
  text-decoration: none;
  color: inherit;
  display: block;
}


.burger-btn {
  display: none;
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1002;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink, #1a1a1a);
  transition: all 0.3s ease;
}

.menu-open .burger-btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .burger-btn span:nth-child(2) { opacity: 0; }
.menu-open .burger-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   4. VUE ACCUEIL (TITRE CENTRAL SCRAMBLE)
   ========================================================================== */
.container {
  text-align: center;
  will-change: transform, opacity;
}

.scramble-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: -2px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}

.scroll-hint {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.25s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

.scroll-hint i {
  font-size: 15px;
  animation: scrollBounce 1.8s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ==========================================================================
   5. VUE PROJETS (GRILLE HORIZONTALE, CARTES & FILTRES)
   ========================================================================== */
.projects-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg);
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  will-change: transform, opacity;
}

.projects-scroll-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.projects-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-left: 60px;
  cursor: grab;
}

.projects-track:active {
  cursor: grabbing;
}

.projects-scroll-container.is-static {
  justify-content: center;
}

.projects-scroll-container.is-static .projects-track {
  padding-left: 0;
  cursor: default;
}

.projects-scroll-container.is-static .projects-track:active {
  cursor: default;
}

.projects-grid {
  display: grid;
  grid-template-rows: repeat(2, min-content);
  grid-auto-flow: column dense;
  gap: 40px 40px;
  width: max-content;
}

.projects-grid.single-row {
  grid-template-rows: min-content;
}

.project-card {
  width: 320px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card.hidden-card {
  display: none !important;
}

.project-image {
  width: 100%;
  height: 200px;
  background-color: #d8d8d8;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.project-image:hover {
  transform: scale(1.02);
}

.project-info {
  margin-top: 12px;
  font-family: var(--font-title);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}


.projects-filter {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e5e5e5;
  border-radius: 50px;
  display: flex;
  padding: 4px;
  gap: 4px;
  z-index: 60;
}

.projects-filter button {
  background: transparent;
  border: none;
  padding: 8px 24px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.projects-filter button:nth-child(1).active { color: #1a73e8; }
.projects-filter button:nth-child(2).active { color: #e83e8c; }
.projects-filter button:nth-child(3).active { color: #ff9800; }
.projects-filter button:nth-child(4).active { color: #1a73e8; }
.projects-filter button:nth-child(5).active { color: #8b5cf6; }

.project-card[data-category="motion"] .project-category,
.cat-motion,
.tag-item.cat-motion {
  color: #8b5cf6 !important;
}


.project-card[data-category="3d"] .project-category,
.cat-3d,
.tag-item.cat-3d {
  color: #ff9800 !important;
}

.project-card[data-category="design"] .project-category,
.cat-design,
.tag-item.cat-design {
  color: #e83e8c !important;
}

.project-card[data-category="code"] .project-category,
.cat-code,
.tag-item.cat-code {
  color: #1a73e8 !important;
}

/* ==========================================================================
   6. MODALE DE CONTACT
   ========================================================================== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  visibility: hidden;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 246, 243, 0.8);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.contact-letter {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 40px;
  width: 90%;
  max-width: 450px;
  opacity: 0;
  font-family: var(--font-title);
}

.contact-letter h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
  color: var(--ink);
}

.contact-letter form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-letter input,
.contact-letter textarea {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--ink);
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  resize: none;
}

.contact-letter input:focus,
.contact-letter textarea:focus {
  background: var(--ink);
  color: var(--bg);
}

.iti {
  width: 100%;
}

.send-btn {
  padding: 14px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.send-btn:hover {
  background: #d3a13b;
  border-color: #d3a13b;
  color: var(--ink);
}

#close-contact {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: var(--ink);
}


.contact-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.social-btn i {
  font-size: 16px;
  line-height: 1;
}

.social-btn .social-arrow {
  font-size: 14px;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.social-btn:hover .social-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   7. PAGES DÉTAIL PROJET (ex: projet-keyboard.html)
   ========================================================================== */

body.project-page {
  display: block;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.top-right-nav {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
}

.back-link {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #1a73e8;
}

.project-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 130px 6vw 140px;
}


.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  gap: 40px;
}

.project-main-title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 8.2vw, 7.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: var(--ink);
}


.meta-row {
  display: grid;
  grid-template-columns: 1.6fr 0.5fr 1.5fr;
  padding-top: 24px;
  margin-bottom: 90px;
  gap: 30px;
}

.meta-label {
  font-family: var(--font-title);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 400px;
}

.tag-item {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tag-item:hover {
  opacity: 0.7;
}

.meta-text {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}


.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.media-card {
  width: 56%;
  margin-left: 4%;
  background-color: #F5F6F3;
  overflow: hidden;
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}


.media-card.media-full {
  width: 92%;
  margin: 0 auto;
}


.media-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}

.media-duo .media-card {
  width: 100%;
  margin-left: 0;
  aspect-ratio: 16 / 10;
}

.media-duo .media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.media-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 50px;
  align-items: center;
  width: 100%;
}

.media-text-row .media-card {
  width: 100%;
  margin-left: 0;
  display: flex;
  justify-content: center; 
  align-items: center;
}

.media-text-row .media-card img {
  width: 100%;
  max-width: 520px;
  max-height: 60vh;
  object-fit: contain;
}
.media-text-row .media-card.img-small img {
  max-width: 320px;
  max-height: 42vh;
}


.split-text-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  width: 76%;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
}

.split-text-block.side-split {
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr; 
  gap: 14px;
}

.split-label {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.split-content p {
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
}

.description-block {
  width: 58%;
  margin-left: 34%;
}

.description-block p {
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}


.next-project-footer {
  margin-top: 140px;
  padding-top: 50px;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.next-label {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.next-project-link {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.next-project-link:hover {
  color: #1a73e8;
  transform: translateX(12px);
}


.viewer-3d-container {
  border: none;
  position: relative;
  height: 550px;
  background: #F5F6F3;
  cursor: grab;
}

.viewer-3d-container:active {
  cursor: grabbing;
}

.viewer-3d-container model-viewer,
.viewer-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.badge-3d {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  pointer-events: none;
}


.project-carousel {
  position: relative;
  height: 80vh; 
  width: 92%;   
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.carousel-track {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: relative;
  display: none;
  height: 100%;
  width: auto;
}

.carousel-slide.active {
  display: block;
  animation: carouselFade 0.45s ease-out;
}

.live-site-preview {
  width: 92%;
  height: 80vh;
  margin: 0 auto;
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  overflow: hidden;
}

.browser-bar {
  height: 42px;
  background-color: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--font-title);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg);
  opacity: 0.4;
}

.browser-url {
  opacity: 0.7;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
}

.browser-Dirty-link {
  color: var(--bg);
  text-decoration: none;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.browser-Dirty-link:hover {
  opacity: 1;
}

.live-site-preview iframe {
  width: 100%;
  height: calc(100% - 42px);
  border: none;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .live-site-preview {
    width: 100%;
    height: 65dvh;
  }
}

.browser-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.browser-sound-btn {
  background: transparent;
  border: none;
  color: var(--bg);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.browser-sound-btn:hover {
  opacity: 1;
  color: #1a73e8;
}


.mobile-landscape-warning {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: calc(100% - 42px);
  padding: 30px;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-title);
  gap: 12px;
}

.mobile-landscape-warning i {
  font-size: 36px;
  opacity: 0.8;
}

.mobile-landscape-warning p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 320px;
}

.mobile-landscape-warning span {
  font-size: 12px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.4;
}


@media (max-width: 900px), (orientation: portrait) {
  .desktop-only-preview {
    height: 320px;
  }

  .desktop-only-preview iframe,
  .desktop-only-preview .browser-actions,
  .desktop-only-link {
    display: none !important;
  }

  .desktop-only-preview .mobile-landscape-warning {
    display: flex;
  }
}

@keyframes carouselFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.carousel-slide img,
.carousel-slide video {
  height: 100%; 
  width: auto;  
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--ink);
  background-color: #e5e5e5;
  border-radius: 60000px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 10;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-btn:hover {
  opacity: 1;
  color: #1a73e8;
  transform: translateY(-50%); 
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(245, 246, 243, 0.75);
  backdrop-filter: blur(4px);
  padding: 8px 14px;
  border-radius: 50px;
  border: 1px solid rgba(26, 26, 26, 0.15);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  background: var(--ink);
  transform: scale(1.25);
}


.video-sound-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
   display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-sound-btn:hover {
  background: #1a73e8;
  transform: scale(1.08);
}


.project-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 92%;
  margin: -50px auto 0; 
}

.project-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.project-action-btn i {
  font-size: 16px;
  line-height: 1;
}

.project-action-btn .btn-arrow {
  font-size: 14px;
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-action-btn:hover {
  background-color: var(--ink);
  color: var(--bg);
}

.project-action-btn:hover .btn-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}


.project-action-btn:hover .ri-download-line.btn-arrow {
  transform: translateY(2px);
}


@media (max-width: 768px) {
  .project-links-row {
    width: 100%;
    margin-top: -30px;
    gap: 10px;
  }

  .project-action-btn {
    padding: 10px 18px;
    font-size: 11px;
  }
}


/* ==========================================================================
   8. RESPONSIVE GLOBAL (MOBILE & TABLETTE <= 768px)
   ========================================================================== */
@media (max-width: 768px) {

  .header-top-container ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }

  .header-top-container ul li:nth-child(2),
  .header-top-container ul li:nth-child(3) {
    display: none;
  }

  .menu-open .header-top-container {
    opacity: 0;
    pointer-events: none;
  }

  .burger-btn {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100dvh;
    background-color: var(--bg, #f5f6f3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .main-nav ul li {
    font-size: 32px;
  }

  .rolling-text,
  .rolling-text .block {
    height: 38px !important;
    line-height: 38px !important;
  }

.langue {
    position: fixed;
    top: auto;
    bottom: 15%;
    right: auto;
    left: -50%; 
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 1002;
    pointer-events: none;
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
  }

  .langue button {
    font-size: 18px;
  }

  .menu-open .main-nav {
    left: 0;
  }

  .menu-open .langue {
    left: 50%; 
    pointer-events: auto;
  }

 
  #scramble-text {
    font-size: 12vw;
  }

  .scroll-hint {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
  }

  .contact-letter {
    width: 90%;
    padding: 30px 20px;
  }

  
  .projects-view {
    height: 100dvh;
  }

  .projects-scroll-container {
    position: absolute;
    top: 75px;
    bottom: 90px;
    height: auto;
    align-items: center;
  }

.projects-filter {
    bottom: 20px;
    width: 92%;
    max-width: 380px;
    justify-content: space-between;
    padding: 6px 10px; 
    gap: 2px;
  }

  .projects-filter button {
    font-size: 11px;
    padding: 6px 8px; 
    flex: 1;         
    text-align: center;
    white-space: nowrap;
  }

  .projects-track {
    padding-left: 20px;
    gap: 20px;
  }

  .projects-grid {
    gap: 15px 20px;
  }

  .project-card {
    width: 55vw;
  }

  .project-image {
    height: 22dvh;
    max-height: 160px;
  }

  .project-info {
    margin-top: 8px;
    font-size: 12px;
  }

  .project-title {
    font-size: 14px;
  }

  .project-wrapper {
    padding: 100px 20px 80px;
  }

  .hero-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-row {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
  }

  .meta-col:first-child {
    grid-column: 1 / -1;
  }

  .media-card,
  .media-card.media-full,
  .description-block {
    width: 100%;
    margin-left: 0;
  }

  .media-duo,
  .media-text-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-text-block,
  .split-text-block.side-split {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .media-text-row .split-text-block.side-split {
    order: -1;
  }

  .viewer-3d-container {
    height: 360px;
  }

  .project-carousel {
    height: 60dvh;
    width: 100%;
  }

  .carousel-btn {
    padding: 6px;
  }

  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }

  .next-project-footer {
    margin-top: 80px;
    padding-top: 30px;
  }
}