/* Styles pour la page À propos */
:root {
  --text: #222;
  --muted: #666;
  --bg: #ffffff;
  --brand: #0b0b0b;
  --accent: #d4b48c;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
}

/* Bloc générique inspiré de la page contact */
.bloc-apropos {
  padding: 2.5rem 0.75rem;
  background: transparent;
  border-top: 1px solid #e2d6cc;
  margin: 2rem auto;
}
.bloc-apropos > h2,
.bloc-apropos > .apropos-intro,
.bloc-apropos > .team-grid,
.bloc-apropos > .values-list,
.bloc-apropos > .team-intro {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.bloc-apropos > h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #b48c6e;
  text-align: center;
  margin: 0 0 .6rem;
  font-weight: 700;
}
.apropos-intro,
.team-intro { text-align: center; color: #666; font-size: 1.05rem; margin: 0 0 1.6rem 0; }

/* Team */
.team-section { padding: 2rem 1rem 2.2rem; }
.team-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  margin: 0 0 .6rem;
  color: #b48c6e;
  text-align: center;
  font-weight: 700;
}
.team-intro { margin-bottom: 1.6rem; }

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  max-width: 500px;
  margin: 0 auto;
  justify-content: center;
}

/* (bandeau supprimé à la demande) */

.member-card {
  background: #fff;
  border-radius: 12px;
  -webkit-border-radius: 12px;
  border: 1px solid #f0e9d8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
  width: 220px;
  flex-shrink: 0;
}
.member-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.06); }

.member-photo { 
  background: #fff; 
  overflow: hidden;
  position: relative;
}
.member-photo img { 
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
}

.member-info { 
  padding: 1rem 1rem 1.25rem; 
  background: #fff;
  position: relative;
  z-index: 1;
}
.member-info h3 { margin: .25rem 0 .25rem; font-size: 1.1rem; }
.member-role { margin: 0 0 .5rem; color: var(--accent); font-weight: 600; }
.member-bio { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Values */
.values-section { padding: 2rem 1rem 2.5rem; display: grid; place-items: center; }
.values-section h2 { font-family: 'Playfair Display', serif; margin: 0 0 .6rem; font-size: 1.35rem; color: #b48c6e; text-align: center; font-weight: 700; }
.values-list { margin: 0 auto; padding-left: 0; color: var(--muted); text-align: center; list-style-position: inside; }
.values-list li { margin: .4rem 0; }

/* Responsive */
@media (max-width: 1024px) { 
  .team-grid { 
    max-width: 480px;
  } 
}
@media (max-width: 560px) {
  .team-grid { flex-direction: column; align-items: center; }
  .member-card { width: 280px; }
}

/* Petits iPhones (SE, mini, etc.) */
@media (max-width: 380px) {
  .team-grid { 
    max-width: 100%;
    padding: 0 10px;
  }
  .member-card { 
    width: 100%; 
    max-width: 260px;
  }
  .member-photo {
    aspect-ratio: 1/1;
    min-height: auto;
  }
  .member-info {
    padding: 0.8rem;
  }
  .member-info h3 {
    font-size: 1rem;
  }
  .member-bio {
    font-size: 0.85rem;
  }
  .team-intro {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}

/* Desktop: ensure section titles are centered */
@media (min-width: 1025px) {
  .bloc-apropos > h2,
  .team-section h2,
  .values-section h2 {
    text-align: center;
  }
}

/* Hard override in case of unexpected global rules */
@media (min-width: 1025px) {
  #pageContent .bloc-apropos > h2,
  #pageContent .team-section h2,
  #pageContent .values-section h2 {
    text-align: center !important;
  }
}

/* Force centrage du titre 'À propos' sur tous les supports */
#pageContent #apropos-title {
  text-align: center !important;
}

/* Centre également les autres titres sur tous les supports */
#pageContent #team-title,
#pageContent #values-title {
  text-align: center !important;
}

/* Target specific IDs for extra safety on desktop */
@media (min-width: 1025px) {
  #pageContent #apropos-title,
  #pageContent #team-title,
  #pageContent #values-title {
    text-align: center !important;
  }
}


















@media (max-width: 700px) {
  /* Footer ergonomie mobile (global) */
  #mainFooter { padding-left: 0.8rem; padding-right: 0.8rem; }
  #mainFooter #contact-section h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
  #mainFooter #contact-section p { font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.35; }
  #mainFooter #contact-section ul { gap: 1rem; flex-wrap: wrap; }
  #mainFooter #contact-section ul li a img { width: 28px; height: 28px; }
  #mainFooter > p { font-size: 0.9rem; line-height: 1.25; margin-top: 0.8rem; letter-spacing: 0; }
  #mainFooter > p a { margin: 0 0.2rem; }
  #mainFooter > p a[title*="À propos"] { white-space: nowrap; }
}











/* Footer stylé et sobre */
#mainFooter {
  background: #f7f3ef;
  border-top: 1px solid #e2d6cc;
  padding: 2.2rem 1rem 1.2rem 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #6d5c4d;
  text-align: center;
}

#contact-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

#contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #b48c6e;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

/* Fin (footer base definitions already declared above) */

/* --- Sticky footer base (short pages) --- */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > header.header-container, #mainFooter { flex: 0 0 auto; }
main#pageContent, body > main { flex: 1 0 auto; }

/* --- Mobile: move bottom-nav reserve to footer to avoid visible gap --- */
@media (max-width: 700px) {
  main#pageContent, body > main { padding-bottom: 0 !important; }
  #mainFooter { padding-bottom: calc(0.6rem + var(--bottom-nav-h, 56px)) !important; }
}


#contact-section p {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

#contact-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  text-align: center;
}

#contact-section ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-section ul li a img {
  width: 34px;
  height: 34px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  background: #fff;
}

#contact-section ul li a img:hover,
#contact-section ul li a img:focus {
  transform: scale(1.13);
  box-shadow: 0 4px 16px rgba(180,140,110,0.13);
}

#contact-section p:last-child {
  font-size: 0.98rem;
  color: #a07a5b;
  margin-top: 1.2rem;
}

#contact-section p a {
  color: #b48c6e;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

#contact-section p a:hover,
#contact-section p a:focus {
  color: #a07a5b;
}


.bloc-connexion,
.bloc-videos,
.bloc-galerie,
.bloc-poeme,
#mainFooter,
.video-bloc,
.galerie-item {
  box-shadow: none !important;
}

#contact-section ul li a img {
  box-shadow: none !important;
}

/* Fin */

#pageContent {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    display: block;
    padding-top: 50px;
}

/* Uniformisation couleur du texte dans le footer */
#mainFooter > p {
  color: #6d5c4d; 
}
#mainFooter > p a {
  color: inherit; 
  text-decoration: underline;
}
#mainFooter > p a:hover,
#mainFooter > p a:focus {
  color: #4f4035; 
}

/* ===== Force-centering the three titles on large screens (safety net) ===== */
@media (min-width: 1025px) {
  #pageContent #apropos-title,
  #pageContent #team-title,
  #pageContent #values-title {
    /* Keep text centered inside the element */
    text-align: center !important;

    /* Center the element itself inside wide containers */
    display: block !important;
    width: max-content; /* shrink to text width */
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    align-self: center !important; /* in case parent is flex */
  }
}