/* -------------------------
   🔁 RESET DE BASE
------------------------- */

html {
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll; /* pour éviter les sauts */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background-color: #fcfcfc;
  color: #181518;
  font-family: sans-serif;
  height: 100%;
}

/* Appliquer le safe-area SEULEMENT si tu as un footer fixe par exemple */
.safe-bottom-padding {
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
}


/* Repères de position centrés */
body::before,
body::after {
  content: "";
  position: fixed;
  background: red;
  z-index: 9999;
  pointer-events: none;
  box-sizing: inherit;
}

/* Repère vertical centré */
body::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100vh;
}

/* Repère horizontal centré */
body::after {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100vw;
  height: 1px;
}


/* Outline debug sur tes containers clés */
main, section, footer,
.site-header,
.header-container,
.left-zone,
.right-zone,
.logo-center {
  outline: 1px solid rgba(255, 0, 0, 0.2);
}


/* -------------------------
   🔡 FONTS
------------------------- */

/* Variable – Texte courant */
/* Variable – Texte courant */
@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("/fonts/SofiaSansCondensed-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;  /* toute la plage */
  font-style: normal;
  font-display: swap;
}

/* Titres – Thunder */
@font-face {
  font-family: "Thunder";
  src: url("/fonts/Thunder-BlackLC.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


/* -------------------------
   🧱 STRUCTURE GLOBALE
------------------------- */

.home-main {
  margin: 0;
  padding: 0;
  padding-top: 80px; /* hauteur exacte de ton header */
}
.container, .home-main {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}


/* -------------------------
   🎯 SECTION HERO
------------------------- */

.home-hero {
  height: 100svh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px; /* hauteur du header */
  box-sizing: border-box;
  overflow: hidden;
  background: #fcfcfc;
}

/* Bloc centré verticalement pour HERITIER */
.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}


.hero-inner {
  width: 100%;
  height: calc(100svh - 80px); /* vue plein écran - header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* Mot animé */
.animated-text {
  font-size: clamp(100px, 18vw, 320px);
  font-family: 'Thunder', sans-serif;
  text-align: center;
  margin: 0 auto;
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 1;
}

.animated-text span {
  font-variation-settings: "wght" 300;
  font-family: 'Thunder', sans-serif;
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, font-variation-settings;
}

#herWord {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.03em;
  margin: 0;
  padding: 0;
  font-family: 'Thunder', sans-serif;
  line-height: 1;
}

#herWord span {
  display: inline-block;
  font-variation-settings: "wght" 300;
  transform: translateY(0);
  will-change: transform, font-variation-settings;
  font-size: clamp(100px, 18vw, 320px);
  letter-spacing: -0.03em;
}




/* Zones d’images hover */
.hover-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hover-zone {
  position: absolute;
  width: 200px;
  height: 200px;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.floating-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  z-index: 10 !important;
  transition: opacity 0.3s ease;
}





/* Repères de position (debug) */
#halo-cursor {
  position: fixed;
  width: 160px;
  height: 160px;
  background: red;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}


/* -------------------------
   🧾 CAPTIONS BAS DE PAGE
------------------------- */

.caption-row {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  font-weight: 800;
}

.left-caption,
.right-caption {
  white-space: nowrap;
}

.left-caption a {
  pointer-events: auto;
  position: relative;
  z-index: 10;
  text-decoration: none;
  color: inherit;
}



.center-caption {
  display: flex;
  justify-content: center;
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  white-space: nowrap;
}

.caption.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1.2s ease-out;
}

.caption.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------
   BANNIERE / ABOUT
------------------------- */

/* === ABOUT STANDALONE === */
.about-standalone {
  background: var(--bg);
  padding: 80px 20px;
}

.about-section {
  max-width: 640px;
  margin: 0 auto;
}

.about-title {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: 1,5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.about-desc {
  font-family: 'Sofia Sans Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}


/* === PROJECTS HERO (BANNIÈRES) === */
.projects-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ici, tu règles l’espacement entre chaque .banner-mask */
  padding: 0; /* enlève le padding vertical si tu veux */
  gap: 0;
}

.big-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  align-items: center;
  justify-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

/* Cellules texte */
.big-grid .cell {
  overflow: hidden;
}

.big-grid .cell h2 {
  margin: 0;
  font-family: 'Thunder', sans-serif;
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

/* Point central */
.big-grid .dot {
  font-family: 'Thunder', sans-serif;
  font-size: clamp(4rem, 8vw, 8rem);
  color: var(--text);
  line-height: 1;
}


/* Container de la bannière */
.banner-mask {
  width: 95vw;
  max-width: none;
  overflow: visible;
  position: relative;
  transform-origin: center center;
}

.banner-mask {
  margin: 0;
}



/* Ligne de texte complète */
.text-line {
  display: flex;
  align-items: center;
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;

}
/* Les titres H1 inline */
.text-line h1 {
  margin: 0;
  font-family: 'Thunder', sans-serif;
  font-size: clamp(10rem, 25vw, 24rem);
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
    -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform-origin: center center;
  text-shadow:0 0 1px rgba(28, 28, 28, 0.1);

    /* taille XXL par exemple */
  font-size: clamp(12rem, 30vw, 30rem);
  line-height: 0;
  margin: 11rem 0rem;
  flex-shrink: 0;
}

/* === Netteté maximale sur la ligne de texte === */
.banner-mask,
.text-line,
.text-line h1 {
  /* crée une couche 2D pour éviter le lissage sous-pixel GPU */
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  will-change: transform;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* === Alignement About avec les banners === */
.about-standalone {
  width: 80vw;           /* même que .banner-mask */
  max-width: 2500px;     /* même que .banner-mask */
  margin: 70px auto;     /* même marge verticale (auto = centre horizontal) */
  padding: 10px;            /* pas de padding horizontal en plus */
}

.about-standalonehaut{
padding: 40px;
}
/* Optionnel : si ton .about-standalone contient des wrappers */
.about-standalone .about-section {
  margin: 0;             /* annule tout décalage intérieur */
}




/* Responsive */
@media (max-width: 768px) {
  .banner-mask {
    width: 90vw;
    margin: 20px auto;
  }
  .text-line h1 {
    font-size: clamp(4rem, 20vw, 8rem);
  }
}






/* -------------------------
PROJETS 
------------------------- */
.project-teaser {
  position: relative;
  margin: 20px auto;
  width: 90vw;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}
.overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: url('/assets/img/noise.png') repeat;
  opacity: 0.15;
}

/* Projet Meta en bas, avec category à gauche et date à droite */
.project-meta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-family: "Sofia sans condensed", sans-serif;
  color: #fff;
  z-index: 1;
}
.project-meta .project-category::after {
  content: '•';
  margin: 0 6px;
}

.project-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  max-width: 900px;
  z-index: 2;
}

.project-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 2px solid rgb(255, 255, 255);
}

.project-card__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  text-align: center;
  padding: 20px;
}

.project-card__title {
  font-size: 140px;
  font-family: 'Thunder', sans-serif;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Bouton avec soulignement et flou texte */
.project-card__btn {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid #fff;
  text-decoration: none;
  overflow: hidden;
}
.project-card__btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}
.project-card__btn:hover::after {
  width: 100%;
}

/* Texte flouté initialement, net au hover */
.btn-text {
  display: inline-block;
  color: #fff;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  font-family: "Sofia sans condensed", sans-serif;
  filter: blur(2px);
  transition: filter 0.4s ease;
}
.project-card__btn:hover .btn-text {
  filter: none;
}


/* -------------------------
   ROULETTE
------------------------- */

.section-rotating-header {
  background: #fcfcfc;
  padding: 10vh 4vw 0;
  text-align: center;
}

.explodeHeader {
  margin: 10px 0;
  overflow: hidden;
}

.explodeHeader h1 {
  font-family: 'Thunder', sans-serif;
  font-size: clamp(40px, 10vw, 120px);
  color: #181518;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}


.section-blur-header .explodeHeader:last-child {
  margin-bottom: 0;
}

.section-blur-header {
  background: #fcfcfc;
  padding: 10vh 4vw 0; /* 👈 on enlève le padding-bottom ici */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6vh;
  overflow: hidden;
}



/* -------------------------
   BLOG
------------------------- */


.home-blog-preview {
  max-width: 1400px;
  margin: 60px auto;
  padding: 0 40px;
  font-family: 'Sofia Sans Condensed', sans-serif;
  color: #181518;
  box-sizing: border-box;
  overflow-x: hidden; /* Pour éviter scroll horizontal */
}

.home-blog-title {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-family: 'Thunder', sans-serif;
  font-size: clamp(80px, 16vw, 220px);
  text-transform: uppercase;
  overflow: visible;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px); /* moins d’espace */
}

.hero-text-animation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 100px 0; /* espace autour */
}

.text-overflow {
  overflow: hidden;
  height: 1em; /* hauteur de ligne pour masquer le décalage */
}

.hero-heading {
  font-family: 'Thunder', sans-serif;
  font-size: clamp(64px, 16vw, 220px);
  text-transform: uppercase;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  margin: 0;
}

.hero-heading.visible {
  transform: translateY(0);
  opacity: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* plus de padding ici */
}

.teaser {
  position: relative;
  background-size: inherit;
  background-position: center;
  aspect-ratio: 1 / 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Grain animé via ::before */
.teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('/assets/img/bruit.gif');
  background-position: 0 0, 0 0;
  background-repeat: repeat;
  background-size: auto, auto;
  z-index: 3;
}


.meta {
  display: flex;
  gap: 10px;
  font-size: 20px;
  color: #fcfcfc;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}

.article-title {
  font-family: "Thunder", sans-serif;
  font-size: clamp(24px, 5vw, 48px);
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 3;
  text-transform: uppercase;
}

.home-blog-title,
.home-blog-title * {
  text-decoration: none !important;
}

.teaser,
.teaser * {
  text-decoration: none !important;
}


/* Animation fade + slide down */
.fade-in-down {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-down.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive - mobile */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    box-sizing: border-box;
  }
}



/* -------------------------
   BANNIERE CLIENT
------------------------- */



  .clients-banner {
    overflow: hidden;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
  }

  .clients-track {
    display: flex;
    width: calc(2 * 600px); /* 5 logos × 120px each */
    animation: scrollLeft 10s linear infinite;
  }

  .clients-slide {
    display: flex;
    gap: 30px;
  }

  .clients-slide img {
    height: 50px;
    width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
  }

  .clients-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }

  @keyframes scrollLeft {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-600px);
    }
  }








/* ==========================================================================
   📱 RESPONSIVE DESIGN CENTRALISÉ
========================================================================== */


/* ==========================================================
   🎯 1024px - TABLETTES
========================================================== */
@media (max-width: 1024px) {
  /* 🔹 Masquer les hover-zones */
  .hover-images {
    display: none !important;
  }

  /* 🔹 Bannière pleine largeur */
  .banner-mask {
    width: 100vw;
    max-width: none;
    left: 50%;
    margin-left: -50vw;
    padding: 0;
    box-sizing: border-box;
  }

  /* 🔹 Projet teaser */
  .project-teaser {
    width: 90vw;
    max-width: 900px;
    margin: 40px auto;
    aspect-ratio: 4/5;
  }

  .project-card {
    width: 100%;
    height: 100%;
  }

  .project-card__image {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/5;
  }

  .project-card__content {
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;
    text-align: center;
  }

  .project-card__title {
    font-size: 15vw;
  }

  .project-card__btn .btn-text {
    font-size: 4vw;
    padding: 8px 16px;
    filter: none;
    backdrop-filter: none;
  }

  .project-card__btn {
    display: none;
  }

    .project-link {
    display: block;
    width: 100%;
    pointer-events: auto;
  }
  .project-meta {
    font-size: 3.5vw;
    bottom: 10px;
    left: 16px;
    right: 16px;
  }

  .projects-hero {
    gap: 20px; /* espace entre les banners */
    padding: 0;
  }

  .banner-mask {
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
    left: auto !important;
    transform: none !important;
  }

  .text-line h1 {
    font-size: clamp(8rem, 16vw, 16rem);
    margin: 3rem 0rem;
  }

  .about-standalone {
    width: 90vw;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0;
  }

  .about-standalone .about-section {
    padding: 0 4vw;
  }
    .about-desc {
    font-size: 1.2rem;
  }

}
@media (min-width: 1025px) {
  .project-link {
    pointer-events: none;
  }

  .project-link .project-card__btn {
    pointer-events: auto;
    cursor: pointer;
  }
}

/* ==========================================================
   📱 768px - SMARTPHONES
========================================================== */
@media (max-width: 768px) {
  /* 🔹 Hero section */
  .home-hero {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }
  .hero-content {
    transform: translateY(-2vh);
  }

  /* 🔹 Captions réorganisées */
  .caption-row {
    bottom: 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }

  .center-caption {
    position: static !important;
    transform: none !important;
  }

  .caption-row .caption {
    display: block;
    white-space: normal;
    width: 100%;
    text-align: center;
    line-height: 1.4;
    padding: 6px 0;
  }

  /* 🔹 Projets hero */
  .projects-hero {
    gap: 8px;
    padding: 0;
  }

  .projects-hero .banner-mask {
    margin: 0;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
  }

  /* 🔹 Titres explosés */
  .explodeHeader h1 {
    font-size: clamp(24px, 13vw, 48px);
  }

  .explodeHeader {
    margin: 15px 0;
  }

  .section-blur-header {
    padding: 8vh 5vw;
    gap: 5vh;
  }

  .section-rotating-header {
    padding: 3vh 4vw 0;
  }

  /* 🔹 Menu mobile */
  .logo-center a {
    font-size: 20px;
  }

  .menu-inner li {
    font-size: 45px;
  }

  .socials {
    display: none;
  }

  .header-container {
    display: flex;
    align-items: center;
  }

  .logo-center {
    position: static !important;
    transform: none !important;
    margin-left: 20px;
    order: 1;
  }

  .left-zone {
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    order: 2;
  }

  .right-zone {
    margin-left: auto;
    order: 3;
  }

    .text-line h1 {
    margin: 3rem 0rem;
  }

    .about-desc {
    font-size: 1.2rem;
  }

.home-blog-preview .teaser {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border: none;
}

/* Enlever padding/margin sur parents éventuels */
.home-blog-preview,
.home-blog-preview .grid {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}


}


/* ==========================================================
   📱 600px - TÉLÉPHONES COMPACTS
========================================================== */
@media (max-width: 600px) {
  .project-teaser {
    width: 94vw;
    margin: 32px auto;
  }

  .project-card__title {
    font-size: 17vw;
  }

  .project-card__btn .btn-text {
    font-size: 4.5vw;
    padding: 8px 16px;
    filter: none;
    backdrop-filter: none;
  }

  .project-meta {
    font-size: 4vw;
  }
}


/* ==========================================================
   📱 400px - TRÈS PETITS ÉCRANS
========================================================== */
@media (max-width: 400px) {
  .right-zone {
    padding-right: 15px;
  }

  .right-zone .burger {
    margin-right: 15px;
  }
}


/* ==========================================================
   🖥️ 1920px+ - ULTRA WIDE SCREENS
========================================================== */
@media (min-width: 1920px) {
  .menu-inner li {
    font-size: 130px;
  }

  .menu-link .number {
    font-size: 28px;
  }

  .menu-inner ul {
    gap: 40px;
  }
  #herWord {
    font-size: clamp(12rem, 22vw, 26rem);
  }

  #herWord span {
    font-size: inherit;
  }
  .project-teaser {
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
  }
.project-card__image {
  border: 2px solid white; /* ou la couleur que tu veux */
  box-sizing: border-box;
  overflow: hidden;
}
  
.project-card {
    max-width: 1300px;
}

.explodeHeader h1 {
    font-size: clamp(40px, 10vw, 165px);
}

}