/* =========================================================================
   Pages Vente, Location et Honoraires — mise en page éditoriale alignée
   à gauche, même famille que la page Estimation (pages/estimation.css).
   page-vente.php, page-location.php, page-honoraires.php,
   template-parts/transaction/*.php, template-parts/honoraires.php

   En fin de fichier : les deux blocs encore utilisés par la page
   Location saisonnière (.service-intro, .saisonniere-cta).
   ========================================================================= */

.tx-page {
    --tx-line: rgba(0, 0, 0, 0.12);
    --tx-line-dark: rgba(255, 255, 255, 0.16);
    --tx-sticky-top: calc(var(--header-height) + 2rem);
}

.tx-page section[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.tx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.tx-eyebrow::before {
    content: "";
    width: 40px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

/* Lien texte souligné avec flèche */
.tx-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 3px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color var(--transition);
}

.tx-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.tx-link:hover {
    color: var(--color-accent-dark);
}

.tx-link:hover svg {
    transform: translateX(3px);
}

.tx-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-top: 2rem;
}

/* ── 1. Bandeau ──────────────────────────────────────────────────── */

.tx-hero {
    padding: calc(var(--header-height) + clamp(3rem, 6vw, 5.5rem)) 0 clamp(3.5rem, 6vw, 5.5rem);
    background: var(--color-cream);
}

.tx-hero--compact {
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tx-hero-title {
    margin: 0;
    font-size: clamp(2.6rem, 5.6vw, 5.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.tx-hero-title em {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent-dark);
}

.tx-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem clamp(2.5rem, 6vw, 7rem);
    align-items: start;
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: clamp(2rem, 3vw, 2.5rem);
    border-top: 1px solid var(--tx-line);
}

.tx-hero-intro {
    max-width: 42rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-primary-soft);
}

.tx-hero-intro > :last-child {
    margin-bottom: 0;
}

/* Interlocutrice (photo + téléphone) */
.tx-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tx-contact-photo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.tx-contact-label,
.tx-contact-name {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.tx-contact-tel {
    display: inline-block;
    margin: 0.1rem 0 0.15rem;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.tx-contact-tel:hover {
    color: var(--color-accent-dark);
}

.tx-contact-name {
    color: var(--color-text-light);
}

/* Deux portes d'entrée */
.tx-parcours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-top: clamp(3rem, 5vw, 4.5rem);
}

.tx-porte {
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3.2vw, 3rem);
    background: var(--color-white);
    border-radius: 20px;
}

.tx-porte-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent-dark);
}

.tx-porte-kicker span {
    color: var(--color-text-light);
}

.tx-porte-titre {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    line-height: 1.05;
}

.tx-porte-texte {
    max-width: 34rem;
    margin: 0 0 2.25rem;
    font-size: 0.97rem;
    line-height: 1.7;
    color: var(--color-primary-soft);
}

.tx-porte-liens {
    margin: auto 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--tx-line);
}

.tx-porte-liens li {
    border-bottom: 1px solid var(--tx-line);
}

.tx-porte-liens a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.tx-porte-liens svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-accent-dark);
    transition: transform var(--transition);
}

.tx-porte-liens a:hover {
    color: var(--color-accent-dark);
}

.tx-porte-liens a:hover svg {
    transform: translateX(4px);
}

/* Variante noire (vendeur / propriétaire) */
.tx-porte--sombre {
    background: var(--color-primary);
}

.tx-porte--sombre .tx-porte-kicker {
    color: var(--color-accent-light);
}

.tx-porte--sombre .tx-porte-kicker span {
    color: rgba(255, 255, 255, 0.4);
}

.tx-porte--sombre .tx-porte-titre {
    color: var(--color-white);
}

.tx-porte--sombre .tx-porte-texte {
    color: rgba(255, 255, 255, 0.72);
}

.tx-porte--sombre .tx-porte-liens,
.tx-porte--sombre .tx-porte-liens li {
    border-color: var(--tx-line-dark);
}

.tx-porte--sombre .tx-porte-liens a {
    color: var(--color-white);
}

.tx-porte--sombre .tx-porte-liens svg {
    color: var(--color-accent-light);
}

.tx-porte--sombre .tx-porte-liens a:hover {
    color: var(--color-accent-light);
}

/* ── 2. Biens ────────────────────────────────────────────────────── */

.tx-biens {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--color-white);
}

.tx-biens-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.tx-biens-head h2 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.05;
}

.tx-biens-meta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 1.5rem;
}

.tx-biens-count {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.tx-biens-count strong {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-primary);
}

.tx-biens-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.tx-biens-note {
    margin: 2.5rem 0 0;
    font-size: 0.92rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Aucun bien : encart d'orientation */
.tx-vide {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2rem clamp(2rem, 5vw, 5rem);
    align-items: end;
    padding: clamp(2rem, 4vw, 3.5rem);
    background: var(--color-cream-soft);
    border-radius: 20px;
}

.tx-vide h3 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 2.6vw, 2.25rem);
    line-height: 1.1;
}

.tx-vide p {
    max-width: 40rem;
    margin: 0;
    line-height: 1.7;
    color: var(--color-primary-soft);
}

.tx-vide .tx-vide-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-text-muted);
}

.tx-vide-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

/* ── 3. Méthode / accompagnement (fond noir) ─────────────────────── */

.tx-methode {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    color: rgba(255, 255, 255, 0.72);
    background: var(--color-primary);
}

.tx-methode .tx-eyebrow {
    color: var(--color-accent-light);
}

.tx-methode h2,
.tx-final h2 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.02;
}

.tx-methode h2 {
    color: var(--color-white);
}

.tx-methode h2 em,
.tx-final h2 em {
    display: block;
    font-style: italic;
    font-weight: 400;
}

.tx-methode h2 em {
    color: var(--color-accent-light);
}

/* Titre à gauche (collant), contenu à droite */
.tx-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem clamp(2.5rem, 6vw, 7rem);
    align-items: start;
}

.tx-split-head {
    position: sticky;
    top: var(--tx-sticky-top);
}

.tx-split-lead {
    max-width: 30ch;
    margin: 1.5rem 0 0;
    line-height: 1.7;
}

/* Étapes de la vente : liste numérotée */
.tx-etapes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tx-etape {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--tx-line-dark);
}

.tx-etape:last-child {
    border-bottom: 1px solid var(--tx-line-dark);
}

.tx-etape-num {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-style: italic;
    line-height: 0.9;
    color: var(--color-accent-light);
}

.tx-etape p {
    max-width: 40rem;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.tx-bonus {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding: 1.25rem 1.5rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--color-white);
    border: 1px solid rgba(80, 196, 195, 0.4);
    border-radius: 14px;
}

.tx-bonus-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-white);
    background: var(--color-accent);
    border-radius: 50%;
}

.tx-bonus-icon svg {
    width: 18px;
    height: 18px;
}

/* Mise en location : en-tête sur deux colonnes, étapes en grille */
.tx-methode-head {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2rem clamp(2.5rem, 6vw, 7rem);
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.tx-methode-aside p {
    max-width: 34rem;
    margin: 0 0 1.75rem;
    line-height: 1.7;
}

.tx-grille-etapes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem clamp(1.5rem, 3vw, 3rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.tx-grille-etape {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.tx-grille-etape .tx-etape-num {
    display: block;
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

.tx-grille-etape p {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-white);
}

/* ── 4. Conclusion (fond crème) ──────────────────────────────────── */

.tx-final {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--color-cream);
}

.tx-final h2 em {
    color: var(--color-accent-dark);
}

.tx-final .prose {
    max-width: 42rem;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--color-primary-soft);
}

.tx-final .prose > :last-child {
    margin-bottom: 0;
}

.tx-final .prose + .prose {
    margin-top: 1.5rem;
}

/* ── 5. Honoraires ───────────────────────────────────────────────── */

.tx-fees {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--color-white);
}

.tx-fees-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2rem clamp(2.5rem, 6vw, 7rem);
    align-items: start;
}

.tx-fees-head {
    position: sticky;
    top: var(--tx-sticky-top);
}

.tx-fees-head h2 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.05;
}

.tx-fees-list {
    display: flex;
    flex-direction: column;
    gap: clamp(2.75rem, 4.5vw, 4rem);
}

/* Page Honoraires : pas de titre de section, tableaux sur deux colonnes */
.tx-fees--full {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.tx-fees--full .tx-fees-grid {
    grid-template-columns: minmax(0, 1fr);
}

.tx-fees--full .tx-fees-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.75rem, 4.5vw, 4rem) clamp(2.5rem, 5vw, 5rem);
}

.tx-fee h3 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.45rem, 2vw, 1.75rem);
    line-height: 1.15;
}

.tx-fee-note {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.tx-fee-table {
    width: 100%;
    margin-top: 1.25rem;
    border-collapse: collapse;
    table-layout: fixed;
}

.tx-fee-table th {
    padding: 0 1.25rem 0.75rem 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-align: left;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-primary);
}

.tx-fee-table td {
    padding: 0.95rem 1.25rem 0.95rem 0;
    font-size: 0.92rem;
    line-height: 1.55;
    vertical-align: top;
    color: var(--color-primary-soft);
    border-bottom: 1px solid var(--color-border);
}

.tx-fee-table th:first-child,
.tx-fee-table td:first-child {
    width: 46%;
}

.tx-fee-table th:last-child,
.tx-fee-table td:last-child {
    padding-right: 0;
}

.tx-fee-table td:last-child {
    font-weight: 500;
    color: var(--color-primary);
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .tx-hero-grid,
    .tx-split,
    .tx-methode-head,
    .tx-vide,
    .tx-fees-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tx-split-head,
    .tx-fees-head {
        position: static;
    }

    .tx-biens-grid,
    .tx-grille-etapes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tx-fees--full .tx-fees-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .tx-hero {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .tx-eyebrow {
        margin-bottom: 1rem;
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .tx-eyebrow::before {
        width: 24px;
    }

    .tx-hero-grid {
        gap: 1.75rem;
    }

    .tx-parcours {
        grid-template-columns: minmax(0, 1fr);
    }

    .tx-biens-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tx-etape {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .tx-etape-num {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .tx-biens-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Étapes de la mise en location : une par ligne, numéro à gauche */
    .tx-grille-etapes {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .tx-grille-etape {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 1rem;
        align-items: baseline;
        padding: 1.1rem 0;
        border-top-color: var(--tx-line-dark);
    }

    .tx-grille-etape .tx-etape-num {
        margin: 0;
        font-size: 1.6rem;
    }

    .tx-grille-etape p {
        font-size: 1.25rem;
    }

    .tx-actions .btn,
    .tx-vide-actions .btn,
    .tx-methode-aside .btn {
        width: 100%;
    }

    .tx-fee-table th,
    .tx-fee-table td {
        padding-right: 0.85rem;
    }
}

/* =========================================================================
   Page Location saisonnière : contenu libre de la page et appel final
   ========================================================================= */

.service-intro {
    padding: 4rem 0 2rem;
}
.service-intro .prose {
    font-size: var(--fs-md);
}

.saisonniere-cta {
    padding: 4rem 0;
    background: var(--color-bg-soft);
    text-align: center;
}
.saisonniere-cta .btn { margin-top: 1rem; }
