/* Classes pour Gravity Forms */
.form-row-item {
    width: 48% !important;
    display: inline-block !important;
    margin-right: 2% !important;
}

.gform_wrapper .form-group {
    margin-bottom: 1.5rem !important;
}

.gform_wrapper input[type="text"], 
.gform_wrapper input[type="email"], 
.gform_wrapper input[type="tel"], 
.gform_wrapper input[type="url"], 
.gform_wrapper select, 
.gform_wrapper textarea {
    width: 100% !important;
    padding: 1rem !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    background: #f8f9fa !important;
}

.gform_wrapper input:focus, 
.gform_wrapper select:focus, 
.gform_wrapper textarea:focus {
    border-color: #667eea !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Style professionnel pour le bouton Gravity Forms ID 12 uniquement */
#gform_wrapper_12 .gform_footer .gform_button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    display: block;
    margin: 20px auto;
}

/* === CORRECTION DES ERREURS DE VALIDATION === */

/* Message d'erreur principal */
#gform_wrapper_12 .gform_validation_errors {
    background: #fee;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 30px 0;
    color: #c0392b;
    font-weight: 500;
    position: relative;
    z-index: 10;
    clear: both;
}

/* CORRECTION : Titre du message d'erreur en H3 */
#gform_wrapper_12 .gform_validation_errors h3 {
    color: #c0392b !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
}

/* Aussi pour H2 au cas où */
#gform_wrapper_12 .gform_validation_errors h2 {
    color: #c0392b !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
}

/* Liste des erreurs */
#gform_wrapper_12 .gform_validation_errors ol {
    margin: 0;
    padding-left: 20px;
}

#gform_wrapper_12 .gform_validation_errors li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Champs avec erreurs */
#gform_wrapper_12 .gfield_error {
    background-color: #fef5f5 !important;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
}

#gform_wrapper_12 .gfield_error input,
#gform_wrapper_12 .gfield_error textarea,
#gform_wrapper_12 .gfield_error select {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

/* Messages d'erreur individuels */
#gform_wrapper_12 .gfield_validation_message {
    color: #e74c3c !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-top: 5px !important;
    display: block !important;
    clear: both !important;
}

/* Icône d'erreur */
#gform_wrapper_12 .gform_validation_errors::before {
    content: "⚠️";
    font-size: 20px;
    margin-right: 10px;
    float: left;
}

/* S'assurer que le formulaire a un espacement correct */
#gform_wrapper_12 {
    margin-top: 30px;
    clear: both;
    position: relative;
}

/* Empêcher la superposition */
#gform_wrapper_12 .gform_heading {
    margin-bottom: 20px;
    clear: both;
}

#gform_wrapper_12 .gform_body {
    clear: both;
    margin-top: 20px;
}

/* Effet hover */
#gform_wrapper_12 .gform_footer .gform_button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Effet active/click */
#gform_wrapper_12 .gform_footer .gform_button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Animation au focus */
#gform_wrapper_12 .gform_footer .gform_button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Effet de brillance au survol */
#gform_wrapper_12 .gform_footer .gform_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

#gform_wrapper_12 .gform_footer .gform_button:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    #gform_wrapper_12 .gform_footer .gform_button {
        min-width: 100%;
        font-size: 16px;
        padding: 14px 30px;
    }
}

/* Alternative - Style plus sobre mais premium */
#gform_wrapper_12 .gform_footer .gform_button.style-premium {
    background: #2c3e50;
    border: 2px solid #3498db;
    color: #3498db;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.5px;
}

#gform_wrapper_12 .gform_footer .gform_button.style-premium:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Style urgence/action */
#gform_wrapper_12 .gform_footer .gform_button.style-urgence {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(238, 90, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(238, 90, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(238, 90, 36, 0);
    }
}

/* Cacher l'image produit et récupérer l'espace */
.single-product .woocommerce-product-gallery {
    display: none !important;
}

/* Faire que les infos produit prennent toute la largeur */
.single-product .summary.entry-summary {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Si le container principal a une grille, on l'ajuste */
.single-product .product {
    display: block !important;
}

/* Pour certains thèmes Divi qui utilisent flexbox */
.single-product .et_pb_row {
    flex-wrap: nowrap !important;
}

.single-product .et_pb_column {
    width: 100% !important;
}