
*{
    scroll-behavior: smooth;
}
.acceuil {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    margin-bottom: 10px;
    margin-top: auto;
}

.glisse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    /* transition: opacity 1s ease;
    z-index: 0; */
    transition: opacity 1s ease-in-out; /* Transition douce d'une seconde */
    z-index: -1;
}



.glisse.active {
    opacity: 1;
    z-index: 1;
}

.glisse img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recouvrir {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    min-width: 400px; 
    
}

.recouvrir h2 {
    font-size: 25px;
    margin-bottom: 1rem;
    text-wrap: wrap;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.recouvrir p {
    font-size: 15px;
    margin-bottom: 2rem;
    overflow-wrap: wrap !important;
    word-break: break-word !important;
    /* max-width: 500px;  */
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
@media all and (max-width:680px) {
        .recouvrir{
            min-width: 100% ;
        }
    
}

.recouvrir .btn {
    padding: 0.8rem 1.5rem;
    background-color: #1DAAE2;
    color: #fff;
    text-decoration: none;
    min-width: 1000px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #BF2726;
    transform: scale(1.1);
}




/* ici */


/* Responsive: petits écrans (mobiles) */
@media (max-width: 600px) {
    .recouvrir h2 {
        font-size: 20px; /* Agrandit le texte pour mobiles */
    }
    .recouvrir p {
        font-size: 15px;
    }
    .button {
        font-size: 8px;
        padding: 0.4rem 0.8rem;
    }
}


@media (min-width: 601px) and (max-width: 1024px) {
    .recouvrir h2 {
        font-size: 25px; /* Ajuste la taille du texte pour les tablettes */
    }
   .recouvrir p {
        font-size: 20x;
    }
    .button {
        font-size: 8px;
    }
}

/* Responsive: écrans larges (ordinateurs) */
@media (max-width: 1025px) {
    .recouvrir h2 {
        /* font-size: 2rem; */
        font-size: 30px;
        color: white !important;
    }
  .recouvrir p {
        font-size: 20px;
    }
    .button {
        font-size: 10px;
    }
    
}

  /* essai */
    
    @media (max-width: 768px) {
  h1 { font-size: 2rem; }   ;
  h2 { font-size: 1.75rem; };
  h3 { font-size: 1.5rem; } ;
  h4 { font-size: 1.25rem; };
  p  { font-size: 0.95rem; };
}

/* Mobiles (≤ 480px) */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; };
  h2 { font-size: 1.5rem; } ;
  h3 { font-size: 1.25rem; };
  h4 { font-size: 1.1rem; } ;
  p  { font-size: 0.9rem; } ;
}
