/* 
Theme Name: Stop Nuisibles
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Stop Nuisibles is a child theme of Hello Elementor, created by Kokmoka
Author: Kokmoka
Author URI: https://www.kokmoka.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: stopnuisibles
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.gsection_title {
    color:#112337 !important;
}

.gform_confirmation_message {
  color:#112337 !important;
}

.switch-part-pro .gfield_radio {
  position: relative;
  display: flex !important;             
  flex-direction: row !important;
  gap: 90px !important;
  align-items: center;
  justify-content: space-between;
  width: 100px;
  height: 35px;
  background: #ccc;
  border-radius: 30px;
  margin-left: 80px;
  padding: 0;
  box-sizing: border-box;
  font-weight: bold;
  color: #000;
}

.switch-part-pro .gfield_radio .gchoice:first-of-type label {
  margin-left: -110px;
}

/* Masquer les boutons radio */
.switch-part-pro input[type="radio"] {
  display: none;
}

/* Curseur coulissant */
.switch-part-pro .gfield_radio::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 6px);
  height: calc(100% - 6px);
  background: #204ce5; /* couleur du bouton */
  border-radius: 30px;
  transition: transform 0.3s ease;
  z-index: 0;
}

/* Chaque option */
.switch-part-pro .gchoice {
  flex: 1;
  text-align: center;
  z-index: 1; /* devant le curseur */
  cursor: pointer;
  display: flex;       /* centrer le texte */
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Texte actif en blanc */
.switch-part-pro input:checked + label {
  font-weight: 600;
}

/* Déplacer curseur si Professionnel */
.switch-part-pro.is-pro .gfield_radio::before {
  transform: translateX(100%);
}

.switch-mon-ma .gfield_radio {
  position: relative;
  display: flex !important;             
  flex-direction: row !important;
  gap: 90px !important;
  align-items: center;
  justify-content: space-between;
  width: 100px;
  height: 35px;
  background: #ccc;
  border-radius: 30px;
  margin-left: 80px;
  padding: 0;
  box-sizing: border-box;
  font-weight: bold;
  color: #000;
}

.switch-mon-ma .gfield_radio .gchoice:first-of-type label {
  margin-left: -110px;
}

.switch-mon-ma input[type="radio"] {
  display: none;
}

.switch-mon-ma .gfield_radio::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 6px);
  height: calc(100% - 6px);
  background: #204ce5;
  border-radius: 30px;
  transition: transform 0.3s ease;
  z-index: 0;
}

.switch-mon-ma .gchoice {
  flex: 1;
  text-align: center;
  z-index: 1; 
  cursor: pointer;
  display: flex;      
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.switch-mon-ma input:checked + label {
  font-weight: 600;
}

.switch-mon-ma.is-ma .gfield_radio::before {
  transform: translateX(100%);
}

.infestation-time .gfield_radio {
  display: flex !important;
  flex-direction: row !important;
}
@media screen and (max-width: 768px) {
	.infestation-time .gfield_radio {
		flex-wrap:wrap;
		gap:16px !important;
	}
}
/* Conteneur des radios */
.infestation-time .gfield_radio .gchoice {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

/* Masquer le vrai radio */
.infestation-time .gfield_radio input[type="radio"] {
  display: none;
}

/* Label stylé comme un bouton */
.infestation-time .gfield_radio label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: all 0.2s;
}

/* Ajouter un espace pour la croix */
.infestation-time .gfield_radio label::before {
  content: '+';
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  margin-right: 10px;
  border: 2px solid #ccc;
  border-radius: 50%;
  color: transparent;
  transition: all 0.2s;
}

/* Style au survol */
.infestation-time .gfield_radio label:hover {
  background: #f0f0f0;
}

/* Quand coché */
.infestation-time .gfield_radio input[type="radio"]:checked + label {
  border-color: #204ce5;
  background-color: #204ce5;
  color: #fff !important;
}

/* Afficher la croix quand coché */
.infestation-time .gfield_radio input[type="radio"]:checked + label::before {
  content: '✔';
  color: #fff;
  border-color: #fff;
}

.gf_two_thirds {
  width: calc(200% + 16px) !important;
  float: left;
}

/* Mobile : plein écran */
@media (max-width: 768px) {
  .gf_two_thirds {
    width: 100% !important;
    float: none;
  }
}
