/*
Theme Name: Vertiga
Theme URI: https://agencevertiga.com
Description: Thème enfant de Hello Elementor pour Vertiga
Author: Agence Vertiga
Author URI: https://agencevertiga.com
Template: hello-elementor
Version: 1.0
Text Domain: vertiga
*/


:root {
  --blue-dark: #17274F;
  --blue: #005CAB;
  --blue-light: #849ACF;
  --white: #fff;
}

/* Tu peux commencer à ajouter ton CSS personnalisé ici */
h1,h2,h3,h4,h5,h6{
  font-family:'Oswald', sans-serif !important;
  line-height: 1.4;
}

p,span,li,b,a{
  font-family:'Montserrat', sans-serif;
}

svg {
  overflow: visible;
}
path {
  stroke-width: 2;
}

.stick-section,
.section-image-sticky {
  position: relative;
  height: 100vh; /* durée totale du storytelling */
  background-color: #17274F;
  overflow: hidden;
}

/*.section-image-sticky{
  height: 200vh;
}*/

.sticky-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  overflow: hidden;
  padding-right: 15%;
}

.jl-content{
  max-width:80%;
  min-height:300px;
}

.main-text, .sub-title, .word {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.main-text {
  font-size: 2.3rem;
  line-height: 1.4;
  margin: 0 auto;
  font-weight: 400;
  color: #fff;
  position:absolute;
  max-width:600px;
}

.sub-title {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 200;
  text-transform: uppercase;
  text-align: left;
}



.words {
  display: flex;
  gap: 2rem;
  font-size: 6vw ;
  font-weight: 100;
  color:#fff;
  text-transform: uppercase;
  margin:0;
}

.words .word {
  font-size: 6vw !important;
  font-family:'Oswald', sans-serif !important;
  font-weight: 100;
}

.word:nth-child(2){
  color:#849ACF;
}

.word:nth-child(3){
  color:var(--blue);
}

.img-lines{
  position:fixed;
  right:0;
  top:-100px;
  width:300px;
}

.img-rouleau{
  position: absolute;
  right: 0;
}

.green-txt{
  color:#A8BC4A;
}

.section-image-sticky {
  position: relative;
  height: 100vh; /* Durée du scroll */
  overflow: hidden;
}

.image-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.sticky-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform, opacity;
  position: absolute;
}

.wrap-content{
  padding:10% 15% 5% 15%;
  position: relative;
}

.sub-title-2,
.main-text-2,
.cta-btn {
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
}

h2.sub-title-2 {
  font-size: 50px;
  margin-bottom: 1rem;
  color:#fff;
  font-weight:500;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  max-width:700px;
}

.main-text-2 {
  font-size: 24px;
  line-height: 1.5;
  color:#fff;
}

h2.main-text-2{
  font-size: 32px;
}

/* Section 4 */

.section-products {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--blue-dark);
}

.horizontal-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 100vh;
  will-change: transform;
}

.stick-section,
.section-image-sticky,
.section-products,
.sticky-inner,
.image-wrapper {
  height: 100vh; /* Fallback */
  height: 100dvh; /* Dynamic Viewport Height (mieux pour mobile) */
}

.product {
  width: 100vw !important;
  height: 100vh;
  display: flex;
  background: var(--blue-dark);
  overflow: hidden;
  align-items: center;
  flex: 0 0 100vw; /* 1 bloc = 1 écran (recommandé) */
}

.product-text {
  width: 40%;
  background: var(--blue-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem;
  box-sizing: border-box;
  z-index: 2;
  background-image:url(/wp-content/uploads/2025/11/lines-jlinc.svg);
  background-repeat: no-repeat;
  background-size: 150%;
    background-position-x: -50px;
    background-position-y: 0;
}

.product-text h2 {
  font-size: 3.2rem;
  font-weight:400;
  margin-bottom: 1.2rem;
  color: var(--blue-light);
  line-height: 1.4;
}

.product-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--blue-light);
  max-width: 450px;
}



.btn:hover {
  background: #007bff;
  color: #fff;
}

.product-image {
  width: 40%;
  height: 70vh;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/*.product-image img {
  width: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
  height: 100vh !important;
}
*/
a.btn{
  background-color:var(--blue-light);
  color:var(--white) !important;
  transition:.6s;
  opacity: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif !important;
  display: inline-block;
}

a.btn:hover{
  opacity: .8;
}

.wrap-content a.btn{
  margin-top: 1rem;
  background: var(--white) !important;
  color: var(--blue-dark) !important;
  border: none;
  padding: 0.8rem 1.5rem;
  margin-top:2em;
}

.img_lines{
  position: absolute;
  top:0;
  left:0;
}

/* =========================================
   MEDIA QUERIES (TABLETTE & MOBILE)
   ========================================= */
@media screen and (max-width: 799px) {

  /* --- TYPOGRAPHIE & ESPACEMENT --- */
  .main-text {
    font-size: 1.8rem; /* Plus petit */
    position: relative; /* On évite l'absolute qui casse tout sur mobile */
    margin-bottom: 2rem;
  }

  .sub-title {
    font-size: 1.5rem;
  }

  /* Les mots clés étaient trop petits en 6vw sur mobile */
  .words {
    font-size: 12vw; 
    flex-wrap: wrap; /* Permet aux mots de passer à la ligne si besoin */
    justify-content: center;
    gap: 1rem;
  }
  
  .words .word {
    font-size: 12vw !important;
  }

  .wrap-content {
    padding: 20% 5% 10% 5%; /* Moins de padding sur les côtés */
  }

  h2.sub-title-2 {
    font-size: 32px; /* Réduit par rapport à 50px */
  }

  /* --- SECTION 3 : PRODUITS (TRANSFORMATION VERTICALE) --- */
  
  .section-products {
    height: auto; 
    overflow: hidden;
  }

  .horizontal-wrapper {
  display: flex;
  flex-wrap: nowrap;
  width: max-content; /* plus stable que fit-content dans ce cas */
  height: 100vh;
  will-change: transform;
  overflow: visible;
}

  .product {
    width: 100% !important; 
    height: auto; 
    min-height: 90vh; 
    flex-direction: column-reverse; 
    padding: 2rem 0;
  }

  /* Image du produit */
  .product-image {
    width: 100%;
    height: 40vh;
  }

  /* Texte du produit */
  .product-text {
    width: 100%;
    height: auto;
    padding: 3rem 1.5rem; 
    align-items: center; 
    text-align: center;
    background-size: cover; 
  }

  .product-text h2 {
    font-size: 2rem;
  }
  
  /* Ajustements divers */
  .sticky-inner {
    padding-right: 0; 
    padding: 0 1rem;
  }
  
  .jl-content {
    max-width: 100%;
  }

/* --- SECTION 1 : STICKY INTRO OPTIMISÉE --- */

  .stick-section {
    height: 100dvh; 
    padding: 0;
  }

  .sticky-inner {
    padding: 0 1.5rem; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .jl-content {
    max-width: 100%; 
    width: 100%;
    position: relative;
    z-index: 10;
  }

  .main-text {
    position: relative !important; 
    top: auto;
    left: auto;
    transform: none;
    
    font-size: 1.1rem; 
    line-height: 1.5;
    margin: 0 auto 2rem auto; 
    width: 100%;
    max-width: 100%;
  }


  .sub-title {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: 2px;
  }

  .words {
    flex-direction: column; 
    gap: 0.5rem;
    margin: 0;
    justify-content: center;
  }
  
  .words .word {
    font-size: 3.5rem !important; 
    line-height: 1.1;
    display: block;
  }

  .img-rouleau {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;       
    max-width: 350px;
    opacity: 0.08;  
    z-index: 0;       
    pointer-events: none;
  }

  .img-lines {
    position: absolute;
    top: 10%;
    right: -20px;
    width: 120px;
    opacity: 0.2;
    z-index: 0;
  }

  .product-text {
    background-image: url(/wp-content/uploads/2025/11/lines-jlinc.svg);
    background-repeat: no-repeat;
    background-size: 30%;
    background-position-x: -50px;
    background-position-y: 0;
    background-image: none;
}
}