@media (max-width: 480px) {
  #team .team-intro {
    font-size: 12px;
    max-width: 80vw;
    width: 80vw;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    overflow-wrap: break-word;
    padding: 0;
  }
}
@media (max-width: 480px) {
  #team .team-intro {
    font-size: 11px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 18px;
    max-width: 75vw;
    margin-left: auto;
    margin-right: auto;
    display: block;
    white-space: normal;
    word-break: break-word;
  }
  #team .team-intro br {
    display: none;
  }
}
@media (max-width: 480px) {
  #team .team-intro {
    font-size: 18px;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 18px;
    white-space: pre-line;
    word-break: break-word;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}
@media (max-width: 480px) {
  #team .team-intro {
    font-size: 18px;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 18px;
    white-space: normal;
    word-break: break-word;
  }
}
#team .team-intro {
  white-space: pre-line;
}
.contact-intro {
  color: white;
}
#team .team-intro {
  font-size: 30px;
  font-family: 'Poppins', sans-serif;
  color: black;
  font-weight: normal;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  nav#menu {
    display: none;
    flex-direction: column;
    position: absolute;
    background-color: white;
    top: 70px;
    left: 0;
    width: 100vw;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  nav#menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  .menu {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }
  .menu li {
    margin: 10px 0;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
  .burger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }
}
/* Forcer la couleur du titre d'accueil en blanc sur tous les écrans */
.titlebackground h2 {
  color: #fff !important;
}
/* Forcer le style du titre d'accueil sur tous les écrans */
.titlebackground h2 {
  font-size: 60px !important;
  text-align: left !important;
  color: #000;
  margin: 0;
  font-weight: 600;
}
.jaune.titre {
  color: #d5f31f !important;
  font-size: 60px !important;
  font-weight: 700;
}
html{font-family: "Poppins";}

/* Image d'accueil*/

.titlebackground img{width: 100%;
position: relative;}

.titlebackground{position: relative;}

.une{position:relative;}

.deux{position: absolute;
right: 80px;
bottom: 60px;}

.titre {
  display: block;
}







/*Fin d'image d'accueil*/

/* section navigation*/
h1{color: #255919;
font-family: "Poppins";
font-size: 50px;}

body{
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}
.container{
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}
.mt-40{
    margin-top: 40px;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    color: black;
    position: relative;
    z-index: 1000;
}

.menu{
    list-style: none;
    display: flex;
    
}

.menu li{
    margin: 0 10px;
}

.menu a{text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 20px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: #255919;
  margin: 4px 0;
  transition: all 0.3s ease;
}



/* fin section navigation*/
.row{
    display: flex;
    flex-wrap: wrap;
}

.col-100{
    width: 100%;
}
.col-50{
    width: 50%;
}
.col-33{
    width: 33.33%;
}

.col-25{
    width: 25%;
}
.col-20{
    width: 20%;
}

.text-center{
    text-align: center;
}


.titlebackground span {color: #d5f31f;
font-size: 60px;}
/* section teams */
#team{
    padding: 20px;
}
#team h2{
    color:#469b61;
}

h2{text-align: right;
    color: white;
    font-size: 60px;}

#team h3{color: black;
font-size: 30px;}

#team div{color: #565e65;}

.card-team img{
    width: 180px !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50% !important;
    object-fit: cover;
    border-radius: 50%;
    object-position: center;
}


.row{
    display: flex;
    flex-wrap: wrap;
}

.col-100{
    width: 100%;
}
.col-50{
    width: 50%;
}
.col-33{
    width: 33.33%;
}

.col-25{
    width: 25%;
}
.col-20{
    width: 20%;
}

.text-center{
    text-align: center;
}

.Notre-equipe{display: flex;
flex-direction: row;
}

@media (max-width: 768px) {
  .card-team img {
    width: 150px;
    height: 150px;
  }

  .card-service {
    flex-direction: column;
    align-items: center;
  }

  .a-propos {
    flex-direction: column;
    padding: 20px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }
}


/* fin section team */ 

/*section clients satisfaits*/

.clients-container {
  display: flex;
  justify-content: space-around; 
  flex-wrap: wrap; 
  padding: 20px;

}

.client-box {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center; 
  padding: 10px;
}
   
.clients-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  background-color: #053b44;
  align-items:center ;
}

.client-box {
  color: white;
  align-items: center;
}
.client-box span {
  color: #d5f31f;
  font-size: 40px;
  align-items: center;
  font-weight: bold;
}
.client-box p {
  color: white;
  font-size: 20px;
  align-items: center;
}

.client-box span {
  margin-bottom: 5px; 
}

.client-box p {
  margin: 0; 
}

    
    /*Fin de section clients satisfaits*/

/* Debut section Nos services*/

#services {padding: 20px;
}

#services h2 {color: #469b61;}

#services .row {
    justify-content: center;
}

.card-service {
        border: none;
        padding: 20px;
        min-height: 200px;
        display: flex;
        gap: 15px;
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        justify-content: space-around;
}

.card-service img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    margin-right: 150px;
    background-color: #f2f2f2;
    padding: 100px;
    border-radius: 20px;
}

/* Mobile / tablette : rendre les images de services identiques et adaptatives */
@media (max-width: 768px) {
  .card-service img {
    width: 220px !important;
    height: 220px !important;
    padding: 24px !important;
    margin-right: 0 !important;
    border-radius: 16px !important;
  }
  .card-service { gap: 12px; }
}

@media (max-width: 480px) {
  .card-service img {
    width: 160px !important;
    height: 160px !important;
    padding: 16px !important;
    margin: 0 auto !important;
    display: block;
  }
  .card-service { flex-direction: column; align-items: center; }
  .card-service > div { text-align: center; }
}





#services p{color: black;
    font-size: 40px;
    text-align: center;
    font-weight: bold;
    font-family: Poppins;
    margin-right: 150px;
}

#services .col-33 {
    width: 33.33%;
    padding: 10px;
}

/*fin section Nos services*/

/* debut section Derniere actualite */

#actualite .element1 , .element2 , .element3{border-radius: 10px;
background-color: #469b61;
color: white;
margin-left: 170px;
margin-right: 170px;
text-align: center;
justify-content: center;
font-size: 25px;}

#actualite .element1 p,
#actualite .element2 p,
#actualite .element3 p {color: white;}



/*Fin section derniere actualite*/

/*Section Contactez-Nous*/
#contact {
    background-color: #053b44;
    font-family: 'Poppins';
}
.contactRow{
    display: flex;
    gap: 40px;;
}
.contactColumn{
    flex: 1;
}
.form-input{
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 4px solid white;
    color: white;
    font-size: 20px;
}
.form-input::placeholder {
    color: white;
    font-size: 20px;
}
.form-input:focus {
    outline: none;
}

#contact p {
    text-align: center;
}

 h4{color: #d5f31f;
font-size: 300% ;
text-align: center;
margin: auto;}

.contact-form {
  width: 100%;
  padding: 20px;
  background-color: #053b44;
  justify-content: center;
  align-items: center;
  object-fit: cover;
  display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

fieldset {
  border: none;
  margin-bottom: 15px;
}
.container p {
  font-size: 35px;
  margin-bottom: 20px;
  background-color: #053b44;
  width: 100%;
  margin-bottom: 60px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  color: white;
  background-color: #053b44;
}

.button-contact {
    display: flex;
    justify-content: flex-end;
}

.btn {background-color: #d5f31f;
    border-radius: 50px;
    color: black;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 25px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-bottom: 50px;
    font-family:"Poppins";
    width: 15%;}

    


/*Fin Section Contactez-Nous*/



/*Section A propos*/
.a-propos {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 80px 60px;
  gap: 60px;
  font-family: 'Poppins';
  background-color: #fff;
}

.a-propos-left img {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
  height: 100%;
  max-width: 700px;
}

.a-propos-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid black;
  border-radius: 10px;
  /* Ensure .a-propos-right visually matches .a-propos-left */
  flex: 1 1 420px; /* allow growth/shrink, base size similar to image */
  max-width: 700px;
  min-width: 320px;
  padding: 40px;
  height: auto; /* let content define height but align via stretch on container */
  
  
}

.a-propos-right .title {
  font-size: 30px;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-align: center;
  font-weight: bold;
}

.a-propos-right .description {
  font-size: 17px;
  color:#708090 ;
  margin-bottom: 40px;
  line-height: 1.6;
}

.features {
  display: flex;
  justify-content: space-evenly;
  gap: 15px;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
  justify-content: space-around;
}

.icon-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: solid 5px #053b44;
  
}

.icon-circle img {
  width: 60px;
  height: 60px;
}

.feature p {
  font-weight: 600;
  color:#053b44;
  font-size: 15px;
}

/*Section Notre Galerie*/

h3{color: #469b61;
    background-color: white;
    text-align: center;
    font-size: 300%;}

#galerie p{color: black;
    font-size: 30px;
  font-family: "Poppins";}


  /* Container principal */
.slider {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  height: 100%;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}




/* Conteneur des contrôles sous le slider */
.slider-controls {
  max-width: 800px;
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1200px;
  padding: 0 8px;
  
}

:root {
  --slider-width: 1300px;
  --slider-height: 800px;
}

.slider {
  width: var(--slider-width);
  height: var(--slider-height);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;      
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  box-sizing: border-box;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;            
  object-position: center;
}

/* Boutons Précédent/Suivant */
.nav {
  background:white;
  border: 1px solid black;
  padding: 8px 16px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 20px;
  transition: background 0.2s;
  color: black;
}

.nav:hover {
  background: black;
  color: #d5f31f;
}


/*Fin de Section Notre Galerie*/

/*Section FOOTER*/

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  overflow-x: hidden;
  width: 100%;
}

main {
  flex: 1;
}

/* Footer haut */
.footer-haut {
  background-color: #053b44;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
  font-family: "Poppins";
  width: 100%;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.column {
  flex: 1 1 200px;
  min-width: 150px;
}

.column h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
  text-align: left;
  font-weight: none;
  font-family: "Poppins";
}

.column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.column li {
  margin-bottom: 8px;
  color: white;
}

/* Contact section */
.contact {
  margin-left: auto;
  text-align: left;
}

.contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  margin: 6px 0;
}

.contact i {
  color: #d5f31f;
  font-size: 18px;
  min-width: 24px;
}


/* Footer bas */
.footer-bas {
  background-color: #0c3133;
  color: #fff;
  padding: 20px;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 15px;
}

.login-btn {
  background-color: #d5f31f;
  color:black;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 20px;

}

.social-icons i {
  font-size: 20px;
  color: #fff;
  background-color: transparent;
  border-radius: 20%;
  padding: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border-color: white;
  border: 2px solid white;
}

.social-icons i:hover {
  background-color: #d5f31f;
  color: #053b44;
  transform: scale(1.1);
}

/* Footer titres blancs */
.footer-bottom h4,
.footer-bas h4,
.footer-columns h4 {
  color: #fff !important;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact {
    margin-left: 0;
    margin-top: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* Footer en 2 colonnes sur mobile */
@media (max-width: 480px) {
  .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }
  .footer-columns .column {
    min-width: 0;
    box-sizing: border-box;
    padding: 0 5px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
  }
  .footer-columns .column:nth-child(2),
  .footer-columns .column:nth-child(4) {
    grid-column: auto;
  }
  .footer-columns .column h4,
  .footer-columns .column ul,
  .footer-columns .column li {
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0;
    align-self: flex-start;
  }
}
@media (max-width: 480px) {
  .footer-columns .column:nth-child(2),
  .footer-columns .column:nth-child(4) {
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.95rem;
    color: inherit;
    box-shadow: none;
  }
  .footer-columns .column:nth-child(2) h4,
  .footer-columns .column:nth-child(4) h4 {
    font-weight: normal;
    color: inherit;
  }
  .footer-columns .column:nth-child(2) li,
  .footer-columns .column:nth-child(4) li {
    margin-bottom: 0;
  }
}
/* Centrage du bloc contact uniquement sur mobile extra petit */
@media (max-width: 480px) {
  .footer-columns .contact {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    margin: 8px 0;
    width: 100%;
  }
  .footer-columns .contact p {
    justify-content: center;
    display: inline-flex;
    gap: 8px;
    margin: 6px 0;
  }
  .footer-columns .contact i {
    margin-right: 6px;
  }
}





/*Fin de section FOOTER*/
@media (max-width: 1024px) {
  h1 {
    font-size: 40px;
  }

  .card-service img {
    margin: 0;
    padding: 20px;
    width: 100%;
    height: auto;
  }

  #services p {
    font-size: 24px;
    margin-right: 0;
  }

  .a-propos {
    flex-direction: column;
    padding: 40px 20px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .deux {
    position: static;
    text-align: center;
    margin-top: 20px;
  }

  h2 {
    font-size: 32px;
    text-align: center;
  }

  .card-team img {
    width: 150px;
    height: 150px;
  }

  .card-service {
    flex-direction: column;
    align-items: center;
  }

  .contactRow {
    flex-direction: column;
    gap: 20px;
  }

  .btn {
    width: 100%;
    font-size: 20px;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}
img {
  max-width: 100%;
  
}

@media (max-width: 768px) {
  #actualite .element1,
  #actualite .element2,
  #actualite .element3 {
    margin: 20px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact {
    margin-top: 20px;
    align-self: stretch;
  }
}

/* 📲 Très petits écrans (≤480px) */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .burger {
    display: block;
    margin: 0 auto;
  }

  nav ul.menu {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .titlebackground h2 {
    font-size: 60px !important;
    text-align: left !important;
    color: #fff !important;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    word-break: break-word;
  }
  .jaune.titre {
    color: #d5f31f !important;
    font-size: 60px !important;
    font-weight: 700;
    word-break: break-word;
  }

  .col-33 {
    width: 100%;
    margin-bottom: 20px;
  }

  .client-box {
    width: 100%;
    text-align: center;
  }

  .card-service {
    flex-direction: column;
    align-items: center;
  }

  .actualite > div {
    width: 100%;
    margin-bottom: 20px;
  }

  .formulaire .contactRow {
    flex-direction: column;
  }

  .form-input {
    width: 100%;
  }

  .a-propos {
    flex-direction: column;
  }

  .a-propos-left img {
    width: 100%;
  }

  .galerie-box h3 {
    font-size: 1.5rem;
  }

  .slider-controls {
    justify-content: center;
  }

  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .login-btn {
    width: 100%;
  }
}

/* 📱 Mobiles standards (481px–768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .titlebackground h2 {
    font-size: 1.5rem;
  }

  .col-33 {
    width: 100%;
  }

  .card-service {
    flex-wrap: wrap;
    justify-content: center;
  }

  .actualite > div {
    width: 100%;
  }

  .formulaire .contactRow {
    flex-direction: column;
  }

  .a-propos {
    flex-direction: column;
  }

  .footer-columns {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }
}

/* 💻 Tablettes & petits laptops (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  nav ul.menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .col-33 {
    width: 45%;
    margin: 2.5%;
  }

  .card-service {
    justify-content: space-around;
  }

  .actualite > div {
    width: 48%;
    margin: 1%;
  }

  .formulaire .contactRow {
    flex-wrap: wrap;
    gap: 20px;
  }

  .a-propos {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-columns {
    justify-content: space-around;
  }

  .footer-bottom {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* 🖥️ Écrans larges (≥1025px) */
@media (min-width: 1025px) {
  .col-33 {
    width: 30%;
  }

  .card-service {
    display: flex;
    justify-content: space-around;
  }


  .formulaire .contactRow {
    display: flex;
    justify-content: space-between;
  }

  .a-propos {
    display: flex;
    justify-content: space-between;
  }

  .footer-columns {
    display: flex;
    justify-content: space-between;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Agrandit les images sur mobile tout en conservant leur forme rectangulaire avec coins arrondis que sur desktop. */
@media (max-width: 480px) {
  .card-team img {
    width: 70vw !important;
    max-width: 220px;
    height: auto !important;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 16px !important;
    height: 100px;
    width: 100px;
  }
  .slider {
    height: 200px;
  }
}
@media (max-width: 768px) {
  .container, .row {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 480px) {
  .footer-columns .contact p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow-x: auto;
    text-align: center;
    width: 100%;
    gap: 8px;
    vertical-align: middle;
  }
  .footer-columns .contact i {
    margin: 0;
    min-width: 24px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 0;
  }
  .login-btn {
    width: 60%;
    min-width: 120px;
    max-width: 220px;
    margin: 0 auto;
    display: block;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  #actualite .element1,
  #actualite .element2,
  #actualite .element3 {
    margin-left: 10px;
    margin-right: 10px;
    font-size: 1rem;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
  }
  #actualite .element1 p,
  #actualite .element2 p,
  #actualite .element3 p {
    font-size: 0.95rem;
    word-break: break-word;
  }
}
@media (max-width: 480px) {
  .titlebackground {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    min-height: 220px;
    padding: 0 10px;
  }
  .titlebackground .box.deux {
    position: absolute;
    left: 10px;
    bottom: 20px;
    width: 90%;
    z-index: 2;
    text-align: left;
  }
  .titlebackground h2 {
    font-size: 60px !important;
    color: #fff !important;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    word-break: break-word;
    text-align: left !important;
  }
  .jaune.titre {
    color: #d5f31f !important;
    font-size: 60px !important;
    font-weight: 700;
    word-break: break-word;
  }
}
@media (max-width: 480px) {
  .titlebackground h2,
  .jaune.titre {
    font-size: 28px !important;
    line-height: 1.15;
    word-break: normal;
    white-space: normal;
    max-width: 95vw;
    width: 95vw;
    text-align: left;
    letter-spacing: -1px;
  }
  .titlebackground .box.deux {
    width: 95vw;
    text-align: left;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .titlebackground {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 220px;
    position: relative;
  }
  .titlebackground .box.deux {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95vw;
    text-align: center;
    margin: 0;
  }
  .titlebackground h2,
  .jaune.titre {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .titlebackground h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.2em;
  }
  .jaune.titre {
    display: block;
    text-align: center;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .card-team img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50% !important;
  }
}
@media (max-width: 480px) {
  .card-team img {
    width: 140px !important;
    height: 140px !important;
    object-fit: cover !important;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50% !important;
  }
}
@media (max-width: 480px) {
  .card-team img {
    width: 180px !important;
    height: 180px !important;
    object-fit: cover !important;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 50% !important;
  }
}

/* Titres des articles : fond transparent et texte vert */
.article-title {
  background: transparent !important;
  color: #255919 !important;
  font-weight: bold;
  font-size: 1.4em;
  padding: 0.2em 0;
  border-radius: 0;
  box-shadow: none;
}

/* ----- Correctifs mobiles cross-browser ----- */
/* Améliore la cohérence entre les rendus iOS et Android */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%; /* prevent font autosizing on mobile browsers */
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: inherit; }

/* Responsive headline sizing using clamp to behave similarly across devices */
.titlebackground h2 {
  font-size: clamp(24px, 6vw, 60px) !important;
  line-height: 1.05 !important;
}
.jaune.titre {
  font-size: clamp(20px, 6.5vw, 48px) !important;
}

/* Make article cards adapt better on narrow Android screens */
@media (max-width: 768px) {
  #actualite .element1,
  #actualite .element2,
  #actualite .element3 {
    margin: 12px !important;
    width: calc(100% - 24px) !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
  }

  .agenda > div { width: 100% !important; }

  /* Make slider responsive instead of fixed pixel sizes */
  .slider {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .slides, .slide { height: auto !important; }
}

/* Slight extra tweak for very small screens */
@media (max-width: 480px) {
  .titlebackground h2, .jaune.titre { font-size: clamp(18px, 8vw, 36px) !important; }
}


/* Titres des actualités sur la page actualite : fond vert et texte blanc */
.actualite .article-title {
  background: #36a745 !important;
  color: #fff !important;
  font-weight: bold;
  font-size: 1.4em;
  padding: 0.3em 0.6em;
  border-radius: 8px;
  box-shadow: none;
}
/* Forçage mobile .team-intro (doit être la dernière règle du fichier) */
@media (max-width: 480px) {
  #team .team-intro {
    font-size: 12px !important;
    width: 95vw !important;
    max-width: 95vw !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 auto 10px auto !important;
    word-break: break-word !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }
}
/* Forçage mobile galerie (5 lignes pour les deux paragraphes) */
@media (max-width: 480px) {
  #galerie .galerie-box p {
    font-size: 13px !important;
    width: 98vw !important;
    max-width: 98vw !important;
    line-height: 1.1 !important;
    text-align: center !important;
    margin: 0 auto 6px auto !important;
    word-break: break-word !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
  }
}

/* ===== Normalize mobile rendering when html.is-mobile is present ===== */
/* These rules target mobile devices uniformly (applied when JS sets html.is-mobile) */
html.is-mobile, html.is-mobile body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Headlines slightly smaller on mobile across platforms */
html.is-mobile .titlebackground h2,
html.is-mobile .jaune.titre {
  font-size: clamp(18px, 6.5vw, 36px) !important;
  line-height: 1.08 !important;
}

/* Ensure article cards (actualités) are consistent */
html.is-mobile #actualite .element1,
html.is-mobile #actualite .element2,
html.is-mobile #actualite .element3,
html.is-mobile .agenda > div {
  margin: 10px !important;
  width: calc(100% - 20px) !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  font-size: 0.96rem !important;
}

/* Force slider to adapt height on mobile */
html.is-mobile .slider {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Reduce excessive paddings that can differ between UAs */
html.is-mobile header,
html.is-mobile .footer-haut,
html.is-mobile .footer-bas {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Prevent iOS from styling telephone numbers as blue links */
a[href^="tel:"],
.contact p {
  color: inherit !important;
  text-decoration: none !important;
}

/* If a browser auto-detects phone numbers into links, make sure they inherit color */
meta[name="format-detection"] ~ * a[href^="tel:"] {
  color: inherit !important;
  text-decoration: none !important;
}

/* Force la couleur blanche pour le bloc contact du footer (override des règles globales) */
.footer-haut .contact,
.footer-haut .contact p,
.footer-haut .contact i,
.footer-columns .contact,
.footer-columns .contact p,
.footer-columns .contact i {
  color: #ffffff !important;
}

/* Rétablir la couleur d'origine pour les icônes téléphone et localisation dans le footer */
.footer-haut .contact i.fa-solid.fa-phone,
.footer-haut .contact i.fas.fa-location-dot,
.footer-columns .contact i.fa-solid.fa-phone,
.footer-columns .contact i.fas.fa-location-dot {
  color: #d5f31f !important; /* couleur d'origine définie auparavant pour les icônes */
}

/* Fallback: masquer .a-propos-left sur mobile si JS absent */
@media (max-width: 768px) {
  .a-propos-left { display: none !important; }
  .a-propos { padding: 20px !important; gap: 20px !important; }
  .a-propos-right { max-width: 100% !important; width: 100% !important; }
}
