/* ==========================================================================
   FULL EXCELLENCE DETAILING — Page Notre équipe (/notre-equipe)
   Nécessite main.css (variables, en-tête, boutons).
   ========================================================================== */
.page-team {
  --panel:   linear-gradient(180deg, #101010, #0c0c0c);
  --hero-bg: linear-gradient(180deg, #0d0d0d, var(--ink));
  --luna-bg: radial-gradient(90% 70% at 85% 10%, rgb(var(--gold-rgb) / .12), transparent 60%), #0b0b0b;
}
[data-theme="light"] .page-team {
  --panel:   #FFFFFF;
  --hero-bg: linear-gradient(180deg, #F4F0E6, var(--ink));
  --luna-bg: radial-gradient(90% 70% at 85% 10%, rgb(var(--gold-rgb) / .14), transparent 60%), #F6F2E8;
}

/* En-tête du site : toujours opaque (pas de vidéo derrière) */
.page-team .header {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-gold);
}
.page-team .header::before { opacity: 0; }

.team { padding-top: calc(var(--topbar-h) + var(--header-h)); min-height: 100vh; }

/* ---------- En-tête de page ---------- */
.team-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vh, 64px) 0 clamp(30px, 5vh, 48px); border-bottom: 1px solid var(--line); background: var(--hero-bg); }
.team-hero::after { content: ""; position: absolute; right: -8%; top: -40%; width: 46%; height: 180%; border-left: 1px solid var(--line-gold); transform: rotate(24deg); pointer-events: none; }
.team-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--bone-50); }
.team-crumbs a { transition: color .3s; }
.team-crumbs a:hover { color: var(--gold-light); }
.team-crumbs .icon { width: 12px; height: 12px; color: var(--gold); }
.team-crumbs [aria-current] { color: var(--bone); }
.team-hero__eyebrow { display: flex; align-items: center; gap: 16px; margin: 26px 0 16px; font-family: var(--f-tech); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.team-hero__rule { width: 48px; height: 1px; background: var(--gold); }
.team-hero__title { font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.team-hero__title em, .member__name span, .team-cta__title em {
  font-family: var(--f-accent); font-style: italic; font-weight: 500;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.team-hero__title em { font-size: 1.08em; padding-right: .06em; }
.team-hero__desc { max-width: 700px; margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--bone-70); }
.team-hero__eyebrow, .team-hero__title, .team-hero__desc { animation: teamRise .9s var(--ease-out) both; }
.team-hero__title { animation-delay: .1s; }
.team-hero__desc { animation-delay: .18s; }
@keyframes teamRise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Membre : Florian ---------- */
.member { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 9vh, 110px); }
.member__photo { position: relative; margin: 0; }
.member__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line-gold); pointer-events: none; }
.member__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--pop-shadow); }
.member__role { font-family: var(--f-tech); font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.member__name { margin-top: 12px; font-weight: 300; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; }
.member__name span { display: block; font-size: .78em; }
.member__text { display: grid; gap: 14px; margin-top: 24px; font-size: 15.5px; line-height: 1.8; color: var(--bone-70); }
.member__text strong { color: var(--bone); font-weight: 600; }
.member__quote { position: relative; margin: 28px 0 0; padding: 18px 22px 18px 56px; border-left: 2px solid var(--gold); background: rgb(var(--gold-rgb) / .06); }
.member__quote .icon { position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; color: var(--gold); }
.member__quote p { font-family: var(--f-accent); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--bone); }
.member__skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.member__skills li { padding: 7px 12px; border: 1px solid var(--line-gold); font-size: 12.5px; color: var(--bone-70); }

/* ---------- Luna ---------- */
.luna { padding-block: clamp(56px, 10vh, 120px); border-block: 1px solid var(--line); background: var(--luna-bg); }
.luna__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.luna__grid > .luna__visual { order: 2; position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 24px); }
.luna__frame { position: relative; overflow: hidden; aspect-ratio: 2 / 3; max-height: 78vh; margin-inline: auto; cursor: pointer; box-shadow: var(--pop-shadow); border: 1px solid var(--line-gold); }
.luna__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.4s ease, transform 6s ease; }
.luna__img--repos { opacity: 1; transform: scale(1.04); }
.luna__img--travail { opacity: 0; transform: scale(1); }
.luna__frame[data-mode="travail"] .luna__img--repos { opacity: 0; transform: scale(1); }
.luna__frame[data-mode="travail"] .luna__img--travail { opacity: 1; transform: scale(1.04); }
.luna__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 8px 12px;
  background: rgba(10, 10, 10, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgb(170 151 99 / .5); color: #F4F1EA;
  font-family: var(--f-tech); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase;
}
.luna__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px 20px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
  color: #F4F1EA; font-size: 14.5px; line-height: 1.5;
}
.luna__caption.is-in { animation: lunaIn .7s var(--ease-out); }
@keyframes lunaIn { from { opacity: 0; transform: translateY(8px); } }
.luna__switch { display: flex; justify-content: center; gap: 0; margin-top: 16px; }
.luna__switch button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line-gold);
  font-family: var(--f-tech); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-70);
  transition: background-color .3s, color .3s;
}
.luna__switch button + button { border-left: 0; }
.luna__switch button .icon { width: 15px; height: 15px; color: var(--gold); }
.luna__switch button.is-active { background: var(--gold-grad); color: var(--on-gold); }
.luna__switch button.is-active .icon { color: var(--on-gold); }
.luna__credit { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--bone-35); }
.luna__lead { margin-top: 20px; font-size: 15.5px; line-height: 1.8; color: var(--bone-70); }
.luna__lead strong { color: var(--bone); font-weight: 600; }
.luna__card { margin: 26px 0 0; border: 1px solid var(--line); background: var(--panel); }
.luna__card div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); }
.luna__card div:first-child { border-top: 0; }
.luna__card dt { font-family: var(--f-tech); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.luna__card dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bone); }
.luna__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.luna__stats li { display: grid; gap: 4px; padding: 14px 12px; border: 1px solid var(--line); text-align: center; background: var(--panel); }
.luna__stats strong { font-weight: 300; font-size: 1.8rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.luna__stats span { font-size: 11.5px; line-height: 1.35; color: var(--bone-50); }
.luna__quote { position: relative; margin: 22px 0 0; padding: 22px 22px 22px 58px; border: 1px solid var(--line-gold); background: rgb(var(--gold-rgb) / .06); }
.luna__quote > .icon { position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; color: var(--gold); }
.luna__quote blockquote { margin: 0; }
.luna__quote p { font-family: var(--f-accent); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--bone); }
.luna__quote p.is-in { animation: lunaIn .6s var(--ease-out); }
.luna__quote figcaption { margin-top: 8px; font-size: 12.5px; color: var(--bone-50); }
.luna__next { margin-top: 16px; min-height: 44px; padding: 0 18px; font-size: 9px; }
.luna__disclaimer { margin-top: 18px; font-size: 12.5px; font-style: italic; line-height: 1.6; color: var(--bone-50); }

/* ---------- Appel à l'action ---------- */
.team-cta { display: grid; justify-items: center; gap: 14px; padding-block: clamp(56px, 10vh, 110px); text-align: center; }
.team-cta__title { font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.02em; }
.team-cta p { max-width: 58ch; font-size: 15px; line-height: 1.75; color: var(--bone-70); }
.team-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .member, .luna__grid { grid-template-columns: minmax(0, 1fr); }
  .member__photo { max-width: 460px; }
  .luna__grid > .luna__visual { order: 0; position: static; }
  .luna__frame { max-width: 420px; }
}
@media (max-width: 640px) {
  .member__photo::before { inset: 10px -10px -10px 10px; }
  .luna__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luna__card div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .member__quote, .luna__quote { padding-left: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .team-hero__eyebrow, .team-hero__title, .team-hero__desc, .luna__caption.is-in, .luna__quote p.is-in { animation: none; }
  .luna__img { transition: opacity .3s; transform: none !important; }
}
