/* Global CSS variables */
:root {
  --spacing-company: 3rem;
  --font-weight: 400;
  --border-radius: 0;
  --pico-primary-hover: #06fcfe;
  --pico-primary: #06fcfe;
  --pico-primary-underline: #0b6560;
  
  --pico-primary-hover-background: #06fcfe;
  --pico-primary-background: #0b6560;
  --pico-primary-focus: rgba(250, 250, 250, 0.87);
}


/* Typography */
h2,
h3,
hgroup> :last-child {
  font-weight: 200;
}

small {
  color: var(--pico-muted-color);
}

/* Header */
.hero {
  --pico-primary-hover-background: #fff;
  --pico-primary-background: #06fcfe;
  --pico-primary-focus: rgba(250, 250, 250, 0.87);
  --pico-primary: #06fcfe:
  background-color: #000000;
  background-image: url("../../static/alfassif.jpg");
  background-position: center;
  background-size: cover;
  height: 1000px; 
}

header {
  padding: var(--spacing-company) 0;
}

header hgroup> :last-child {
  color: var(--h3-color);
}

header hgroup {
  margin-bottom: var(--spacing-company);
}

/* Nav */
summary[role="link"].contrast:is([aria-current], :hover, :active, :focus) {
  background-color: transparent;
  color: var(--contrast-hover);
}



/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #36383F;
    overflow: hidden;
    
}

.menu {
    display: inline-block; /* Utiliser flexbox pour aligner les éléments horizontalement */
    list-style-type: none; /* Retirer les puces des éléments de liste */
    margin: 0;
    padding: 0;
    position: relative;
  z-index: 20;
}

.menu li {
    margin-right: 20px; /* Espace entre les éléments de menu */
}

/* Assurez-vous que tous les éléments du menu sont alignés correctement */
.subnavbtn {
    display: inline-block; /* S'assurer que le bouton "Themes" se comporte comme les autres éléments */
    color: #f9f9f9;
    text-decoration: none;
}

.menu a{
    display: inline-block; /* S'assurer que les liens sont affichés en ligne */
    text-decoration: none;
    color: #f9f9f9;

}

.menu a:hover{
    background-color: #85888C;
}

/* Effet de survol pour les éléments du menu */
.menu a:hover, .subnavbtn:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Fond semi-transparente sombre */
    color: #ffffff; /* Changer la couleur du texte si besoin */
}

/* Subnav (sous-menu pour 'Themes') */
.subnav {
    position: relative; /* Nécessaire pour positionner le sous-menu */
    display: inline-block; /* Aligner correctement "Themes" avec les autres éléments */
}

.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}

/* Sub nav */
.subnav-content {
    /* background-color: #f9f9f9; */
    position: absolute; /* Positionner le sous-menu en dessous du bouton */
    top: 70%;
    left: 0;
    width: 100%;
    z-index: 1;
    display: none;
  }
.subnav-content a {
    /* color: #36383F; */
    text-decoration: none;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
}

/* Pour le sous-menu 'Themes' */
.subnav:hover .subnav-content {
    background-color: rgba(0, 0, 0, 0.3); /* Ajouter la transparence sombre pour le sous-menu */
}
.subnav-content a:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Même effet pour les éléments du sous-menu */
    color: #ffffff; /* Changer la couleur du texte du sous-menu au survol */
}
.subnav:hover .subnav-content {
    display: block;
}

/* Main */
@media (min-width: 768px) {
  main .grid {
    display: grid !important;
    grid-column-gap: var(--spacing-company);
    grid-template-columns: 70% 30%;
  }

    .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
        background-color: transparent;

    }

    .menu li{
        float: left;
    }

    .menu a:hover{
        background-color: transparent;
        color: #85888C;
        
    }
    

        /* Sub nav */
    .subnav-content {
        padding: 20px 0 ;
        display: none;
        background-color: #36383F;
    }
    .subnav-content a {
        color: #f9f9f9;
    }

    .fic-webm {
    justify-content: center; /* Centrage horizontal */
    align-items: flex-end; /* Positionner en bas */
    padding-bottom: 5%; /* Espace entre la vidéo et le bas de l'écran */
  }

  .fic-webm video {
    width: 50px; /* Ajustement de taille pour smartphones */
    height: auto; /* Garder les proportions */
  }

}

form.grid {
  grid-row-gap: 0;
}

/* Aside nav */
aside img {
  margin-bottom: 0.25rem;
}

aside p {
  margin-bottom: var(--spacing-company);
  line-height: 1.25;
}

/* Style du lien qui contient l'icône */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000; /* S'assurer qu'il reste au-dessus du contenu */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style de l'icône SVG */
.scroll-to-top svg path {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #0b6560; /* Couleur de l'icône */
}

/* Style pour l'icône quand on passe la souris dessus */
.scroll-to-top:hover svg path {
  stroke: #06fcfe; /* Change la couleur au survol */
}

.logo-alfassif {
  bottom: 35%;
  right: 48%;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vid-shield {
  bottom: 45%;
  right: 48%;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}


.fic-webm {
  display: flex; /* Activer Flexbox */
  justify-content: center; /* Centrage horizontal */
  align-items: center; /* Centrage vertical */
  position: fixed; /* Assure un centrage par rapport à l'écran */
  inset: 0; /* Equivalent de top: 0; right: 0; bottom: 0; left: 0 */
  z-index: 10; /* Garder la vidéo au premier plan */
  top: 90%;
}

body:after{
  content: "beta";
  position: fixed;
  width: 80px;
  height: 25px;
  background: #EE8E4A;
  top: 7px;
  left: -20px;
  text-align: center;
  font-size: 13px;
  font-family: sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
  line-height: 27px;
  transform:rotate(-45deg);
}

