/*
Theme Name: Twenty Twenty-Five Child
Theme URI: 
Description: Twenty Twenty-Five Child Theme
Author: Atelier1170
Author URI: https://atelier1170.fr/
Template: twentytwentyfive
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twenty-twenty-five-child
Tags: 
*/

.ramier-form-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  gap: 10px !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea
{
    background-color: #fff;
    color: #000000 !important;
    font-size:22px;
    width: 100%;
    height: 40px;
    border-radius : 10px;
}

.wpcf7 textarea {
  height: 80px;
}
  
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
{
    background-color: #fff;
    color: #000000 !important;
    font-size:22px;
    width: 50%;
    height: 40px;
    border-radius : 10px;
}

.wpcf7 input[type="submit"],
.wpcf7 input[type="button"] { 
  background-color:#2f5696;
  width:100%;
  text-align: center;
  text-transform: uppercase;
  border-radius : 10px;
  width: 100%;
  height: 40px;
}

.ramier-checkbox-col-wrap .wpcf7-checkbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2em;
}

.ramier-checkbox-col-wrap .wpcf7-list-item {
  margin-bottom: 0.5em;
}

/* Forcer l'ordre d'affichage vertical (4 en colonne gauche, puis 4 en colonne droite) */
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(2) { grid-column: 1; grid-row: 2; }
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(3) { grid-column: 1; grid-row: 3; }
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(4) { grid-column: 1; grid-row: 4; }

.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(5) { grid-column: 2; grid-row: 1; }
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(6) { grid-column: 2; grid-row: 2; }
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(7) { grid-column: 2; grid-row: 3; }
.ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(8) { grid-column: 2; grid-row: 4; }
  
 
@media screen and (max-width: 600px) {
  .ramier-form-row {
  display: flex;
  flex-direction: column;
  }
  
  .ramier-checkbox-col-wrap .wpcf7-checkbox {
    display: block;
  }

  .ramier-checkbox-col-wrap .wpcf7-list-item {
    display: block;
    margin-bottom: 0.75em;
  }

  /* Supprimer la grille forcée */
  .ramier-checkbox-col-wrap .wpcf7-list-item:nth-child(n) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
	
