:root {
    --fond: #E5E7E9;
    --footer: #707B7C;
    --blanc: #FFF;
    --noir: #000;
    --navbar : #4C90D9;
    --delimitation: #F2F3F4;
}

* {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  height: auto; 
  min-height: 100vh;
  font-size: 14px;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--fond);
    box-sizing: border-box;
} 

main {
    flex: 1;
}

.delimitation {
    background-color: var(--delimitation);
}

.logo {
    height: 10rem;
}

.page_error {
    background: var(--navbar);
    border-radius: 25px;
    -webkit-box-shadow: 8px 9px 8px -7px rgba(255, 9, 9, 0.8);
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.5);
    color: var(--blanc);
}

.a_white {
    color: var(--blanc);
}

.a_white:hover {
    font-size: medium;
}


/* BUTTON TO TOP */
.go_top {
  padding: 1vh;
  display: none;
  position: fixed;
  bottom: 15vh;
  right: 3vw;
  width: 12vw;
  border-radius: 50%;
  background-color: var(--navbar);
  z-index: 20;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}
.go_top_img {
  width: 100%;
  height: auto;
}

/* SCROLL */
/* Effet de fondu doux */
.scroll {
  opacity: 0;
  transition: opacity 1.2s ease-in-out; /* Durée allongée pour plus de douceur */
}

/* Quand la carte devient visible */
.scroll.visible {
  opacity: 1;
}

/* ADMIN */
.img_admin {
    width: 100%;
}

/* SLIDESHOW */
/* .carousel-caption.text-start {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1% 2% 3% 4%;
} */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: fit-content;
    width: 70%;
    height: fit-content;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1% 2% 3% 4%;
}

.carousel-item {
    height: 100vh; /* ou une hauteur fixe */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FORMATIONS */
.formations {
    margin-top: 2rem;
}

/* tESTIMONIALS */
.card {
  border-radius: .7rem;
}

/* FOOTER */
footer {
    background-color: var(--footer);
}

.footer_informations {
    color: var(--blanc);
}

a.a_footer_informations {
    color: var(--blanc);
    text-decoration: none;
}

ul.ul_footer_plan_mentions {
    list-style-type: none;
}

a.a_footer_plan_du_site_mentions {
    color: var(--blanc);
    text-decoration: none;
}

.toggle-eye {
  position: absolute;
  right: 15px;
  top: 40px;
  cursor: pointer;
  color: #555;
}

.toggle-eye:hover {
  color: #000;
}


@media screen and (min-width: 768px) {
    .formations {
        margin-top: 0rem;
    }

    /* AUDIT INCENDIE */
    img.img_auditIncendie {
        width: 70%;
    }
}

/* BUTTON TO TOP */
.go_top {
  padding: 1vh;
  display: none;
  position: fixed;
  bottom: 15vh;
  right: 3vw;
  width: 12vw;
  border-radius: 50%;
  background-color: var(--blanc);
  z-index: 20;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

.go_top_img {
  width: 100%;
  height: auto;
}

.compte {
    background: var(--blanc);
    border-radius: 25px;
    box-shadow: 5px 5px 13px 5px rgba(0, 0, 0, 0.8);
}

.informations {
    background: var(--blanc);
    width: fit-content;
    border-radius: 25px;
    box-shadow: 5px 5px 13px 5px rgba(0, 0, 0, 0.8);
}

.login {
    background: var(--blanc);
    border-radius: 25px;
    width: 60em;
}

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
  }
  
  h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 18px;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 20px; 
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 10px;
  }

  h4 {
    font-size: 18px; 
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 8px;
  }

  h5 {
    font-size: 16px; 
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 6px;
  }

  h6 {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
  }

  p {
    font-size: 16px;
    line-height: 1.6; 
    margin-top: 10px;
    margin-bottom: 20px;
  }

  a.btn.btn-primary {
    min-width: 48px;
    width: auto;
    font-size: 16px;
    padding: 12px 16px;
    white-space: normal;
    line-height: 1.5;
  }

  /* SLIDESHOW */
  .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); /* Fond noir semi-transparent */
    color: var(--blanc);
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    padding: 1rem;
  }

  .carousel-item img {
    object-fit: cover; /* Couvre toute la zone */
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .go_top {
    bottom: 10vh;
    right: 3vw;
    width: 8vw;
  }
}
@media (min-width: 1024px) {
  .go_top {
    bottom: 10vh;
    right: 3vw;
    width: 4vw;
  }
}

@keyframes cursor {
  0%{opacity: 0;}
  50%{opacity: 1;}
  100%{opacity: 0;}
  
}

@keyframes move {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(60deg);
  }
}

@keyframes logo {
  to {
    translate: calc(-10 * 15rem);
  }
}
