/* Styles propres aux pages profil (presentationeric.html). Chargé après style.css. */

/*
 * STYLES SPÉCIFIQUES À presentationeric.html
 * Complète style.css sans le modifier.
 * Couvre : hero profil, breadcrumb, grille sidebar/contenu,
 *          citation, biographie, liste mandats, boîte contact.
 *
 * Ce fichier est conçu pour être dupliqué pour d'autres représentants
 * (ex : presentationisabelle.html) en changeant uniquement le contenu HTML.
 */

/* Compense la hauteur du header fixe */
body {
  padding-top: var(--header-height);
}

/* ==========================================================
   HERO PROFIL — Bannière avec photo de fond et overlay bleu
========================================================== */
.hero-profil {
  padding: 80px 20px 60px;
  text-align: center;
  color: #fff;
  border-bottom: 4px solid var(--color-primary);
  background:
    linear-gradient(135deg, rgba(18, 62, 117, 0.93) 0%, rgba(26, 86, 160, 0.88) 100%),
    url("../medias/fond-bandeau.webp") center / cover no-repeat;
}

/* Petits écrans : image de fond plus légère */
@media (max-width: 768px) {
  .hero-profil {
    background:
      linear-gradient(135deg, rgba(18, 62, 117, 0.93) 0%, rgba(26, 86, 160, 0.88) 100%),
      url("../medias/fond-bandeau-mobile.webp") center / cover no-repeat;
  }
}

.hero-profil h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.hero-profil .profile-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================
   BREADCRUMB — Fil d'Ariane
========================================================== */
.breadcrumb {
  padding: 15px 0 30px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  color: var(--color-text);
  font-weight: 600;
}

/* ==========================================================
   SECTION PROFIL — Grille sidebar + contenu
========================================================== */
.profile-section {
  padding: 60px 0 80px;
  background: var(--color-bg-alt);
}

/* 2 colonnes : sidebar fixe à gauche, contenu à droite */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  align-items: start;
}

/* ==========================================================
   SIDEBAR — Photo + bouton contact
   position: sticky : reste visible en scrollant le contenu.
========================================================== */
.profile-sidebar {
  position: sticky;
  top: 90px;
  /* Légèrement sous le header fixe */
}

/* Photo de profil en format portrait (ratio 3/4) */
.profile-img-wrapper {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bouton pleine largeur dans la sidebar */
.profile-sidebar .btn {
  display: block;
  width: 100%;
  text-align: center;
}

/* ==========================================================
   CONTENU PRINCIPAL — Biographie et mandats
========================================================== */
.profile-content h2 {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

/* Badge de fonction sous le nom */
.profile-content .profile-role {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  padding: 5px 15px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  margin-bottom: 30px;
}

/* Citation mise en avant avec bordure jaune */
.profile-quote {
  padding: 20px 25px;
  margin: 30px 0;
  background: #fff;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
}

/* Sous-titres de la biographie */
.profile-bio h3 {
  font-size: 1.5rem;
  color: var(--color-secondary);
  margin: 30px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.profile-bio p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Liste des mandats avec puce triangle jaune */
.profile-bio ul {
  padding: 0;
}

.profile-bio ul li {
  position: relative;
  padding: 10px 0 10px 25px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.profile-bio ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 13px;
  font-size: 0.7rem;
  color: var(--color-primary);
}

/* ==========================================================
   BOÎTE DE CONTACT — Fond bleu avec CTA
========================================================== */
.contact-box {
  margin-top: 40px;
  padding: 30px;
  background: var(--color-secondary);
  border-left: 5px solid var(--color-primary);
  border-radius: 8px;
  color: #fff;
}

.contact-box h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

/* Variante du bouton secondaire sur fond bleu : contour blanc */
.contact-box .btn-secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.contact-box .btn-secondary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text);
}

/* ==========================================================
   MEDIA QUERIES SPÉCIFIQUES À CETTE PAGE
========================================================== */

/* Tablette (≤ 992px) */
@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 250px 1fr;
    gap: 30px;
  }

  .hero-profil h1 {
    font-size: 2.8rem;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
    max-width: 300px;
    margin: 0 auto 30px;
  }

  .hero-profil h1,
  .profile-content h2 {
    font-size: 2.2rem;
  }

  .contact-box .btn {
    display: block;
    margin: 10px 0;
    text-align: center;
  }
}
