/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 3.4.5
*/

/* Grille principale */
.ma-grille-produits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Cartes produits */
.produit-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    height: 100%;
    /* Force toutes les cartes à la même hauteur */
}

.produit-card:hover {
    transform: translateY(-5px);
}

/* HARMONISATION DES IMAGES */
.produit-img {
    width: 100%;
    height: 220px;
    /* Hauteur fixe pour toutes les images */
    object-fit: contain;
    /* L'image ne sera jamais déformée */
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px;
}

/* Titres harmonisés */
.produit-titre {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 10px 0;
    color: #333;
    min-height: 45px;
    /* Aligne les prix même si le titre fait 1 ou 2 lignes */
    display: flex;
    align-items: center;
    justify-content: center;
}

.produit-prix {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6600;
    /* Ton orange */
    margin-bottom: 15px;
}

.btn-devis {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    border-radius: 6px;
    font-weight: bold;
}

/* Styles pour les PROMOS */
.promo-border {
    border: 2px solid #ff0000 !important;
}

.badge-promo {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff0000;
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

#site-header {
    display: none;
}

/* Container de la grille dans l'accordéon */
.grille-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Style des cartes */
.section-card {
    text-decoration: none !important;
    text-align: center;
    background: #f1f1f1;
    /* Fond gris clair comme sur ton image */
    border-radius: 15px;
    padding-bottom: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

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

.section-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.section-card span {
    display: block;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

/* Style global du formulaire Agrediam */
.form-agrediam {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 10px;
}

.form-agrediam label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

/* Champs de saisie */
.wpcf7-form-control {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #eee !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease;
}

.wpcf7-form-control:focus {
    border-color: #ff6600 !important;
    /* Ton orange */
    outline: none;
}

/* Bouton Envoyer */
.form-submit {
    text-align: right;
    margin-top: 20px;
}

.wpcf7-submit {
    background-color: #333 !important;
    /* Noir pro */
    color: #fff !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.wpcf7-submit:hover {
    background-color: #ff6600 !important;
    /* Devient orange au survol */
}

/* Adaptation Mobile */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }


}

@media (max-width: 610px) {


    .produit-card {
        width: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}