@font-face {
  font-family: "HelveticaNeue_Regular";
  src: url("./fonts/HelveticaNeue-Regular2.otf") format("truetype");
}
@font-face {
  font-family: "HelveticaNeue_Medium";
  src: url("./fonts/HelveticaNeue-Medium.otf") format("truetype");
}

/* Box-sizing global pour éviter les problèmes de dimensions */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===========================================
   ANTI-FOUC (Flash of Unstyled Content)
   =========================================== */

.js-loading .logoImg,
.js-loading .contact,
js-loading .word,
js-loading .arrow,
js-loading .footerInfosContainer,
js-loading .courant,
js-loading .imageAboutUs,
html.js-loading .logoImg,
html.js-loading .contact,
html.js-loading .word,
html.js-loading .arrow,
html.js-loading .footerInfosContainer,
html.js-loading .courant,
html.js-loading .imageAboutUs {
  opacity: 0 !important;
  visibility: hidden;
}

:root {
  --main-color: #190C57;
  --secondary-color: #3337FC;
  --sideMargin: 30px;
  --vh: 1vh; /* Variable CSS pour la hauteur dynamique */
  --canvas-width: 100vw; /* Valeur par défaut */
  --canvas-height: 100vh; /* Valeur par défaut */
}

html{
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #fefefe;
  /* Synchronisation avec le canvas p5.js */
  height: 100%;
  overflow: hidden; /* Empêcher le scroll sur mobile */
}

/* Support spécifique pour mobile et iOS - Supprimé pour éviter les conflits */

h1,h2,h3,h4,h5,p,a,span{
  font-family: "HelveticaNeue_Medium", sans-serif;
}

header {
  display: flex;
}

canvas{
  position: absolute;
  top:0;
  z-index: -10;
}

.contentContainer{
  padding: var(--sideMargin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Utiliser les mêmes dimensions que le canvas */
  width: 100%;
  height: 100%;
  box-sizing: border-box; /* Les paddings sont inclus dans la hauteur */
  overflow: hidden; /* Empêcher le dépassement */
}

.logoImgContainer{
  width: auto;
  display: inline-block;
  flex-shrink: 0;
}

.logoImg{
  width:auto;
  height: 140px;
}

.contact{
  position: absolute;
  top: var(--sideMargin);
  right: var(--sideMargin);
  text-decoration: none;
}

footer{
  display:flex;
  justify-content: flex-end;
}

.footerInfosContainer{
  display: flex;
}

.footerText{
  margin-right: 60px;
}

.flex{
  display:flex;
  flex-grow: 1;
  height: 100%;
  max-height: 100%;
  justify-content: flex-end;
}

.slide1{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 0;
}

.slide2{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-grow: 1;
}

.slide2ContentContainer{
  display: flex;
  height: 100%;
  align-items: stretch;
  padding-bottom: var(--sideMargin);
}

.arrow{
  width: 30px;
  height: auto;
  position: absolute;
  bottom: var(--sideMargin);
  right: calc(50% - 15px);
}

.textAboutUs{
  display:flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-right: var(--sideMargin);
}

.navLinksContainer{
  margin-top: 12px;
}



.aboutUsTitle{
  padding-bottom: var(--sideMargin);
}

.button{
  padding: 12px 35px 12px 35px;
  background-color: white;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 100px;
  font-size: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: calc(var(--sideMargin) / 2);
  text-align: center;
}

.button:hover{
  cursor: pointer;
  background-color: var(--secondary-color);
  color: white;
  transition: background-color 0.3s ease;
}

.active{
  background-color: var(--secondary-color);
  color: white;
}

.underlined{
  text-decoration: underline;
}

.word {
  color: var(--main-color);
  display: inline-block;
}

.blueText{
  color: var(--secondary-color);
}

.smallText{
  font-size: 20px;
  line-height: 25px;
  color: var(--secondary-color);
}

.bigText{
  font-size: 100px;
  line-height: 110px;
  color: var(--main-color);
  font-weight: 600;
  pointer-events: none;
}

.courant{
  color: var(--main-color);
  font-size: 30px;
}

.imageAboutUsContainer{
  display:flex;
  justify-content: flex-end;
  aspect-ratio: 1 / 1;

}



span{
  color: var(--secondary-color);
}

/* ===========================================
   ANTI-FOUC (Flash of Unstyled Content)
   =========================================== */

.js-loading .logoImg,
.js-loading .contact,
js-loading .word,
js-loading .arrow,
js-loading .footerInfosContainer {
  opacity: 0 !important;
  visibility: hidden;
}

/* ===========================================
   ANIMATIONS ABOUT PAGE
   =========================================== */

.js-loading .word,
.js-loading .courant,
js-loading .imageAboutUs,
html.js-loading .word,
html.js-loading .courant,
html.js-loading .imageAboutUs {
  opacity: 0 !important;
  visibility: hidden;
}

/* ===========================================
   RESPONSIVE DESIGN - 4 BREAKPOINTS
   =========================================== */

/* Mobile - jusqu'à 767px */
@media (max-width: 767px) {
  :root {
    --sideMargin: 15px;
  }

  
  .logoImg {
    height: 100px;
  }

  .slide1 {
    margin-bottom: var(--sideMargin);
  }
  
  .bigText {
    font-size: 38px;
    line-height: 44px;
  }
  
  .courant {
    font-size: 16px;
    line-height: 20px;
  }

  .footerInfosContainer{
    width: 100%;
    justify-content: space-between;
  }
  
  .smallText {
    font-size: 16px;
    line-height: 20px;
  }
  
  .button {
    font-size: 16px;
    padding: 8px 23px 8px 23px;
    margin-bottom: calc(var(--sideMargin) / 2);
  }
  

  
  .textAboutUs {
    padding-right: 0;
    padding-bottom: var(--sideMargin);
    order: 2;
  }

  .navLinksContainer{
    display: flex;
    flex-direction: column;
  }
    .slide2ContentContainer {
      flex-direction: column;
      justify-content: flex-end;
    }
    .imageAboutUsContainer {
      display: flex;
      justify-content: flex-start;
      aspect-ratio: 1 / 1; 
      width: 25%;
    }
  
  .aboutUsTitle {
    padding-bottom: 20px;
  }
  
}

/* Tablet - 768px à 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --sideMargin: 25px;
  }
  
  .logoImg {
    height: 100px;
  }
  
  .bigText {
    font-size: 70px;
    line-height: 75px;
  }
  
  .courant {
    font-size: 24px;
    line-height: 28px;
  }
  
  .smallText {
    font-size: 18px;
    line-height: 22px;
  }
  
  .button {
    font-size: 18px;
  }
  

  .imageAboutUsContainer {
    display: flex;
    justify-content: flex-start;
    aspect-ratio: 1 / 1; 
    width: 25%;
  }


  .textAboutUs {
    padding-right: var(--sideMargin);
    flex: 1.2;
  }
  
}

/* Desktop - 1024px à 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
  :root {
    --sideMargin: 30px;
  }
  
  .logoImg {
    height: 120px;
  }
  
  .bigText {
    font-size: 85px;
    line-height: 90px;
  }
  
  .courant {
    font-size: 28px;
    line-height: 32px;
  }
  
  .smallText {
    font-size: 19px;
    line-height: 24px;
  }
  
  .button {
    font-size: 19px;
  }
  
  .slide2ContentContainer {
    flex-direction: row;
  }
  
  .textAboutUs {
    padding-right: var(--sideMargin);
    flex: 1;
  }
}

/* Desktop Large - 1440px et plus */
@media (min-width: 1440px) {
  :root {
    --sideMargin: 30px;
  }
  
  .logoImg {
    height: 140px;
  }
  
  .bigText {
    font-size: 100px;
    line-height: 110px;
  }
  
  .courant {
    font-size: 30px;
    line-height: 34px;
  }
  
  .smallText {
    font-size: 20px;
    line-height: 25px;
  }
  
  .button {
    font-size: 20px;
  }
  
  .slide2ContentContainer {
    flex-direction: row;
  }
  
  .textAboutUs {
    padding-right: var(--sideMargin);
    flex: 1;
  }
}
