/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ── Search Biens Widget ─────────────────────────────────────────── */
#biens {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.lc-sw-tabs {
    display: inline-flex;
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 12px;
    gap: 2px;
}

.lc-sw-tab {
    padding: 8px 28px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.lc-sw-tab:hover {
    background: rgba(255,255,255,.1);
}

.lc-sw-tab--active {
    background: #fff;
    color: #1a1a1a;
}

.lc-sw-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,.10);
    padding: 28px 32px 50px;
    width: 100%;
}

.lc-sw-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lc-sw-fields {
    display: flex;
    align-items: center;
    gap: 0;
}

.lc-sw-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 20px;
}

.lc-sw-field:first-child { padding-left: 0; }
.lc-sw-field:last-child  { padding-right: 0; }

.lc-sw-sep {
    width: 1px;
    height: 48px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.lc-sw-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lc-sw-field input {
    border: none;
    outline: none;
    font-size: .95rem;
    color: var(--black);
    background: transparent;
    padding: 0;
    width: 100%;
    font-weight: 500;
}

.lc-sw-field  .input {
    border: solid 1px rgba(black, .2);
    padding: 0 10px;
    border-radius: 5px;
}

.lc-sw-field input::placeholder { color: #9ca3af; }

.lc-sw-select {
    border: none;
    outline: none;
    font-size: .95rem;
    color: var(--black);
    background: transparent;
    padding: 0;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.lc-sw-input-unit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lc-sw-input-unit span {
    font-size: .9rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.lc-sw-submit {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);

}

.lc-sw-submit button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jaune);
    color: var(--black);
    border: none;
    border-radius: 60px;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.lc-sw-submit button:hover { 
    background: black;
    color: white; 
}

@media (max-width: 768px) {
    .lc-sw-fields { flex-direction: column; align-items: stretch; }
    .lc-sw-sep    { width: 100%; height: 1px; }
    .lc-sw-field  { padding: 12px 0; }
}

/* ── Steps Slider ─────────────────────────────────────────────────── */
.lc-steps {
    width: 100%;
}

.lc-steps__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid currentColor; /* défaut — écrasé par le contrôle "Bordure sous titre" */
    margin-bottom: 20px;
}

.lc-steps__intro {
    flex: 1;
    max-width: 640px;
}

.lc-steps__title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.2;
}

@media screen and (max-width: 768px) {
    .lc-steps__title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
}

.lc-steps__desc {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    margin-bottom: 50px;
}

.lc-steps__actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lc-steps__nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

.lc-steps__nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.lc-steps__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--jaune, #f59e0b);
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    transition: filter .15s ease;
}

.lc-steps__btn:hover { filter: brightness(.95); }

/* Slider */
.lc-steps__slider {
    overflow: visible !important;
    padding-top: 8px;
    scrollbar-width: none; /* Firefox */
}
.lc-steps__slider::-webkit-scrollbar { display: none; } /* WebKit */
.lc-steps__slider .swiper-scrollbar { display: none; }

.lc-steps__slide {
    position: relative;
    padding-top: 48px;
    width: 280px;      /* défaut — écrasé par le contrôle "Largeur des slides" */
    flex-shrink: 0;
    height: auto;
}

/* Ligne par slide — comme spaceBetween=0, les slides se touchent et la ligne est continue.
   :not(:last-child) : pas de ligne après la dernière étape. */
.lc-steps__slide:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    border-top: 2px dashed currentColor;
    z-index: 0;
    pointer-events: none;
}

.lc-steps__num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--jaune, #f59e0b);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-steps__slide-body { padding: 16px 60px 0 0; /* écrasé par le contrôle "Padding titre + description" */ }

.lc-steps__slide-title {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.lc-steps__slide-desc {
    font-size: .9rem;
    line-height: 1.5;
    opacity: .85;
}

@media (max-width: 768px) {
    .lc-steps__header { flex-direction: column; }
    .lc-steps__title  { font-size: 1.5rem; }
}

/* ── Bien Gallery (images + vidéos) ───────────────────────────── */
.lc-bg {
    position: relative;
    display: block;
}

.lc-bg__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 16px;     /* écrasé par le contrôle "Rayon bordure" */
    aspect-ratio: 16 / 9;    /* écrasé par le contrôle "Ratio" */
    background: #f3f4f6;
}

.lc-bg__slider {
    height: 100%;
    width: 100%;
}

.lc-bg__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lc-bg__image,
.lc-bg__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lc-bg__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--jaune, #f59e0b);
    color: #1a1a1a;
    font-weight: 600;
    font-size: .85rem;
    pointer-events: none;
}

.lc-bg__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--jaune, #f59e0b);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease;
}

.lc-bg__nav:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Flèches à l'extérieur du cadre */
.lc-bg--arrows-outside .lc-bg__nav--prev { left:  -22px; }
.lc-bg--arrows-outside .lc-bg__nav--next { right: -22px; }

/* Flèches à l'intérieur */
.lc-bg--arrows-inside  .lc-bg__nav--prev { left:  16px; }
.lc-bg--arrows-inside  .lc-bg__nav--next { right: 16px; }

.lc-bg__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: auto !important;
}

@media (max-width: 768px) {
    .lc-bg--arrows-outside .lc-bg__nav--prev { left:  8px; }
    .lc-bg--arrows-outside .lc-bg__nav--next { right: 8px; }
}

.lc-bg__lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
    text-decoration: none;
}

/* ── Bien Details ─────────────────────────────────────────────── */
.lc-bd {
    width: 100%;
    color: #242424;
}

.lc-bd__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.lc-bd__column {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.lc-bd__section-title {
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d2;
    color: #868686;
}

.lc-bd__list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
}

.lc-bd__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 24px;
    align-items: baseline;
}

.lc-bd__label,
.lc-bd__value {
    margin: 0;
}

.lc-bd__label {
    min-width: 0;
}

.lc-bd__value {
    max-width: 260px;
    text-align: right;
    overflow-wrap: anywhere;
}

.lc-bd__diagnostics {
    margin-top: 132px;
}

.lc-bd__diag-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}

.lc-bd__diag-card {
    background: #fff;
    border-radius: 22px;
    padding: 32px 36px 38px;
}

.lc-bd__diag-title {
    margin: 0 0 36px;
    color: #242424;
}

.lc-bd__diag-scale {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: nowrap;
}

.lc-bd__diag-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: .35;
    aspect-ratio: 1/1;
}

.lc-bd__diag-dot--a { background: #6ac7bd; }
.lc-bd__diag-dot--b { background: #9bd99c; }
.lc-bd__diag-dot--c { background: #5aba68; }
.lc-bd__diag-dot--d { background: #f6ee80; }
.lc-bd__diag-dot--e { background: #f2c869; }
.lc-bd__diag-dot--f { background: #eaa176; }
.lc-bd__diag-dot--g { background: #df7275; }

.lc-bd__diag-dot.is-active {
    opacity: 1;
    outline: 5px solid var(--jaune, #f5aa28);
    outline-offset: -1px;
}

@media (max-width: 900px) {
    .lc-bd__columns,
    .lc-bd__diag-grid {
        grid-template-columns: 1fr;
    }

    .lc-bd__column {
        gap: 42px;
    }

    .lc-bd__diagnostics {
        margin-top: 64px;
    }
}

@media (max-width: 520px) {
    .lc-bd__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lc-bd__value {
        max-width: none;
        text-align: left;
    }

    .lc-bd__diag-card {
        padding: 26px 24px 30px;
    }
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.lc-lb {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.lc-lb.is-open { display: block; }
body.lc-lb-open { overflow: hidden; }

.lc-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
    animation: lc-lb-fade .2s ease;
}

.lc-lb__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    pointer-events: none;
}

.lc-lb__img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: auto;
    opacity: 0;
    transition: opacity .25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lc-lb__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 3px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lc-lb-spin 1s linear infinite;
    opacity: 0;
    transition: opacity .15s ease;
}
.lc-lb__stage.is-loading .lc-lb__spinner { opacity: 1; }

.lc-lb__close,
.lc-lb__nav {
    position: absolute;
    z-index: 1;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
    backdrop-filter: blur(8px);
}
.lc-lb__close:hover,
.lc-lb__nav:hover { background: rgba(255,255,255,.2); }

.lc-lb__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.lc-lb__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2.5rem;
    line-height: 1;
    font-family: Georgia, serif;
}
.lc-lb__nav:hover { transform: translateY(-50%) scale(1.05); }
.lc-lb__nav--prev { left:  20px; }
.lc-lb__nav--next { right: 20px; }

@keyframes lc-lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lc-lb-spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .lc-lb__stage { padding: 16px; }
    .lc-lb__nav { width: 40px; height: 40px; font-size: 2rem; }
    .lc-lb__nav--prev { left:  8px; }
    .lc-lb__nav--next { right: 8px; }
}

/* ── Avis Slider ───────────────────────────────────────────────── */
.lc-reviews__slider {
    overflow: hidden;
    width: 100%;
}

.lc-reviews__slide {
    height: auto;
    display: flex;
}

.lc-reviews__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.lc-reviews__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lc-reviews__author {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
}

.lc-reviews__date {
    margin-top: 4px;
    font-size: .85rem;
    color: #8a8a8a;
}

.lc-reviews__stars {
    flex-shrink: 0;
    color: var(--jaune, #f59e0b);
    letter-spacing: 1px;
    white-space: nowrap;
}

.lc-reviews__text {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: 1rem;
    line-height: 1.55;
}

.lc-reviews__footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.lc-reviews__google {
    height: 22px;
    width: auto;
}

/* Flèches */
.lc-reviews__nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.lc-reviews__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.lc-reviews__nav svg {
    width: 18px;
    height: 18px;
}

.lc-reviews__nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
