/* Page Team building. S'appuie sur home.css (titres, étoiles, liens, carrousel des jeux, FAQ) et pr-button.css.
   Mobile d'abord, desktop à partir de 992px. */

.team { color: #fff; font-family: var(--font-main); }
.team section { position: relative; z-index: 1; }
/* Textes : version longue sur desktop (.tb-d), courte sur mobile (.tb-m), comme sur les maquettes */
@media (max-width: 991px) { .tb-d { display: none !important; } }
@media (min-width: 992px) { .tb-m { display: none !important; } }

/* Titres de section : à gauche sur mobile, centrés sur desktop */
.team-center { text-align: left; }
.team-center-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.team-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-checks li { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.team-checks svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--home-yellow); }

/* ---------- Hero et formulaire ---------- */

.team-hero {
  /* l'en-tête du site est posé par-dessus le haut de la page */
  padding: 150px 0 48px;
  background: radial-gradient(ellipse 90% 40% at 20% 20%, rgba(108, 92, 231, 0.4), transparent 70%);
}
.team-hero__inner { display: flex; flex-direction: column; gap: 32px; }
.team-hero__main { display: flex; flex-direction: column; gap: 18px; }
.team-hero__title.title { margin: 0; font-size: 32px; line-height: 1.08; text-transform: uppercase; }
.team-hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: #e2e3f5; }
.team-hero__rating { margin: 0; font-size: 16px; font-weight: 700; color: var(--home-muted); }

.team-quote { scroll-margin-top: 20px; }
.team-quote__form {
  box-sizing: border-box;
  padding: 22px;
  border-radius: 22px;
  background: rgba(10, 11, 61, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.team-quote__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.team-quote__title { margin: 0; font-size: 20px; font-weight: 800; }
.team-quote__subtitle { margin: 4px 0 0; font-size: 13px; color: var(--home-muted); }
.team-quote__step { margin: 0; font-size: 13px; font-weight: 700; color: var(--home-yellow); white-space: nowrap; }
.team-quote__step-panel { display: flex; flex-direction: column; gap: 14px; }
.team-quote__step-panel[hidden] { display: none; }
.team-quote__back {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--home-muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.team-quote__back:hover { color: #fff; }

.team-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.team-field label { font-size: 13px; font-weight: 700; color: #e2e3f5; }
.team-field label span { font-weight: 500; color: var(--home-soft); }
.team-field input,
.team-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px 6px 14px 6px;
  background: #fff;
  color: var(--home-ink);
  font-family: var(--font-main);
  font-size: 15px;
}
.team-field textarea { padding: 12px 14px; resize: vertical; }
/* Champ date sur iPhone : Safari lui impose une largeur minimale (il déborde du bloc)
   et un dégradé natif ; on retire l'apparence native et on le garde dans sa colonne */
.team-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  line-height: 46px;
  text-align: left;
}
.team-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.team-field input:focus-visible,
.team-field textarea:focus-visible { outline: 3px solid var(--home-yellow); outline-offset: 1px; }
/* champ téléphone international (intl-tel-input, chargé par le bundle du site) */
.team-field .iti { width: 100%; }
.team-field-row { display: grid; grid-template-columns: 1fr; gap: 12px; }

.team-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.team-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.team-toggle__mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.team-toggle__mark::before { content: "+"; }
.team-toggle:has(input:checked) { border-color: var(--home-yellow); background: rgba(253, 205, 0, 0.12); }
.team-toggle:has(input:checked) .team-toggle__mark::before { content: "✓"; }
.team-toggle:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Références ---------- */

.team-clients { padding: 32px 0; background: #070a36; }
.team-clients__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.team-clients__label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--home-soft); }
.team-clients__count { margin: 0; font-size: 17px; font-weight: 800; }
.team-clients__count strong { font-family: var(--font-title); font-weight: 400; font-size: 28px; color: var(--home-yellow); }
.team-clients__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; width: 100%; max-width: 1120px; }
.team-clients__list li { flex: 0 0 calc((100% - 3 * 18px) / 4); height: 44px; display: flex; align-items: center; justify-content: center; }
.team-clients__list img { display: block; max-width: 100%; max-height: 40px; width: auto; height: auto; }

/* ---------- Sections et cartes ---------- */

.team-section { padding: 56px 0; }
.team-section--alt { background: #070a36; }
.team-section > .container { display: flex; flex-direction: column; gap: 28px; }

.team-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.team-steps { list-style: none; margin: 0; padding: 0; }
.team-card {
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--home-card);
  border: 1px solid var(--home-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-card--compact { padding: 18px; gap: 4px; }
.team-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__icon svg { width: 20px; height: 20px; }
.team-card__number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--home-yellow);
  color: var(--home-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 19px;
}
.team-card__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.team-card--compact .team-card__title { font-size: 17px; }
.team-card__text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--home-muted); }

/* Mobile : « Pourquoi » en grille 2 × 2 compacte */
.team-why { grid-template-columns: 1fr 1fr; gap: 12px; }
.team-why .team-card { padding: 16px; }
.team-why .team-card__icon { width: 30px; height: 30px; }
.team-why .team-card__icon svg { width: 16px; height: 16px; }
.team-why .team-card__title { font-size: 16px; }
.team-why .team-card__text { font-size: 14px; }

/* Mobile : déroulé en liste (numéro à gauche, sans carte) */
.team-steps { gap: 18px; }
.team-steps .team-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 0; background: none; border: 0; }
.team-steps .team-card__number { width: 40px; height: 40px; flex-shrink: 0; font-size: 17px; }
.team-steps__body { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.team-steps .team-card__title { font-size: 17px; }
.team-steps .team-card__text { font-size: 14px; }

/* Mobile : témoignages à faire défiler sur le côté */
.team-testimonials {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding-right: calc((100vw - 100%) / 2);
}
.team-testimonials::-webkit-scrollbar { display: none; }
.team-testimonials .team-testimonial { flex: 0 0 290px; box-sizing: border-box; scroll-snap-align: start; }
.team section:has(.team-testimonials) { overflow-x: clip; }

/* Jeux : cartes du carrousel sans bloc d'infos */
.team-games { background: #070a36; }
.team-games .games-v2__card { gap: 10px; }

/* ---------- Formules ---------- */

.team-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--home-line);
}
.team-tabs__tab {
  flex: 1;
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--home-muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.team-tabs__tab[aria-selected="true"] { background: var(--home-yellow); color: var(--home-ink); }
.team-tabs__tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.team-offer {
  box-sizing: border-box;
  padding: 24px;
  border-radius: 6px 6px 28px 6px;
  background: #fff;
  color: #2a1660;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team-offers { display: grid; }
.team-offers > .team-offer { grid-area: 1 / 1; }
/* formule masquée : invisible mais garde sa place, pour que la hauteur ne change pas */
.team-offers > .team-offer[hidden] { display: flex; visibility: hidden; }
.team-offer__main { display: flex; flex-direction: column; gap: 14px; }
.team-offer__name { margin: 0; font-size: 22px; font-weight: 800; }
.team-offer__pitch { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fff6d6; font-size: 15px; font-weight: 700; color: #5a4300; }
.team-offer__items { margin: 0; padding-left: 18px; font-size: 16px; color: #4b3f78; }
.team-offer__items li { margin-bottom: 8px; line-height: 1.45; }
.team-offer__prices { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.team-offer__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .team-offer__grid { grid-template-columns: 1fr 1fr; } }
.team-offer__included { margin: 0; font-size: 13px; color: #6a5a98; }

.team-price { padding: 16px; border-radius: 12px; background: #f4f0ff; display: flex; flex-direction: column; }
.team-price p { margin: 0; }
.team-price__label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #6a5a98; }
.team-price__value { margin-top: 4px !important; font-family: var(--font-title); font-size: 30px; color: #2a1660; }
.team-price__unit { font-size: 13px; color: #6a5a98; }
.team-price--featured { background: #fff6d6; border: 3px solid var(--home-ink); box-shadow: 0 0 0 3px var(--home-yellow); }
.team-price--featured .team-price__label, .team-price--featured .team-price__unit { color: #6b4f00; }
.team-price__badge {
  align-self: flex-start;
  margin-bottom: 8px !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--home-ink);
  color: var(--home-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.team-price__note { margin-top: 8px !important; font-size: 13px; font-weight: 800; color: var(--home-ink); }

/* ---------- Buzzer Quiz ---------- */

.team-section > .team-buzzer { display: flex; flex-direction: column; gap: 28px; }
.team-buzzer__main { display: flex; flex-direction: column; gap: 18px; }
.team-buzzer__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.team-buzzer__price { margin: 0; font-size: 18px; font-weight: 800; }
.team-buzzer__price strong { font-family: var(--font-title); font-weight: 400; font-size: 30px; color: var(--home-yellow); }
.team-buzzer__visual { position: relative; width: 100%; max-width: 420px; align-self: center; }
/* halo rouge qui respire derrière la photo */
.team-buzzer__visual::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse, rgba(200, 30, 30, 0.5) 0%, transparent 70%);
  filter: blur(55px);
  animation: buzzer-glow 3s ease-in-out infinite alternate;
}
.team-buzzer__photo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  /* légères inclinaisons gauche / droite, comme sur l'ancienne page */
  animation: float-rotate-3 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .team-buzzer__visual::before, .team-buzzer__photo { animation: none; }
}

/* ---------- Options et infos pratiques ---------- */

.team-section > .team-tables { display: grid; }

.team-table { margin: 0; }
.team-table__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
.team-table__row dt { font-weight: 700; color: var(--home-soft); }
.team-table__row dd { margin: 0; font-weight: 700; text-align: right; }
.team-table__row--price dt { color: #fff; }
.team-table__row--price dd { font-weight: 800; color: var(--home-yellow); white-space: nowrap; }

/* ---------- Fin d'année ---------- */

.team-yearend { padding: 56px 0; }
.team-yearend__band {
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--home-yellow);
  color: var(--home-ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.team-yearend__title { margin: 0 0 10px; font-family: var(--font-title); font-weight: 400; font-size: 24px; line-height: 1.12; text-transform: uppercase; }
.team-yearend__band p { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.45; }
.team-yearend__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--home-ink);
  color: var(--home-yellow);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.team-yearend__button:hover { color: #fff; }
.team-yearend__button:focus-visible { outline: 3px solid var(--home-ink); outline-offset: 3px; }

/* ---------- Témoignages ---------- */

.team-testimonial { gap: 14px; }
.team-testimonial .home-stars { font-size: 16px; }
.team-testimonial blockquote { flex-grow: 1; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.team-testimonial figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--home-soft); }
.team-testimonial__company { display: inline-flex; align-items: center; min-height: 30px; color: #fff; font-size: 15px; font-weight: 800; }
.team-testimonial__company img { display: block; width: auto; height: auto; max-height: 30px; max-width: 110px; }

/* ---------- Billetterie CSE ---------- */

.team-section > .team-cse { display: flex; flex-direction: column; gap: 24px; }
.team-cse__main { display: flex; flex-direction: column; gap: 12px; }
.team-cse__title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; }
.team-cse__tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-cse__tier { gap: 0; padding: 18px; }
.team-cse__tier p { margin: 0; }
.team-cse__tier-label { font-size: 12px; font-weight: 800; color: var(--home-soft); text-transform: uppercase; }
.team-cse__tier-price { margin-top: 6px !important; font-family: var(--font-title); font-size: 26px; }
.team-cse__tier-unit { font-size: 12px; color: var(--home-soft); }
.team-cse__tier--best { background: rgba(253, 205, 0, 0.08); border-color: rgba(253, 205, 0, 0.4); }
.team-cse__tier--best .team-cse__tier-label, .team-cse__tier--best .team-cse__tier-price { color: var(--home-yellow); }

/* ---------- Après la demande + FAQ ---------- */

.team-section > .team-after { display: flex; flex-direction: column; gap: 40px; }
.team-after__steps { display: flex; flex-direction: column; gap: 18px; }
.team-after__steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.team-after__steps li { display: flex; gap: 14px; align-items: flex-start; }
.team-after__number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--home-yellow);
  color: var(--home-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-sizing: border-box;
}
.team-after__title { margin: 4px 0 2px; font-size: 17px; font-weight: 800; }
.team-after__text { margin: 0; font-size: 15px; color: var(--home-muted); }
.team-after__faq { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Appel final ---------- */

.team-final {
  padding: 64px 0;
  background: radial-gradient(ellipse 80% 80% at 50% 100%, rgba(108, 92, 231, 0.45), transparent 70%), #070a36;
}
.team-final__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.team-final__title.title { margin: 0; font-size: 32px; line-height: 1.08; text-transform: uppercase; }
.team-final__text { margin: 0; max-width: 720px; font-size: 17px; line-height: 1.6; color: #e2e3f5; }
.team-final__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---------- Desktop ---------- */

@media (min-width: 992px) {
  .team-hero { padding: 230px 0 80px; background: radial-gradient(ellipse 50% 60% at 20% 30%, rgba(108, 92, 231, 0.4), transparent 70%); }
  .team-hero__inner { flex-direction: row; align-items: center; gap: 64px; }
  .team-hero__main { flex: 1; gap: 22px; }
  .team-hero__title.title { font-size: 52px; line-height: 1.06; }
  .team-hero__lead { font-size: 20px; }
  .team-quote { flex: 0 0 480px; }
  .team-quote__form { padding: 26px; }
  .team-field-row { grid-template-columns: 1fr 1fr; }

  .team-clients { padding: 36px 0; }
  .team-clients__list { flex-wrap: nowrap; gap: 14px; }
  .team-clients__list { gap: 24px 36px; }
  .team-clients__list li { flex: 1 1 0; }
  .team-clients__list li { height: 52px; }
  .team-clients__list img { max-height: 48px; }

  .team-section { padding: 96px 0; }
  .team-section > .container { gap: 40px; }
  .team-center { text-align: center; }
  .team-center-head { align-items: center; text-align: center; }
  .team-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .team-why .team-card { padding: 26px; }
  .team-why .team-card__icon { width: 38px; height: 38px; }
  .team-why .team-card__icon svg { width: 20px; height: 20px; }
  .team-why .team-card__title { font-size: 19px; }
  .team-why .team-card__text { font-size: 16px; }
  .team-steps .team-card { flex-direction: column; gap: 10px; padding: 26px; background: var(--home-card); border: 1px solid var(--home-line); }
  .team-steps .team-card__number { width: 44px; height: 44px; font-size: 19px; }
  .team-steps__body { gap: 8px; padding-top: 0; }
  .team-steps .team-card__title { font-size: 20px; }
  .team-steps .team-card__text { font-size: 15px; }
  .team-testimonials { display: grid; overflow: visible; margin-right: 0; padding: 0; }
  .team-testimonials .team-testimonial { flex: none; }
  .team-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .team-grid--2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-tables { gap: 48px; }
  .team-card { padding: 26px; }
  .team-card__text { font-size: 16px; }

  .team-tabs__tab { font-size: 15px; }
  .team-offer { flex-direction: row; gap: 48px; padding: 36px; }
  .team-offer__main { flex: 1; }
  .team-offer__name { font-size: 24px; }
  .team-offer__prices { flex: 0 0 440px; }
  .team-price { padding: 18px; }
  .team-price__value { font-size: 34px; }

  .team-section > .team-buzzer { flex-direction: row; align-items: center; gap: 64px; }
  .team-buzzer__main { flex: 1; }
  .team-buzzer__visual { flex: none; width: 400px; }
  .team-buzzer__price { font-size: 20px; }
  .team-buzzer__price strong { font-size: 32px; }

  .team-table__row { font-size: 16px; }

  .team-yearend { padding: 96px 0; }
  .team-yearend__band { flex-direction: row; justify-content: space-between; align-items: center; gap: 40px; padding: 44px 48px; }
  .team-yearend__title { font-size: 34px; }
  .team-yearend__band p { font-size: 18px; max-width: 760px; }
  .team-yearend__button { align-self: center; flex-shrink: 0; }

  .team-testimonial blockquote { font-size: 19px; }

  .team-section > .team-cse { flex-direction: row; align-items: center; gap: 56px; }
  .team-cse__main { flex: 1; }
  .team-cse__title { font-size: 34px; }
  .team-cse__tiers { flex: 0 0 480px; }
  .team-cse__tier { padding: 20px; }
  .team-cse__tier-price { font-size: 28px; }

  .team-section > .team-after { flex-direction: row; gap: 80px; }
  .team-after__steps { flex: 0 0 380px; }
  .team-after__faq { flex: 1; min-width: 0; }
  .team-after__faq .home-title.title { font-size: 34px; }

  .team-final { padding: 96px 0; }
  .team-final__title.title { font-size: 48px; }
  .team-final__text { font-size: 18px; }
  .team-final__actions { flex-direction: row; gap: 24px; }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .team-quote { flex-basis: 420px; }
  .team-grid--4 { grid-template-columns: 1fr 1fr; }
  .team-steps { gap: 16px; }
  .team-offer__prices { flex-basis: 360px; }
  .team-cse__tiers { flex-basis: 380px; }
  .team-after__steps { flex-basis: 320px; }
}
