@charset "utf-8";
/* =============================== */
/* FONDU PAGE                      */
/* =============================== */


/* =============================== */
/* POLICES INTER                   */
/* =============================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Thin.woff2') format('woff2');
  font-weight: 100;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2');
  font-weight: 200;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
}

/* =============================== */
/* BASE GÉNÉRALE                   */
/* =============================== */

html, body {
  font-family: 'Inter', sans-serif;
  color: rgb(51, 51, 51);
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
}

html {
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  background: none;
  position: relative;

  /* Variables GSAP conservées */
  --zoom: 1;
  --bg-opacity: 1;
  --bg-x: 0px;
  --bg-y: 0px;

  opacity: 1;
  transition: none;
}

/* =============================== */
/* FOND PRINCIPAL                  */
/* =============================== */

#intro-fade {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/bg1.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: var(--bg-opacity);
  transform: translate(var(--bg-x), var(--bg-y)) scale(var(--zoom));
  transform-origin: center center;
  z-index: -10;
  pointer-events: none;
}

body::after {
  display: none !important;
}

/* =============================== */
/* SECTIONS                        */
/* =============================== */

section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: auto !important;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none !important;
  z-index: 0 !important;
  pointer-events: none;
}

.inner {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* =============================== */
/* CHEVRON BAS DE PAGE             */
/* =============================== */

.next-arrow {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 55px;
  z-index: 9996 !important;
  cursor: pointer;
  margin: 0 !important;
  align-self: auto !important;
  animation: arrowBlink 1.4s infinite ease-in-out;
}

.next-arrow img {
  width: 100%;
  height: auto;
  display: block;
}

.next-arrow .chevron-light {
  display: none;
}

/* Cas particulier : section 1 (positionnement à droite réservé au desktop, voir plus bas) */

#s1 .next-arrow {
  bottom: 15px; /* identique aux autres sections */
}

/* =============================== */
/* TITRES                          */
/* =============================== */

.section-title {
  position: absolute;
  pointer-events: none;
  max-width: 660px;
  z-index: 10;
 color: rgb(51, 51, 51);
}

/* --- Desktop --- */
@media (min-width:1025px) {
  h1 { font-size: 76px !important; font-weight: 100; letter-spacing: 0.08em; margin: 0; }
  h2 { font-size: 38px !important; font-weight: 200; margin-top: 10px; letter-spacing: 0.04em; line-height: 1.8; }
  h3 { font-size: 26px !important; font-weight: 200; margin-top: 10px; letter-spacing: 0.04em; line-height: 1.8; }

  #s1 .inner { align-items: flex-end; padding-bottom: 80px; /* espace pour le texte sans remonter le chevron */ }
  #s1 .s1-content {
    transform: translateX(-50%);
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
	#s1 .section-title {
    align-self: center;      /* annule le flex-start du parent pour ce titre */
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: rgba(0, 0, 0, 0.8);   /* essai : titre sombre (avant : #fff) */
    font-weight: 400;
    top: 60%;
    transform: translateY(-50%);
}

  /* Titre de S1 plus grand (avant : 76 px) */
  #s1 .section-title h1 {
    font-size: 96px !important;
  }

  /* Voile clair en dégradé sur l'image de S1 (au-dessus de l'image,
     sous le titre) : renforce le contraste du titre sombre.
     Pour l'enlever : supprimer cette règle. */
  html body section#s1::before {
    background: linear-gradient(to bottom,
                rgba(246, 244, 238, 0.05) 0%,
                rgba(246, 244, 238, 0.35) 35%,
                rgba(246, 244, 238, 0.55) 60%,
                rgba(246, 244, 238, 0.40) 85%,
                rgba(246, 244, 238, 0.25) 100%) !important;
  }


  #s2 .section-title, #s3 .section-title, #s4 .section-title {
    top: 66%; left: 30%; transform: translate(-50%, -50%); text-align: left;
  }
  #s2 h1, #s3 h1, #s4 h1 {
    font-size: 64px !important; margin-top: 0 !important; letter-spacing: 0.04em; line-height: 1.5;
  }
}

/* --- Zone intermédiaire --- */
@media (min-width:600px) and (max-width:1024px) {
  h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    -webkit-font-smoothing: antialiased;
    font-smooth: always;
    color: rgb(51, 51, 51);
  }
  .next-arrow .chevron-dark { display: none; }
  .next-arrow .chevron-light { display: block; }
  .section-title { text-align: center; }
  #s2 .section-title, #s3 .section-title, #s4 .section-title { color: #f5eada; }
  #s2 h1, #s2 h2, #s2 h3,
  #s3 h1, #s3 h2, #s3 h3,
  #s4 h1, #s4 h2, #s4 h3 { color: #f5eada; }
  #s2 .section-title, #s3 .section-title, #s4 .section-title {
    position: absolute;
    top: auto;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- Mobile --- */
@media (max-width:599px) {
  h1 { font-size: 52px; font-weight: 200; }
  h2 { font-size: 24px; font-weight: 200; }
  h3 { font-size: 18px; font-weight: 200; }
  .section-title { text-align: center; color: #f5eada; }
}

/* =============================== */
/* BACKGROUNDS                     */
/* =============================== */

#s1 { background: none; }
#s2 { background-image: url("../images/bg2.jpg"); }
#s3 { background-image: url("../images/bg3.jpg"); }
#s4 { background-image: url("../images/bg4.jpg"); }
#s2 .inner { transform: translateY(0) !important; }

/* Tablette (600-1024px) : le sujet des images desktop est décalé à droite,
   on réutilise les recadrages mobiles (déjà centrés + assombris) pour éviter
   qu'un cover centré ne le coupe sur un écran plus étroit. */
@media (min-width:600px) and (max-width:1024px) {
  body::before { background-image: url("../images/bg-mobile-1.jpg") !important; }
  #s2 { background-image: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%), url("../images/bg-mobile-2.jpg") !important; }
  #s3 { background-image: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%), url("../images/bg-mobile-3.jpg") !important; }
  #s4 { background-image: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%), url("../images/bg-mobile-4.jpg") !important; }
}

/* =============================== */
/* ANIMATION CHEVRON               */
/* =============================== */

@keyframes arrowBlink {
  0%, 100% { opacity: 0.3; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, -10px); }
}
