/* ========= Conteneur général ========= */
.container {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 10px;
}


/*permet de reduire espace entre ligne */
.entry-content p {
  margin-bottom: 5px !important;
}

/* ========= Disposition Smart Grid ========= */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.columns.one-half {
  flex: 1 1 48%;
}

.columns.one-third {
  flex: 1 1 30%;
}
.columns.center {
  padding: 10px;
  display: block;
  margin: auto;
}

.columns.full {
  flex: 1 1 100%;
}

.selectfield {
  position: relative;
  float: right;
  margin-right: 50px;
  margin-top: 6px;
  font-weight: 400;
  font-size: initial;
}
 

/* ========= Titres de section ========= */
.section-title {
  text-align: left;
  font-size: 1.2em;
  font-weight: 700;
  color: #003f73;
  margin: 30px 0 5px;
  border-left: 4px solid #005A9C;
  padding-left: 12px;
  background: #eef5fb;
  border-radius: 4px;
}

.section-title2 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #003366;
}

/* ========= Champs de formulaire ========= */
.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-weight: 600;
  color: #005A9C;
  margin-bottom: 6px;
  position: relative;
  padding-left: 24px;
}

.field2 {
  display: block;
  font-weight: 600;
  color: #005A9C;
  margin-bottom: 6px;
  position: relative;
  padding-left: 24px;
  margin-bottom: 18px;
}



/* ========= Icônes avec pseudo-elements ========= */
label[for*="nom"]::before {
  content: "👤";
  position: absolute;
  left: 0;
}

label[for*="prenom"]::before {
  content: "🧍";
  position: absolute;
  left: 0;
}

label[for*="date"]::before,
label[for*="Debut"]::before,
label[for*="Fin"]::before {
  content: "📅";
  position: absolute;
  left: 0;
}

label[for*="Equipe"]::before {
  content: "👥";
  position: absolute;
  left: 0;
}

label[for*="Bureau"]::before,
label[for*="Pieces"]::before {
  content: "🏢";
  position: absolute;
  left: 0;
}

label[for*="Chimie"]::before {
  content: "⚗️";
  position: absolute;
  left: 0;
}

label[for*="Bio"]::before {
  content: "🧪";
  position: absolute;
  left: 0;
}

/* ========= Inputs ========= */
.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  box-sizing: border-box;
}

/* Survol des champs */
.selectfield:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  background: #f3f4f6; /* gris clair en hover */
  border-color: #cbd5e1;
}

/* Focus des champs */
.selectfield:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #3b82f6; /* bleu */
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* ========= Infos auxiliaires ========= */
.info-tip {
  font-size: 0.85em;
  color: #666;
  margin-top: 4px;
  margin-left: 24px;
}

/* ========= Checkboxes et radios ========= */
.field .wpcf7-checkbox,
.field .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.field .wpcf7-checkbox label,
.field .wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}



/* Bouton de soumission stylisé avec sélecteur spécifique Smart Grid */
.wpcf7-submit, input[type="submit"] {
  background-color: #005A9C !important;
  color: #fff !important;
  padding: 14px 28px !important;
  font-size: 1em !important;
  border: none !important;
  border-radius: 999px !important; /* arrondi max */
  cursor: pointer !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
  box-shadow: 0 4px 8px rgba(0, 90, 156, 0.2) !important;
}

/* Hover effect */
.wpcf7-submit:hover {
  background-color: #003f73 !important;
  transform: scale(1.03) !important;
}

/* ========= Responsive mobile ========= */
@media (max-width: 768px) {
  .columns.one-half,
  .columns.one-third,
  .columns.full {
    flex: 1 1 100%;
  }

  input[type="submit"] {
    float: none;
    width: 100%;
  }

  .field label {
    padding-left: 20px;
  }
}