*{
    margin:0px;
    padding:0px;
}

body {
  font-family: 'Nunito', sans-serif;
}

h2{
    text-align:center;
    color: #002b4b;
    font-style: bold;
    
}

h4{
    text-align:center;
    color: #002b4b;
    
}


button{
    padding:15px;
    border:none;
    background-color: #2ec0cf;
    color: white;
    border-radius: 25px;
}

.featured-images{
    width:100%;
    height:100%;
    display: block;
}

.featured-images-other{
    width:100%;
    height:100%;
    max-height: 100px;
    display: block;
}

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


.candidate-container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    margin-left:-1%;
    max-width:10%;
    height: 100%
}

.candidate-mairie-container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    margin-left:-1%;
    max-width:15%;
}

#photos-candidats-container{
    display:flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

#section-nouvelles{
    background-color: #2ec0cf;
}

#news-container{
    display:flex;
    justify-content: center;
}

.txt-news{
    background-color: white;
}

.news{
    padding: 2%;
    margin: 0%;
    max-width: 15%;
}

#section-program{
    display: flex;
    justify-content: center;
}

.program-section{
        display: flex;
    justify-content: center;
}

.program-section h2{
        color: white;
}

.program-section p{
        color: white;
      font-size: 0.8rem;
      margin: 2%;
}

#program{
    background-color: #002b4b;
    width: 80%;
    border-radius: 15px;
}

p{
margin-bottom: 5px;
}
.candidat{
max-height: 100%;
max-width: 100%;
}

.front{
    margin-top:10%;
    z-index:-1;
}

#section-candidat{
    margin-top:1%;
}


#section-nouvelles h2{
    color: white;
}

#section-program h2{
    color: white;
}


.news-img{
    max-height: 100%;
    max-width: 100%;
}

.img-news{
    max-height: 100%;
    background-color: white;
}



.overlay{
    position: absolute;
width:10%;
height:100%;
}

.candidate-container:hover{
    background-color:black;
    opacity:0.6;
}

.team-section {
  background-color: white;
  padding: 40px 20px;
  text-align: center;
}

.team-section h2 {
  color: #002b4b;
  margin-bottom: 30px;
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.team-member {
  position: relative;
  width: 180px;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.3s ease-in-out;
}

.team-member .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  opacity: 0;
  display: flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
}


.team-member:hover .overlay {
  opacity: 1;
}

.team-member .name {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.team-member .district-name {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.mairie-team-member:hover .overlay {
  opacity: 1;
}

.mairie-team-member .name {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.mairie-team-member .district-name {
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
}

.news-section {
  background-color: #2ec0cf;
  padding: 50px 20px;
  text-align: center;
}
.news-section-main {
  display:flex;
  background-color: white;
  padding: 50px 20px;
  text-align: center;
  justify-content:center;
}



.news-section h2 {
  color: ##002b4b;
  margin-bottom: 30px;
}

.news-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.news-grid-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 45%;
}

.news-card {
  background: white;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
}

.news-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  color: white;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  width: 100%;
}

.news-overlay h3 {
  margin: 0;
  font-size: 1.1rem;
}

.news-date {
  font-size: 0.9rem;
  margin-top: 5px;
}

.news-content {
  padding: 15px;
  font-size: 0.95rem;
}

.news-content a {
  display: inline-block;
  margin-top: 10px;
  color: #002b4b;
  font-weight: bold;
  text-decoration: none;
}

.news-button {
  margin-top: 30px;
}

.news-button .btn {
  background-color: #002b4b;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.newsletter-button .btn {
  background-color: #002b4b;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.message-chef {
  width: 100%;
  background-color: #f5f5f5;
  padding: 0px 0;
}

.container-chef {
  display: flex;
  width:100%;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0px;
  gap: 0px;
  flex-wrap: wrap;
}

.chef-image{
  max-width:1472px;
}

.chef-image img {
  width: 100%;
  height: auto;
  max-height:100vh;
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chef-text {
  flex: 1;
  margin-left: 10px  
}

.chef-text h2 {
  margin-bottom: 20px;
  color: #002b4b;
}

.chef-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

/* Responsive */
@media screen and (max-width: 1080px) {

  .container-chef {
    flex-direction: column;
    text-align: center;
  }

  .chef-text {
    padding-top: 20px;
  }
}

.candidate-button {
  margin-top: 30px;
}

.candidate-button .btn {
  background-color: #2ec0cf;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}
.news-grid-main {
max-width:100%;
}
}

article {
  display: none;
}

article.visible {
  display: block;
}

.signature{
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  letter-spacing: 1px;
  margin-top: 40px;
  margin-bottom: 0;
  text-align: left;
}

h3{
margin-top:15px;
}

    .titre {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 85px 20px;
  text-align: center;
  z-index: 0;
  overflow: hidden;
background-image: url('images/titre_1.jpg'); 
padding-top:min(145px);
}

.titre::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #01436d80;
  z-index: -1;
}
