/* works.css */

:root {
  --green: #2f9a4a;
  --yellow: #ffd200;
  --white: #ffffff;
  --black: #000000;
  --red: #e53935;
  --font: 'Roboto', sans-serif;
  /*
  --topbar-height: 100px;
  --left-marging: 400px;
  --left-marging-less: 395px;
  */
}

* {
  /*box-sizing: border-box;*/
  box-sizing: content-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  font-weight: 100;
  background-color: var(--white);
  color: #111;
}

header {
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
  width: fit-content;
  line-height: 0.0; /* valeur relative */
}
/*///////////////////////////////////////////////////*/


/* Contenu principal */
.main-content {
   margin-top: var(--topbar-height);
}
/*///////////////////////////////////////////////////*/
/* Bloc blanc */
.white-block {
  background-color: var(--white);
  padding: 20px 0px; 
  display: flex;
  /*justify-content: center;*/
  margin-left: var(--left-marging-less);
}

.text-container {
  max-width: 960px;
  width: 100%;
  text-align: left;
  line-height: 1.6;
 }

.text-container h1 {
  font-size: 72px;
  margin-top: 40px;
  margin-bottom: 10px;
  line-height: 1.0;
  font-weight: 300; 
  white-space: nowrap;
  
}

.text-container h2 {
  font-size: 28px;
  margin-top: 10px;
  margin-bottom: 0px;
  font-weight: 400; 
  line-height: 1.6;
  white-space: nowrap;
}

.text-container desc {
  font-size: 20px;  
  font-weight: 300; 
  line-height: 1.0;  
  /*white-space: nowrap;*/
}

.text-container p {
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 0px;
  font-weight: 300; 
  line-height: 0.8;  
  white-space: nowrap;
  color: #464646;
}



/* Bloc rouge avec image */
.video {
  background-color: var(--white);
  /*text-align: center; /* Centre les éléments inline-block */
  padding: 0;
  transform-origin: center left;
  /*transform: translate(320px)*/
  margin-left: var(--left-marging);  
}
.image-wrapper img {
  display: block;
  max-width: 960px;
  height: auto;

}
.image-wrapper {
  position: relative;
  display: inline-block; /* ← épouse la taille de l’image */
  vertical-align: top;   /* ← aligne en haut */
  /*transform: scale(0.5);
  transform-origin: top left; */
}

/*///////////////////////////////////////////////////*/
/* Overlay noir + texte Discover */
.hover-overlay {
  text-decoration: none;    /* enlève le soulignement */
  color: inherit;            
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  pointer-events: auto;
  z-index: 1;
  cursor: pointer;          /* Curseur main comme un bouton */
  role: button;             /* Pour l'accessibilité (si utilisé en HTML) */
}
.discover-text {
  color: white;
  font-size: 144px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  user-select: none;        /* Empêche la sélection du texte */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.video-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-popup {
  position: relative;
  
  width: 90vw;
  max-width: 1920px;
  aspect-ratio: 16 / 9;
}

.video-popup iframe {
  max-width: 90vw;
  max-height: 80vh;  
  border-radius: 0px;
  
    width: 100%;
  height: 100%;
  border-radius: 0;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/*///////////////////////////////////////////////////*/

/* Hover effect */
.image-wrapper:hover .hover-overlay {
  background-color: rgba(0, 0, 0, 0.75);
}

.image-wrapper:hover .discover-text {
  opacity: 1;
}
/*///////////////////////////////////////////////////*/
/*///////////////////////////////////////////////////*/

/* Responsive */
@media (max-width: 1300px) {

:root {
  /*
  --font: 'Roboto', sans-serif;
  --topbar-height: 120px;
  --left-marging: 50px;
  --left-marging-less: 45px;
  */
}


/*///////////////////////////////////////////////////*/


/*///////////////////////////////////////////////////*/

.text-container {
  /*max-width: 320px;*/
  max-width: 100vw;
  width: 100%;
  text-align: left;
  line-height: 0.25;
 }
.text-container h1 {
  font-size: 24px;
  margin-bottom: 0px;
  line-height: 1.0;
  font-weight: 500;   
}
.text-container h2 {
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: 400; 
  
}
.text-container p {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 300; 
  line-height: 1.0;
   
}

.video {
  padding: 20;
  transform-origin: top left;  
  margin-left: 0;
  margin-top: 20;
  width: 100px;
  height: auto;
  display: block;
}
.image-wrapper {
  width: 100vw;
  position: relative;
  display: inline-block; /* ← épouse la taille de l’image */
  vertical-align: top;   /* ← aligne en haut */
}

.image-wrapper img {
  width: 100vw;
  display: block;
  max-width: none;
  height: auto;
}





