/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



.formation-metier-title{
    color:#AE2444;
    text-align: center;
    margin-bottom:40px !important;
}

.formation-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centre horizontalement */
    gap: 20px; /* espace entre les cartes */
    margin-bottom: 40px;
}





.formation-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 colonnes max */
    max-width: 400px; /* optionnel pour éviter que ça devienne trop large */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease;
    padding: 15px;
}

.formation-card:hover {
    transform: scale(1.03);
}

/* Responsive : 2 colonnes sur tablette */
@media (max-width: 992px) {
    .formation-card {
        flex: 0 0 calc(50% - 20px);
    }
}

/* Responsive : 1 colonne sur mobile */
@media (max-width: 600px) {
    .formation-card {
        flex: 0 0 100%;
    }
}

/* Titre + image */
.formation-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: "Poppins", Sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #000000;
    line-height: 1;
}

.formation-title a {
    color: inherit;
    text-decoration: none;
}

.formation-title a:hover {
    text-decoration: underline;
}

/* Miniature dans le titre */
.formation-thumb {
    flex: 0 0 auto;
    width: 85px;
    padding:0 20px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formation-thumb img {
    max-width: 45px;
    width:100%;
    border-radius: 6px;
    object-fit: cover;
}

/* Métier + extrait */
.formation-metier {
    display: block;
    font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #AE2444;
    margin-bottom: 10px;
}

.formation-excerpt {
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    border-top:solid 1px #EEE;
    padding-top:10px;
    margin-top:10px;
}
