body {
  padding: 0px;
  background: url("fond1.jpg") center/cover;
  /* center/cover couvre toute la page avec l'image */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  
  
}

.page {

  background-color: white;
  box-shadow: 0 0 0 black;
  
  min-height: 10px;
  width: 1000px;
  padding: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.logo{
  width: 5rem;
  height: 5rem; 
  position: absolute; 
  top: 1%; 
  left: 1%; 
  border-radius: 15px;
}



h1 {
  font-size: 5rem;
  text-shadow: 5px 10px 9px rgb(152, 79, 79);
  color: rgb(60, 159, 245);
}
p {
  text-align: left;
  font-size: 20px;
  padding-left: 20px;
  margin: 0;
}
header {
  background: url("fond2.png") center/cover;
  padding-top: -100px;
}
main {
  background-color: white;
  padding-left: 20px;
  padding-right: 20px;
}
/* .mdjn > h3, .mdjn > p, .mdjn > ul > li{
  color: white; */
/* } */
footer {
  background-color: rgb(240, 231, 231);
  padding-left: 20px;
}
.entete {
  background-color: lightgreen;
}
nav ul {
  list-style: none;
  color: black;
  padding-left: 0;
  margin-left: 0;
  display: flex;
  justify-content: center;
  gap: 10rem;
}
nav li {
  font-weight: bold;
  font-size: 30px;
  cursor: pointer;
  transition: 0.6s ease;
}
nav li:hover {
  text-decoration: underline;
}
button {
  border-radius: 10px;
  background-color: violet;
  min-width: none;
  min-height: 30px;
  margin: 2px;
  padding: 10px;
  cursor: pointer;
}
h2 {
  border-left: 10px solid darkgreen;
  text-transform: uppercase;
  font-size: 50px;
  background-color: lightgreen;
  margin-left: -30px;
  margin-right: -30px;
  text-shadow: -3px 2px 0 black;
  letter-spacing: 1px;
}
i {
  color: white;
  font-size: 20px;
  font-weight: bold;
}
h3 {
  font-size: 30px;
}
textarea {
  border-radius: 10px;
  border: black solid;
  resize: none;
  overflow: hidden;
  transition: 0.3s ease;
}
textarea:focus {
  box-shadow: 0 0 5px rgba(58, 81, 97, 0.714);
}
table {
  width: 100%;
  background-color: lightblue;
}
.d1 {
  border: darkblue solid 2px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 5px;
  padding: 10px;
  gap: 10px;
  margin: 10px;
}
.bf {
  background-color: skyblue;
  border-radius: 0;
  color: black;
  transition: 0.5s ease;
}
.bf:hover {
  background-color: darkblue;
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

.coin {
  position: absolute;
  top: 90px;
  right: 250px;
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 80px;
  font-weight: bold;
}

.btn6 {
  background-color: white;
  height: 60px;
  border-radius: 50%;
  width: 60px;
  cursor: pointer;
  margin-left: 450px;
}

#togglebtn.off {
  background-color: white;
  height: 60px;
  border-radius: 50%;
  width: 60px;
  cursor: pointer;
  margin-left: 450px;
}

#togglebtn.on {
  background-color: darkblue;
  height: 60px;
  border-radius: 50%;
  width: 60px;
  cursor: pointer;
  margin-left: 450px;
}
#togglebtn.off {
  background-color: white;
  height: 60px;
  border-radius: 50%;
  width: 60px;
  cursor: pointer;
  margin-left: 450px;
}

summary {
  background-color: rgb(42, 42, 204);
  color: white;
  border-radius: 10px;
  position: fixed;
  top: 75vh;
  left: 2vw;
  list-style: none;
  width: 100px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
summary:hover {
  background-color: darkblue;
}
details > div {
  position: fixed;
  overflow-y: auto;
  top: 0;
  left: 0;
  height: 100vh;
  width: 30vw;
  /* background-color: lightgray; */

  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
details[open] > div {
  transform: translateX(0);
}
details > div > p {
  font-weight: bold;
  color: red;
}
details > div > h3 {
  text-shadow: 2px 1px 2px black;
}
.btn-bas {
  position: relative;
  left: 24vw;
  top: 1vh;
  margin-top: 2px;
  font-size: 13px;
  transform: translateX(-50%);
  background-color: blue;
  border-radius: 20px;
  color: white;
  width: 7vw;
  height: 5vh;
  border: 1px solid;
  font-weight: bold;
  cursor: pointer;
  transition: width 0.8s ease, height 0.8s ease, font-size 0.8s ease;
}
.btn-bas:hover {
  width: 9vw;
  height: 6vh;
  font-size: 15px;
}
details > div {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 30vw;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 200;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

details[open] > div {
  transform: translateX(0) !important;
}



/*summary {*/
/*  z-index: 201 !important;*/
/*}*/


/* ============================================================
   CODE À AJOUTER EN BAS DU FICHIER style.css
   (Remplace complètement l'ancien code responsive)
   ============================================================ */

/* TABLETTES (≤ 768px) */
/* ============================================================
   MEDIA QUERIES PROPRE POUR MOBILE ET TABLETTE
   ============================================================ */

/* TABLETTES (≤ 768px) */
@media (max-width: 850px){
  .logo{
    height: 4rem;
    width: 4rem;
    border-radius: 10px;
  }
}
@media (max-width: 768px) {
  .logo{
    height: 4rem;
    width: 4rem;
    border-radius: 10px;
  }
  .page {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
  }

  h1 {
    font-size: 3rem;
    text-align: center;
  }

  h2 {
    font-size: 35px;
    margin-left: -10px;
    margin-right: -10px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 18px;
    padding-left: 10px;
  }

  nav ul {
    flex-wrap: nowrap; /* garde horizontal */
    justify-content: center;
    gap: 2rem;
  }

  nav li {
    font-size: 24px;
  }

  .d1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .d1 img {
    width: 200px;
    height: auto;
  }

  video {
    width: 100%;
    max-width: 300px;
  }

  textarea {
    width: 90%;
    box-sizing: border-box;
  }

  details > div {
    width: 50vw;
  }

  details > div textarea#user,
  details > div textarea#iafara {
    width: 40vw;
    margin-left: 10px;
    display: block;
  }

  .btn-bas {
    left: 23vw;
    width: 15vw;
    height: 6vh;
    font-size: 12px;
  }

  .btn-bas:hover {
    width: 17vw;
    height: 7vh;
  }
}

/* MOBILES (≤ 480px) */
@media (max-width: 480px) {
    .logo{
      height: 3rem;
      width: 3rem;
      border-radius: 10px;
    }
    /* Coin (temps) */
    .hide-mobile{
        display: none;
    }
    .coin {
      position: absolute; /* permet de le garder visible */
      top: 70px;
      right: 50px;
      font-size: 40px;
      text-align: right;
      margin: 0;
    }

    /* Bouton jour/nuit */
    #togglebtn,
    #togglebtn.on,
    #togglebtn.off {
      position: absolute; /* fixe la position sur mobile */
      top: 130px;
      right: 50px; /* décale à gauche du coin/temps */
      width: 50px;
      height: 50px;
      margin: 0;
      z-index: 200;
    }

    /* Images dans le bouton */
    #togglebtn img {
      width: 25px !important;
      height: 25px !important;
    }
  nav ul {
    flex-direction: row; /* force horizontal sur mobile */
    flex-wrap: wrap;     /* adapte si manque de place */
    justify-content: center;
    gap: 1rem;
  }

  nav li {
    font-size: 18px;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 24px;
    border-left: 5px solid darkgreen;
    padding-left: 5px;
  }

  h3 {
    font-size: 20px;
  }

  p,
  i {
    font-size: 16px;
    padding-left: 5px;
  }

  .d1 {
    flex-direction: column;
    align-items: center;
  }

  .d1 img {
    width: 150px;
    margin-bottom: 10px;
  }

  details > div {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;  /* occupe toute la largeur */
    height: 100vh !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 200 !important;
  }

  details > div textarea#user,
  details > div textarea#iafara {
    width: 90% !important;
    margin: 10px auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .btn-bas {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 250px;
    height: 45px !important;
    font-size: 14px !important;
    margin: 10px auto !important;
    display: block !important;
  }

  .btn-bas:hover {
    width: 90% !important;
    max-width: 250px;
    height: 45px !important;
  }

  summary {
    top: 90vh;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    font-size: 14px;
    z-index: 100;
  }

  details > div > p,
  details > div > h3 {
    text-align: center;
    padding: 0 10px;
  }

  #verif {
    font-size: 14px;
  }
  textarea, input{
    padding: 10px;
    font-size: 16px;
  }
}

/* TRÈS PETITS ÉCRANS (≤ 320px) */
@media (max-width: 320px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 20px;
  }

  nav li {
    font-size: 16px;
  }

  .btn-bas {
    width: 100px !important;
    margin: 5px auto;
  }

  summary {
    width: 100px;
  }

  details > div textarea#user,
  details > div textarea#iafara {
    width: 80% !important;
  }
}
