/*
Theme Name: Enfold Child
Description: Child Theme optimisé pour le thème Enfold. 
Version: 1.1
Author: Cover Immo
Template: enfold
*/

/* ------------------------------
   Variables globales
------------------------------ */
:root {
  --color-primary: #2637a2;
  --color-text: #424242;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --radius-button: 35px;
}

/* ------------------------------
   Typographie de base
------------------------------ */
html { font-size: 16px; }

body {
  background: #fff;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
}

/* ------------------------------
   Titres
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h4 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h5 { font-size: 1.5rem; }
h6 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 15px;
}

/* ------------------------------
   Texte complémentaire
------------------------------ */
small, .text_small {
  font-size: 0.85rem;
}

/* ------------------------------
   Boutons Enfold
------------------------------ */
.avia-button, .av_button {
  border-radius: var(--radius-button);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Hover plus doux */
.avia-button:hover, .av_button:hover {
  opacity: 0.9;
}

/* ------------------------------
   Responsive base
------------------------------ */
@media (max-width: 767px) {
  body { font-size: 0.95rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
}

body .gform_wrapper .gform_button {
  background-color: #2637a2 !important;
  color: #fff;
  border-radius: 35px !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600 !important;
  padding: 12px 30px !important;
  border: none !important;
  text-transform: none !important;
  transition: all 0.2s ease;
}

body .gform_wrapper .gform_button:hover {
  background-color: #1f2e85;
}

/* Amélioration zones tactiles pour icônes sociaux footer */
#custom_html-7 .textwidget a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px !important;          /* agrandit la zone tactile */
    min-width: 44px !important;        /* proche du recommandé Google */
    min-height: 44px !important;
}

/* Optionnel : ajustement spécifique mobile */
@media only screen and (max-width: 767px) {
    #custom_html-7 .textwidget a {
        padding: 2px;
        margin: 2px;
    }
}

/*
gf_invisible
*/
.gform_wrapper .gf_invisible {
    left: -9999px;
    position: absolute;
    visibility: hidden;
}