/* =========================================
   PROMOTEUR IMMO — landing « confiez-nous votre projet »
   file: /assets/css/promoteur-immo.css
   Scoped à .promoteur-immo-page
   Thème : teal de marque + accent ambre « promoteur »
========================================= */

.promoteur-immo-page,
.promoteur-immo-page *,
.promoteur-immo-page *::before,
.promoteur-immo-page *::after {
    box-sizing: border-box;
}

.promoteur-immo-page {
    /* tokens */
    --pm-teal: #0f766e;
    --pm-teal-2: #14b8a6;
    --pm-amber: #d97706;
    --pm-amber-2: #f59e0b;
    --pm-ink: #0b1b48;
    --pm-text: #0f172a;
    --pm-muted: #64748b;

    margin: 0;
    font-family: system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--pm-text);
    background:
        radial-gradient(900px 460px at 85% -8%, rgba(245, 158, 11, .10), transparent 60%),
        radial-gradient(900px 520px at 10% 8%, rgba(15, 118, 110, .10), transparent 60%),
        linear-gradient(180deg, #f0fdfa 0%, #eef7f4 48%, #ffffff 100%);
    overflow-x: hidden;
}

.promoteur-main {
    min-height: 60vh;
    padding: 0 0 30px;
    /* Réagencement de l'ordre des sections sans toucher au HTML :
       hero → formulaire → pourquoi/comment/types → CTA. */
    display: flex;
    flex-direction: column;
}

.promoteur-main > .pm-hero                          { order: 1; }
.promoteur-main > .pm-form-section                  { order: 2; }
.promoteur-main > .pm-section:not(.pm-form-section) { order: 3; }
.promoteur-main > .pm-cta-section                   { order: 4; }

.promoteur-main .container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* =========================
   HERO
========================= */
.pm-hero {
    padding: calc(var(--topbar-h, 74px) + 18px) 0 16px;
    text-align: center;
}

.pm-hero__badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .02em;
    color: var(--pm-amber);
    background: linear-gradient(135deg, rgba(217, 119, 6, .10), rgba(245, 158, 11, .16));
    border: 1px solid rgba(217, 119, 6, .20);
    margin-bottom: 12px;
}

.pm-hero__title {
    margin: 0 auto 10px;
    max-width: 760px;
    font-size: clamp(23px, 3.2vw, 36px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--pm-ink);
    text-wrap: balance;
}

.pm-hero__sub {
    margin: 0 auto;
    max-width: 600px;
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.7;
    color: var(--pm-muted);
}

.pm-hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* =========================
   BOUTONS
========================= */
.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15.5px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.pm-btn svg { flex: 0 0 auto; }

/* WhatsApp (CTA principal) */
.pm-btn--wa {
    color: #fff;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 14px 30px rgba(18, 140, 126, .30);
}

.pm-btn--wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(18, 140, 126, .42);
    filter: saturate(1.05);
}

/* Primaire teal (bouton d'envoi du formulaire) */
.pm-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pm-teal) 0%, var(--pm-teal-2) 100%);
    box-shadow: 0 14px 30px rgba(15, 118, 110, .30);
}

.pm-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(15, 118, 110, .42);
    filter: saturate(1.04);
}

/* Secondaire (teal outline) */
.pm-btn--ghost {
    color: var(--pm-teal);
    background: rgba(255, 255, 255, .85);
    border-color: rgba(15, 118, 110, .28);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.pm-btn--ghost:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: var(--pm-teal);
    box-shadow: 0 16px 30px rgba(15, 118, 110, .14);
}

/* Bouton clair (sur fond foncé du CTA final) */
.pm-btn--light {
    color: var(--pm-teal);
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.pm-btn--light:hover {
    transform: translateY(-2px);
    background: #f0fdf9;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

/* =========================
   HERO STATS
========================= */
.pm-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, .10);
    max-width: 620px;
    margin-inline: auto;
}

.pm-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 26px;
}

.pm-stat__num {
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 900;
    color: var(--pm-ink);
    line-height: 1.1;
}

.pm-stat__label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pm-muted);
}

.pm-stat__sep {
    width: 1px;
    height: 36px;
    background: rgba(15, 23, 42, .12);
    flex: 0 0 auto;
}

/* =========================
   SECTIONS
========================= */
.pm-section {
    padding: 38px 0;
}

.pm-section--alt {
    background: linear-gradient(180deg, rgba(15, 118, 110, .045), rgba(15, 118, 110, .02));
}

.pm-section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 26px;
}

.pm-kicker {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    color: var(--pm-amber);
    background: linear-gradient(135deg, rgba(217, 119, 6, .10), rgba(245, 158, 11, .15));
    border: 1px solid rgba(217, 119, 6, .16);
    margin-bottom: 10px;
}

.pm-section__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    line-height: 1.25;
    color: var(--pm-ink);
    text-wrap: balance;
}

.pm-section__sub {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--pm-muted);
}

/* =========================
   POURQUOI — cartes
========================= */
.pm-why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pm-why-card {
    padding: 24px 20px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .96));
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pm-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .11);
    border-color: rgba(20, 184, 166, .25);
}

.pm-why-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--pm-teal);
    background: linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(20, 184, 166, .18));
}

.pm-why-card__icon svg { width: 26px; height: 26px; }

.pm-why-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--pm-ink);
}

.pm-why-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: var(--pm-muted);
}

/* =========================
   ÉTAPES
========================= */
.pm-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.pm-step {
    position: relative;
    padding: 26px 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pm-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, .10);
}

.pm-step__num {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--pm-amber) 0%, var(--pm-amber-2) 100%);
    box-shadow: 0 8px 18px rgba(217, 119, 6, .30);
}

.pm-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--pm-ink);
}

.pm-step p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--pm-muted);
}

/* =========================
   TYPES DE PROJETS — chips
========================= */
.pm-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pm-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: var(--pm-teal);
    background: rgba(255, 255, 255, .85);
    border: 1.5px solid rgba(15, 118, 110, .18);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.pm-type-chip:hover {
    transform: translateY(-2px);
    border-color: var(--pm-teal);
    background: #fff;
}

/* =========================
   CTA FINAL
========================= */
.pm-cta-section {
    padding: 20px 0 56px;
}

.pm-cta {
    position: relative;
    overflow: hidden;
    padding: 48px 32px;
    border-radius: 30px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0c3a36 0%, #0f766e 55%, #0d5b53 100%);
    box-shadow: 0 26px 60px rgba(15, 23, 42, .20);
}

.pm-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 85% 15%, rgba(245, 158, 11, .14), transparent 55%),
        radial-gradient(ellipse 55% 60% at 12% 90%, rgba(20, 184, 166, .16), transparent 55%);
    pointer-events: none;
}

.pm-cta > * { position: relative; z-index: 1; }

.pm-cta__title {
    margin: 0 0 12px;
    font-size: clamp(22px, 3.4vw, 34px);
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    text-wrap: balance;
}

.pm-cta__sub {
    margin: 0 auto 26px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .82);
}

.pm-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pm-cta__note {
    margin: 20px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .78);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
    .pm-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-steps    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .pm-hero { padding-top: calc(var(--topbar-h, 74px) + 22px); }
    .pm-hero__cta .pm-btn,
    .pm-cta__actions .pm-btn { width: 100%; }
    .pm-stat { padding: 0 16px; }
    .pm-why-grid,
    .pm-steps { grid-template-columns: 1fr; }
    .pm-section { padding: 28px 0; }
    .pm-cta { padding: 36px 20px; border-radius: 22px; }
}

/* =========================
   FORMULAIRE LEAD
========================= */
.pm-form-section {
    padding-top: 8px;
}

.pm-form-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 30px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 250, 252, .97));
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.pm-form__head {
    text-align: center;
    margin-bottom: 22px;
}

.pm-form__head h2 {
    margin: 0 0 8px;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 900;
    color: var(--pm-ink);
}

.pm-form__head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pm-muted);
}

.pm-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: start;
    min-width: 0;
}

.pm-field--full {
    grid-column: 1 / -1;
}

.pm-field label {
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}

.pm-field input,
.pm-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .5);
    background: #fff;
    color: var(--pm-text);
    font: inherit;
    font-size: 14.5px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pm-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Chevron teal personnalisé (même look sur iOS / Android / desktop). */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    /* RTL (AR, par défaut) : chevron du côté « fin » = gauche. */
    background-position: left 14px center;
    padding-inline-end: 40px;
}

/* LTR (FR) : chevron à droite. */
[dir="ltr"] .pm-field select {
    background-position: right 14px center;
}

.pm-field input::placeholder {
    color: #94a3b8;
}

.pm-field input:focus,
.pm-field select:focus {
    border-color: rgba(20, 184, 166, .85);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .14);
}

.pm-form__submit {
    width: 100%;
    margin-top: 18px;
}

.pm-form__status {
    margin: 14px 0 0;
    text-align: center;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.6;
    color: #0f172a;
}

.pm-form__status[hidden] {
    display: none;
}

.pm-form__note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--pm-muted);
}

@media (max-width: 560px) {
    .pm-form-card { padding: 24px 16px; }
    .pm-form__grid { grid-template-columns: 1fr; }
}

/* Mobile : champs à 16px → empêche le zoom automatique au focus sur iOS. */
@media (max-width: 768px) {
    .pm-field input,
    .pm-field select {
        font-size: 16px;
    }
}

/* Réduction d'animations */
@media (prefers-reduced-motion: reduce) {
    .pm-btn, .pm-why-card, .pm-step, .pm-type-chip { transition: none !important; }
}
