/* ==========================================================================
   Maison Or & Bijoux — FAQ accordéon v2
   Universal : autonome, ne dépend pas du wrapper.
   À remplacer par-dessus l'ancien faq-accordion.css.
   ========================================================================== */

/* Variables locales (reprises des palettes habituelles, sans dépendance) */
.mob-faq,
h2.mob-faq__heading {
    --faq-gold: #c9a13e;
    --faq-gold-dark: #a8842c;
    --faq-bg-cream: #f5efe2;
    --faq-text: #1a1a1a;
    --faq-text-soft: #5a5a5a;
    --faq-border: #e6dfd0;
    --faq-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --faq-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Titre "Questions fréquentes" — police serif italique avec barre dorée
   Sélecteur sans dépendance au wrapper */
h2.mob-faq__heading {
    font-family: 'Cormorant Garamond', Georgia, serif !important; 
    font-size: clamp(1.9rem, 3.5vw, 2.8rem) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    color: #1A1A1A !important;
    position: relative !important;
    display: inline-block !important;
    color: var(--faq-text) !important;
    width: auto;
    left: 22%;
    transform: translateX(-50%);
}

/* Hack pour centrer un display inline-block dans son parent */
h2.mob-faq__heading::before {
    content: '';
    display: block;
    height: 0;
}

h2.mob-faq__heading::after {
	content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #C5A55A, rgba(197, 165, 90, 0.2));
    border-radius: 2px;
}

/* Container global de l'accordéon */
.mob-faq {
    background: var(--faq-bg-cream);
    border-radius: 24px;
    padding: 36px 28px;
    margin: 0 auto 3em;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--faq-sans);
}

/* Carte de chaque question */
.mob-faq__item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease;
}

.mob-faq__item.is-open {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Bouton question */
.mob-faq__question {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-family: var(--faq-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--faq-text);
    text-align: left;
    line-height: 1.4;
    letter-spacing: 0;
    transition: background 0.2s ease;
    margin: 0;
}

.mob-faq__question:hover {
    background: rgba(201, 161, 62, 0.04);
}

.mob-faq__question:focus-visible {
    outline: 2px solid var(--faq-gold);
    outline-offset: -4px;
    border-radius: 14px;
}

.mob-faq__question-text {
    flex: 1;
    color: var(--faq-text);
}

/* Icône + ronde dorée */
.mob-faq__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--faq-gold);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease, background 0.2s ease;
    position: relative;
}

.mob-faq__icon::before,
.mob-faq__icon::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mob-faq__icon::before {
    width: 14px;
    height: 2px;
}

.mob-faq__icon::after {
    width: 2px;
    height: 14px;
}

.mob-faq__item.is-open .mob-faq__icon {
    background: var(--faq-gold-dark);
    transform: rotate(135deg);
}

.mob-faq__question:hover .mob-faq__icon {
    background: var(--faq-gold-dark);
}

/* Panneau réponse */
.mob-faq__answer {
    padding: 0 28px;
    overflow: hidden;
}

.mob-faq__answer-inner {
    padding: 4px 0 24px;
    color: var(--faq-text-soft);
    font-size: 15px;
    line-height: 1.7;
    border-top: 1px solid var(--faq-border);
    padding-top: 20px;
}

.mob-faq__answer-inner > *:first-child {
    margin-top: 0;
}

.mob-faq__answer-inner > *:last-child {
    margin-bottom: 0;
}

.mob-faq__answer-inner p {
    margin: 0.7em 0;
}

.mob-faq__answer-inner a {
    color: var(--faq-gold-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mob-faq__answer-inner ul,
.mob-faq__answer-inner ol {
    padding-left: 1.4em;
    margin: 0.7em 0;
}

.mob-faq__answer-inner li {
    margin: 0.4em 0;
}

.mob-faq__answer-inner strong {
    color: var(--faq-text);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .mob-faq {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .mob-faq__question {
        padding: 18px 20px;
        font-size: 14px;
        gap: 14px;
    }

    .mob-faq__icon {
        width: 32px;
        height: 32px;
    }

    .mob-faq__icon::before {
        width: 12px;
    }

    .mob-faq__icon::after {
        height: 12px;
    }

    .mob-faq__answer {
        padding: 0 20px;
    }

    h2.mob-faq__heading {
        font-size: clamp(30px, 6vw, 42px) !important;
    }
}
