@font-face {
  font-family: "Glacier";
  src: url('./fonts/Glacier.woff') format('woff'),
         url('./fonts/Glacier.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/*Police dyslexique */
@font-face {
  font-family: "OpenDyslexic";
  src: url("./../font/OpenDyslexic-Regular.woff") format("truetype"), url("./../font/OpenDyslexic-Bold.woff") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Twilight" ;
  src: url('./fonts/Twilight.woff') format('woff');
  
}
#code, #audiovisuel, #web,#graphisme{
  padding: 0 5vw;
}
body {
  margin: 0;
  padding: 0;
  font-family: 'Glacier', sans-serif !important;
  background-color: #074E74 !important;
  color: white !important;
}

h1{
  font-family: Twilight, sans-serif !important;
}
#parcours{
	position:relative;
	display:flex;                                   /*disposition du menue pour parcourir en haut */
	width:95%;
  margin-left:auto;
	gap:30px;
  
}
#parcours a {
  text-decoration: none;
  color:white !important;
  font-size: 2em !important;
}
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #06405F;
  padding: 35px 30px;
  width:60vw;
  margin-left:auto;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;

}

header h1 {
  font-size: 1.8rem;
  margin: 0;
}
#burger{
  display: none;
}
.gros-titre{
  text-align: center;
  margin-top: 5vh;
  margin-bottom: 80px;
  font-size: 4em;
}
.titre-moy{
  margin-top: 5vh;
  margin-bottom: 80px;
  margin-left: 2vw;
  font-size: 4em;
}
#menu-nav .ligne{
  display:flex;
  gap: 30px 50px;
  margin-bottom: 20px;
  justify-content: center;
}
#menu-nav{
  height: 70vh;
}
a.lien{
  display: inline-block !important;
  padding: 5px 15px;
  border: 2px solid white;
  border-radius: 12px;
  width:auto !important;
  text-decoration: none;
  color:white;
  font-size: 2em;
  margin-top: 60px;
}
.icones span {
  font-size: 1.5rem;
  margin-left: 15px;
  cursor: pointer;
}
#photo-der .carousel-inner{
  max-height: 800px;
}
#proj .carousel-inner{
  max-height: 800px;
}
.carousel-item iframe{
  pointer-events: none;
}
.carousel-item.active iframe{
  pointer-events: auto;
}
#photo-der .carousel-inner img{
  object-fit: contain;
  max-height: 800px;
  width: auto;
}
#photo-der .carousel-inner .ratio{
  width: 70vw;
  margin: 0 auto;
}
#photo-der .carousel-inner iframe{
  object-fit: contain;
  max-height: 800px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
#proj .carousel-inner img{
  object-fit: contain;
  max-height: 800px;
  width: auto;
}
.vid{
  width:70%;
}
#photo img{
  object-fit: contain;
  max-height: 400px;
  width: auto;
}
.carousel-control-prev,
.carousel-control-next{
  background-color: transparent !important;
}
.section {
  padding: 30px 20px;
  text-align: center;
}
button {
  background-color: #2940B9;
  color: white;
  border: 2px solid #788AED;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}
button:hover {
  background-color: #ff7f7f;
  color: #2d0000;
} 
/*Menu du rouage */
#menu-cacher {
  position: absolute;
  right: 0;
  top: 0;
  background: #06405F;
  border: 1px solid #1a0000;
  z-index: 10;
  width: 30vw;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  align-items: center;

  padding: 30px 20px;
  box-sizing: border-box;
  /*animation */
  transform: translateX(100%);
  transition: transform 0.7s ease-in-out;
}
.d-none {
  display: none !important;
}
#menu-cacher.visible{
  transform: translateX(0);
}
.icones a{
  text-decoration: none;
}
.btn{
  text-decoration: none;
  color:white;
}

.dyslexie {
  font-family: "OpenDyslexic", Arial, sans-serif !important;
}
/* mise en forme des boutons et liens du menu */
.menu-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 20px;
  align-content: flex-start; 
  padding-top: 30px;
  width: 100%;
  flex-grow: 1;
}
  .menu-options a.btn{
    line-height: normal;
    display:block;
    background-color: #2940B9;
    color: white;
    border: 2px solid #788AED;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .site{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .site img{
    width: 70vw;
    margin: 0 auto 20px auto;
    border-radius: 15px;
  }
#scrollTop {
  right: -1000px;
  left: auto;
  bottom: 8vh;
  width: 70px;
  height:70px;
  position: fixed;
  z-index: 9999;
  font-size: 8rem;
  color: white;
}

#scrollTop.active {
  right: 2vw;
}
@media(min-width:768px) and (max-width: 1600px){
  header{
    width: 70vw;
    padding: 20px 15px ;
  }

  #parcours{
    padding: 10px;
  }

  #parcours a{
    font-size: 1.5em !important;
  }
}
/* adapté pour les petits écran, responsif */
@media (max-width:768px){
  #code, #web, #photo, #audiovisuel, #graphisme{
    margin-bottom: 60px;
  }
  #graphisme{
    padding: 0 20px;
  }
  .vid{
    width: 100%;
    margin: 20px 0;
  }
  .video p{
    font-size: 1.2em;
    line-height: 1.5;
  }
  .video h3{
    text-align: center;
    font-size: 1.6em;
  }
  .video{
    margin-bottom: 40px;
  }
  #audiovisuel{
    padding: 0 20px;
  }
  #photo img{
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 15px;
  }
  #photo{
    padding: 0 20px;
  }
  .site p{
    font-size: 1.2em;
    line-height: 1.5;
  }
  .site img{
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
  }
  .site{
    margin-bottom: 40px;
    text-align: center;
  }
  #web{
    padding: 0 20px;
  }
  .projet{
    text-align: center;
  }
  #projet-en-cours{
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
  }
  #code .row{
    flex-direction: column;
    padding: 0 20px;
  }
  #photo-der .carousel-inner img, #proj .carousel img{
    max-height: 300px;
    width: 100%;
    object-fit: contain;
  }
  #photo-der .carousel-inner, #proj .carousel-inner{
    max-height: 300px;
  }
  #pablo h3, #code h3{
    font-size: 1.5em;
    text-align: center;
  }
  #pablo p, #code p{
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: justify;
  }
  #pablo, #code > div{
    padding: 0 20px;
    margin-bottom: 30px;
  }
  a.lien{
    font-size: 1.5em;
    padding: 15px, 20px;
    text-align: center;
  }
  #menu-nav{
    height: auto;
    gap: 20px, 0;
  }
  #menu-nav .ligne{
    flex-direction: column;
    margin-bottom: 5px;
    gap:20px;
    padding: 0 20px;
  }
  .gros-titre{
    font-size: 2em;
    margin-bottom: 40px;
  }
  .titre-moy{
    font-size: 1.5rem;
  }

  .menu-options {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 20px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  #list-bur{
    position: fixed;
    top:0;
    left:0;
    width: 100vw;
    height: 80;
    background-color: #06405F;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1000;
  }
  #list-bur li{
    margin-top: 5px;
    margin-bottom: 40px;
    background-color: #2940B9;
    border: 2px solid #85E4D4;
    padding:15px;
    border-radius: 3rem;
  }
  #list-bur.visible{
    transform: translateY(0);
  }
  #list-bur a{
    text-decoration: none;
    color: white;
  }
  .menu-options button,
  .menu-options a {
    display:block;
    width: 100%;
    font-size: 1rem;
    margin:0 auto;
    box-sizing: border-box;
  }
  .menu-options button{
    line-height: normal;
  }
  #annee{
    position: fixed;
    bottom: 5px;
  }
  .menu-options a.btn{
    line-height: normal;
    display:block;
    background-color: #2940B9;
    color: white;
    border: 2px solid #788AED;
    padding: 12px 0;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  #deco {
    width: 80px;
    height: 50px;
    font-size: 0.5rem;
  }
  #burger{
    display:block;
    background-color: #06405F;
    border: 2px solid #85E4D4;
  }
  #burgernav{
    display:block;
  }
  #parcours{
    display:none;
  }
  header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #06405F;
  padding: 35px 30px;
  width:40vw;
  margin-left:auto;
  margin-right: 0;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;

}
#moi-img{
  display:none;
}

#moi p{
  display:flex;
}

}