* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@font-face {
  font-family: "Avenida LET";
  src: url(Font/avenida-regular.ttf);
}

@font-face {
  font-family: "Avenir Light";
  src: url(Font/Avenir\ Light.ttf);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
}

footer {
  text-align: end;
  color: white;
  background-color: #3D9BE9;
  padding-right: 1%;
  font-family: "Avenir Light";
  font-size: 1.2em;
}

/* Positionnement du bouton en haut à droite */
.lang-switch {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
  }

  .lang-button {
    background-color: #8a9fe4;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    transition: background-color 0.3s;
  }

  .lang-button:hover {
    background-color: #bbb;
  }

  [lang] {
    display: none;
  }

  [lang].active {
    display: block;
  }

  body {
  background-color: #7a3faa;
  font-family: "Avenir Light";
}

.image-caption {
  text-align: center;
  margin-top: 0.5rem;
  font-family: "Avenir Light";
  font-size: 1.2rem;
  font-style: italic;
  color: #666;
}

.cristallisation-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4rem auto;
  max-width: 1600px;
  width: 100%;
}

.cristallisation-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  flex-wrap: nowrap;
}

.cristallisation-block.reverse .cristallisation-row {
  flex-direction: row-reverse;
}

.cristallisation-image {
  flex: 2;
  max-width: 66.66%;
}

.cristallisation-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.cristallisation-text {
  flex: 1;
  max-width: 33.33%;
  font-family: "Avenir Light", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

h1 {
    font-family: "Avenida LET";
    font-size: 4.5em;
    text-align: center;
    color: #eba4db;
}

h2 {
    font-family: "Avenida LET";
    font-size: 3.5em;
}

h1, h2 {
  padding-bottom: 3rem; /* Ajuste la valeur selon l'espacement souhaité */
}

.titre-intro {
    color: rgb(179, 148, 230);
}

.titre-reperes, .titre-etape, .titre-loading {
  color:rgb(224, 195, 131);
}


.titre-actuel {
    color: #9fd9e7;
}

.text-intro {
    color: #d6f7fc;
    padding-bottom: 5%;
}

.text-festival {
    color: #f8eaea;
}

.text-jungle {
    color: #fcf9ec;
}

.text-city {
    color: #f1efff;
}

.text-spatial {
    color: #def6ee;
}

.text-apocalypse {
    color: #f9ecf9;
}

.text-river {
    color: #fefbe0;
}

.text-step {
    color: #fef5e1
}

.text-palace {
    color: #ddfff3;
}

.text-loading {
  color: #e5fcfb;
}

.text-factory {
    color: #fff5d1; /* Jaune pâle sur brun doré foncé */
}

.text-dystopian {
    color: #f5f0e5; /* Ivoire sur fond marron olive */
}

.text-recherches {
    color: #d8e6ff; /* Bleu pâle sur fond bleu foncé */
}

.text-conclusion {
    color: #f2f2f2; /* Blanc légèrement adouci pour un bon contraste sur fond sombre */
}

.text-etape {
    color: #f2f8f7; /* Blanc bleuté doux */
}

.text-reperes {
    color: #f1fcfc; /* Très clair et froid, bonne lisibilité sur bleu/vert */
}

.cristallisation-block.triple .cristallisation-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  flex-wrap: nowrap;
}



.croquis, .etape, .reperes, .loading-dock, .factory, .jungle, .festival, .dystopian, .city, .spatial, .apocalypse, .river, .step, .palace,
.recherches, .actuel {
  max-width: 100%; /* ou ce que tu veux */
  max-height: max-content;
  padding: 5%;
}

.croquis {
  background: linear-gradient(to bottom, #414099, #21204e); 
}

.etape {
  background: linear-gradient(to bottom, #689c88, #45695b); 
}

.caption-etape {
    color: #dcfefe;
}

.reperes {
  background: linear-gradient(to bottom, #6a9a9c, #547d80);
}

.loading-dock {
  background: linear-gradient(to bottom, #4a9a9e, #2b6366);
}

.caption-loading {
    color:#e7d5a6;
}

.factory {
  background: linear-gradient(to bottom, #b39f51, #7a6c31);
}

.caption-factory {
    color:#fef9e7;
}

.jungle {
  background: linear-gradient(to bottom,#848f54, #4b5521);
}

.caption-jungle {
    color:#fff8f5;
}

.festival {
  background: linear-gradient(to bottom,#b14d4d, #612121);
}

.caption-festival {
    color:#fef2ff;
}

.dystopian {
  background: linear-gradient(to bottom,#afa17a, #776740);
}

.caption-dystopian {
    color:#fffde6;
}

.city {
  background: linear-gradient(to bottom,#6675b9, #414b77);
}

.caption-city {
    color:rgb(233, 158, 217);
}

.spatial {
  background: linear-gradient(to bottom,#4e6d75, #1e3e46);
}

.caption-spatial {
    color:#eafdf5;
}

.apocalypse {
  background: linear-gradient(to bottom,#4e44ad, #2e276e);
}

.caption-apocalypse {
    color:#fcecff;
}

.river {
  background: linear-gradient(to bottom,#5c324d, #36172a);
}

.caption-river {
    color:#f8ffe0;
}

.step {
  background: linear-gradient(to bottom,#604480, #36234d);
}

.caption-step {
    color:#fff2da;
}

.palace {
  background: linear-gradient(to bottom,#2b3b50, #192431);
}

.caption-palace {
    color:#d6ffee;
}

.recherches {
  background: linear-gradient(to bottom,#2b3b50, #192431);  
}

.caption-recherches {
    color:#c9e1ff;
}

.actuel {
  background: linear-gradient(to bottom,#a36846, #553522);  
}

.reperes h2 {
  margin-bottom: 3rem;
}



.cristallisation-image.double {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.cristallisation-image.double img {
  max-width: 1200px; /* Ajuste selon la taille souhaitée */
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cristallisation-text {
  flex: 1;
  max-width: 600px;
  font-family: "Avenir Light", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}

.cristallisation-image.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.cristallisation-image.intro .grande-image img {
  width: 70%; /* taille de l’image principale */
  max-width: 800px;
}

.cristallisation-image.intro .ligne-bas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

.cristallisation-image.intro .ligne-bas .sketch img {
  width: 100%;
  max-width: 1200px; /* taille des deux images secondaires */
}
.cristallisation-image.intro .sketch-row .sketch img {
  width: 40%; /* Images secondaires plus petites */
}

.text-conclusion {
  margin-bottom: 3.5rem; /* Ajuste selon ton goût */
}






/* Responsive: en mobile, image et texte empilés */
@media (max-width: 768px) {
 
  .cristallisation-row {
    display: block !important;
  }

  .cristallisation-image,
  .cristallisation-text {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 1.5rem;
    flex: none !important; /* désactive le flex-grow etc */
  }

  /* Pour centrer l'image et qu'elle prenne toute la largeur */
  .cristallisation-image {
    display: block !important; /* plus de flex ici */
    text-align: center !important;
  }

  .cristallisation-image.intro {
    flex-direction: column;
    align-items: center;
  }
  
  .cristallisation-image.intro > .sketch,
  .cristallisation-image.intro .ligne-bas > .sketch {
    flex: 1 1 100%;
    max-width: 100%;
  }

  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2em;
  }

  .image-caption {
  font-size: 0.9em;
}

  .cristallisation-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 1rem; /* tu peux garder si tu veux */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* idem */
    display: inline-block;
  }

   .cristallisation-text, .text-conclusion, .text-intro {
    font-size: 0.7em;
  }

  footer {
    font-size: 0.9em;
  }
}


