﻿/* ===== PANEL ===== */
mypanel {
    display: block;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    font-family: Arial, sans-serif;
    width:100%;
}

    /* ===== HEADER ===== */
    mypanel > panelheader {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.2rem;
        cursor: pointer;
        user-select: none;
        background: linear-gradient(#f9f9f9, #eeeeee);
    }

        /* Hover */
        mypanel > panelheader:hover {
            background: linear-gradient(#f0f0f0, #e5e5e5);
        }

/* ===== CHEVRON ===== */
panelcollapse {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    panelcollapse i {
        transition: transform 0.3s ease;
        color: #555;
    }

/* ===== TITLE ===== */
paneltitle {
    font-weight: 600;
    flex: 1;
    color: #333;
}

/* ===== CONTENT ===== */
mypanel > panelcontainer {
    overflow: hidden;
    max-height: 1000px; /* hauteur max large */
    opacity: 1;
    padding: 0.5rem;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    display:flex
}

/* ===== COLLAPSED STATE ===== */
mypanel.collapsed > panelcontainer {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Chevron tourné à 90° */
mypanel.collapsed panelcollapse i {
    transform: rotate(-90deg);
}
