:root {
  --fs-small: clamp(0.8rem, 0.5vw, 2rem);
  --fs-inter: clamp(1.2rem, 1.6vw, 1.6rem);
  --fs-huge: clamp(2rem, 4vw, 6rem);
  --fs-sens: clamp(2rem, 4vw, 5rem);
}

html
{
  scrollbar-width: none;
}

body
{
  margin: 0;
  padding: 0;
  width: 100%;
  overflow:auto; 
  box-sizing: border-box;
  background-color: #1b1b1b;
}



@font-face {
  font-family: "SG15_sm";
  src : url(../fonts/SharpGrotesk-SemiBold15.otf)
}

@font-face {
  font-family: "SG20_light";
  src : url(../fonts/SharpGrotesk-Light20.otf)
}


@font-face {
  font-family: "SG25_medium";
  src : url(../fonts/SharpGrotesk-Medium25.otf)
}

@font-face {
  font-family: "SG25_light";
  src : url(../fonts/SharpGrotesk-Light25.otf)
}

@font-face {
  font-family: "JMAD";
  src : url(../fonts/JustMeAgainDownHere-Regular.ttf)
}

@font-face {
  font-family: "JAH";
  src : url(../fonts/JustAnotherHand-Regular.ttf)
}


* {
    box-sizing: border-box;
}

#background_image
{
  min-height: 100vw;
  z-index: -3;
  position: fixed;
  top: 0%;
  left: 0%;
  transform-origin: center;
  overflow: hidden;
}

#background_image
{
  min-height: 100vh;
  min-width: 100vw;
  z-index: -3;
  position: fixed;
  top: 0%;
  left: 0%;
  transform-origin: center;
  overflow: hidden;
}

#header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2% 1%;
    background-color: rgba(27, 27, 27, 0.1);
    backdrop-filter: blur(50px);
    z-index: 5;
    transition: none; /* Évite que le header disparaisse */
}

#home_logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

#header_logo {
    width: 50%;
    min-width: 5%;
    margin : 0 0 0 10%;
    height: auto;
}

.rounded_button {
    display: flex; /* Changé de inline-block à flex */
    align-items: center; /* Centre le texte verticalement */
    justify-content: center; /* Centre le texte horizontalement */
    padding: 8px 16px; /* Changé de 2% 4% 2% 4% pour un padding fixe */
    background: #272727;
    border: 1px solid #ffffff; /* Simplifié border */
    border-radius: 50px;
    font-family: "SG25_light";
    color: #fff;
    text-decoration: none;
    font-size: var(--fs-small);
    white-space: nowrap;
    text-align: center; /* Ajouté pour centrer le texte */
    transition: 0.5s ease-in;
}

/* Navigation : changements pour uniformiser la hauteur */
#nav_bar {
    display: flex;
    gap: 40px;
    text-transform: uppercase;
}


#nav_bar ul {
    display: flex;
    list-style: none;
    align-items: stretch; /* Ajouté pour uniformiser la hauteur des <li> */
    padding: 0;
}

#nav_bar li {
    display: flex; /* Ajouté pour faire des <li> des conteneurs flex */
    align-items: center; /* Centre les boutons verticalement */
    margin: 0 10px;
}

a
{
  color: #fff;
  text-decoration: none;
}



.rounded_button.active {
    background-color: #fff;
    color: #1b1b1b;
}

.rounded_button:hover:not(.active) {
    background-color: #fff;
    color: #1b1b1b;
    transition: 0.2s ease-in;
}


#hero
{
  display: flex;
  justify-content: center;
  margin : 0 10%;
  min-height : 100%;
}


h1{
  font-family: "SG25_medium";
  font-size: var(--fs-huge);
  line-height: 90%;
  color :#ffffff;
  margin: 0;
}

h2
{
  font-family: "SG25_medium";
  font-size: var(--fs-huge);
  color : #fff;
  line-height : 85%;
  margin : 0;
}

h3
{
  margin: 0;
  font-family: "SG15_sm";
  font-size: 2vw;
  font-weight: normal ;
}

h4
{
  font-family: "SG25_light";
  color :#ffffff
}

h6
{
  font-family: "JAH";
  font-size: var(--fs-sens);
  font-weight: normal ;
  margin: 0;
}

#hero_center_accroche
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 20vh;
  z-index: 2;
}

#menu_usages
{
  margin: 20px 0 20px 0;
  width: 90%;
  display : flex;
  flex-wrap: wrap;
  flex-direction: row;
  color: #ffffff;
  font-size: var(--fs-small);
  cursor: default;
}

#menu_usages .rounded_button
{
  background-color: #1b1b1b;
  color: #fff;
  padding: 2% 4%;
  margin: 0 10px 10px 0;
}

#menu_usages .rounded_button:hover
{
  background-color: #1b1b1b;
  color: #fff;
}



.rounded_button_action
{
  padding : 20px 40px 20px 40px;
  margin: 0;
  background : #DF3514;
  border-radius: 50px;
  font-family: "SG25_light";
  color : #ffffff;
  width: fit-content;
  font-size: var(--fs-small);
  pointer-events: all;
  cursor:pointer;
  transition: 0.2s ease-out;
}

.rounded_button_action:hover
{
  transform: scale(1.1);
  transition: 0.2s ease-out;
}

#button_meet_up
{
  margin-top : 100px;
}

#utility
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20% 0 20% 0;
}

.container_title
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#clone
{
  font-family: "SG25_medium";
  font-size: var(--fs-huge);
  text-align: center;
  color : #fff;
  line-height : 85%;
  margin : 0;
}

#sens
{
  margin: -1%;
  font-family : "JMAD";
  font-size: var(--fs-huge);
  color: #fff;
}

#simple
{
  text-align: center;
  font-size: var(--fs-inter);
  padding: 0 8%;
  color: #DF3514;
}

#container_bloc
{
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bloc
{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  height: auto;
  padding: 20px 40px 40px 40px;
  background-color: #272727;
  border-radius: 50px;
}

.bloc .rounded_button
{
  color: #fff;
  font-size: var(--fs-small);
  white-space: normal;
}

.bloc p
{
  font-family: "SG20_light";
  color: #fff;
  font-size: var(--fs-small);
}

#me
{
  min-height: 100vh;
  padding: 20% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #DF3514;
}

#me #clone
{
  color : #1b1b1b
}

#me #sens
{
  color : #fff;
  z-index : 2;
}

#container_infos
{
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap : 40px;
}

#container_infos h3
{
  font-size: var(--fs-inter);
}

.infos
{
  width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  font-size: var(--fs-small);
}

.infos .rounded_button_action
{
  position: absolute;
  bottom : 0px;
  margin: 0 10% 5% 10%;
  font-family: "SG25_light";
  color: #fff;
  font-size: var(--fs-small);
  text-align: center;
}

.infos p
{
  font-family: "SG20_light";
  color: #1b1b1b;
  font-size: var(--fs-small);
}


#photo
{
  border-radius: 50px;
  background-image: url(../img/maxileance.jpg);
}


#quote
{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30%;
  color: #272727;
  text-align: center;
}

#quote h1
{
  color: #272727;
  line-height : 85%;
}

#footer
{
  display: flex;
  width: 100%;
  min-height: 20vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #fff;
  color: #1b1b1b;
  padding: 10% 0;
}

#footer h3
{
    font-size: var(--fs-inter);
}

#footer h4
{
   color: #1b1b1b;
   text-align: center;
   padding: 0;
   margin: 0;
}

.signature
{
  font-family: "SG25_light";
  width: 100%;
  display: flex;
  justify-content: center;
  color: #fff;
}

.signature .rounded_button
{
  padding: 10px 20px;
}


#coordonnees
{
  display: flex;
  flex-direction: column;
  justify-content: center ;
  color: #1b1b1b;
}

#social
{
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

#social .rounded_button
{
  background-color: #fff;
  color: #1b1b1b;
  border: 1px solid #1b1b1b; /* Simplifié border */
}

#social a
{
  color: #1b1b1b;
}

#social .rounded_button:hover
{
  background-color: #DF3514;
  color: #fff;
}

#vertical
{
  min-height: 100%;
  padding: 12% 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap : 20px;
}

.preview
{
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: #fff;
  transition: 1s ease-in-out;
}

.preview:hover
{
  transform: scale(0.95);
  filter: sepia(50%) saturate(700%) contrast(100%) brightness(90%)  hue-rotate(-30deg); /* Rouge vif optimisé */
  transition: 0.2s ease-in-out;
}

.preview_infos p
{
  font-family: "SG25_light" ;
  bottom: 0;
  font-size: var(--fs-small);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  z-index: 3;
}

.preview img
{
  filter: grayscale(100%) brightness(100%) contrast(104%);
  z-index: 0;
}

.preview_infos
{
  position: absolute;
  display: flex;
  padding: 20px 0;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  filter: drop-shadow(0 0 0.75rem #1b1b1b);
  z-index: 3;
}

.preview_infos h3
{
   font-size: var(--fs-inter);
   text-transform: uppercase;
}

.preview_infos p
{
  font-family: "SG25_light" ;
  bottom: 0;
  font-size: var(--fs-small);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

.projet
{
  background-color: #1b1b1b;
  min-height: 100%;
  padding: 24% 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

.projet h2
{
  pointer-events: none;
  text-transform: uppercase;
  text-decoration: none;
}


.projet h3
{
  color: #DF3514;
  pointer-events: none;
   font-size: var(--fs-inter);
  text-transform: uppercase;
}

.projet p
{
  font-family: "SG20_light" ;
  bottom: 0;
  font-size: var(--fs-small);
  color: #fff;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.projet p a
{
  pointer-events: all;
  text-decoration: underline;
}

.projet .rounded_button
{
  max-width: 100px;
  pointer-events: visible;
  text-decoration: none;
}

.infos_projets
{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: rgba(27, 27, 27, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: left 0.3s ease;
    visibility: hidden;
}

.nav-overlay.active {
    left: 0;
    visibility: visible;
}

.nav-overlay ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-transform: uppercase;
}

.nav-overlay .rounded_button {
    min-height: 40px;
    min-width: 150px;
    text-align: center;
    pointer-events: all;
}

.nav-overlay .rounded_button.active {
    background-color: #fff;
    color: #1b1b1b;
}


.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    font-family: "SG25_light";
}

.project-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.project-navigation .rounded_button
{
    background-color: #ffffff; /* Blanc */
    color: #1b1b1b; /* Texte noir pour contraste */
    border: 1px solid #ffffff;
    padding: 1% 10%;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-navigation .rounded_button:hover
{
    transform: scale(1.05);
    background-color: #e0e0e0; /* Légère variation au survol */
}

#bas_de_page 
{
  padding-bottom: 4%;
}

#mentions
{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 10% 10%;
  color: #fff;
}

#mentions h3
{
  font-size: var(--fs-inter);
}

#mentions p
{
  font-family: "SG20_light";
}

/* Overlay de transition */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; /* Part de 0 et passe à 100vh */
    background-color: #DF3514; /* Fond rouge orangé */
    z-index: 1000; /* Au-dessus de tout */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Invisible au départ */
    transition: height 0.5s ease, opacity 0.3s ease; /* Animation fluide */
}

.transition-overlay.active {
    height: 100vh; /* Plein écran */
    opacity: 1; /* Visible */
}

.transition-overlay.leaving {
    height: 0; /* Retour à 0 */
    opacity: 0; /* Fades out */
}

/* Logo dans l’overlay */
.transition-logo {
    max-width: 200px; /* Ajuste selon la taille de ton logo */
    max-height: 200px; /* Limite la taille */
    object-fit: contain; /* Garde les proportions */
    color: #DF3514;
    /* Alternative : background-color: #FF341E si c’est un SVG ou texte */
}

.more-options {
    margin-left: 5px; /* Espacement avec le lien */
    cursor: pointer;
    font-size: 1.2em; /* Taille ajustable */
    color: #1b1b1b; /* Couleur assortie, ajuste selon ton design */
    transition: color 0.3s ease;
}

.more-options:hover {
    color: #FF341E; /* Effet au survol */
}

/* Conteneur pour les vidéos YouTube */
.video-container {
    position: relative;
    width: 100%;
    max-width: 40vw; /* Base pour écrans moyens (~1376px sur 3440px) */
    max-height: 35vh; /* Base pour écrans moyens (~504px sur 1440px) */
    margin: 20px auto; /* Centrer horizontalement */
    overflow: hidden; /* Éviter tout débordement */
}

/* Ratio 16:9 pour les vidéos horizontales */
.video-container.horizontal {
    padding-bottom: 28.125%; /* 16:9 réduit */
}

/* Ratio 9:16 pour les vidéos verticales */
.video-container.vertical {
    padding-bottom: 88.89%; /* 9:16 réduit */
    max-width: 22.5vw; /* Base (~774px sur 3440px) */
    max-height: 32.5vh; /* Base (~468px sur 1440px) */
}

/* Style de l’iframe */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px; /* Style arrondi cool */
}

/* Media query pour écrans ultrawide (3440x1440, ratio ~21:9) */
@media (min-aspect-ratio: 21/9) {
    .video-container {
        max-width: 32.5vw; /* ~1118px sur 3440px */
        max-height: 27.5vh; /* ~396px sur 1440px */
    }
    .video-container.vertical {
        max-width: 17.5vw; /* ~602px sur 3440px */
        max-height: 30vh; /* ~432px sur 1440px */
    }
}

/* Media query pour petits écrans (mobile, < 768px) */
@media (max-width: 768px) {
    .video-container {
        max-width: 60vw; /* ~460px sur 768px */
        max-height: 60vh; /* ~460px sur 768px, +50% par rapport à 40vh */
    }
    .video-container.vertical {
        max-width: 45vw; /* ~345px sur 768px */
        max-height: 65vh; /* ~500px sur 768px, +62% par rapport à 40vh */
    }
}

@media (max-width: 500px) and (max-height : 1000px){
  #hero
  {
    padding: 20% 0;
  }
}


/* Media query pour écrans < 1030px */
@media (max-width: 1030px) {

  #hero
  {
    padding: 4% 0;
  }
    .video-container {
        max-width: 55vw; /* ~563px sur 1024px */
        min-height: 40vh; 
        max-height: 65vh; /* ~500px sur 768px, +44% par rapport à 45vh */
    }
    .video-container.vertical {
        max-width: 30vw;
        min-height: 40vh; /* ~307px sur 1024px */
        max-height: 70vh; /* ~538px sur 768px, +56% par rapport à 45vh */
    }
  
    #nav_bar ul {
        display: flex;
        flex-direction: row; /* Garder horizontal pour le lien actif */
        justify-content: center;
        align-items: center;
    }

    #nav_bar li {
        display: none; /* Cacher tous les liens */
    }

    #nav_bar li:has(.active) {
        display: flex; /* Afficher uniquement le lien actif */
    }

    #nav_bar .rounded_button {
        cursor: pointer; /* Indiquer que le lien actif est cliquable */
    }

    #container_bloc
    {
      flex-direction: column;
    }   

    #container_infos
    {
      flex-direction: column;
    }

    #footer
    {
      padding: 10% 0;
    }

    #social
    {
      flex-direction: column;
    }

    #mentions
    {
      padding: 20% 10%;
    }
}