/* =========================================================
   DBC · FAQ (Questions fréquentes) — accordéon
   ========================================================= */

.dbc-faq {
    --dbc-faq-blue: #0d4899;
    --dbc-faq-orange: #f49826;
    display: block;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dbc-faq *, .dbc-faq *::before, .dbc-faq *::after { box-sizing: border-box; }

/* ============ EN-TÊTE ============ */
.dbc-faq__header { text-align: center; margin-bottom: 36px; }
.dbc-faq__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dbc-faq-blue);
    margin-bottom: 12px;
}
.dbc-faq__title {
    margin: 0 0 12px 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    color: #0a1929;
}
.dbc-faq__accent {
    background: linear-gradient(135deg, var(--dbc-faq-orange), #e25312);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dbc-faq__subtitle {
    margin: 0 auto;
    max-width: 600px;
    font-size: 15.5px;
    line-height: 1.6;
    color: #64748b;
}

/* ============ LISTE ============ */
.dbc-faq__list { display: flex; flex-direction: column; gap: 14px; }

.dbc-faq__item {
    background: #fff;
    border: 1.5px solid #e8eef6;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dbc-faq__item.is-open {
    border-color: var(--dbc-faq-blue);
    box-shadow: 0 16px 36px -20px rgba(13, 72, 153, 0.4);
}

/* Question (bouton) */
.dbc-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.dbc-faq__q-text {
    font-family: 'Sora', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: #0a1929;
    line-height: 1.35;
}
.dbc-faq__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf2fb;
    color: var(--dbc-faq-blue);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease;
}
.dbc-faq__item.is-open .dbc-faq__icon {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--dbc-faq-blue), #2f7cc0);
    color: #fff;
}

/* Panneau réponse (animation de hauteur via grid) */
.dbc-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.dbc-faq__item.is-open .dbc-faq__panel { grid-template-rows: 1fr; }
.dbc-faq__a {
    overflow: hidden;
    min-height: 0;
    padding: 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: #475569;
    transition: padding 0.35s ease;
}
.dbc-faq__item.is-open .dbc-faq__a { padding: 0 22px 22px; }
.dbc-faq__a strong { color: #0a1929; font-weight: 700; }
.dbc-faq__a p { margin: 0 0 10px 0; }
.dbc-faq__a p:last-child { margin-bottom: 0; }

/* Numéro (masqué par défaut, visible en style bubble) */
.dbc-faq__num { display: none; }

/* Icône plus/moins */
.dbc-faq__plus { position: relative; width: 16px; height: 16px; display: inline-block; }
.dbc-faq__plus::before, .dbc-faq__plus::after {
    content: ''; position: absolute; background: currentColor; border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.dbc-faq__plus::before { top: 50%; left: 0; width: 100%; height: 2.5px; transform: translateY(-50%); }
.dbc-faq__plus::after { left: 50%; top: 0; width: 2.5px; height: 100%; transform: translateX(-50%); }
.dbc-faq__item.is-open .dbc-faq__plus::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.dbc-faq--icon-plus .dbc-faq__item.is-open .dbc-faq__icon { transform: none; }
.dbc-faq--icon-arrow .dbc-faq__item.is-open .dbc-faq__icon { transform: rotate(90deg); }

/* =========================================================
   STYLE 1 — CARTES À BORDURE COLORÉE GAUCHE (card-left, défaut)
   ========================================================= */
.dbc-faq--card-left .dbc-faq__item {
    border: 1px solid #e8eef6;
    border-left: 4px solid #cbd5e1;
    box-shadow: 0 4px 14px -8px rgba(13,72,153,0.18);
}
.dbc-faq--card-left .dbc-faq__item.is-open {
    border-left-color: var(--dbc-faq-orange);
    border-color: #e8eef6;
    border-left-width: 4px;
    box-shadow: 0 16px 36px -18px rgba(13,72,153,0.4);
}

/* =========================================================
   STYLE 2 — BULLES AVEC NUMÉROS (bubble)
   ========================================================= */
.dbc-faq--bubble .dbc-faq__item {
    border: 0;
    background: #f6f9fd;
    border-radius: 18px;
}
.dbc-faq--bubble .dbc-faq__item.is-open {
    background: #fff;
    box-shadow: 0 18px 40px -20px rgba(13,72,153,0.45);
}
.dbc-faq--bubble .dbc-faq__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dbc-faq-blue), #2f7cc0);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 800;
    margin-right: 4px;
    transition: transform 0.3s ease;
}
.dbc-faq--bubble .dbc-faq__item.is-open .dbc-faq__num {
    background: linear-gradient(135deg, var(--dbc-faq-orange), #e25312);
    transform: scale(1.08);
}

/* =========================================================
   STYLE 3 — DÉGRADÉ SUR LA QUESTION ACTIVE (gradient)
   ========================================================= */
.dbc-faq--gradient .dbc-faq__item {
    border: 1px solid #e8eef6;
    border-radius: 16px;
}
.dbc-faq--gradient .dbc-faq__item.is-open {
    border-color: transparent;
    box-shadow: 0 18px 40px -18px rgba(13,72,153,0.5);
}
.dbc-faq--gradient .dbc-faq__item.is-open .dbc-faq__q {
    background: linear-gradient(135deg, var(--dbc-faq-blue), #2f7cc0 55%, var(--dbc-faq-orange));
    border-radius: 16px 16px 0 0;
}
.dbc-faq--gradient .dbc-faq__item.is-open .dbc-faq__q-text { color: #fff; }
.dbc-faq--gradient .dbc-faq__item.is-open .dbc-faq__icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* =========================================================
   STYLE 4 — MINIMALISTE / SÉPARATEURS FINS (minimal)
   ========================================================= */
.dbc-faq--minimal .dbc-faq__list { gap: 0; }
.dbc-faq--minimal .dbc-faq__item {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}
.dbc-faq--minimal .dbc-faq__item:first-child { border-top: 1px solid #e2e8f0; }
.dbc-faq--minimal .dbc-faq__q { padding-left: 4px; padding-right: 4px; }
.dbc-faq--minimal .dbc-faq__icon { background: transparent; border: 1.5px solid #cbd5e1; }
.dbc-faq--minimal .dbc-faq__item.is-open .dbc-faq__icon {
    background: var(--dbc-faq-orange); border-color: var(--dbc-faq-orange); color: #fff;
}
.dbc-faq--minimal .dbc-faq__a { padding-left: 4px; }
.dbc-faq--minimal .dbc-faq__item.is-open .dbc-faq__a { padding-left: 4px; padding-right: 4px; }

/* =========================================================
   STYLE 5 — CARTES VITRÉES / GLASSMORPHISM (glass)
   ========================================================= */
.dbc-faq--glass .dbc-faq__item {
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 8px 32px -12px rgba(13,72,153,0.25);
}
.dbc-faq--glass .dbc-faq__item.is-open {
    background: rgba(255,255,255,0.8);
    border-color: rgba(13,72,153,0.3);
    box-shadow: 0 20px 48px -18px rgba(13,72,153,0.5);
}
.dbc-faq--glass .dbc-faq__icon {
    background: rgba(13,72,153,0.12);
    backdrop-filter: blur(4px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
    .dbc-faq__q { padding: 16px 18px; }
    .dbc-faq__q-text { font-size: 15px; }
    .dbc-faq__icon { width: 32px; height: 32px; }
    .dbc-faq__a { font-size: 14.5px; padding: 0 18px; }
    .dbc-faq__item.is-open .dbc-faq__a { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .dbc-faq__panel, .dbc-faq__icon, .dbc-faq__a { transition: none !important; }
}
