/* =========================================================
   RESET
========================================================= */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   GLOBAL
========================================================= */
body{
  font-family: "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #161616;
  background: #FFFDF9;
  padding-top: 10px;
}

.site-main{
  margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}

/* =========================================================
   HEADER
========================================================= */
.site-header{
  position: relative;
  width: 100%;
  height: 170px;
  background: #FFFDF9;
  z-index: 1000;
  padding: 50px 0;
}

.header-inner{
  width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img{
  height: 125px;
  width: auto;
  display: block;
  color: #161616;
}

.header-nav ul{
  list-style: none;
  display: flex;
  gap: 40px;
}

.header-nav a{
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  color: #161616;
  transition: color 0.25s ease;
}

.header-nav a:hover{
  color: #E7483F;
}

/* =========================================================
   CARROUSEL
========================================================= */
.carousel-section{
  height: 685px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-wrapper{
  width: 100%;
  overflow: hidden;
}

.carousel-track{
  display: flex;
  width: calc(1200px * 4);
  animation: carousel-scroll 30s linear infinite;
}

.carousel-track img{
  width: 1200px;
  height: 600px;
  object-fit: cover;
  margin-right: 0;
  display: block;
}

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

/* =========================================================
   BASELINE
========================================================= */
.baseline-section{
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.baseline-text{
  font-size: 90px;
  font-weight: 700;
  letter-spacing: -5px;
  text-align: center;
}

.baseline-description{
  margin-top: 100px;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.05em;
  text-align: center;
}

/* =========================================================
   FADE IN
========================================================= */
.js .fade-in{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .fade-in.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.no-js .fade-in{
  opacity: 1;
  transform: none;
}

/* =========================================================
   BLOC 1 (PARALLAX + PROfondeur)
========================================================= */
#bloc1.bloc1{
  width: 100%;
  height: 1770px;
  perspective: 1000px;
  perspective-origin: 50% 35%;
}

/* frame générique 1440 */
.frame-1440{
  width: 1440px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

/* scène parallax */
#bloc1 .parallax-scene{
  transform-style: preserve-3d;
  overflow: hidden;
}

/* couche parallax : on compose le transform via variables */
#bloc1 [data-parallax],
.parallax-layer{
  --ty: 0px;
  --tz: 0px;
  --sc: 1;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(0, var(--ty), 0) translateZ(var(--tz)) scale(var(--sc));
}

/* ----- TEXTE ----- */
#bloc1 .b1-text{
  position: absolute;
  left: 144px;
  top: 902px;
  width: 1100px;
  height: 171px;
  z-index: 5;
  color: #161616;
}

#bloc1 .b1-text-inner{
  width: 100%;
  height: 100%;
}

#bloc1 .b1-text-line{
  font-size: 110px;
  line-height: 1;
  letter-spacing: -5px;
  font-weight: 700;
  margin: 0;
}

/* ----- BLOCS IMAGES ----- */
#bloc1 .b1-item{
  position: absolute;
  overflow: hidden;
  z-index: 1;
}

#bloc1 .b1-inner{
  width: 100%;
  height: 100%;
}

#bloc1 .b1-inner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ✅ BLUR SUPPRIMÉ GLOBALEMENT (pas utile au final) */
#bloc1 .b1-inner[data-blur] img{
  filter: none !important;
  transition: none;
}

/* ----- POSITIONS (FIGMA) ----- */
#bloc1 .b1-rough{
  left: -25px;
  top: 143px;
  width: 587px;
  height: 798px;
}

#bloc1 .b1-mood{
  left: 730px;
  top: 621px;
  width: 588px;
  height: 820px;
}

#bloc1 .b1-plans{
  left: 365px;
  top: 1167px;
  width: 345px;
  height: 460px;
}

/* Respecte les utilisateurs qui réduisent les animations */
@media (prefers-reduced-motion: reduce){
  #bloc1 [data-parallax],
  .parallax-layer{
    transform: none;
  }
}

/* =========================================================
   BLOC 2 (FRAME 1440 + 2 medias)
========================================================= */
#bloc2{
  width: 100%;
  display: flex;
  justify-content: center;
}

#bloc2 .bloc2-frame{
  width: 1440px;
  height: 1100px;
  max-width: 100%;
  background: #FFFDF9;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bloc2 .bloc2-grid{
  display: grid;
  grid-template-columns: 588px 588px;
  gap: 36px;
  justify-content: center;
  align-items: start;
}

#bloc2 .media-card{
  width: 588px;
  margin: 0;
}

#bloc2 .media-frame{
  width: 588px;
  height: 800px;
  overflow: hidden;
  background: #FFFDF9;
}

#bloc2 video,
#bloc2 img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#bloc2 .media-meta{
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 28px;
  letter-spacing: -0.05em;
  color: #161616;
}

#bloc2 .media-right{
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 14px;
  letter-spacing: -0.05em;
  color: #868686;
}

#bloc2 .media-left{
  font-weight: 700;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{
  position: relative;
  width: 100%;
  background: #161616;
  margin-top: 120px;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.footer-inner{
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo{
  width: 294px;
  height: 125px;
  display: block;
  color: #FFFDF9;
}

.footer-copyright{
  font-size: 12px;
  color: #FFFDF9;
  text-decoration: none;
  align-items: flex-end;
  padding: 80px 0 0px;
}

.footer-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding: 20px 0 0px;
}

.footer-link{
  font-size: 14px;
  color: #FFFDF9;
  text-decoration: none;
}

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

/* SOCIAL ICONS (INLINE SVG) */
.footer-socials{
  display: flex;
  gap: 26px;
  margin-top: 8px;
  color: #FFFDF9;
}

.social-link{
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: color 0.25s ease;
}

.social-icon{
  width: 35px;
  height: 35px;
  display: block;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.social-link:hover{
  color: #E7483F;
}

.social-link:hover .social-icon{
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE (CLEAN)
========================================================= */

/* 1440 -> fluide */
@media (max-width: 1440px){
  .header-inner,
  .frame-1440,
  .footer-inner{
    width: 100%;
    max-width: 1440px;
  }
}

/* TABLETTE */
@media (max-width: 1200px){

  .header-inner{ padding: 0 32px; }

  .baseline-text{
    font-size: 56px;
    letter-spacing: -3px;
  }

  .carousel-track{ width: max-content; }
  .carousel-track img{
    width: 900px;
    height: 520px;
  }

  #bloc2 .bloc2-frame{
    height: auto;
    padding: 120px 0;
  }

  #bloc2 .bloc2-grid{
    grid-template-columns: 1fr 1fr;
    width: min(1200px, 100%);
    padding: 0 32px;
  }

  #bloc2 .media-card,
  #bloc2 .media-frame{
    width: 100%;
  }

  #bloc2 .media-frame{
    height: 62vw;
    max-height: 800px;
  }

  .footer-inner{ padding: 0 32px; }
}

/* MOBILE */
@media (max-width: 768px){

  /* Header */
  /* un peu de marge pour la lisibilité */
  .header-inner{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 0 16px; /* ajuste 12 / 16 / 20 selon ton goût */
  }

  /* logo en pleine largeur utile */
  .header-logo{
    width: 100%;
  }

  .header-logo a{
    display: block;
    width: 100%;
  }

  .header-logo img{
    width: 100%;
    height: auto;       /* important : annule le height:125px */
    max-width: none;    /* évite une limite cachée */
    display: block;
  }

  .header-nav ul{
    gap: 18px;
    flex-wrap: wrap;
  }

  /* Carousel */
  .carousel-section{
    position: relative;
    z-index: 1;
    height: 520px;
  }

  .carousel-wrapper,
  .carousel-track{
    height: 600px;
  }

  .carousel-track img{
    width: 320px;
    height: 420px;
  }

  /* Baseline */
  .baseline-section{
    height: auto;
    padding: 48px 20px;
    position: relative;
    z-index: 2;
  }

  .baseline-text{
    font-size: 40px;
    letter-spacing: -2px;
  }

  .baseline-description{
  margin-top: 56px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
}

  /* =========================================================
     BLOC 1 — MOBILE (stack + images alignées)
  ========================================================= */
  #bloc1.bloc1{
    height: auto;
    perspective: 700px;
    perspective-origin: 50% 30%;
    padding: 16px 0 28px;
    overflow: hidden;
  }

  #bloc1 .frame-1440{
    width: 100%;
    height: auto;
    padding: 0 16px;
  }

  /* ✅ Important : on neutralise le parallax en mobile
     -> plus de transform => plus de décalage gauche/droite sur une seule image */
  #bloc1 [data-parallax]{
    transform: none !important;
    will-change: auto;
    --ty: 0px !important;
    --tz: 0px !important;
    --sc: 1 !important;
  }

  /* Scène sans hauteur fantôme */
  #bloc1 .parallax-scene{
    height: auto;
    overflow: visible;
  }

  /* Texte */
  #bloc1 .b1-text{
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin: 6px 0 14px;
  }

  #bloc1 .b1-text-line{
    font-size: clamp(44px, 9vw, 64px);
    letter-spacing: -2px;
    line-height: 0.95;
  }

  /* Images : full width + spacing réduit */
  #bloc1 .b1-item{
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin: 0 0 10px;
    border-radius: 0;
  }

  /* Ratio stable */
  #bloc1 .b1-rough,
  #bloc1 .b1-mood,
  #bloc1 .b1-plans{
    aspect-ratio: 4 / 5;
  }

  /* =========================================================
     BLOC 2 — MOBILE (1 colonne + largeur uniforme)
  ========================================================= */
  #bloc2 .bloc2-frame{
    height: auto;
    padding: 80px 0;
  }

  #bloc2 .bloc2-grid{
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  #bloc2 .media-card,
  #bloc2 .media-frame{
    width: 100%;
  }

  #bloc2 .media-frame{
    height: 120vw;
    max-height: 800px;
  }

  #bloc2 .media-meta{ font-size: 22px; }

  /* =========================================================
     Règle “toutes images même largeur” (hors carousel)
  ========================================================= */
  main img{
    width: 100%;
    height: auto;
    display: block;
  }

  /* On exclut explicitement le carousel */
  .carousel-track img{
    width: 320px;
    height: 420px;
  }

  /* Footer */
  .site-footer{
    min-height: 0;
    padding: 50px 0;
  }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 0 20px;
  }

  .footer-right{ align-items: flex-start; }

  .footer-logo{
    width: 220px;
    height: auto;
  }

  .footer-socials{ gap: 18px; }
}
  .footer-copyright{
    width: 300px;
    
  }

/* Très petit mobile */
@media (max-width: 480px){
  #bloc1 .frame-1440{ padding: 0 12px; }
  #bloc1 .b1-item{ margin-bottom: 8px; }
  #bloc1 .b1-text-line{ font-size: clamp(40px, 10vw, 58px); }
}


/* ========= Header spacing fix ========= */
:root{
  --header-offset: 170px; /* desktop = hauteur de ton header */
}

.site-main{
  margin-top: var(--header-offset);
}

/* Mobile: header plus haut (logo + menu empilé) */
@media (max-width: 768px){
  :root{
    --header-offset: 230px; /* ajuste si besoin (210-260 selon ton rendu) */
  }

  /* optionnel mais recommandé: header en hauteur auto */
  .site-header{
    height: auto;
    padding: 20px 0;
  }

  .header-inner{
    height: auto;
  }
}
