@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/*
Theme Name: Divi-child-final
Template: Divi
Author: Maître Tony
Version: 1.8
*/

/* === BASE === */
body, h1, h2, h3, h4, h5, h6, p, a, li, span, div,
input, textarea, select {
  font-family: 'Montserrat', sans-serif !important;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

*:focus {
  outline: 2px solid #0B71C3;
  outline-offset: 2px;
}

.et_pb_menu a:focus {
  outline: none;
  outline-offset: 0;
  box-shadow: none;
}

.et_pb_row {
  margin-left: auto;
  margin-right: auto;
}

strong, b {
  font-weight: 600;
}

/* === MENU DÉROULANT (desktop) === */
@media (min-width: 981px) {
  .et_pb_menu .menu-item ul.sub-menu {
    min-width: 350px;
    padding: 10px 0;
    background-color: #0B71C3;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }

  .et_pb_menu .menu-item ul.sub-menu li {
    width: 100%;
  }

  .et_pb_menu .menu-item ul.sub-menu li a {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff !important;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
  }

  .et_pb_menu .menu-item ul.sub-menu li a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
  }

  .et_pb_menu .menu-item ul.sub-menu li.current-menu-item > a,
  .et_pb_menu .menu-item ul.sub-menu li.current_page_item > a {
    background: none !important;
    color: #ffffff !important;
  }

  .et_pb_menu .menu-item ul.sub-menu li.current-menu-item > a:hover,
  .et_pb_menu .menu-item ul.sub-menu li.current_page_item > a:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
  }
}

/* === MENU MOBILE DIVI === */
@media (max-width: 980px) {
  .et_mobile_menu {
    background-color: #0B71C3 !important;
  }

  .et_mobile_menu li a {
    color: #ffffff !important;
    font-size: 18px;
    padding: 14px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    white-space: normal;
    word-break: break-word;
  }

  .et_mobile_menu li a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #FFD700 !important;
  }

  .et_mobile_menu li.current-menu-item > a,
  .et_mobile_menu li.current_page_item > a {
    background: none !important;
    color: #ffffff !important;
  }

  .et_mobile_menu li.current-menu-item > a:hover,
  .et_mobile_menu li.current_page_item > a:hover {
    color: #FFD700 !important;
  }
}
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before {
  font-family: 'dashicons' !important;
}

/* =================================================================
   FORMULAIRE GRAVITY FORMS - STYLE MODERNE ET PROFESSIONNEL
   ================================================================= */

/* POLICE ET COULEUR GLOBALE */
body .gform_wrapper {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #ffffff;
  max-width: 100%;
  margin: 0 auto;
}

/* CONTENEUR DU FORMULAIRE */
body .gform_wrapper .gform_body {
  background: transparent;
}

/* LABELS BLANCS & UNIFORMES - SPÉCIFICITÉ MAXIMALE */
body .gform_wrapper legend.gfield_label,
body .gform_wrapper .gfield_label,
body .gform_wrapper .gfield .gfield_label {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  margin-bottom: 8px;
  display: block;
  line-height: 1.4;
}

/* SOUS-LABELS DES CHAMPS COMPOSÉS EN BLANC */
body .gform_wrapper .name_first_label,
body .gform_wrapper .name_last_label,
body .gform_wrapper .address_line_1_label,
body .gform_wrapper .address_line_2_label,
body .gform_wrapper .address_city_label,
body .gform_wrapper .address_state_label,
body .gform_wrapper .address_country_label,
body .gform_wrapper .address_zip_label,
body .gform_wrapper .ginput_container label {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}

/* ASTÉRISQUE ROUGE SEULEMENT - SOLUTION PROPRE */
body .gform_wrapper .gfield_label .gfield_required {
  color: #ff0000 !important;
  font-size: 18px !important;
  margin-left: 4px;
  font-weight: bold !important;
}

/* CACHER COMPLÈTEMENT LE TEXTE "(Nécessaire)" */
body .gform_wrapper .gfield_label .gfield_required_text,
body .gform_wrapper .gfield_required_text {
  display: none !important;
  visibility: hidden !important;
}

/* REMPLACER PAR UNE ASTÉRISQUE ROUGE */
body .gform_wrapper .gfield_contains_required .gfield_label:after {
  content: " *";
  color: #ff0000 !important;
  font-weight: bold;
  font-size: 18px;
  margin-left: 4px;
}

/* CHAMPS DE SAISIE MODERNES ET UNIFORMES */
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="date"],
body .gform_wrapper input[type="url"],
body .gform_wrapper textarea,
body .gform_wrapper select {
  background-color: #ffffff;
  color: #333333;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 16px;
  width: 100%;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
  min-height: 52px;
}

/* FOCUS STATE POUR LES CHAMPS */
body .gform_wrapper input[type="text"]:focus,
body .gform_wrapper input[type="email"]:focus,
body .gform_wrapper input[type="tel"]:focus,
body .gform_wrapper input[type="number"]:focus,
body .gform_wrapper input[type="date"]:focus,
body .gform_wrapper input[type="url"]:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
  outline: none;
  border-color: #8000ff;
  box-shadow: 0 0 0 3px rgba(128, 0, 255, 0.1);
}

/* TEXTAREA SPÉCIFIQUE */
body .gform_wrapper textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* SELECT STYLISÉ (CORRECTION DU BUG CANADA) */
body .gform_wrapper select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 45px;
}

/* PLACEHOLDER */
body .gform_wrapper ::placeholder {
  color: #999999;
  font-size: 16px;
  opacity: 1;
}

/* GESTION DES COLONNES */
body .gform_wrapper .gfield {
  margin-bottom: 25px;
}

/* CHAMPS EN LIGNE (ex: prénom/nom) */
body .gform_wrapper .gfield.gf_left_half,
body .gform_wrapper .gfield.gf_right_half {
  margin-right: 0;
}

/* PRIX ET PRODUITS */
body .gform_wrapper .ginput_product_price,
body .gform_wrapper .gfield_price,
body .gform_wrapper .ginput_product_price_label {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 500;
}

/* DESCRIPTIONS ET TEXTES */
body .gform_wrapper .gfield_description,
body .gform_wrapper .gfield_html,
body .gform_wrapper .gfield_html p,
body .gform_wrapper p,
body .gform_wrapper li {
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* TEXTE IMPORTANT */
body .gform_wrapper .gfield_description strong,
body .gform_wrapper .gfield_html strong {
  color: #ffffff !important;
  font-weight: 600;
}

/* CONSENTEMENT ET CHECKBOXES */
body .gform_wrapper .gfield_checkbox label,
body .gform_wrapper .gfield_radio label,
body .gform_wrapper .gchoice label {
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  margin-left: 8px;
}

body .gform_wrapper input[type="checkbox"],
body .gform_wrapper input[type="radio"] {
  margin: 0 8px 0 0;
  transform: scale(1.2);
}

/* BOUTON D'ENVOI */
body .gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper .gform_page_footer input[type="submit"] {
  background: linear-gradient(45deg, #8000ff, #d100ff);
  color: white;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body .gform_wrapper .gform_footer input[type="submit"]:hover,
body .gform_wrapper .gform_page_footer input[type="submit"]:hover {
  background: linear-gradient(45deg, #6600cc, #b800cc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 0, 255, 0.3);
}

/* MESSAGES D'ERREUR */
body .gform_wrapper .gfield_error .gfield_label {
  color: #ff6b6b !important;
}

body .gform_wrapper .gfield_error input,
body .gform_wrapper .gfield_error textarea,
body .gform_wrapper .gfield_error select {
  border-color: #ff6b6b !important;
}

body .gform_wrapper .validation_error {
  color: #ff6b6b !important;
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  body .gform_wrapper {
    font-size: 16px;
  }
  
  body .gform_wrapper .gfield_label {
    font-size: 16px;
  }
  
  body .gform_wrapper input[type="text"],
  body .gform_wrapper input[type="email"],
  body .gform_wrapper input[type="tel"],
  body .gform_wrapper input[type="number"],
  body .gform_wrapper input[type="date"],
  body .gform_wrapper input[type="url"],
  body .gform_wrapper textarea,
  body .gform_wrapper select {
    font-size: 16px;
    padding: 14px 16px;
    min-height: 48px;
  }
  
  body .gform_wrapper .gform_footer input[type="submit"] {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
  
  body .gform_wrapper .gfield_description,
  body .gform_wrapper .gfield_html,
  body .gform_wrapper p {
    font-size: 15px;
  }
  
  /* Colonnes en pleine largeur sur mobile */
  body .gform_wrapper .gfield.gf_left_half,
  body .gform_wrapper .gfield.gf_right_half {
    width: 100% !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  body .gform_wrapper {
    font-size: 15px;
  }
  
  body .gform_wrapper input[type="text"],
  body .gform_wrapper input[type="email"],
  body .gform_wrapper input[type="tel"],
  body .gform_wrapper input[type="number"],
  body .gform_wrapper input[type="date"],
  body .gform_wrapper input[type="url"],
  body .gform_wrapper textarea,
  body .gform_wrapper select {
    font-size: 15px;
    padding: 12px 14px;
  }
}

/* AMÉLIORATION DE L'ACCESSIBILITÉ */
body .gform_wrapper input:focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
  outline: 2px solid #8000ff;
  outline-offset: 2px;
}

/* ESPACEMENT ENTRE LES CHAMPS */
body .gform_wrapper .gfield {
  margin-bottom: 20px;
}

/* DERNIER CHAMP SANS MARGE */
body .gform_wrapper .gfield:last-child {
  margin-bottom: 0;
}
/* Background animé */
  .animated-bg {
    background: linear-gradient(-60deg, #1B0D7B, #E52336, #A5256F);
    background-size: 200% 200%;
    animation: smoothShift 20s ease-in-out infinite;
  }

  @keyframes smoothShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
/* animated-fabrik */
.animated-fabrik {
  display: inline-block;
  animation: colorChange 3s infinite;
  font-weight: bold;
}

@keyframes colorChange {
  0% { color: #000000; }
  25% { color: #e91e63; }
  50% { color: #3f51b5; }
  75% { color: #4caf50; }
  100% { color: #000000; }
}

