/* ==========================================================================
   MAISONS & COLLECTIONS ACCORDION - EPO GOLD
   Intégré au Design System Pompe (bleu nuit / or)
   Mobile-First Responsive Design
   ========================================================================== */

/* ==========================================================================
   SECTION CONTAINER
   ========================================================================== */

.epo-maisons-section {
    background: linear-gradient(180deg,
        var(--pompe-blanc-casse) 0%,
        var(--pompe-blanc) 100%
    );
    padding: 50px 20px;
    position: relative;
}

.epo-maisons-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */

.epo-maisons-header {
    text-align: center;
    margin-bottom: 40px;
}

.epo-maisons-title {
    font-family: var(--pompe-font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--pompe-text-dark);
    line-height: 1.3;
    margin: 0 0 16px 0;
    letter-spacing: 0.01em;
}

.epo-maisons-subtitle {
    font-family: var(--pompe-font-body);
    font-size: 15px;
    font-style: italic;
    color: var(--pompe-text-dark-secondary);
    line-height: 1.6;
    margin: 0 0 28px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Decorative Divider */
.epo-maisons-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.epo-maisons-divider::before,
.epo-maisons-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pompe-gold));
}

.epo-maisons-divider::after {
    background: linear-gradient(90deg, var(--pompe-gold), transparent);
}

.epo-divider-diamond {
    color: var(--pompe-gold);
    font-size: 14px;
    line-height: 1;
}

/* ==========================================================================
   ACCORDION CONTAINER
   ========================================================================== */

.epo-maisons-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   ACCORDION ITEM
   ========================================================================== */

.epo-maisons-item {
    background: var(--pompe-blanc);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(191, 149, 63, 0.12);
}

.epo-maisons-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(191, 149, 63, 0.25);
}

.epo-maisons-item.active {
    box-shadow: 0 4px 20px rgba(13, 26, 38, 0.12);
    border-color: rgba(191, 149, 63, 0.35);
}

/* ==========================================================================
   TRIGGER BUTTON
   ========================================================================== */

.epo-maisons-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.epo-maisons-trigger:hover {
    background: rgba(191, 149, 63, 0.05);
}

.epo-maisons-trigger:focus {
    outline: none;
    background: rgba(191, 149, 63, 0.08);
}

.epo-maisons-trigger:focus-visible {
    outline: 2px solid var(--pompe-gold);
    outline-offset: -2px;
    border-radius: 12px;
}

/* ==========================================================================
   HOUSE NAME
   ========================================================================== */

.epo-maisons-name {
    flex: 1;
    font-family: var(--pompe-font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--pompe-text-dark);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   CHEVRON ICON - GOLD
   ========================================================================== */

.epo-maisons-chevron {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pompe-gold-light) 0%, var(--pompe-gold) 100%);
    border-radius: 50%;
    color: var(--pompe-fond-dark);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.epo-maisons-chevron svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Active State - Chevron Rotation */
.epo-maisons-item.active .epo-maisons-chevron svg {
    transform: rotate(180deg);
}

.epo-maisons-item.active .epo-maisons-chevron {
    background: linear-gradient(135deg, var(--pompe-fond-dark) 0%, var(--pompe-fond-medium) 100%);
    color: var(--pompe-gold);
}

/* ==========================================================================
   PANEL CONTAINER
   ========================================================================== */

.epo-maisons-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.epo-maisons-item.active .epo-maisons-panel {
    max-height: 800px;
}

/* ==========================================================================
   PANEL CONTENT
   ========================================================================== */

.epo-maisons-panel-content {
    padding: 0 20px 24px 20px;
    border-top: 1px solid rgba(191, 149, 63, 0.15);
    padding-top: 20px;
    background: linear-gradient(180deg, rgba(245, 247, 249, 0.5) 0%, transparent 100%);
}

/* Maison Introduction */
.epo-maisons-intro {
    font-family: var(--pompe-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--pompe-text-dark);
    line-height: 1.6;
    margin: 0 0 8px 0;
    font-style: italic;
}

/* Collections Header */
.epo-maisons-collections-header {
    font-family: var(--pompe-font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--pompe-text-dark-secondary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Collections List */
.epo-maisons-collections {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.epo-maisons-collections li {
    font-family: var(--pompe-font-body);
    font-size: 14px;
    color: var(--pompe-text-dark);
    line-height: 1.65;
    padding-left: 0;
    position: relative;
}

/* Diamond bullet */
.epo-maisons-bullet {
    color: var(--pompe-gold);
    margin-right: 8px;
    font-size: 10px;
    vertical-align: middle;
}

/* Collection name styling */
.epo-collection-name {
    font-weight: 600;
    color: var(--pompe-text-dark);
}

/* Collection description */
.epo-collection-desc {
    color: var(--pompe-text-dark-secondary);
}

/* ==========================================================================
   RESPONSIVE - TABLET (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .epo-maisons-section {
        padding: 70px 40px;
    }

    .epo-maisons-title {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .epo-maisons-subtitle {
        font-size: 17px;
        margin-bottom: 32px;
    }

    .epo-maisons-header {
        margin-bottom: 50px;
    }

    .epo-maisons-divider::before,
    .epo-maisons-divider::after {
        width: 80px;
    }

    .epo-maisons-accordion {
        gap: 16px;
    }

    .epo-maisons-item {
        border-radius: 16px;
    }

    .epo-maisons-trigger {
        padding: 24px 28px;
    }

    .epo-maisons-trigger:focus-visible {
        border-radius: 16px;
    }

    .epo-maisons-name {
        font-size: 19px;
    }

    .epo-maisons-chevron {
        width: 36px;
        height: 36px;
    }

    .epo-maisons-chevron svg {
        width: 20px;
        height: 20px;
    }

    .epo-maisons-panel-content {
        padding: 0 28px 28px 28px;
        padding-top: 24px;
    }

    .epo-maisons-intro {
        font-size: 16px;
    }

    .epo-maisons-collections-header {
        font-size: 13px;
    }

    .epo-maisons-collections {
        gap: 11px;
    }

    .epo-maisons-collections li {
        font-size: 15px;
    }
}

/* ==========================================================================
   RESPONSIVE - DESKTOP (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    .epo-maisons-section {
        padding: 90px 60px;
    }

    .epo-maisons-container {
        max-width: 1000px;
    }

    .epo-maisons-title {
        font-size: 40px;
    }

    .epo-maisons-subtitle {
        font-size: 18px;
    }

    .epo-maisons-divider::before,
    .epo-maisons-divider::after {
        width: 100px;
    }

    .epo-maisons-accordion {
        gap: 18px;
    }

    .epo-maisons-trigger {
        padding: 28px 32px;
    }

    .epo-maisons-name {
        font-size: 20px;
    }

    .epo-maisons-chevron {
        width: 40px;
        height: 40px;
    }

    .epo-maisons-chevron svg {
        width: 22px;
        height: 22px;
    }

    .epo-maisons-panel-content {
        padding: 0 32px 32px 32px;
        padding-top: 24px;
    }

    .epo-maisons-intro {
        font-size: 17px;
    }

    .epo-maisons-collections {
        gap: 12px;
    }

    .epo-maisons-collections li {
        font-size: 16px;
    }
}

/* ==========================================================================
   RESPONSIVE - LARGE DESKTOP (1280px+)
   ========================================================================== */

@media (min-width: 1280px) {
    .epo-maisons-container {
        max-width: 1100px;
    }

    .epo-maisons-title {
        font-size: 44px;
    }

    .epo-maisons-subtitle {
        font-size: 19px;
        max-width: 700px;
    }

    .epo-maisons-divider::before,
    .epo-maisons-divider::after {
        width: 120px;
    }

    .epo-maisons-divider {
        gap: 16px;
    }

    .epo-divider-diamond {
        font-size: 16px;
    }
}

/* ==========================================================================
   ACCESSIBILITY - REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .epo-maisons-item,
    .epo-maisons-trigger,
    .epo-maisons-chevron,
    .epo-maisons-chevron svg,
    .epo-maisons-panel {
        transition: none;
    }

    .epo-maisons-item.active .epo-maisons-panel {
        max-height: none;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .epo-maisons-section {
        background: none;
        padding: 20px 0;
    }

    .epo-maisons-item {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .epo-maisons-panel {
        max-height: none !important;
    }

    .epo-maisons-chevron {
        display: none;
    }
}
