/* ============================================================
   ACCORDION — Composant réutilisable
   Utilisé dans : tarifs.html, le-projet.html, contact.html
   ============================================================ */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: white;
    border-radius: 14px;
    border: 1.5px solid rgba(53, 152, 192, 0.1);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.accordion-item:hover {
    border-color: rgba(53, 152, 192, 0.25);
}

.accordion-item.open {
    border-color: rgba(53, 152, 192, 0.3);
    box-shadow: 0 4px 20px rgba(53, 152, 192, 0.08);
}

.accordion-trigger {
    width: 100%;
    padding: 1.3rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--primary);
    transition: background 0.2s;
}

.accordion-trigger:hover {
    background: rgba(53, 152, 192, 0.03);
}

.accordion-q {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.accordion-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(53, 152, 192, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.3s;
    color: var(--accent-data);
}

.accordion-item.open .accordion-icon {
    background: var(--accent-data);
    color: white;
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.97rem;
    line-height: 1.75;
    color: rgba(14, 62, 73, 0.78);
    border-top: 1px solid rgba(53, 152, 192, 0.08);
    padding-top: 1.2rem;
}

.accordion-body-inner p + p {
    margin-top: 0.9rem;
}

.accordion-body-inner strong {
    color: var(--primary);
}

/* Blocs de formule dans accordion */
.formula-block {
    margin: 1rem 0;
    padding: 1rem 1.25rem;
    background: rgba(14, 62, 73, 0.04);
    border-left: 3px solid var(--accent-data);
    border-radius: 0 8px 8px 0;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.88rem;
    color: var(--primary);
}

.accordion-body-inner ul {
    margin: 0.75rem 0 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.accordion-body-inner li {
    line-height: 1.6;
}

/* Grille de réductions */
.discount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.discount-card {
    background: rgba(53, 152, 192, 0.06);
    border: 1.5px solid rgba(53, 152, 192, 0.15);
    border-radius: 10px;
    padding: 1rem;
}

.discount-card .dc-label {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.35rem;
}

.discount-card .dc-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-data);
}

.discount-card .dc-note {
    font-size: 0.78rem;
    color: rgba(14, 62, 73, 0.5);
    margin-top: 0.2rem;
}
