/* 🏠 STYLES SPÉCIFIQUES POUR LA PAGE D'ACCUEIL */

/* === ARCHITECTURE DEUX COLONNES POUR LES PROMESSES === */
.promesses-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.promesses-section-header h3 {
  color: #212B79;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #212B79;
  padding-bottom: 0.5rem;
}

.promesses-deux-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.promesses-colonne-gauche,
.promesses-colonne-droite {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: stretch;
}

/* Alignement vertical optimal des colonnes */
.promesses-deux-colonnes .promesse-item {
  flex: 0 0 auto;
}

.promesse-pleine-largeur {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

/* === SECTION ET AUSSI EN PLEINE LARGEUR === */
.et-aussi-section {
  background: #f8fafc;
  padding: 3rem 0;
}

.et-aussi-section .problemes-section h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: #212B79;
  font-size: 2rem;
}

.et-aussi-section .problemes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* === STYLES POUR LES SECTIONS AVEC TITRES CENTRÉS === */
.engagement-header {
  text-align: center;
  margin-bottom: 2rem;
}

.engagement-header h2 {
  color: #212B79;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.engagement-header h3 {
  color: #212B79;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.constats-echec h3,
.bilan-maire h3 {
  text-align: center;
  color: #212B79;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.constat-item h4 {
  color: #212B79;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* === STYLES POUR IMAGES EN QUINQUONCE - PAGE ACCUEIL === */
.engagement-quinquonce,
.constats-quinquonce {
  margin: 3rem 0;
}

.quinquonce-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.quinquonce-item.quinquonce-reverse {
  grid-template-columns: 1fr 1fr;
}

.quinquonce-item.quinquonce-reverse .quinquonce-image {
  grid-column: 1;
}

.quinquonce-item.quinquonce-reverse .quinquonce-texte {
  grid-column: 2;
}

.quinquonce-texte {
  padding: 1.5rem;
}

.quinquonce-texte p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin: 0;
}

.quinquonce-texte h4 {
  color: #212B79;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

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

.quinquonce-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Texte seul (sans image) → réduire les espacements */
.quinquonce-item.quinquonce-text-only {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0;
}

.quinquonce-item.quinquonce-text-only .quinquonce-texte {
  padding: 0;
}

.quinquonce-img:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* === RESPONSIVITÉ === */
@media (max-width: 768px) {
  .promesses-deux-colonnes {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .promesse-pleine-largeur {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .et-aussi-section .problemes-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Responsive pour quinquonce sur page accueil */
  .quinquonce-item,
  .quinquonce-item.quinquonce-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
  }

  /* Version mobile: resserrer encore pour le texte seul */
  .quinquonce-item.quinquonce-text-only {
    gap: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .quinquonce-item.quinquonce-reverse .quinquonce-image,
  .quinquonce-item.quinquonce-reverse .quinquonce-texte {
    grid-column: 1;
  }
  
  .quinquonce-img {
    height: 200px;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .quinquonce-texte {
    padding: 1rem;
  }
  
  .quinquonce-texte p {
    font-size: 1rem;
  }
  
  .quinquonce-texte h4 {
    font-size: 1.1rem;
  }
}


/* BANNIÈRE MAIRIE */
.mairie-banner {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.banner-overlay {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}


.hero {
  background: #f8fafc;
  color: #1a202c;
  padding: 6rem 0;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
  align-items: center;
}

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

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

.hero-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.hero h1 {
  color: #212B79;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #4a5568;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-intro {
  max-width: 800px;
  margin: 0 auto;
}

.hero-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4a5568;
}

.hero-team-name {
  font-size: 2rem;
  font-weight: 800;
  color: #212B79;
  text-align: center;
  margin: 2rem 0;
}

.hero-intro-suite {
  max-width: 800px;
  margin: 0 auto;
}

.hero-intro-suite p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4a5568;
}

/* ==============================================
   🚫 SECTION BILAN DES PROMESSES NON TENUES
   ============================================== */

.bilan-section {
  background: #f8fafc;
}

.bilan-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bilan-header h2 {
  color: #212B79;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.bilan-header h3 {
  color: #dc2626;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.bilan-header p {
  color: #4a5568;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bilan-content {
  margin-top: 2rem;
}

.promesses-section,
.problemes-section {
  /* Style sobre sans fond ni bordure */
}

.promesses-section h3,
.problemes-section h3 {
  color: #212B79;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #212B79;
  padding-bottom: 0.5rem;
}

.promesses-list,
.problemes-list {
  line-height: 1.8;
  color: #4a5568;
}

.promesse-item,
.probleme-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
}

.tick-rouge {
  color: #dc2626;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.promesse-item {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  gap: 0rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.promesse-content {
  text-align: left;
}

.promesse-titre {
  color: #212B79;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.promesse-description {
  color: #64748b;
  font-style: italic;
  margin-top: 0.3rem;
}

.promesse-picto-gauche,
.promesse-picto-droite {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: start;
}

/* Style pour promesses avec image à gauche */
.promesse-gauche .promesse-picto-gauche {
  grid-column: 1;
}

.promesse-gauche .promesse-content {
  grid-column: 2;
}

/* Style pour promesses avec image à droite */  
.promesse-droite .promesse-content {
  grid-column: 2;
}

.promesse-droite .promesse-picto-droite {
  grid-column: 3;
}

/* Styles déjà définis plus haut pour .probleme-item */

/* === Bloc spécial Résidence (plein largeur) === */
.promesse-residence {
  margin: 2rem 0 2.5rem 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.promesse-residence-text {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 1rem;
  align-items: start;
}
.residence-text-body {}
.non-tenu-picto-right {
  width: 50px;
  height: 50px;
  object-fit: contain;
  align-self: start;
}
.promesse-residence-text .promesse-titre {
  display: block;
  margin-bottom: 0.5rem;
}
.promesse-residence-text p {
  margin: 0.25rem 0 1rem 0;
}
.promesse-residence-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.residence-photo {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
}
.residence-photo img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
.residence-photo figcaption {
  font-size: 0.95rem;
  color: #475569;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .promesse-residence { padding: 0; }
  .promesse-residence-text { grid-template-columns: 1fr 48px; }
  .non-tenu-picto-right { width: 44px; height: 44px; }
  .promesse-residence-photos { grid-template-columns: 1fr; }
  .residence-photo img { height: 200px; }
}

.cta-section {
  background: white;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98, 173, 43, 0.3), transparent);
}

.cta-section h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: #64748b;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-section {
  background: #f8fafc;
}

.team-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.team-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  text-align: center;
}

.team-overlay p {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.team-description h3 {
  color: #212B79;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.team-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-logo {
    max-width: 150px;
  }
  
  .mairie-banner {
    height: 180px;
  }
  
  .hero-team-name {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-intro p {
    font-size: 1rem;
  }
  
  .bilan-header h2 {
    font-size: 2rem;
  }
  
  .bilan-header h3 {
    font-size: 1.5rem;
  }
  
  .bilan-header p {
    font-size: 1.1rem;
  }
  
  .promesses-deux-colonnes {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .et-aussi-section .problemes-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-image {
    height: 250px;
  }
  
  .team-description h3 {
    font-size: 1.5rem;
  }
  
  .team-description {
    text-align: center;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  
  .promesse-item {
    grid-template-columns: 45px 1fr 45px;
    gap: 0.1rem;
  }
  
  .promesse-picto-gauche,
  .promesse-picto-droite {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  .hero-logo {
    max-width: 120px;
  }
  
  .mairie-banner {
    height: 150px;
  }
  
  .hero-team-name {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-intro p {
    font-size: 0.95rem;
  }
  
  .bilan-header h2 {
    font-size: 1.75rem;
  }
  
  .bilan-header h3 {
    font-size: 1.3rem;
  }
  
  .bilan-header p {
    font-size: 1rem;
  }
  
  
  .promesses-section h3,
  .problemes-section h3 {
    font-size: 1.1rem;
  }
  
  .promesse-item,
  .probleme-item {
    font-size: 0.95rem;
  }
  
  .promesse-item {
    grid-template-columns: 40px 1fr 40px;
    gap: 0.1rem;
  }
  
  .promesse-picto-gauche,
  .promesse-picto-droite {
    width: 40px;
    height: 40px;
  }
  
  .team-image {
    height: 200px;
  }
  
  .team-description h3 {
    font-size: 1.3rem;
  }
  
  .keyword-card {
    padding: 1.5rem;
  }
}
