/*
 Theme Name: adhenia-formation-v3
 Theme URI: https://www.adhenia-formation.fr/
 Description: Adhenia Formation Elementor IRCF
 Author: IRCF
 Author URI: https://www.ircf.fr
 Template: hello-elementor
 Version: 1.0
 Text Domain: adhenia-formation-elementor
 License: GNU General Public License v3 or later.
 License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
#ttcont {
    padding: 30px !important;
    background: #fff !important;
    color: #333 !important;
    line-height: 2 !important;
    -webkit-box-shadow: 5px 5px 30px 0px rgba(204, 204, 204, 1) !important;
    -moz-box-shadow: 5px 5px 30px 0px rgba(204, 204, 204, 1) !important;
    box-shadow: 5px 5px 30px 0px rgba(204, 204, 204, 1) !important;
    font-style: italic !important;
}

.ircf-container {
    padding: 20px;
    border: solid 1px transparent !important;
    border-radius: 60px;
    background-color: #00384c;
    text-align: center;
}

#ircf-terms-child-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 2vw;
}
.term-childs {
    display: inline-block;
    transition: transform 0.3s ease;
}

.term-childs:hover {
    transform: scale(1.05);
}

#ircf-terms-child-nav > a {
    padding: 5px 10px;
    border: solid 1px transparent;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    background-color: #4ebab9;
}

#ircf-terms-child-nav > a:hover {
    background-color: #13aa9f;
}

/*=== Type de post : Session ===*/
/*== Boucle : liste ==*/

.session-date {
    font-weight: 600;
    font-size: 16px;
    color: #575756;
}

.e-loop-item > .elementor-element-deb8014 > div {
    padding: 30px;
}

.formation-duration {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

/*== Article unique : Fiche formation ==*/
.last-update-date {
    color: white;
}

.product_id {
    color: white;
}

.lesson-metadata {
    margin: 20px 0px;
    display: flex;
    flex-direction: row;
    color: white;
    gap: 15px;
}

.lesson-metadata span {
    border: solid 1px #13aa9f;
    border-radius: 10px;
    padding: 5px;
    font-weight: 600;
    font-size: 14px;
    background-color: #13aa9f;
}

.formation-duration {
    font-weight: 400;
    color: #575756;
    text-align: center;
}

/*== Article unique : PDF ==*/
.pdf-content {
    font-size: 14px;
}

.training-information {
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
    border: solid #f4f4f4;
    border-width: 0px 0px 2px 0px;
}

.training-information h5 {
    color: #e47243;
}

.trainer-type h5 {
    color: #e47243;
}

.required {
    padding: 15px;
}

.duration-training,
.formation-type,
.trainer-type,
.maximum-student,
.price-inter,
.price-intra {
    padding: 20px;
    border: 1px solid #00384c;
    border-radius: 10px;
}

.accessibility,
.skill-developed,
.required {
    padding: 15px;
    border: solid #f4f4f4;
    border-width: 0px 0px 2px 0px;
}

.accessibility {
    margin-top: 10px;
}

.price-inter,
.price-intra {
    margin-top: 10px;
    margin: 30px;
    padding: 20px;
    border: 1px solid #00384c;
    border-radius: 10px;
    width: 30%;
}

.price-inter > p {
    color: #e47243;
    font-size: 25px;
    font-weight: 800;
}

.price-intra > p {
    color: #e47243;
    font-size: 25px;
    font-weight: 800;
}

.price-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

/**mega menu**/

.liste-terms {
    display: flex; /* ✅ remplacement de grid */
    flex-wrap: wrap; /* permet plusieurs lignes */
    gap: 15px;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 15px;
    padding: 0;
    box-sizing: border-box;
}

/* --- Cartes principales --- */
.term-groupe {
    flex: 1 1 240px;
    max-width: 300px;
    border-radius: 10px;
    background: #f7f7f7;
    overflow: hidden;
}

/*Sessions archive*/
#sessions-head {
    background-color: #013a4d !important;
    color: white !important;
    font-weight: 400 !important;
    border-radius: 30px !important;
    margin-top: 20px !important;
}

/* --- Titre (summary) --- */
.term-groupe > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #111;
    padding: 10px 14px;
    list-style: none;
    outline: none;
    user-select: none;
    transition: background 0.2s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    background: white;
}

.term-groupe > summary::-webkit-details-marker {
    display: none;
}

.term-groupe > summary::after {
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    content: "›";
    float: right;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    color: #11607c;
    font-weight: bold;
}

.all-formation > summary::after {
    content: "" !important;
}

.term-groupe[open] > summary::after {
    transform: rotate(270deg);
}

/* --- Contenu déroulant --- */
.child-list {
    padding: 8px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.child-list > a {
    text-decoration: none;
}

.child-list > a > p {
    margin: 0;
    padding: 2px 0;
    color: #00384c;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.child-list > a > p:hover {
    color: #11607c;
}

/* --- Animation ouverture --- */
.term-groupe[open] .child-list {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .term-groupe {
        flex: 1 1 100%;
        max-width: none;
    }
    .term-groupe > summary {
        font-size: 13.5px;
        padding: 10px 12px;
    }
    .child-list {
        padding: 8px 12px 10px;
    }
    .elementor-kit-4209 h3 {
        font-size: 15px !important;
        font-weight: 500 !important;
    }
}

.fiche-formation-link {
    font-size: 12px !important;
    color: #575756 !important;
    font-weight: 500 !important;
}

.fiche-formation-link:hover {
    color: #e47243 !important;
}

.button-cookie {
    padding: 10px !important;
    font-size: 13px !important;
    margin: 0px !important;
    border: none !important;
}

.button-cookie:hover {
    background-color: #e47243 !important;
}
