/* ============================================================
   VISITEUR - CSS partagé pour pages de contenu (hors accueil)
   ============================================================ */

/* Google Fonts chargé via <link> dans le HTML */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

/* ─── MINI HERO ─────────────────────────────────────────── */

.v-hero {
    background: linear-gradient(148deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
    padding: 80px 7% 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.v-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 30%, rgba(96,165,250,.15) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 20% 70%, rgba(86,207,214,.1) 0%, transparent 60%);
    pointer-events: none;
}

.v-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.9);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 17px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.v-hero__title {
    font-size: clamp(1.9rem, 4.5vw, 2.9rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.v-hero__title span { color: #7dd3fc; }

.v-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.78);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── SECTIONS ──────────────────────────────────────────── */

.v-section {
    padding: 88px 7%;
}

.v-section--alt {
    background: #ffffff;
}

.v-section-label {
    display: inline-block;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #1d4ed8;
    margin-bottom: 14px;
}

.v-section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.2rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.v-section-sub {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 0 56px;
}

/* ─── FONCTIONNEMENT - étapes ───────────────────────────── */

.v-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.v-steps::before {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(12.5% + 12px);
    right: calc(12.5% + 12px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #cbd5e1 0px, #cbd5e1 8px, transparent 8px, transparent 16px);
}

.v-step {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 20px;
    padding: 32px 22px;
    box-shadow: 0 4px 16px rgba(15,35,95,.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.v-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(15,35,95,.1);
}

.v-step__num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(29,78,216,.35);
}

.v-step h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.1px;
}

.v-step p {
    margin: 0;
    font-size: .88rem;
    color: #64748b;
    line-height: 1.7;
}

/* ─── FEATURES GRID ─────────────────────────────────────── */

.v-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v-feature {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 20px;
    padding: 34px 28px;
    box-shadow: 0 4px 16px rgba(15,35,95,.05);
    display: flex;
    flex-direction: column;
    gap: 13px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.v-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,35,95,.1);
}

.v-feature__icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Couleurs des icônes features */
.v-feature__icon--blue   { background: #eff6ff; color: #1d4ed8; }
.v-feature__icon--amber  { background: #fffbeb; color: #d97706; }
.v-feature__icon--teal   { background: #f0fdfa; color: #0d9488; }
.v-feature__icon--green  { background: #f0fdf4; color: #16a34a; }
.v-feature__icon--purple { background: #faf5ff; color: #7c3aed; }
.v-feature__icon--indigo { background: #eef2ff; color: #4338ca; }

.v-feature h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.1px;
}

.v-feature p {
    margin: 0;
    font-size: .92rem;
    color: #64748b;
    line-height: 1.75;
}

.v-feature ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.v-feature ul li {
    font-size: .87rem;
    color: #64748b;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.v-feature ul li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1d4ed8;
    margin-top: 7px;
    flex-shrink: 0;
}

/* ─── RÔLES (locataire / propriétaire) ─────────────────── */

.v-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.v-role {
    border-radius: 24px;
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.v-role::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255,255,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.v-role--locataire  { background: linear-gradient(145deg, #1e40af 0%, #1d4ed8 60%, #2563eb 100%); }
.v-role--proprietaire { background: linear-gradient(145deg, #4c1d95 0%, #6d28d9 60%, #7c3aed 100%); }

.v-role__tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 5px 15px;
    width: fit-content;
}

.v-role h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.v-role p {
    margin: 0;
    font-size: .94rem;
    line-height: 1.75;
    color: rgba(255,255,255,.8);
}

.v-role__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v-role__steps li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: .9rem;
    color: rgba(255,255,255,.88);
    line-height: 1.55;
}

.v-role__steps li::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    flex-shrink: 0;
    margin-top: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 11px;
    background-position: center;
    background-repeat: no-repeat;
}

.v-role__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 700;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 12px;
    padding: 12px 22px;
    width: fit-content;
    transition: background .2s, transform .2s, border-color .2s;
}

.v-role__cta:hover {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
}

/* ─── FAQ SEARCH (dans le hero) ─────────────────────────── */

.v-faq-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 14px;
    padding: 10px 16px;
    max-width: 520px;
    margin: 28px auto 0;
    backdrop-filter: blur(6px);
    transition: border-color .15s, background .15s;
}

.v-faq-search-wrap:focus-within {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.5);
}

.v-faq-search-wrap > svg { color: rgba(255,255,255,.55); flex-shrink: 0; }

.v-faq-search-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: .95rem;
    font-family: inherit;
    font-weight: 500;
    min-width: 0;
}

.v-faq-search-wrap input::placeholder { color: rgba(255,255,255,.42); }

.v-faq-search-clear {
    background: rgba(255,255,255,.14);
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.v-faq-search-clear:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ─── FAQ PILLS CATÉGORIES ──────────────────────────────── */

.v-faq-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.v-faq-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: 1.5px solid #e5e9f2;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}

.v-faq-pill:hover { border-color: #1d4ed8; color: #1d4ed8; }

.v-faq-pill.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(29,78,216,.25);
}

.v-faq-pill__count {
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .76rem;
    font-weight: 700;
    background: rgba(255,255,255,.22);
}

.v-faq-pill:not(.active) .v-faq-pill__count {
    background: #f1f5f9;
    color: #94a3b8;
}

/* ─── FAQ NO RESULTS ────────────────────────────────────── */

.v-faq-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 64px 24px;
    text-align: center;
}

.v-faq-no-results svg { color: #cbd5e1; }

.v-faq-no-results p {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

.v-faq-no-results p strong { color: #0f172a; }

.v-faq-no-results button {
    padding: 9px 20px;
    border: 1.5px solid #e5e9f2;
    border-radius: 10px;
    background: #fff;
    color: #1d4ed8;
    font-size: .88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.v-faq-no-results button:hover {
    border-color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(29,78,216,.12);
}

/* ─── FAQ ACCORDION ─────────────────────────────────────── */

.v-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e9f2;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15,35,95,.05);
}

.v-faq__item {
    border-bottom: 1px solid #e5e9f2;
}

.v-faq__item:last-child {
    border-bottom: none;
}

.v-faq__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 22px 28px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .97rem;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
    user-select: none;
    transition: background .15s, color .15s;
    letter-spacing: -0.1px;
}

.v-faq__head:hover { background: #f8fafc; }

.v-faq__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform .26s cubic-bezier(0.4, 0, 0.2, 1), color .15s;
}

.v-faq__item.is-open .v-faq__chevron { transform: rotate(180deg); color: #1d4ed8; }
.v-faq__item.is-open .v-faq__head { background: #f0f5ff; color: #1d4ed8; }

.v-faq__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-faq__body-inner {
    padding: 0 28px 24px;
    font-size: .94rem;
    color: #64748b;
    line-height: 1.8;
}

.v-faq__body-inner a { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.v-faq__body-inner a:hover { text-decoration: underline; }

/* ─── FAQ CATÉGORIES ────────────────────────────────────── */

.v-faq-cats {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.v-faq-cat__title {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #1d4ed8;
    margin: 0 0 16px;
}

/* ─── CONTACT ───────────────────────────────────────────── */

.v-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 44px;
    align-items: start;
}

.v-contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v-contact-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 18px;
    padding: 24px 22px;
    box-shadow: 0 4px 14px rgba(15,35,95,.05);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v-contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15,35,95,.09);
}

.v-contact-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v-contact-card__icon--blue   { background: #eff6ff; color: #1d4ed8; }
.v-contact-card__icon--teal   { background: #f0fdfa; color: #0d9488; }
.v-contact-card__icon--amber  { background: #fffbeb; color: #d97706; }
.v-contact-card__icon--red    { background: #fef2f2; color: #ef4444; }

.v-contact-card__label {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #94a3b8;
    margin: 0 0 4px;
}

.v-contact-card__val {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px;
}

.v-contact-card__desc {
    font-size: .83rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.v-contact-form-wrap {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 28px rgba(15,35,95,.07);
}

.v-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.v-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.v-form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.v-form-group label {
    font-size: .8rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.2px;
}

.v-form-group input,
.v-form-group select,
.v-form-group textarea {
    padding: .7rem .9rem;
    border: 1.5px solid #e5e9f2;
    border-radius: 11px;
    font-size: .93rem;
    color: #111827;
    background: #fff;
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    resize: vertical;
}

.v-form-group input:focus,
.v-form-group select:focus,
.v-form-group textarea:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29,78,216,.08);
}

.v-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(29,78,216,.3);
}

.v-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(29,78,216,.4);
}

.v-success-msg {
    display: none;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: .93rem;
    font-weight: 600;
    text-align: center;
}

/* ─── LÉGAL ─────────────────────────────────────────────── */

.v-legal-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 20px;
    padding: 52px 56px;
    box-shadow: 0 8px 28px rgba(15,35,95,.07);
}

.v-legal-wrap h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 40px 0 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    letter-spacing: -0.2px;
}

.v-legal-wrap h2:first-child {
    margin-top: 0;
}

.v-legal-wrap p {
    font-size: .94rem;
    color: #64748b;
    line-height: 1.85;
    margin: 0 0 14px;
}

.v-legal-wrap ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.v-legal-wrap ul li {
    font-size: .94rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 6px;
}

.v-legal-wrap strong {
    color: #0f172a;
    font-weight: 700;
}

.v-legal-meta {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: .8rem;
    color: #94a3b8;
}

/* ─── CTA FINAL ─────────────────────────────────────────── */

.v-cta {
    background: linear-gradient(148deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
    padding: 88px 7%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.v-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 85% 50%, rgba(124,58,237,.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 60%, rgba(96,165,250,.12) 0%, transparent 55%);
    pointer-events: none;
}

.v-cta h2 {
    font-size: clamp(1.9rem, 3.8vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.18;
    letter-spacing: -0.4px;
}

.v-cta p {
    font-size: 1.02rem;
    color: rgba(255,255,255,.78);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.v-cta__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.v-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: .97rem;
    font-weight: 700;
    border-radius: 14px;
    padding: 14px 28px;
    transition: transform .2s, box-shadow .2s;
    letter-spacing: -0.1px;
}

.v-cta__btn:hover {
    transform: translateY(-3px);
}

.v-cta__btn--primary {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

.v-cta__btn--primary:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
}

.v-cta__btn--secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
}

.v-cta__btn--secondary:hover {
    background: rgba(255,255,255,.2);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1100px) {
    .v-steps { grid-template-columns: repeat(2, 1fr); }
    .v-steps::before { display: none; }
    .v-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .v-section { padding: 64px 6%; }
    .v-features { grid-template-columns: 1fr; }
    .v-roles { grid-template-columns: 1fr; }
    .v-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .v-section { padding: 52px 5%; }
    .v-hero { padding: 60px 5% 54px; }
    .v-steps { grid-template-columns: 1fr; }
    .v-section-title { font-size: 1.6rem; }
    .v-form-row { grid-template-columns: 1fr; }
    .v-legal-wrap { padding: 28px 20px; }
    .v-cta__btns { flex-direction: column; align-items: stretch; }
    .v-cta__btn { justify-content: center; }
    .v-role { padding: 32px 26px; }
}

@media (max-width: 420px) {
    .v-section { padding: 44px 4%; }
    .v-hero { padding: 52px 4% 46px; }
    .v-hero__title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .v-contact-form-wrap { padding: 26px 18px; }
    .v-role { padding: 26px 20px; }
    .v-faq__head { padding: 18px 20px; }
    .v-faq__body-inner { padding: 0 20px 20px; }
}
