/*
 * Prestige Concept — [pc_home_editorial]
 * Section « Repères pour votre projet ».
 * Ce fichier est autonome et ne cible jamais le pré-footer ni Fluent Forms.
 */

#pc-home-editorial,
#pc-home-editorial * {
    box-sizing: border-box;
}

/* Neutralisation ciblée du conteneur « Code » injecté par BeBuilder.
   Le <pre> du thème ajoute sinon padding, cadre et interligne. */
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial),
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) > .mcb-section-inner,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) > .section_wrapper,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) .mcb-wrap,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) .mcb-wrap-inner,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) .mcb-column,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) .mcb-column-inner,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) .mfn-html-editor-wrapper,
body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) pre.mfn-code {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body:has(#pc-home-editorial) .mcb-section:has(#pc-home-editorial) pre.mfn-code {
    display: block !important;
    max-width: none !important;
    overflow: visible !important;
    color: inherit !important;
    font: inherit !important;
    line-height: normal !important;
    white-space: normal !important;
}

/* Section et en-tête */
#pc-home-editorial {
    width: 100%;
    margin: 0;
    padding: 25px 26px 40px;
    color: #24211d;
    background: #f1ebe0;
    font-family: Arial, Helvetica, sans-serif;
}

#pc-home-editorial .pc-home-editorial__header {
    max-width: 760px;
    margin: 0 auto 15px;
    padding: 0;
    text-align: center;
}

#pc-home-editorial .pc-home-editorial__kicker {
    margin: 0 0 5px !important;
    color: #b1842c !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .23em !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

#pc-home-editorial .pc-home-editorial__header h2 {
    margin: 0 !important;
    color: #24211d !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(34px, 4vw, 52px) !important;
    font-weight: 400 !important;
    letter-spacing: -.025em !important;
    line-height: 1.02 !important;
}

#pc-home-editorial .pc-home-editorial__header > p:last-child {
    max-width: 570px;
    margin: 6px auto 0 !important;
    color: #625b52 !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
}

/* Cartes et avis */
#pc-home-editorial .pc-home-editorial__layout {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(285px, 3fr);
    gap: 27px;
    align-items: stretch;
}

#pc-home-editorial .pc-home-editorial__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

#pc-home-editorial .pc-home-editorial__card {
    position: relative;
    min-width: 0;
    min-height: 400px;
    overflow: hidden;
    border: 1px solid rgba(129, 96, 40, .24);
    border-radius: 7px;
    background: #171716;
    color: #fff9ef;
    box-shadow: 0 9px 22px rgba(39, 29, 16, .12);
}

#pc-home-editorial .pc-home-editorial__card::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(9, 10, 9, .97), rgba(9, 10, 9, .08) 76%);
    pointer-events: none;
}

#pc-home-editorial .pc-home-editorial__card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

#pc-home-editorial .pc-home-editorial__card:hover > img {
    transform: scale(1.045);
}

#pc-home-editorial .pc-home-editorial__card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    padding: 22px 21px;
    text-align: left !important;
}

#pc-home-editorial .pc-home-editorial__number {
    margin: 0 !important;
    color: #e3bd63 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    line-height: 1.4 !important;
    text-transform: uppercase;
}

#pc-home-editorial .pc-home-editorial__card h3 {
    margin: 11px 0 8px !important;
    color: #fffaf1 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
}

#pc-home-editorial .pc-home-editorial__description {
    min-height: 60px;
    margin: 0 !important;
    color: rgba(255, 250, 241, .86) !important;
    font-size: 14px !important;
    line-height: 1.53 !important;
}

#pc-home-editorial .pc-home-editorial__card a {
    display: inline-flex !important;
    align-self: flex-start !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 8px;
    width: auto !important;
    max-width: 100% !important;
    margin-top: 15px;
    padding: 0 !important;
    color: #e5bd61 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

#pc-home-editorial .pc-home-editorial__card a:hover {
    color: #fffaf1 !important;
}

#pc-home-editorial .pc-home-editorial__card a span {
    font-size: 18px;
    line-height: 1;
}

#pc-home-editorial .pc-home-editorial__reviews {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    /* Le contenu est remonté d'environ 20 px ; le bas gagne 15 px d'air. */
    padding: 11px 48px 54px;
    border: 1px solid rgba(129, 96, 40, .21);
    border-radius: 7px;
    background: #fffdf9;
    box-shadow: 0 9px 22px rgba(39, 29, 16, .1);
    text-align: center;
}

#pc-home-editorial .pc-home-editorial__reviews h2 {
    margin: 0 0 25px !important;
    color: #29231b !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
}

#pc-home-editorial .pc-home-editorial__review-slides {
    position: relative;
    min-height: 196px;
}

#pc-home-editorial .pc-home-editorial__review {
    position: absolute;
    inset: 0;
    display: none;
}

#pc-home-editorial .pc-home-editorial__review.is-active {
    display: block;
}

#pc-home-editorial .pc-home-editorial__review blockquote {
    margin: 0 !important;
    color: #504a42 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 20px !important;
    font-style: italic !important;
    font-weight: 400 !important;
    line-height: 1.52 !important;
}

#pc-home-editorial .pc-home-editorial__review blockquote::before {
    content: "\00ab  ";
    color: #bf8e2d;
}

#pc-home-editorial .pc-home-editorial__review blockquote::after {
    content: " \00bb";
    color: #bf8e2d;
}

#pc-home-editorial .pc-home-editorial__review-author {
    margin: 22px 0 0 !important;
    color: #b27f20 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

#pc-home-editorial .pc-home-editorial__review-city {
    margin: 4px 0 0 !important;
    color: #756e66 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

#pc-home-editorial .pc-home-editorial__arrow {
    position: absolute;
    z-index: 2;
    bottom: 25px;
    width: 35px;
    height: 42px;
    border: 0 !important;
    background: transparent !important;
    color: #1f211f !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 44px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

#pc-home-editorial .pc-home-editorial__arrow:hover {
    color: #b5801e !important;
    transform: scale(1.12);
}

#pc-home-editorial .pc-home-editorial__arrow--previous { left: 32px; }
#pc-home-editorial .pc-home-editorial__arrow--next { right: 32px; }
#pc-home-editorial .pc-home-editorial__reviews[hidden] { display: none; }

/* Même fond chaud pour le bloc Expertise de l'accueil. */
body .pcx-expertise {
    background: #f1ebe0 !important;
}

@media (max-width: 1100px) {
    #pc-home-editorial {
        padding: 25px 24px 35px;
    }

    #pc-home-editorial .pc-home-editorial__layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 20px;
    }

    #pc-home-editorial .pc-home-editorial__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    #pc-home-editorial .pc-home-editorial__card:nth-child(3) {
        display: none;
    }

    #pc-home-editorial .pc-home-editorial__card,
    #pc-home-editorial .pc-home-editorial__card-content,
    #pc-home-editorial .pc-home-editorial__reviews {
        min-height: 382px;
    }

    #pc-home-editorial .pc-home-editorial__reviews {
        padding: 16px 43px 54px;
    }

    #pc-home-editorial .pc-home-editorial__review blockquote {
        font-size: 18px !important;
    }
}

@media (max-width: 700px) {
    #pc-home-editorial {
        padding: 24px 18px 30px;
    }

    #pc-home-editorial .pc-home-editorial__header {
        margin-bottom: 14px;
    }

    #pc-home-editorial .pc-home-editorial__header > p:last-child {
        font-size: 15px !important;
    }

    #pc-home-editorial .pc-home-editorial__layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #pc-home-editorial .pc-home-editorial__cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #pc-home-editorial .pc-home-editorial__card:nth-child(3) {
        display: block;
    }

    #pc-home-editorial .pc-home-editorial__card,
    #pc-home-editorial .pc-home-editorial__card-content {
        min-height: 340px;
    }

    #pc-home-editorial .pc-home-editorial__card-content {
        padding: 23px;
    }

    #pc-home-editorial .pc-home-editorial__card h3 {
        font-size: 27px !important;
    }

    #pc-home-editorial .pc-home-editorial__description {
        min-height: 0;
    }

    #pc-home-editorial .pc-home-editorial__reviews {
        min-height: 370px;
        padding: 37px 52px 49px;
    }

    #pc-home-editorial .pc-home-editorial__reviews h2 {
        margin-bottom: 26px !important;
    }

    #pc-home-editorial .pc-home-editorial__review-slides {
        min-height: 190px;
    }

    #pc-home-editorial .pc-home-editorial__review blockquote {
        font-size: 18px !important;
    }

    #pc-home-editorial .pc-home-editorial__arrow {
        bottom: 28px;
    }

    #pc-home-editorial .pc-home-editorial__arrow--previous { left: 30px; }
    #pc-home-editorial .pc-home-editorial__arrow--next { right: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    #pc-home-editorial .pc-home-editorial__card > img,
    #pc-home-editorial .pc-home-editorial__arrow {
        transition: none;
    }
}
