
/* =========================================================
   FAQ — CABINET BALZAC
   DESIGN ORIGINAL HOME
   COMMUN À TOUTES LES PAGES
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.faq-section {
    width: 100%;
    padding: 90px 24px;
    box-sizing: border-box;
    background: rgb(252, 247, 240);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.faq-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.faq-intro {
    text-align: center;
    margin-bottom: 48px;
}


/* =========================================================
   SURTITRE
   ========================================================= */

.faq-eyebrow {
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #63110f;
    margin: 0 0 18px;
}


/* =========================================================
   TITRE
   ========================================================= */

.faq-intro h2 {
    font-family: "Instrument Serif", Georgia, serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    color: #63110f;

    max-width: 800px;
    margin: 0 auto 20px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.faq-description {
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #210706;

    max-width: 680px;
    margin: 0 auto;
}


/* =========================================================
   LISTE
   ========================================================= */

.faq-list {
    width: 100%;
}


/* =========================================================
   QUESTIONS / SÉPARATEURS
   ========================================================= */

.faq-item {
    width: 100%;
    border-bottom: 1px solid #d8c1a3;
}

.faq-item:first-child {
    border-top: 1px solid #d8c1a3;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.faq-item summary {
    width: 100%;
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 25px 8px;
    box-sizing: border-box;

    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}


/* =========================================================
   TITRE DES QUESTIONS
   ========================================================= */

.faq-item summary h3 {
    margin: 0;

    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: normal;

    color: #63110f;
}


/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

.faq-item summary:focus-visible {
    outline: 2px solid #63110f;
    outline-offset: 4px;
}


/* =========================================================
   ICÔNES + / -
   ========================================================= */

.faq-icon {
    position: relative;

    width: 18px;
    height: 18px;
    flex-shrink: 0;

    font-size: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    background: #63110f;
    transform: translate(-50%, -50%);
}

/* Trait horizontal */

.faq-icon::before {
    width: 16px;
    height: 1px;
}

/* Trait vertical */

.faq-icon::after {
    width: 1px;
    height: 16px;

    transition: transform 0.2s ease;
}

/* État ouvert */

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}


/* =========================================================
   RÉPONSES
   ========================================================= */

.faq-answer {
    width: 100%;
    padding: 0 45px 26px 8px;
    box-sizing: border-box;
}

.faq-answer p {
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.9;
    color: #210706;

    margin: 0 0 14px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   LIENS
   ========================================================= */

.faq-answer a {
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;

    color: #63110f;

    text-decoration: underline;
    text-underline-offset: 4px;

    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #a46e49;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1100px) {

    .faq-section {
        padding: 75px 6%;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .faq-section {
        padding: 60px 20px;
    }

    .faq-intro {
        margin-bottom: 32px;
    }

    .faq-eyebrow {
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .faq-intro h2 {
        font-size: 36px;
        line-height: 1.15;
    }

    .faq-description {
        font-size: 13px;
        line-height: 1.7;
    }

    .faq-item summary {
        min-height: 68px;
        padding: 20px 0;
        gap: 16px;
    }

    .faq-item summary h3 {
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-answer {
        padding: 0 25px 22px 0;
    }

    .faq-answer p {
        font-size: 13px;
        line-height: 1.8;
    }

}
