/* ~~~~~~~~~~~~~~~~~~ CONFIG ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Structure des différentes pages, les grilles, marges, mise en page des
  blocs, etc.
*/
@import url(config.css);
/*@import url(desktop.css);*/
@import url(arrows.css);
@import url(cursor.css);
@import url(../fonts/PlainMedium.css);
@import url(../fonts/PlainRegular.css);

* {
  empty-cells: show;
}
body{
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
}

p {
  font-size: 1em;
  max-width: 600px;
  padding-left: 18px;
  line-height: 23px;
}

h3 {
  padding-left: 18px;
  padding-bottom: 11px;
}

/*
.video-container {
position: relative;
padding-bottom: 55%;
}
.video-container video {
position: absolute;
top: 30px;
left: 30px;
height: calc(100% - 60px);
width: calc(100% - 60px);
}
*/

/* base simple */
/*
.video-container{ width: 100%; }
.video-container video{ 
  max-width: 100%;
  max-height: 100vh;
}
*/

/* version popup */
.video-container {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  padding: 8rem;
  background-color: rgba(0, 0, 0, 0.8);

  text-align: center;

  /* position */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
}

.video-container video {
  max-width: 100%;
  max-height: 100%;
}

/* fermer … */
.video-container::before {
  display: block;
  content: "×";
  font-size: 96pt;
  color: #fff;
  position: absolute;
  top: 32px;
  right: 32px;
}

main {
  position: relative;
}

#lanceVideo.home {
  position: absolute;
  bottom: 1vmin;
  right: 1vmin;
  width: 250px;
  z-index: 998;
}

#lanceVideo.filiere {
  position: absolute;
  width: 250px;
  left: 1vmin;
  z-index: 998;
}

#lanceVideo img {
  width: 100%;
}

/* option cadré – couper dans le video si elle est plus carrée que le fenetre… */
/*
.video-container{
  width: 100vw;
  height: 100vh;
}
.video-container video{ 
  width: 100%;
  height: 100%;
  object-fit: cover;
}
*/

header.header {
  height: 1.75em;
  background-color: var(--color-background-dark);
  padding-left: 10px;
  padding-top: 5px;
}

header.header a {
  background-color: var(--color-background-dark);
  color: var(--color-text-dark);
  text-decoration: none;
}

img#logoeracom {
  width: 10px;
  /* bullshit*/
}

#ModuleBienvenueDesktop p {
  font-weight: 600;
}

.grid_module p {
  position: absolute;
  color: var(--color-text-dark);
}


/* code des affichage acordeon pages sections (FB) */

/*
TO-DO:

- accordionles accordeons ne ferment pas automatiquement quand on clique sur on autre… solition possible??

*/

/*.accordion {
  background-color: #FFFFFF;
  color: #000;
  cursor: pointer;
  padding-left: 18px;
  padding-top: 11px;
  padding-bottom: 11px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
  line-height: 18px;
  transition: all .2s ease-in-out;

}

.accordion:before {
  content: '\02795';
  /* Unicode character for "plus" sign (+) 
  font-size: 18px;
  color: black;
  float: left;
  margin-left: 0px;

}

.active:before {
  content: "\2796";
  /* Unicode character for "minus" sign (-) 
}

.panel .btn {
  margin: 1rem 0 18px 18px;
}
*/
.graphiste h1 {
  padding: 18px;
  color: #F58BBD;
}

.interactivemediadesigner h1 {
  padding: 18px;
  color: #E01B1D;
}

.arrowDecorationListe {
  padding-left: 18px;
}



.accordion h3 {
  font-size: 19px;
  padding-bottom: 0;
}

.active,
.accordion:hover {
  background-color: #FFFFFF;
}
/*
.panel {
  padding: 0px;
  padding-left: 18px;
  display: none;
  background-color: white;
  overflow: hidden;
}
*/
/* fin  acordeon (FB) */

/* liste avec fleche */
ul.arrowDecorationListe {
  list-style: none;
  padding: 0px;
}


ul.arrowDecorationListe li:before {
  content: '→';
  margin-right: 1em;
  /* any design */
}


a.upbutton {
  display: block;
  padding: 0.35em 1.2em;
  margin: 0 auto;
  border-radius: 0.12em;
  box-sizing: border-box;
  text-decoration: none;
  color: rgb(0, 0, 0);
  text-align: center;
  transition: all 1s;
  align-items: center;
  justify-content: center;
  font-family: Plain, Helvetica, Arial, sans-serif;
  font-size: 3rem;
}

a.upbutton:hover {
  color: var(--color-text-hover);
}

html {
  scroll-behavior: smooth;
}

.only_desktop {
  display: block;
}

.only_mobile {
  display: none;
}

/* début footer*/
.footer {
  display: grid;
  grid-template-columns: auto auto .6fr .8fr .6fr .6fr;
  gap: 2em;
  justify-content: center;
  padding: 3vmin;
  background-color: black;
  color: #fff;
}

/* affichage des titres des diplomes des formations ("CFC") dans le footer – c'est un peu serrée */
/* AC – 2021-11-19 */
.footer .dipl {
  /* si on veut éviter les sauts de lignes avant "CFC"*/
  white-space: nowrap;
}

@media screen and (max-width: 900px) {

  /* ne pas afficer les titres des diplomes si il n'y pas assez d'espace.*/
  .footer .dipl {
    display: none;
  }
}

.footer-mobile {
  display: none;
}

#logo-footer {
  width: 2rem;
  position: absolute;
  bottom: 0;
}

.relative {
  position: relative;
}

.relative ul {
  position: absolute;
  bottom: 0;
}

.relative ul li {
  padding: 0;
}

.grid-item {
  padding: 1vmin;
  text-align: left;
}

.grid-item h1 {
  text-align: left;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1em;
}

.grid-item ul {
  list-style-type: none;
}

.grid-item li {
  padding: .6rem 0;
}


.grid-item li:last-child {
  padding: .6rem 0 0 0;
}

.grid-item li:first-child,
.grid-item li:nth-of-type(0) {
  padding: 0 0 .6rem 0;
}

.grid-item a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.5rem;
}

/* fin footer*/

@media screen and (max-width: 900px) {
  .grid-item h1 {
    font-size: 0.9375em;
    line-height: 0.9375em
  }

  .grid-item a {
    font-size: 0.75em;
    line-height: 0.66em;
  }
}

/* Style the navigation menu */
.active_PO {
  font-size: 33px;
  margin-left: 10px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: normal;
  color: #fff;
}

.topnav img {
  width: 40px;
  margin-top: 8px;
  margin-bottom: 12px;
  margin-left: 39px;
}

.PO-titre {
  display: flex;
}

#PO-menu-top {
  font-size: 33px;
}

.topnav {
  overflow: hidden;
  background-color: #000000;
  position: relative;
}

.topnav a {
  text-decoration: none;
}

/* Hide the links inside the navigation menu (except for logo/home) */
#myLinks {
  display: none;
  right: 0;
  margin-right: 27px;
  background-color: #000000;
  position: absolute;
  z-index: 999;
}

.menu-list {
  margin-left: 36px;
  padding-bottom: 20px;
  padding-top: 20px;
}

/* Style navigation menu links */
#myLinks h2 {
  color: white;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 20px;
}


#myLinks a {
  color: white;
  padding: 5px;
  padding-right: 20px;
  text-decoration: none;
  font-size: 15px;
  display: block;
}

.btn-white {
    color: black !\;
    background: white !\;
    width: fit-content !\;
    padding: 1rem 2rem !\;
}



/* Style the hamburger menu */
.topnav a.icon {
  background: #000000 !important;
  color: #fff;
  font-size: 33px;
  margin-right: 49px;
  margin-top: 10px;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #000000;
  color: #cacaca;
}

/* Style the active link (or home/logo) */
.active {
  background-color: #000000;
  color: white;
}

ul.PO-titre {
  list-style-type: none;

}

/* --------------- Mobile version ------------------------ */

@media screen and (max-width:576px) {

  /* Template des flèches sur la première page en mode mobile */
  .only_desktop {
    display: none;
  }

  .only_mobile {
    display: block;
  }

  .footer {
    display: none;
  }

  .footer-mobile {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 1fr;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
    background-color: black;
    color: #fff;
    height: 10rem;
  }

  .grid-item {
    width: 42vw;
  }

  .modules-template {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    padding: 1vmin;
    gap: 1vmin;
  }

  .modules-template .module_standard,
  .modules-template .module_narrow,
  .modules-template .module_wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  #ModuleID {
    order: 3;
  }

  #ModuleRP {
    order: 1;
  }

  #ModuleGR {
    order: 2;
  }

  #ModuleIG {
    order: 6;
  }

  #ModuleBienvenueMobileA {
    order: 4;
  }

  #ModuleBienvenueMobileB {
    order: 5;
  }

  #ModulePA {
    order: 7;
  }

  #ModuleCV {
    order: 8;
  }

  #ModuleES {
    order: 9;
  }

  #ModulePO {
    order: 10;
  }

  #ModuleDF {
    order: 11;
  }

  #ModuleMATU {
    order: 12;
    grid-column: span 2;
    grid-row: span 2;
    height: auto;

  }

}

.fake-cursor {
  position: absolute;
  /* position hors-champ si JS non actif */
  top: -900px;
  left: -900px;
  display: none;
  border-radius: 100%;
  
  /* taille */
  width: 80px;
  height: 80px;
  transform: scale(5);

  /* couleur, effet de flou, transparence
  background-color: var(--blur-color); */
  /*filter: blur(20px);*/
  opacity: 0.7;
  clip-path: circle(50%);

  /* si on veut que la couleur soit derrière les flèches */
  z-index: -1;
  /* si on veut un effet de mouvement différé */
  transition: all 0.3s ease-out;

  /* changement de couleur en hover */

}

.modules-template:hover + .fake-cursor {
display: block;
}
