


/* =============================== */
/* 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 {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

html {
  scroll-behavior: auto;
}

body {
  color: #333;
  font-family: 'Inter', sans-serif;
  background: none;
  position: relative;
  overflow: hidden;

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

/* =============================== */
/* BACKGROUND GLOBAL (body::before) */
/* =============================== */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image: url("../images/davimages.webp");
    background-position: left center; /* centrage conservé */
    background-repeat: no-repeat;
    background-size: cover;

    /* ANIMATIONS via variables */
    opacity: var(--bg-opacity);
    transform: translate(var(--bg-x), var(--bg-y)) scale(var(--zoom));
    transform-origin: center center;

    z-index: -1;
    pointer-events: none;
}


h1, h2, h3, h4 {
  font-weight: 200;
  margin: 0 0 20px 0;
}

p {
  font-size: 16px;
  line-height: 1.6;
}

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

section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}


section .inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Couleurs provisoires pour visualiser les sections */
#s1 {background: none;}
#s2 { background: #444;  }
#s3 { background: #777; color: #fff; }
#s4 { background: #999; color: #fff; }

section a {
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
}

/* =============================== */
/* ESPACEMENT DU CONTENU           */
/* =============================== */

main {
  margin-top: 0; /* pour compenser le header fixe */
}

/* =============================== */
/* IMAGES                          */
/* =============================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}




/* SECTION 1 BACKGROUND */
#s1 h1,
#s1 h2 {
    opacity: 0;
}


/* TITRES SECTION 1 */
#s1 h1 {
    font-family: 'Inter', sans-serif;
    font-size: 66px;
    font-weight: 100;
    letter-spacing: 0.08em;
    margin: 0;
    color: #fff;
}
#s1 h2 {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 200;
    margin-top: 10px;
    color: #fff;
}



/* POSITIONNEMENT DU CONTENU */
#s1 .inner {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* centre vertical */
    align-items: center;
    height: 100%;
    padding-top: 400px;        /* ⬅️ décalage réel, non annulé */
}

#s1 .titles {
    text-align: center;
}



section .cta-wrapper {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

@media (max-width: 768px) {
    #s1 h1 {
        font-size: 46px;   /* taille mobile */
        letter-spacing: 0.06em;
        text-align: center;
    }

    #s1 h2 {
        font-size: 26px;
        text-align: center;
    }

	#s1 {
        height: 100svh;     /* ⬅️ LA clé */
        position: relative; /* ⬅️ nécessaire pour le CTA */
        overflow: hidden;   /* ⬅️ évite que le contenu déborde */
    }

    #s1 .inner {
        padding-top: 200px; /* tes titles */
        justify-content: flex-start;
        align-items: center;
        height: 100%;       /* ⬅️ important */
    }

    .cta-wrapper {
        position: absolute;
        bottom: 80px;       /* ⬅️ maintenant ça marche */
        left: 50%;
        transform: translateX(-50%);
    }
}
   




/* STYLE DU BOUTON "ENTRÉE" */
.cta-banniere {
    display: inline-block;
    color: #fff; /* couleur claire */
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 2px;
    transition: all 0.25s ease;
}

.cta-banniere:hover {
    color: #ffffff; /* blanc pur */
    
}
/* FLECHE ANIMÉE */
.fleche-scroll {
    display: block; /* au lieu de inline-block */
    width: 19px;
    height: 19px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
    margin: 10px auto 0 auto;
    animation: flecheBounce 0.8s infinite ease-in-out;
    opacity: 0.8;
}


@keyframes flecheBounce {
    0%   { transform: translateY(0) rotate(45deg); opacity: 0.4; }
    50%  { transform: translateY(8px) rotate(45deg); opacity: 1; }
    100% { transform: translateY(0) rotate(45deg); opacity: 0.4; }
}

