/* ---------------- variables ---------------- */

:root {
  --couleur-fond: #141414;
  --couleur-texte: #F3F2EE;
  --couleur-touche: #0FB2CF;
  --couleur-gris-clair: #6D6D6D;
  --couleur-gris-fonce: #D8D6D0;

  --font-principale: "Futura", Arial, Helvetica, sans-serif;
}

body.theme__clair {
  --couleur-fond: #F3F2EE;
  --couleur-texte: #141414;
  --couleur-touche: #0FB2CF;
  --couleur-gris-clair: #D8D6D0;
  --couleur-gris-fonce: #6D6D6D;
}

/* ---------------- base ---------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--couleur-fond);
  color: var(--couleur-texte);
  font-family: var(--font-principale);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ---------------- bouton theme ---------------- */

.theme__switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
}

.bouton__theme {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--couleur-gris-clair);
  background-color: var(--couleur-fond);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.bouton__theme:hover {
  transform: scale(1.05);
}

.bouton__theme img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ---------------- structure générale ---------------- */

.page {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

.ecran {
  width: 100%;
  min-height: 100vh;
  padding: 120px 0;
  display: flex;
  align-items: center;
}

.grille {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contenu__texte {
  width: 100%;
  max-width: none;
}

/* ---------------- typographie ---------------- */

.numero__section {
  margin-bottom: 14px;
  color: var(--couleur-gris-fonce);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: bold;
  line-height: 0.95;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(64px, 8vw, 112px);
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

span {
  color: var(--couleur-touche);
}

.texte__section {
  max-width: 680px;
  color: var(--couleur-texte);
  font-size: 17px;
  line-height: 1.7;
}

.texte__oeuvre {
  color: var(--couleur-gris-fonce);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

/* ---------------- boutons / liens ---------------- */

.bouton__retour {
  display: inline-block;
  margin-top: 32px;
  color: var(--couleur-touche);
  font-size: 15px;
  text-decoration: none;
}

.bouton__retour:hover {
  text-decoration: underline;
}

/* ---------------- visuels ---------------- */

.visuel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------------- fusée ---------------- */

.fusee__parcours {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  pointer-events: none;
  z-index: 0;
}

.fusee__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------------- lignes de fond ---------------- */

.decor__lignes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ligne__verticale,
.ligne__horizontale {
  position: absolute;
  background-color: var(--couleur-gris-clair);
  opacity: 0.9;
}

.ligne__verticale {
  top: 0;
  bottom: 0;
  width: 1px;
}

.ligne__horizontale {
  left: -500px;
  right: -500px;
  height: 1px;
}

.ligne__verticale--1 {
  left: calc((100% / 12) * 1);
}

.ligne__verticale--2 {
  left: calc((100% / 12) * 4);
}

.ligne__verticale--3 {
  left: calc((100% / 12) * 11);
}

.ligne__horizontale--1 {
  top: 14%;
}

.ligne__horizontale--2 {
  top: 47%;
}

.ligne__horizontale--3 {
  top: 78%;
}

/* ---------------- écran 1 ---------------- */

.ecran__intro .contenu__texte {
  grid-column: 2 / 7;
}

/* ---------------- écran 2 ---------------- */

.ecran__plateus .contenu__texte {
  grid-column: 7 / 12;
}

.visuel__portrait {
  grid-column: 2 / 6;
  grid-row: 1;
  aspect-ratio: 4 / 5;
}

.reseaux__artiste {
  margin-top: 24px;
}

.reseaux__artiste a {
  display: inline-flex;
  text-decoration: none;
}

.icone__reseau {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  transition: transform 0.25s ease;
}

.icone__reseau img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icone__reseau__base {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.icone__reseau__couleur {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.reseaux__artiste a:hover .icone__reseau {
  transform: scale(1.12);
}

.reseaux__artiste a:hover .icone__reseau__base {
  opacity: 0;
}

.reseaux__artiste a:hover .icone__reseau__couleur {
  opacity: 1;
}

/* ---------------- écran 3 ---------------- */

.ecran__themes .contenu__texte {
  grid-column: 2 / 6;
}

.liste__thematiques {
  grid-column: 7 / 12;
  display: grid;
  gap: 12px;
  padding-top: 84px;
}

.bouton__thematique {
  width: 100%;
  padding: 18px 0;
  border: none;
  border-top: 1px solid var(--couleur-gris-clair);
  background: transparent;
  color: var(--couleur-texte);
  font-family: var(--font-principale);
  font-size: 24px;
  line-height: 1.2;
  text-align: right;
  cursor: pointer;
  transition: color 0.25s ease;
}

.bouton__thematique:hover {
  color: var(--couleur-touche);
}

.contenu__thematique {
  display: none;
  padding: 0 0 12px 0;
}

.contenu__thematique.actif {
  display: block;
}

.contenu__thematique .texte__section {
  max-width: 100%;
  font-size: 16px;
  text-align: right;
}

/* ---------------- écran 4 ---------------- */

.ecran__travail .contenu__texte {
  grid-column: 7 / 12;
  margin-bottom: 40px;
}

.carrousel__oeuvres {
  grid-column: 2 / 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.fenetre__oeuvres {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.fenetre__oeuvres::-webkit-scrollbar {
  display: none;
}

.piste__oeuvres {
  display: flex;
  gap: 20px;
}

.carte__oeuvre {
  flex: 0 0 calc((100% - 40px) / 3);
  display: grid;
  gap: 12px;
}

.visuel__oeuvre {
  aspect-ratio: 16 / 10;
}

.bouton__carrousel {
  width: 42px;
  height: 42px;
  border: 1px solid var(--couleur-gris-clair);
  border-radius: 20px;
  background-color: transparent;
  color: var(--couleur-texte);
  font-family: var(--font-principale);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bouton__carrousel:hover {
  background-color: var(--couleur-touche);
  color: var(--couleur-fond);
  transform: scale(1.05);
}

/* ---------------- écran 5 ---------------- */

.ecran__delta .contenu__texte {
  grid-column: 2 / 7;
}

.visuel__delta {
  grid-column: 8 / 12;
  aspect-ratio: 4 / 3;
}

/* ---------------- écran 6 ---------------- */

.ecran__fin .contenu__texte {
  grid-column: 7 / 11;
  padding-top: 10vh;
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {

  /* ---------------- structure générale ---------------- */

  .page {
    width: min(100%, calc(100% - 40px));
  }

  .ecran {
    min-height: auto;
    padding: 80px 0;
    display: block;
  }

  .grille {
    display: block;
  }

  .contenu__texte,
  .ecran__intro .contenu__texte,
  .ecran__plateus .contenu__texte,
  .ecran__themes .contenu__texte,
  .ecran__travail .contenu__texte,
  .ecran__delta .contenu__texte,
  .ecran__fin .contenu__texte {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 0;
  }

  .fusee__parcours {
    display: none;
  }

  .visuel__portrait,
  .visuel__delta {
    margin-top: 36px;
  }

  /* ---------------- bouton theme ---------------- */

  .theme__switch {
    top: 16px;
    right: 16px;
  }

  .bouton__theme {
    width: 44px;
    height: 44px;
  }

  .bouton__theme img {
    width: 18px;
    height: 18px;
  }

  /* ---------------- écran 2 ---------------- */

  .reseaux__artiste {
    margin-top: 24px;
  }

  .visuel__portrait {
  width: 70%;
  max-width: 260px;
  margin: 36px auto 0 auto;
}

  /* ---------------- écran 3 ---------------- */

  .liste__thematiques {
    display: grid;
    gap: 12px;
    margin-top: 40px;
    padding-top: 0;
  }

  .bouton__thematique {
    text-align: left;
    font-size: 22px;
  }

  .contenu__thematique .texte__section {
    text-align: left;
  }

  /* ---------------- écran 4 ---------------- */

 .carrousel__oeuvres {
  margin-top: 40px;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 12px;
}

.fenetre__oeuvres {
  order: initial;
}

.bouton__carrousel__gauche,
.bouton__carrousel__droite {
  order: initial;
}

.piste__oeuvres {
  gap: 16px;
}

.carte__oeuvre {
  flex: 0 0 100%;
}

.bouton__carrousel {
  width: 38px;
  height: 38px;
}

  /* ---------------- écran 5 ---------------- */

.visuel__delta {
  width: 80%;
  max-width: 300px;
  margin: 36px auto 0 auto;
}

  /* ---------------- typographie ---------------- */

  h1 {
    font-size: clamp(52px, 12vw, 72px);
  }

  h2 {
    font-size: clamp(40px, 10vw, 56px);
  }

  h3 {
    font-size: 22px;
  }

  .texte__section {
    font-size: 16px;
  }
}