/* fichier : css/dirigeant_chatgpt.css */
/* Typo et reset minimal */
body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans Display', sans-serif;
  background: #ffffff;
  
}
.news-tickers {
	background:none !important;
}
.news-ticker {
        top: 0 !important;
}
.main-container {
    position: relative; /* nÃ©cessaire pour le positionnement du ::before */
    overflow: hidden; /* pour Ã©viter que le blur dÃ©borde */
}

.main-container::before {
    content: "";
    position: fixed;
    top: 0 !important;
    left: 0;
	right:0;
	bottom:0;
    width: 100vw;
    height: 100vh;

    background-image: url('/images/fond/elections.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.85);
    z-index: -1; /* met l'image derriÃ¨re le contenu */
}
 .page-container {
            position: relative;
            width: 100%;
            max-width: 1170px;
            margin: 40px auto 0 auto;
			 padding: 20px;
            background: rgba(72,92,116,0.45);
			color:#fff;
            border-radius: 20px;
            z-index: 1;
            box-shadow: 0 0 18px #bbb8;
            padding-bottom: 32px;
			text-align:justify;
        }
.content-block { background:none !important; box-shadow:none !important; }
/* ==== FILIGRANE GÃ‰NÃ‰RAL ==== */
.dirigeant-page {
  position: relative;
  width: 750px;
  margin-top:25px;
  overflow: hidden;
  background: #ffffff;
  margin-left:40px;
  padding-top:40px;
  border-radius:8px;
}
.dirigeant-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}
.dirigeant-page > * {
  position: relative;
  z-index: 1;
}
/*regions*/
.regions-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.regions-list li {
  margin: 10px 0;
}

.regions-list a {
  color: #0e4c92;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.regions-list a:hover {
  color: #e86c00;
}

details summary {
  font-weight: bold;
  cursor: pointer;
  padding: 12px 15px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: background 0.3s;
  list-style: none;
  color:#00507D;
}

details[open] summary {
  background: #00507D;
  color: #fff;
  border-color: #00507D;
}
.regions-list li {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.3s;
}

/* Alternance des lignes */
.regions-list li:nth-child(odd) {
  background-color: #f9f9f9; /* Gris très clair */
}

.regions-list li:nth-child(even) {
  background-color: #eef4fa; /* Bleu très clair */
}

.regions-list li:hover {
  background-color: #e0ecff; /* Bleu un peu plus vif au survol */
}

.regions-list a {
  display: block;
  width: 100%;
  color: #0e4c92;
  font-weight: bold;
  text-decoration: none;
}

.regions-list a:hover {
  color: #e86c00;
}

/* HERO centrÃ© et largeur limitÃ©e */
.profile-hero {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 1rem 1rem;
  gap: 1rem;
  /* fond semi-transparent pour laisser apparaÃ®tre le filigrane de .dirigeant-page */
  background-color: rgba(0,80,125,0.75);
  padding-bottom:30px;
 

}

.hero-image img {
  /*object-fit: cover;*/
  border-radius: 8px;
  border: 2px solid #FF6A00;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-left:8%;

 
}
.hero-info {
  text-align: left;
} 
.hero-info .profile-name {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
.hero-info .profile-role {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFD290;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Cartes dâ€™infos (3 blocs) */
.info-cards {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  max-width: 700px;
  margin: auto auto 0px auto;
  padding-bottom:60px;
  background: transparent;
  /*background-image: url('/images/vague.png');*/
   background-position: bottom;
   background-repeat:no-repeat;
}
.info-card {
  flex: 1 1 0;
  background: #F2F8FB;
  color: #00507D;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  border-top: 3px solid #FF6A00;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-card .icon   { font-size: 1.6rem; color:#FF6A00;}
.info-card .label  { margin-top: 0.3rem; font-size: 0.9rem; color: #666; }
.info-card .value  { margin-top: 0.2rem; font-size: 1.2rem; font-weight: bold; }
.info-card .subvalue {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

/* Boutons Biographie & Galerie */
.dirigeant-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 700px;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: #FFD290;
  color: #00507D;
  font-weight: 600;
  border: 2px solid #FFD290;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.action-btn .icon {
	color:#FF6A00;
  font-size: 1.2rem;
  line-height: 1;
}
.action-btn:hover,
.action-btn:focus {
  background: #E6C07A;
  color: #00507D;
  outline: none;
}

/* Section PrÃ©dÃ©cesseurs */
.predecessors {
  position: relative;
  padding: 2rem 1rem 1rem;
  background: transparent;
   text-align: center;
}
.predecessors::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FF6A00;
  border-radius: 2px;
}


.pre-title {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 1px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  
  /* ðŸ’¥ C'est ici qu'on ajoute pour le centrer */
  margin: 1rem auto 2rem;
  text-align: center;
}

.pre-title-wrapper {
  width: 100%;
  text-align: center;
}
}

/* Section Biographie */
.biographie-section {
    display: flex;
    justify-content: center; /* Centrage horizontal */
    padding: 20px 20px;
    
}
.biographie-section::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FF6A00;
  border-radius: 2px;
}
/* Contenu de la Biographie */
.biographie-contenu {  border: 1px solid #FF6A00;  border-radius: 10px;  background: #fff;  padding: 30px;  max-width: 700px;  margin: 0 auto; line-height:1.5; color:#00507D; text-align:justify;}



/* Grille responsive */
.cards-container {
  display: grid !important;
  gap: 0.75rem !important;
  justify-content: center !important;
  max-width: 700px;
  margin: 0 auto !important;
  grid-template-columns: repeat(4, 165px) !important;
}
.suggestions01 {
  position: relative !important; /* ou simplement supprime "position: absolute" */
  border: 1px solid #ff7200 !important;
  background: white !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  margin-top: 6px !important; /* petit espacement sous le champ */
  max-height:200px;
  overflow-y:auto;
}
.suggestions02 {
  position: relative !important; /* ou simplement supprime "position: absolute" */
  border: 1px solid #ff7200 !important;
  background: white !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  margin-top: 6px !important; /* petit espacement sous le champ */
  max-height:200px;
  overflow-y:auto;
}

/* affichage 15 elections */
.election-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes fixes */
  gap: 16px;
}

.election-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* occupera la même hauteur que les autres */
  border: 1px solid #ccc;
  border-left: 2px solid #ff7200;
  border-radius: 12px;
  padding: 16px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.election-card:hover {
  transform: translateY(-4px);
}

.election-card .title {
  font-size: 18px;
  font-weight: bold;
}

.election-card .meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.election-card .pourcentage {
  font-size: 20px;
  font-weight: bold;
  color: #0077cc;
}

.election-card .scrutin {
  font-size: 13px;
  font-style: italic;
  color: #999;
}
@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 540px;
  }
}
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 360px;
  }
.election-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.election-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  width: 300px;
  background-color: #fdfdfd;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  overflow: hidden;
}
}

@media (max-width: 480px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    
  }
    .info-cards {
  width: 360px;
}
  .info-card {
  max-width: 80px;
}


}
/* Cartes prÃ©dÃ©cesseurs */
.card {
  background: #F2F8FB;
  width: 165px;
  border-radius: 6px;
  color: #00507D;
  border: 1px solid #FF6A00;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out,
              transform 0.6s ease-out,
              box-shadow 0.3s ease,
              transform 0.3s ease;
}
.cards-container .card.visible {
  opacity: 1;
  transform: translateY(0);
}
.cards-container .card:hover,
.cards-container .card:focus {
  transform: translateY(-6px) rotateZ(-1deg);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  outline: none;
}
.card-image {
  text-align: center;
  padding: 0.5rem 0;
  z-index: 1;
}
.card-image img {
  width: 65px;
  height:101px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #FF6A00;
}
.card-content {
  flex: 1;
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  z-index: 1;
}
.card-lastname { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; color: #00507D; margin-bottom: 0.15rem; }
.card-title     { font-size: 0.9rem;  font-weight: 600; color: #007A9E; margin: 0.1rem 0; }
.card-function  { font-size: 0.8rem;  font-weight: 500; color: #333; margin: 0.15rem 0; }
.card-source    { font-size: 0.7rem; line-height: 1.3; color: #FF6A00; white-space: pre-line; overflow: visible; }

/* Animation pour IntersectionObserver */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ======================= *//*     RESPONSIVE FONTS    *//* ======================= *//* Petites tablettes et smartphones */
@media (max-width: 768px) {  
body {    font-size: 0.96rem;  } 
.dirigeant-page { width:100%; margin-right:10px; padding: 0 10px; } 
.profile-hero {       padding: 0.5rem 0.5rem 2rem 0.5rem;  }  
.hero-image img {    width: 65px;    margin-left: 0;  }  
.hero-info .profile-name {    font-size: 2rem;  }  
.hero-info .profile-role {    font-size: 1.1rem;  }  
.pre-title,  .biographie-titre {    font-size: 1.25rem;  }  
.biographie-contenu {    padding: 16px;    font-size: 1rem;  }  
.info-card .icon { font-size: 1.2rem; }  
.info-card .label { font-size: 0.8rem; }  
.info-card .value { font-size: 1rem; }  
.info-card .subvalue { font-size: 0.7rem; }  
.card-lastname { font-size: 0.8rem; }  
.card-title { font-size: 0.77rem; }  
.card-function { font-size: 0.68rem; }  
.card-source { font-size: 0.62rem; }  
.action-btn {    font-size: 0.98rem;    padding: 0.5rem 0.8rem;  }
}

@media (max-width: 480px) {  

body {    font-size: 0.90rem; }  
.dirigeant-page { width:100%; margin:75px 5px auto 5px; } 
.profile-hero {    padding: 0.5rem 0.2rem 1.5rem 0.2rem;  }  
.hero-info .profile-name {    font-size: 1.3rem;  } 
.pre-title,  .biographie-titre {    font-size: 1.02rem;  }  
.biographie-contenu {    padding: 8px;    font-size: 0.98rem;  }  
.info-card .icon { font-size: 1.1rem; }  
.info-card .label { font-size: 0.68rem; }  
.info-card .value { font-size: 0.72rem; }  
.info-card .subvalue { font-size: 0.64rem; }  
.card-lastname { font-size: 0.72rem; }  
.card-title { font-size: 0.68rem; }  
.card-function { font-size: 0.6rem; }  
.card-source { font-size: 0.53rem; } 
.action-btn {    font-size: 0.92rem;    padding: 0.4rem 0.6rem;  }
 }