: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;
}
/* FONTS */
@font-face {
  font-family: 'poppins';
  src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--fond);
    box-sizing: border-box;
    font-family: poppins, Arial;
} 

/* === TITRES SITE HSE – KIT PRO Poppins === */

/* H1 – Page principale / hero */
h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;      /* Bold */
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 0.5px;   
  margin-bottom: 20px;
}

.h1_carousel {
  color: var(--blanc);
}
/* H2 – Sections principales */
h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;      /* SemiBold */
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  padding-left: 10px;
  margin-bottom: 15px;
}

/* H3 – Sous-sections */
h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;      /* Medium */
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Call-to-action / boutons */
.button, .cta {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Optionnel – petites majuscules sur H2 */
h2.small-caps {
  font-variant: small-caps;
}

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);
}

.error-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.customCard {
    background: var(--blanc);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.imgCard {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}


/* 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;
}


/* TITLE */
.title {
  height: 100px;
  background: var(--navbar);
  font-size: 2em;
  text-align: center;
  color: var(--blanc);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CARD */
.cardAnalyse{
   background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.img_card {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.card-audit{
    border-radius:20px;
    transition:all 0.3s ease;
}

.card-audit:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

.img_auditIncendie{
    max-height:280px;
    object-fit:cover;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover{
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.title{
    font-size:2rem;
    letter-spacing:0.5px;
}

.quiSuisJe-section{
    margin-bottom:70px;
}

.image-wrapper{
    position:relative;
    overflow:hidden;
    border-radius:20px;
}

.quiSuisJe-img{
    transition:transform .5s ease;
}

.image-wrapper:hover .quiSuisJe-img{
    transform:scale(1.05);
}

.content-card{
    background:#ffffff;
    border-radius:20px;
    box-shadow:0 10px 35px rgba(0,0,0,0.08);
    font-size:1.05rem;
    line-height:1.8;
}

.description{
    color:#444;
}


/* 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%;
}

.imgCarousel {
  border-radius: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
}

/* 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: 20px;
    width: 30em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@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); 
    color: var(--blanc);
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    padding: 1rem;
  }
}

@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);
  }
}
