/**
 * Styles — Guide propriétaire (page FAQ Annonces)
 * Shortcode : [adpma_owner_page_faq_listing]
 *
 * Couleurs neutres alignées sur le thème Listeo :
 *   - #333     titres (= dashboard h4)
 *   - #eaeaea  bordures (= dashboard-list-box borders)
 *   - #fbfbfb  fonds subtils (= dashboard li:hover)
 *   - #666     texte secondaire
 *   - #808080  corps de texte (= body Listeo)
 *
 * La couleur d'accent (maincolor) est injectée inline via PHP
 * dans inc/owner-page-faq-listing.php.
 *
 * @package Listeo Child - ADPMA
 */

/* =============================================================================
   CONTENEUR PRINCIPAL
   Padding calqué sur le rythme dashboard : h4 = 25px 30px, li = 23px 30px
   ============================================================================= */

.adpma-faq-listing {
    padding: 28px 30px 32px;
    background: #fff;
    border-radius: 0 0 4px 4px;
}


/* =============================================================================
   INTRO
   ============================================================================= */

.adpma-guide-intro {
    border-left: 4px solid #eaeaea; /* overridé en maincolor via style inline PHP */
    background: #fbfbfb;
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 32px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.adpma-guide-intro p {
    margin: 0;
}


/* =============================================================================
   SOMMAIRE
   ============================================================================= */

.adpma-guide-toc {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 18px 24px;
    margin-bottom: 40px;
    display: block;          /* pleine largeur — pas de inline-block */
    max-width: 480px;
}

.adpma-guide-toc h5 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 14px;
    font-weight: 700;
}

.adpma-guide-toc ol {
    margin: 0;
    padding-left: 18px;
}

.adpma-guide-toc li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.adpma-guide-toc a {
    text-decoration: none;
    transition: opacity 0.15s;
}

.adpma-guide-toc a:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* =============================================================================
   SECTIONS
   ============================================================================= */

.adpma-guide-section {
    margin-bottom: 42px;
    scroll-margin-top: 80px;
}

.adpma-guide-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eaeaea;
}

.adpma-guide-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #444; /* overridé en maincolor via style inline PHP */
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}


/* =============================================================================
   BLOCS DE CONTENU
   Bordure gauche seulement — évite l'effet "cadres dans des cadres"
   ============================================================================= */

.adpma-guide-block {
    border-left: 3px solid #eaeaea; /* overridé en maincolor via style inline PHP */
    background: #fbfbfb;
    border-radius: 0 4px 4px 0;
    padding: 14px 18px;
    margin-bottom: 14px;
    transition: background-color 0.2s;
}

.adpma-guide-block:hover {
    background-color: #f5f5f5;
}

.adpma-guide-block h6 {
    font-size: 15px;
    font-weight: 600;
    color: #333; /* overridé en maincolor via style inline PHP */
    margin: 0 0 6px;
    text-transform: none;
    letter-spacing: normal;
}

.adpma-guide-block p {
    font-size: 15px;
    color: #808080;
    line-height: 1.7;
    margin: 0;
}


/* =============================================================================
   FAQ ITEMS
   ============================================================================= */

.adpma-guide-faq-item {
    border-bottom: 1px solid #eaeaea;
    padding: 18px 0;
}

.adpma-guide-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adpma-guide-faq-q {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    padding-left: 26px;
    position: relative;
    line-height: 1.4;
}

.adpma-guide-faq-q::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #444; /* overridé en maincolor via style inline PHP */
    border-radius: 3px;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adpma-guide-faq-a {
    font-size: 15px;
    color: #808080;
    line-height: 1.7;
    margin: 0;
    padding-left: 26px;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 767px) {

    .adpma-faq-listing {
        padding: 20px 18px 24px;
    }

    .adpma-guide-toc {
        max-width: 100%;
    }

    .adpma-guide-section-title {
        font-size: 16px;
    }

    .adpma-guide-block {
        padding: 12px 14px;
    }
}

/* =============================================================================
   INTRO
   ============================================================================= */

.adpma-guide-intro {
    /* border-left-color est positionné par le style inline PHP (maincolor) */
    border-left: 4px solid #eaeaea;
    background: #fbfbfb;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}


/* =============================================================================
   SOMMAIRE
   ============================================================================= */

.adpma-guide-toc {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 18px 22px;
    margin-bottom: 36px;
    display: inline-block;
    min-width: 280px;
}

.adpma-guide-toc h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin: 0 0 12px;
    font-weight: 600;
}

.adpma-guide-toc ol {
    margin: 0;
    padding-left: 20px;
}

.adpma-guide-toc li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* Les liens héritent de la couleur d'ancre du thème (maincolor via custom.css.php) */
.adpma-guide-toc a {
    text-decoration: none;
    transition: opacity 0.15s;
}

.adpma-guide-toc a:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* =============================================================================
   SECTIONS
   ============================================================================= */

.adpma-guide-section {
    margin-bottom: 38px;
    scroll-margin-top: 80px;
}

.adpma-guide-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;       /* = dashboard-list-box h4 */
    font-weight: 600;      /* = dashboard-list-box h4 */
    color: #333;           /* = dashboard-list-box h4 */
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea; /* = dashboard-list-box h4 border */
}

.adpma-guide-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    /* background défini inline par PHP (maincolor) */
    background: #444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}


/* =============================================================================
   BLOCS DE CONTENU
   ============================================================================= */

.adpma-guide-block {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 16px 22px;
    margin-bottom: 12px;
    transition: background-color 0.3s;
}

.adpma-guide-block:hover {
    background-color: #fbfbfb; /* = dashboard ul li:hover */
}

.adpma-guide-block h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    text-transform: none;
    /* color overridé inline par PHP (maincolor) */
}

.adpma-guide-block p {
    font-size: 14px;   /* = body Listeo */
    color: #808080;    /* = body Listeo */
    line-height: 1.65;
    margin: 0;
}


/* =============================================================================
   FAQ ITEMS
   ============================================================================= */

.adpma-guide-faq-item {
    border-bottom: 1px solid #eaeaea;
    padding: 16px 0;
}

.adpma-guide-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.adpma-guide-faq-q {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    padding-left: 24px;
    position: relative;
}

.adpma-guide-faq-q::before {
    content: "Q";
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    /* background défini inline par PHP (maincolor) */
    background: #444;
    border-radius: 3px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adpma-guide-faq-a {
    font-size: 14px;
    color: #808080;
    line-height: 1.65;
    margin: 0;
    padding-left: 24px;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 767px) {
    .adpma-guide-toc {
        display: block;
        min-width: unset;
    }

    .adpma-guide-section-title {
        font-size: 15px;
    }

    .adpma-guide-block {
        padding: 14px 16px;
    }
}
