@font-face {
  font-family: "gidole";
  src: url("fontes/gidole-regular-webfont.woff") format('woff');
  font-weight: normal;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@300&display=swap');

*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --backtotop: rgba(203, 202, 191);
  --blanc:rgba(255,255,255,1);
  --translucide:rgba(255,255,255,.95);
  --noir:rgba(0,0,0,1);
  --deroulant:rgba(203, 202, 191);
  --deroulant_hover:rgb(255,255,255);
  --fond : rgb(83, 82, 71);
}

html {
  height: 100%;
  font-family:"gidole",sans-serif;
  font-size:16px;
  line-height:normal;
  scroll-behavior: smooth; /*la page défile entre les sections*/
}

a {
  color: white;
}

body {
  position: relative;
  justify-items: center;
  align-items: flex-start ;
  background-color: var(--fond);
}

footer {
  width: 100%;
  height: 100px;
  display: grid;
  place-content: center;
  margin-top: auto;
  background-color: var(--translucide);
}

h1{
  font-family: 'Dosis', sans-serif;
  font-weight: 300;
  font-size: 1.25em;
  letter-spacing: .5ch;
  margin: 0 auto;
}

h2{
  font-family: 'Dosis', sans-serif;
  font-weight: 300;
  font-size: 1.25em;
  letter-spacing: .5ch;
  margin: 0 auto;
  color: var(--blanc);
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: 2rem;
  display: grid;
  background: var(--translucide);
  margin-bottom: 2rem;
}

img {
  max-height: 70vh;
  min-height: 50px;
  max-width: 90vw;
  min-width:200px ;
  margin: 2em auto;
  text-align: center;
}

main {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 200px);
}

p {
  text-align: center;
  margin-bottom: 5em;
  color: white;
}

/************************************** NAV *******************************************/

nav {
  height: 60px;
  background-color: var(--principale);
  padding: 0 25px;
  z-index: 998;
  position:sticky;
  top:100px;
  font-family: 'Dosis', sans-serif;
}

#menuhorizontal {
  display:none;
}

#menuvertical {
  display: flex;
}

.menu {
  display:flex;
  flex-direction: column;
  margin-left:-25px;
  padding-left: 25px;
  width: 30ch;
  background-color: var(--translucide);
}

.menu a {
  color:var(--noir);
  text-decoration:none;
  margin:.5rem 0;
}

.menu a:hover {
  color: var(--noir);
}

.menu_secondaire {
  display:none!important;
}

.nav {
  margin-top: 30px;
  margin-left:-40ch;
  transition-duration: 200ms;
}

.nav_open {
  margin-top: 30px;
  margin-left:-25px;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
  transition-duration: 200ms;
}
/*
.submenu {
  display:none;
}*/

.submenu1,.submenu2 {
  display:none;
}

/*.submenu_open {
  display:flex;
  flex-direction: column;
  margin-left:-25px;
  padding-left: 25px;
  width: 30ch;
  background-color: var(--fond);
}*/

.submenu1_open,.submenu2_open {
  display:flex;
  flex-direction: column;
  margin-left:-25px;
  padding-left: 35px;
  width: 30ch;
  background-color: var(--deroulant);
}

.toggle_btn {
  height:30px;
  width:30px;
  position: relative;
  cursor:pointer;
}

.toggle_btn span {
  height: 3px;
  background-color: var(--noir);
  width: 100%;
  position: absolute;
  top: 20px;
  left:0;
}

.toggle_btn span:before {
  content:'';
  height: 3px;
  background-color: var(--noir);
  width: 100%;
  position: absolute;
  top: -10px;
  left:0;
}

.toggle_btn span:after {
  content:'';
  height: 3px;
  background-color: var(--noir);
  width: 100%;
  position: absolute;
  top: 10px;
  left:0;
}

/************************** FIN NAV*******************************************/

.bio {
  max-width: 90vw;
  margin-top: 5rem;
}

.bodyindex {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  background-image: url(img/d_sdv/index.jpg);
  background-size: cover;
}

.contact {
  margin-top: 5px;
}

.fleche_top {
  background-color: var(--translucide);
  color: black;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
  font-size: 1.5rem;
}

.fleche_top:hover {
  background-color: var(--backtotop);
}

.gotoTop {
  z-index: 9999;        /* [facultatif] au dessus du reste */
  position: absolute;
  top: 0;
  right: 2em;           /* décalage à droite */
  bottom: 0;           /* occupe toute la hauteur du référent */
  pointer-events: none; /* ne prend pas l'événement du pointer */
}

.gotoTop a {
  display: block;       /* pour prise en compte sticky */
  position: sticky;     /* positionnement « adhérent » */
  top: 90vh;            /* position d'affichage fixe */
  margin-top: 100vh;    /* pour masquer verticalement au départ */
  font-size: 2em;       /* pour bien le voir */
  pointer-events: auto; /* reprend l'événement du pointer */
  text-decoration: none;
  font-size: 3rem;
  color: var(--backtotop);
}

.gotoTop a:hover {
  background: transparent!important;
}

.titre {
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--blanc);
  text-align: left;
}



/*****************************************************************************************************
******************************************************************************************************
************************************* RESPONSIVE MEDIAQUERIES ******************************************
******************************************************************************************************
*****************************************************************************************************/


@media screen and (min-width: 700px) {

  /************************************** NAV *********************************/

  #menuvertical {
    display:none;
  }

  #menuhorizontal {
    display:flex;
  }
  
  .deroulant {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    text-align: center;
    top: 35px;
    width: auto;
    background-color: var(--deroulant);
    padding: 0 2rem;
    margin:0;
    box-sizing: border-box;
    border: 1px solid var(--blanc);
    box-shadow: 5px 5px 5px rgba(0,0,0,.05);
    transform-origin: top;
    transition: all 1s ease-out;
    white-space: nowrap;
  }

  .deroulant a {
      display:inline;
      margin:0 -2rem;
      padding:.5rem 1rem;
      border-top: 1px solid rgba(255,255,255,.35);
  }

  .deroulant a:hover {
      background-color: var(--deroulant_hover);
  }

  .menu {
      display:flex;
      flex-direction: row;
      position: sticky;
      top: 180px;
      margin:0 auto;
      padding: 0;
      justify-content: space-between;
      align-items: flex-end;
      width: 50%;
      background-color: var(--principale);
  }

  .sousmenu {
    position:relative;
    display:flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.95rem;
  }

  .sousmenu a {
    color: var(--noir);
    text-decoration: none;
  }

  .sousmenu a:hover {
    color: var(--noir);
  }

  .sousmenu::after {
    content:'';
    display:block;
    height:5px;
    background: var(--fond);
    position:absolute;
    top:33px;
    left:0;
    right:0;
    transform: scale(0,1);
    transition: ease-in-out 150ms;
  }

  .sousmenu:hover .deroulant {
    display:flex;
  }

  .sousmenu:hover::after{
    transform: scale(1,1);    
  }

  .toggle_btn {
    display: none;
  }

}