/*
Theme Name: Divi Child ResSources
Theme URI: https://association-ressources.ch
Description: Child Theme pour Association ResSources
Author: André Cavegn
Author URI: https://association-ressources.ch
Template: Divi
Version: 1.0.0
*/

/** ************************************
  Pour le menu rechrcheche par catégorie dans la boutique en mode mobile
************************************** */

@media only screen and (max-width: 980px) {
  #boutique_menu span.mobile_menu_bar::before {
    color: white !important;
  }
}

/** ************************************
  Pour la page checkout woocommerce
************************************** */

.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Supression du order by dans la page produit woocomerce*/
.woocommerce .woocommerce-ordering {
  display: none;
}

/** ************************************
  Pour le formulaire "Bulletin d'adhésion" Contact Form 7
************************************** */

#bulletin_adhesion {
  .cf7-container {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em;
    margin-inline: 2px;

    min-inline-size: min-content;
  }

  .cf7-legend {
    border: 0;
    padding: 0;
    padding-inline: 2px;
    position: relative;
    top: -18px;
    background: white;
    width: fit-content;
  }

  /* Grille pour les colonnes (côte à côte sur desktop) */
  .cf7-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
  }

  .cf7-column {
    flex: 1;
    min-width: 250px; /* Force le passage à la ligne sur mobile */
  }

  .cf7-full {
    flex: 0 0 100%;
  }

  /* Style des champs */
  .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-radio):not(
      .wpcf7-checkbox
    ) {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fafafa;
    font-size: 18px;
    box-sizing: border-box;
    line-height: normal;
  }

  /* Style du bouton envoyer */
  .cf7-submit .wpcf7-submit {
    background-color: #0073aa;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
  }

  .cf7-submit .wpcf7-submit:hover {
    background-color: #005177;
  }

  /* Turnstile centré avant le bouton */
  .cf7-container .cf-turnstile {
    margin-bottom: 5px;
  }
  /* Style de la zone grise pour les boutons radio et checkbox  */
  .cf7-graybox {
    display: block;
    padding: 0 0 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    font-size: 16px;
    box-sizing: border-box;
  }

  /* Style ddes radios buttons */
  .wpcf7-form-control.wpcf7-radio {
    border: none;
    cursor: pointer;
  }

  /* Alignement vertical des options */
  .wpcf7-list-item {
    display: block; /* Force le retour à la ligne */
    margin: 5px 0; /* Espacement entre les lignes */
  }

  /* Alignement du texte et de la puce */
  .wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
  }

  .wpcf7-list-item input[type="radio"] {
    margin-right: 15px; /* Espace entre le bouton et le texte */
  }
}
