/* Import de la police Bricolage Grotesque */
/*@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;600;800&display=swap');*/

.c31-pyramid-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* --- STRUCTURE PYRAMIDALE --- */
.c31-pyramid-item {
    width: 100%;
    position: relative;
    /* On garde 0 ou on met un tout petit espace (ex: 2px) si tu veux détacher les blocs */
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* Largeurs progressives */
.c31-pyramid-item:nth-child(1) { width: 35%; }
.c31-pyramid-item:nth-child(2) { width: 50%; }
.c31-pyramid-item:nth-child(3) { width: 65%; }
.c31-pyramid-item:nth-child(4) { width: 80%; }
.c31-pyramid-item:nth-child(5) { width: 95%; }

/* --- LE HEADER (Barre colorée) --- */
.c31-pyramid-header {
    padding: 18px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;

    /* MODIFICATION ICI : On arrondit tout le monde par défaut */
    border-radius: 16px;
}

/* Hover effect */
.c31-pyramid-header:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    z-index: 20 !important;
}

/* TYPOGRAPHIE */
.c31-pyramid-title {
    margin: 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.c31-pyramid-subtitle {
    margin: 4px 0 0 0;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ICÔNE */
.c31-pyramid-icon {
    font-size: 14px;
    margin-left: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- LE CONTENU (Caché par défaut) --- */
.c31-pyramid-body {
    display: none;
    background: #fff;
    border-left: 3px solid;
    border-right: 3px solid;
    border-bottom: 3px solid;

    /* MODIFICATION ICI : Le contenu a toujours le bas arrondi */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.c31-pyramid-body-inner {
    padding: 30px;
    text-align: left;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.c31-pyramid-body-inner h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: #633B19;
    margin-bottom: 10px;
}

.c31-pyramid-body-inner ul {
    padding-left: 20px;
}
.c31-pyramid-body-inner ul li {
    margin-bottom: 5px;
}

/* --- ETAT ACTIF (Géré par JS) --- */
.c31-pyramid-item.is-active {
    width: 100% !important;
    z-index: 100 !important;
    margin: 15px 0;
}

/* MODIFICATION ICI : Quand c'est ouvert, on enlève l'arrondi du bas du header pour coller au contenu */
.c31-pyramid-item.is-active .c31-pyramid-header {
    border-radius: 16px 16px 0 0 !important;
}

.c31-pyramid-item.is-active .c31-pyramid-icon {
    transform: rotate(180deg);
}

/* Responsive Mobile */
@media (max-width: 767px) {
    .c31-pyramid-item { width: 100% !important; margin-bottom: 5px; }
    /* Sur mobile aussi, tout le monde est arrondi */
    .c31-pyramid-header { border-radius: 12px; }
    .c31-pyramid-item.is-active .c31-pyramid-header { border-radius: 12px 12px 0 0 !important; }
    .c31-pyramid-body { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
}