@import url('https://fonts.googleapis.com/css2?family=Fascinate&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans+Expanded:wght@100;200;300;400;500;600;700;800;900&family=Fascinate&display=swap');

html {
  scroll-behavior: smooth;
}

body {
    margin: 0 auto;
}

header.header {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.logo {
    padding: 15px 15px;
}

section.top-page{
    background: url(../images/GALA\ ensIIE\ \(80\ x\ 120\ cm\).png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    height: 120vh;
}

/* Menu de navigation */

nav.nav {
    display: flex;
    font-family: fascinate;
    color: #dd8fd7;
    justify-content: space-between;
    list-style: none;
    flex: 1;
    max-width: 900px;
    margin: 0 5vw;
    font-size: 2vw;
}

li {
    margin-left: 20px;
    margin-right: 20px;
}

.barre {
    text-decoration: none;
}

.barre:link {
    color: inherit;
}
.barre:visited {
    color: inherit;
}

.barre:hover {
    text-decoration: underline;
}

.big-title {
    color: #dd8fd7;
    box-sizing: border-box;
    font-size: 10vh;
    text-align:center;
    font-family: fascinate;
    width: 100%;
}

.par1 {
    color : rgb(163, 31, 163);
    text-align: center;
    font-size: 3vw;
    font-family: "Encode Sans Expanded", sans-serif;
    font-weight: 500;
}

.case {
    text-align: center;
    display: inline-block;
    padding: 1.5vw 4vw;
    border: 2px solid rgb(163, 31, 163);
    text-decoration: none;
    color: rgb(163, 31, 163);
    font-family: "Encode Sans Expanded", sans-serif;
    font-weight: 600;

    background-color: rgba(194, 0, 194, 0.2);
    cursor: pointer;
    transition: background-color 0.3s;
}

.case:hover {
    background-color: rgb(163, 31, 163);
    color: white;
}

.langin-class {
  position: absolute;
  text-align: center;
  top: 40%;              /* % de la hauteur de la section = de l'image */
  left: 0;
  width: 100%;
}

.descr {
    font-family: "Encode Sans Expanded" , sans-serif;
    text-align: center;
    background-color: white;
    width: 800px;
    margin: 0 auto;
    line-height: 2;
}

.titre1 {
    font-size: 45px;
}

.par2 {
    font-size: 17px;
}
.info {
    background-color: #F2F2F2;
    font-family: "Encode Sans Expanded" , sans-serif;
    text-align: center;
    line-height: 1.5;

}

.item3 {
    font-size: 16px;
    font-weight: 100;
}

nav.nav2 {
    display: flex;
    font-family: "Encode Sans Expanded", sans-serif;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    font-size: 18px;
    width: 100%;
    max-width: 1300px;
}

nav.nav3 {
    display: flex;
    font-family: "Encode Sans Expanded", sans-serif;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    font-size: 18px;
    width: 100%;
    max-width: 1300px;
}

nav.nav2 li {
    margin: 0 20px;
    width: 380px;
    justify-content: center;
    border: 2px solid black;
    background: url(../images/fondPaillette.jpg);
}

nav.nav2 li:hover{
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.spec {
    margin: 0 20px;
    width: 380px;
    justify-content: center;
}

.item2 {
    color: rgb(163, 31, 163);
}

footer {
    text-align: center;
    font-family: "Encode Sans Expanded", sans-serif;
    font-size: 15px;
    background-color: black;
    color: white;
}

.lien:link{
    color: inherit;
}

.lien:visited {
    color: inherit;
}


@media (max-width: 768px) {

  /* Hero */
  section.top-page {
    position: relative;      /* le texte absolu se place par rapport à la section */
    height: 100vh;
  }

  header.header {
    flex-direction: column;  /* logo au-dessus du menu */
    padding: 10px 0;
  }

  header.header img {
    width: 90px;
  }

  nav.nav {
    width: 100%;
    margin: 10px 0 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 4vw;
  }

  nav.nav li {
    margin: 0 8px;
  }

  .langin-class {
    top: 35%;
  }

  .big-title {
    font-size: 11vw;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .par1 {
    font-size: 5vw;
  }

  .case {
    padding: 14px 28px;
    font-size: 4vw;
  }

  /* Sections de texte */
  .descr {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .titre1 {
    font-size: 28px;
  }

  .par2 {
    font-size: 16px;
  }

  /* Blocs empilés au lieu d'être côte à côte */
  nav.nav2,
  nav.nav3 {
    flex-direction: column;
    align-items: center;
  }

  nav.nav2 li,
  .spec {
    width: 85%;
    margin: 10px 0;
    box-sizing: border-box;
  }
}