html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #F4EDE4;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  
}


.secondfond{
    background: linear-gradient(to top,#14263d,#1E3A5F);
    color: #F4EDE4;
    width: 100%;
}


h1{
    color: rgb(30, 58, 95);
}

h2{
    color: #1E3A5F; 
}

.secondfond h2{
  color: #F4EDE4;
}

h4{
  font-weight:600;
}

#quisommesnous {
  padding-top: 4rem;
  padding-bottom: 4rem;
  width: 100%;
  background: linear-gradient(to top,#14263d,#1E3A5F);
}


 body.accueil main .secondfond {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (min-width: 576px) {
  
 
  #titreAccueil{
    margin-bottom: 1rem !important; 
  }
 

}



/* Menu */

header{
  background-color: #1E3A5F;
}

.menu1{
    display: flex;  
    color: white;
    align-items:baseline;
    width: 100%;

}

.text-decoration-underline:hover {
  font-weight:600;
}

.offcanvas.offcanvas-end {
    background: linear-gradient(to top,#14263d,#1E3A5F) ; 
    color: #F4EDE4 ; 
}


.offcanvas a {
    color: #F4EDE4 ; 
    
}


.offcanvas a:hover {
    color: #ffffff ; 
    
    font-weight: bold;
}



 /* Accueil  */

/*  HERO  */

#hero {
  background: url('../images/projets/projet-8.jpg') center/cover no-repeat;
  min-height: 60vh;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}


#hero h2,
#hero p {
  text-shadow: 2px 2px 8px #F4EDE4;
}

#details-projet {
  background-color: #F4EDE4;
  color: #232323;
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center;
  text-align: center;     
  padding: 1rem;          
  min-height: 80vh;  
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1E3A5F;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
  font-weight: bold;
}




@media (min-width: 576px) {
  #hero {
    min-height: 80vh;
    padding: 2rem;
    text-align: center;
  }
  
  
  
}





/* Caroussel */

.custom-carousel {
  position: relative;
  max-width: 100%;
  width: 90%;
  
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.custom-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease-in-out;
}

.custom-carousel-slide {
  flex: 0 0 90%;
}

.custom-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Flèches */
.custom-prev,
.custom-next {
  background-color: rgba(30, 30, 30, 0.3);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
  transition: 0.2s ease;
}

.custom-prev:hover,
.custom-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.custom-prev {
  position: absolute;
  left: 0;
}

.custom-next {
  position: absolute;
  right: 0;
}

.custom-carousel-dots {
  display:flex; 
  justify-content:center; 
  margin-top:8px; 
  gap:5px;
}

/* Pagination */

.custom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-dot.active {
  background-color: #1E3A5F;
}


@media (min-width: 576px) {
  
  
  .custom-carousel {
  max-width: 100%;
  width: 80%; 
  padding: 0;
  }
 
  .custom-dot {
    width: 12px;
    height: 12px;
  }

}



/* Portfolio */

.imgportfo{
   border: 5px solid black;
    border-radius: 30px;
    width: 300px;
    height: 200px;
    padding: 3px;
    
    
}

.zoom {
    transition: transform 0.4s ease;    
}
   
.zoom:hover{
    transform: scale(1.3);
    cursor: pointer;          
    
}
   
 
#Modal{
    background-color: rgba(0, 0, 0, 0.7) ;
    
}


.modal-img-grande {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}


.bouton-titre {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: black;
  padding: 0 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.bouton-titre:hover {
  transform: scale(1.2);
}


.carousel-inner .carousel-item .description-projet {
  color: #232323;              
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-top: 1px solid #ddd;
  text-align: left;
}



/* Page contact */


body.contact-page main {
  flex: 1; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  padding: 2rem 0; 
}


.contact-page {
  display: flex;
  flex-direction: column;
}

.contact-page .formulaire {
  align-items: center; /* centre horizontalement tous les enfants */
  text-align: center;  /* centre le texte */
}

.formulaire form {
  width: 100%;
 
}


@media (min-width: 576px) {
  

 
  .formulaire {
    width: 100%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
  }

  
  .formulaire form {
    width: 90%;
    max-width: none;
  }

  .form-check-input[type="radio"],
  .form-check-input[type="checkbox"] {
    width: 0.9em;
    height: 0.9em;
    margin-top: 0.2em;
  }

  .form-check-label {
    margin-left: 0.3em;
  }

 
}

/* Footer */

footer h5 {
  font-size: 1.1rem;
}

footer a {
  transition: opacity 0.2s ease-in-out;
}

footer a:hover {
  opacity: 0.8;
}

footer iframe {
  border-radius: 6px;
}

.map-container iframe { 
  width: 100%; 
  height: 120px; 
  border:0; 
  border-radius:6px; 
}

footer .btn-outline-light {
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
}

@media (min-width: 576px) {

  .map-container iframe {
    height: 150px;
  }

}



/* BOUTONS */

/* Bouton UP */
.bouton:hover {
    background-color: #C7923E;
     
   
}

.btnup{
  display: none;
    background-color:#1E3A5F ;
    border-radius: 50px; 
    border:  2px solid #F4EDE4;   
        
}

.b{
    color: #F4EDE4 ;
}

/* Bouton CTA */

.btncta{
    background-color: #C7923E;
    color:#1E3A5F;    
    padding: 8px 20px;
    border-radius: 15px;
    transition: 0.1s;
    text-decoration: none;
}

.btncta1{
    background-color: #1E3A5F;
    color:#F4EDE4;    
    padding: 8px 20px;
    border-radius: 15px;
    transition: 0.1s;
    text-decoration: none;
}
.btncta:hover{
    font-weight: bold;
}



/* COuleur site */

/* Couleur principale : Beige clair (#F4EDE4)
Couleur secondaire :Bleu pétrole (#1E3A5F) 
Couleur CTA : Ocre doré (#C7923E)
Texte et contrastes : Anthracite profond (#232323) */