/* Page « Devenir partenaire » — programme « Les Ambassadeurs Immobiliers » (apps/partners).
   Reprend la charte de base.css (bleu nuit --brand, fond --bg, Playfair Display / Montserrat / Open Sans Condensed)
   et ses composants (.btn, .section, .container) ; le formulaire utilise forms.css. Mobile d'abord.
   Or : --accent (#a8875a) pour les filets ; --pt-gold (#c9a96e) pour le texte et le bouton doré sur bleu nuit.
   Contrastes (WCAG AA) : #c9a96e sur #0b1c2d 7,7:1 ; texte #0b1c2d sur le bouton #c9a96e 7,7:1 ;
   texte blanc sur la photo assombrie (voile #0b1c2d à 72 % minimum sous le texte) > 7:1. */

.page-partners {
  --pt-gold: #c9a96e;
  --pt-gold-hover: #d8bd8a;
  --pt-radius: 10px;
}
.page-partners .site-footer { margin-top: 0; }

/* Aperçu (page non publiée) */
.pt-preview {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px var(--gutter);
  background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); font-size: .9rem; text-align: center;
}

/* Petits titres */
.pt-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 .8em;
  color: var(--muted); font: 700 .95rem/1.2 var(--font-label); letter-spacing: .14em; text-transform: uppercase;
}
.pt-kicker::before { content: ""; width: 28px; border-top: 2px solid var(--accent); }
.pt-eyebrow {
  margin: 0 0 .6em; color: var(--pt-gold); font: 700 1rem/1.2 var(--font-label); letter-spacing: .18em;
  text-transform: uppercase;
}
.pt-head { max-width: 760px; margin: 0 0 32px; }
.pt-head h2 { margin-bottom: .4em; }
.pt-head p:last-child { margin-bottom: 0; color: var(--muted); }
.pt-section h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }

/* Boutons */
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.pt-actions--center { justify-content: center; }
.pt-btn-gold { background: var(--pt-gold); border-color: var(--pt-gold); color: var(--brand); }
.pt-btn-gold:hover { background: var(--pt-gold-hover); border-color: var(--pt-gold-hover); color: var(--brand); }
.pt-btn-gold:focus-visible, .pt-hero .btn-light:focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------------------------------------------------------
   1. En-tête sur grande photo
   --------------------------------------------------------------------------------------------------------------- */
.pt-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: #fff; }
.pt-hero__media { position: absolute; inset: 0; z-index: -2; }
.pt-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.pt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 28, 45, .80) 0%, rgba(11, 28, 45, .74) 55%, rgba(11, 28, 45, .90) 100%);
}
.pt-hero__inner { padding-block: 8px 72px; }
.pt-hero .breadcrumbs { padding-top: 14px; margin-bottom: 36px; color: #dfe6ec; }
.pt-hero .breadcrumbs a, .pt-hero .breadcrumbs [aria-current], .pt-hero .breadcrumbs li + li::before { color: #dfe6ec; }
.pt-hero__program {
  margin: 0 0 .4em; font: 400 italic clamp(1.05rem, .95rem + .5vw, 1.3rem)/1.3 var(--font-title); color: #fff;
}
.pt-hero__title { max-width: 18ch; margin: 0 0 .45em; color: #fff; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); line-height: 1.12; }
.pt-hero__subtitle {
  max-width: 46ch; margin: 0 0 1.2em; padding-left: 16px; border-left: 3px solid var(--pt-gold);
  font: 600 clamp(1.05rem, .98rem + .35vw, 1.25rem)/1.5 var(--font-text); color: #fff;
}
.pt-hero__text { max-width: 64ch; color: #e8edf2; }
.pt-hero__text p { margin-bottom: .8em; }
.pt-hero__credit {
  position: absolute; right: 12px; bottom: 8px; margin: 0; font-size: .72rem; color: #cfd8e1; text-align: right;
}
.pt-hero__credit a { color: #cfd8e1; }

/* ---------------------------------------------------------------------------------------------------------------
   Cartes communes
   --------------------------------------------------------------------------------------------------------------- */
.pt-card {
  position: relative; padding: 24px 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--pt-radius); box-shadow: var(--shadow);
}
.pt-card h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.pt-card p { margin: 0; color: var(--muted); }
.pt-card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brand); color: var(--pt-gold);
}

/* 2. Opportunité : texte + 4 avantages */
.pt-split { display: grid; gap: 32px; }
.pt-split__text p { max-width: 62ch; }
.pt-benefits { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pt-benefit { border-top: 3px solid var(--accent); }

/* 3. Trois profils */
.pt-profiles { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.pt-profile {
  display: flex; flex-direction: column; padding: 28px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--pt-radius); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pt-profile--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.pt-profile p { margin: 0 0 1em; }
.pt-profile__number {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  font: 700 .9rem/1.2 var(--font-label); letter-spacing: .12em; text-transform: uppercase;
}
.pt-profile__number .icon { color: var(--accent); }
.pt-profile__name { margin: 0 0 .7em; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.pt-profile__rate { margin: 0 0 1.1em; padding: 14px 16px; background: var(--brand); border-radius: 8px; color: #fff; }
.pt-profile__rate p { margin: 0; }
.pt-profile__rate-label {
  color: var(--pt-gold); font: 700 .82rem/1.2 var(--font-label); letter-spacing: .12em; text-transform: uppercase;
}
.pt-profile__rate-value { margin-top: 4px !important; font: 700 1.1rem/1.35 var(--font-title); }
.pt-profile__lead { font-weight: 600; color: var(--brand); }
.pt-profile__fit { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.pt-profile__fit .icon { margin-top: 3px; color: var(--ok); }
.pt-profile__cta { margin-top: auto; }

.pt-terms {
  margin-top: 28px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--pt-radius);
}
.pt-terms h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 .6em; font-size: 1.1rem; }
.pt-terms h3 .icon { color: var(--accent); }
.pt-terms ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .92rem; }
.pt-terms li + li { margin-top: .5em; }

/* 4. Frise des quatre étapes (verticale sur téléphone, horizontale sur grand écran) */
.pt-timeline { position: relative; display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.pt-timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; left: 23px; border-left: 2px solid var(--accent); opacity: .7;
}
.pt-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; align-content: start; }
.pt-step__dot {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--brand); color: var(--pt-gold); box-shadow: 0 0 0 6px var(--bg);
  font: 700 1.25rem/1 var(--font-title);
}
.pt-step__label {
  margin: 4px 0 4px; color: var(--muted); font: 700 .85rem/1.2 var(--font-label); letter-spacing: .12em;
  text-transform: uppercase;
}
.pt-step h3 { margin: 0 0 .35em; font-size: 1.2rem; }
.pt-step p { margin: 0; }
.pt-step__body > p:last-child { color: var(--muted); }

/* 5. Pourquoi nous rejoindre */
.pt-why { display: grid; gap: 28px; align-items: start; }
.pt-why__text p { max-width: 62ch; }
.pt-why__links ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pt-why__links a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.pt-why__links a:hover { background: var(--brand-tint); }
.pt-why__links .icon { color: var(--accent); }

/* 6. À qui s'adresse ce programme */
.pt-audience { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-audience__item {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--pt-radius); font-weight: 600; color: var(--brand);
}
.pt-audience__item .icon { flex: none; margin-top: 2px; color: var(--accent); }
.pt-audience__note { max-width: 760px; margin-top: 28px; }
.pt-audience__note p { color: var(--muted); }
.pt-audience__values { font: 400 italic 1.15rem/1.5 var(--font-title); color: var(--brand) !important; }

/* 7. Formulaire */
.pt-apply:focus { outline: none; }
.pt-apply .pt-head { margin-inline: auto; text-align: center; }
.pt-apply .pt-kicker::after { content: ""; width: 28px; border-top: 2px solid var(--accent); }
.pt-form.lf-page { max-width: 820px; margin: 0 auto; padding: 0; }
.pt-form__note { margin: 0 0 18px; }
.pt-fieldset { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.pt-legend {
  display: block; width: 100%; margin: 0 0 16px; padding: 0 0 8px; border-bottom: 1px solid var(--line);
  color: var(--brand); font: 700 1.25rem/1.3 var(--font-title);
}
.pt-fieldset + .pt-fieldset .pt-legend { margin-top: 14px; }
.pt-yesno { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-profile-choices { grid-template-columns: minmax(0, 1fr); }
.pt-consent { align-items: flex-start; }
.pt-consent input { margin-top: 3px; }
.lf-consents.has-error .pt-consent { color: #5f1410; }
.pt-profile-choices.is-highlighted .lf-choice:has(input:checked) { animation: pt-pulse 1.2s ease 1; }
@keyframes pt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(168, 135, 90, .55); }
  100% { box-shadow: 0 0 0 10px rgba(168, 135, 90, 0); }
}

/* 8. Questions fréquentes */
.pt-faq { display: grid; gap: 10px; }
.pt-faq__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--pt-radius); }
.pt-faq__item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer;
  list-style: none;
}
.pt-faq__item > summary::-webkit-details-marker { display: none; }
.pt-faq__item > summary h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.pt-faq__item > summary .icon { flex: none; color: var(--accent); transition: transform .2s ease; }
.pt-faq__item[open] > summary .icon { transform: rotate(180deg); }
.pt-faq__item[open] { border-color: var(--line-strong); }
.pt-faq__answer { padding: 0 18px 16px; }
.pt-faq__answer p { margin: 0; color: var(--muted); }

/* 9. Dernier appel sur fond bleu profond */
.pt-final {
  position: relative; padding-block: 72px; background: var(--brand); color: var(--on-brand); text-align: center;
  border-bottom: 1px solid rgba(168, 135, 90, .5);
}
.pt-final::before {
  content: ""; display: block; width: 64px; margin: 0 auto 28px; border-top: 2px solid var(--pt-gold);
}
.pt-final h2 { margin: 0 auto .6em; max-width: 24ch; color: #fff; font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); }
.pt-final p { margin-inline: auto; max-width: 60ch; }
.pt-final__wa { margin-top: 22px !important; }
.pt-final__wa a { color: #fff; }
.pt-final__wa .icon { margin-right: 6px; vertical-align: -.25em; }
.pt-final .btn:focus-visible, .pt-final a:focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------------------------------------------------------
   Apparition douce des sections (partners.js ajoute .pt-anim seulement si le navigateur sait l'observer :
   sans JavaScript, tout est visible). Désactivée par « réduire les animations » (base.css).
   --------------------------------------------------------------------------------------------------------------- */
.pt-anim [data-pt-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.pt-anim [data-pt-reveal].is-visible { opacity: 1; transform: none; }

@media (hover: hover) {
  .pt-profile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

/* ---------------------------------------------------------------------------------------------------------------
   Tablette et ordinateur
   --------------------------------------------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .pt-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-profile-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .pt-hero__inner { padding-block: 8px 104px; }
  .pt-hero__credit { right: 24px; }
  .pt-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
  .pt-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-why { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
  .pt-audience { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .pt-timeline::before { top: 23px; bottom: auto; left: 24px; right: 24px; border-left: 0; border-top: 2px solid var(--accent); }
  .pt-step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pt-final { padding-block: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-anim [data-pt-reveal] { opacity: 1; transform: none; }
}
@media print {
  .pt-hero { color: var(--ink); background: #fff; }
  .pt-hero__media, .pt-hero::before, .pt-apply, .pt-final .pt-actions { display: none; }
  .pt-hero__title, .pt-final h2 { color: var(--ink); }
  .pt-anim [data-pt-reveal] { opacity: 1; transform: none; }
}
