/* Page "Le Bureau" — même style que l'agenda */
.bureau-bte {
  --bte-noir: #1f1d24;
  --bte-texte: #4a4752;
  --bte-ligne: #ece7df;
  --bte-orange: #f29400;
  --bte-vert: #2fa84f;
  --bte-violet: #8e3c9e;

  /* Sort un peu de la colonne de texte étroite du thème */
  position: relative;
  left: 50%;
  width: min(1100px, calc(100vw - 32px));
  transform: translateX(-50%);
  color: var(--bte-texte);
}

.bureau-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Photo façon cadre avec guirlande */
.bureau-photo {
  position: relative;
  max-width: 900px;
  margin: 0 auto 3.5rem;
  padding: 14px 14px 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 40px -22px rgba(31, 29, 36, 0.45);
  transform: rotate(-1deg);
  transition: transform 0.35s ease;
}
.bureau-photo:hover { transform: rotate(0) scale(1.01); }
.bureau-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.bureau-photo figcaption {
  padding: 0.8rem 0 1rem;
  text-align: center;
  font-family: 'Gochi Hand', 'Comic Sans MS', cursive;
  font-size: 1.5rem;
  color: var(--bte-noir);
}
/* Guirlande de fanions en CSS */
.bureau-guirlande {
  position: absolute;
  top: -24px;
  left: 4%;
  right: 4%;
  height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='34' viewBox='0 0 90 34'%3E%3Cpath d='M0 4 Q45 12 90 4' fill='none' stroke='%231f1d24' stroke-width='1.5'/%3E%3Cpath d='M3 5 L27 7 L15 30Z' fill='%23f29400'/%3E%3Cpath d='M33 8 L57 8 L45 31Z' fill='%232fa84f'/%3E%3Cpath d='M63 7 L87 5 L75 30Z' fill='%238e3c9e'/%3E%3C/svg%3E") repeat-x 0 0 / 90px 34px;
  z-index: 1;
  pointer-events: none;
}

/* Pôles */
.bureau-poles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.bureau-pole {
  --accent: var(--bte-orange);
  --accent-doux: #fff3e0;
  background: #fff;
  border: 1px solid var(--bte-ligne);
  border-top: 6px solid var(--accent);
  border-radius: 20px;
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: 0 10px 30px -18px rgba(31, 29, 36, 0.35);
}
.bureau-pole--violet { --accent: var(--bte-violet); --accent-doux: #f4e9f6; }
.bureau-pole--vert   { --accent: var(--bte-vert);   --accent-doux: #e7f6eb; }

.bureau-bte .bureau-pole__titre {
  margin: 0 0 1rem;
  font-family: 'Gochi Hand', 'Comic Sans MS', cursive;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
}

/* Membre */
.bureau-membre {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 14px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.bureau-membre + .bureau-membre { margin-top: 0.35rem; }
.bureau-membre:hover {
  background: var(--accent-doux);
  transform: translateX(4px);
}
.bureau-membre__avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Gochi Hand', 'Comic Sans MS', cursive;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 65%, #000);
  transition: transform 0.3s cubic-bezier(.3, 1.8, .5, 1);
}
/* Les adjoint·e·s ont un avatar en version claire */
.bureau-membre + .bureau-membre .bureau-membre__avatar {
  background: var(--accent-doux);
  color: var(--accent);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 35%, #fff);
}
.bureau-membre:hover .bureau-membre__avatar { transform: rotate(-8deg) scale(1.08); }

.bureau-bte .bureau-membre__nom {
  margin: 0;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bte-noir);
}
.bureau-bte .bureau-membre__role {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}
.bureau-bte .bureau-membre__enfants {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--bte-texte);
}

/* Encadré contact */
.bureau-contact {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #fff3e0, #f4e9f6 55%, #e7f6eb);
  border-radius: 24px;
}
.bureau-contact p { margin: 0 0 1rem; }
.bureau-bte .bureau-contact__titre {
  font-family: 'Gochi Hand', 'Comic Sans MS', cursive;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--bte-noir);
  margin-bottom: 0.4rem;
}
.bureau-contact__bouton {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--bte-noir);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  word-break: break-all;
  transition: transform 0.2s ease, background 0.2s ease;
}
.bureau-contact__bouton:hover {
  background: var(--bte-violet);
  transform: translateY(-2px);
}

/* Apparition en cascade des pôles au chargement */
.bureau-pole { animation: bureau-apparait 0.6s ease both; }
.bureau-pole:nth-child(2) { animation-delay: 0.12s; }
.bureau-pole:nth-child(3) { animation-delay: 0.24s; }
@keyframes bureau-apparait {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* Tablette / mobile */
@media (max-width: 900px) {
  .bureau-poles { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .bureau-photo { padding: 8px 8px 0; border-radius: 16px; transform: none; }
  .bureau-photo figcaption { font-size: 1.25rem; }
  .bureau-membre { padding: 0.7rem 0.4rem; }
  .bureau-membre__avatar { width: 50px; height: 50px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bureau-photo, .bureau-membre, .bureau-membre__avatar { transition: none; }
  .bureau-pole { animation: none; }
}
