/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://gouttiere-de-france.fr
 Description:  Thème enfant de GeneratePress — Gouttière de France
 Author:       Gouttière de France
 Author URI:   https://gouttiere-de-france.fr
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* ============================================================
   Votre CSS personnalisé commence ici
   Collez le contenu de gdf-types-gouttieres.css en dessous
   ============================================================ */
   /* ===== Charte globale Gouttière de France ===== */
:root{
  --primary:#1E5AA6;
  --primaryHover:#184C8A;
  --dark:#0A2540;
  --text:#1F2937;
  --muted:#6B7280;
  --bgSoft:#F5F7FA;
  --border:#E5E7EB;
  --radius:12px;
}

/* Texte et liens */
body{ color:var(--text); }
h1,h2,h3{ color:var(--dark); }
a{ color:var(--primary); text-decoration:none; }
a:hover{ color:var(--primaryHover); text-decoration:underline; }

/* Boutons génériques (liens/boutons) */
button,
input[type="submit"],
.wpforms-submit,
a.button{
  background:var(--primary) !important;
  color:#fff !important;
  border:none !important;
  border-radius:10px !important;
  padding:12px 18px !important;
  font-weight:600 !important;
}
button:hover,
input[type="submit"]:hover,
.wpforms-submit:hover,
a.button:hover{
  filter:brightness(0.92);
}

/* Champs WPForms */
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select{
  border:1px solid var(--border) !important;
  border-radius:10px !important;
  padding:12px !important;
}

/* Optionnel : sections “propres” via classes (quand on fera la home) */
.gdf-section{ padding:48px 0; }
.gdf-wrap{ max-width:1200px; margin:0 auto; padding:0 18px; }
.gdf-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}
.gdf-bg-soft{ background:var(--bgSoft); }

/* ===== PACK RELIEF UX (ajout) ===== */

/* 1) Hiérarchie typographique (plus de contraste) */
h1{
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
}
h2{
  letter-spacing: -0.01em;
  font-weight: 750;
  line-height: 1.2;
  margin-top: 0;
}
p{ line-height: 1.65; }

/* 2) Hero plus “impactant” (fond doux + espace) */
.gdf-hero{
  background: #F1F6FB; /* bleu très pâle */
  border-bottom: 1px solid var(--border);
}

/* 3) Cartes : volume + hover doux */
.gdf-card{
  box-shadow: 0 10px 26px rgba(10, 37, 64, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  border: 1px solid rgba(229, 231, 235, 0.9);
}
.gdf-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.10);
  border-color: rgba(30, 90, 166, 0.25);
}

/* 4) Boutons : plus “premium” */
.btn,
button,
input[type="submit"],
.wpforms-submit,
a.button{
  box-shadow: 0 10px 18px rgba(30, 90, 166, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn:hover,
button:hover,
input[type="submit"]:hover,
.wpforms-submit:hover,
a.button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30, 90, 166, 0.24);
}

/* 5) Liens : rendu plus net */
a{
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* 6) Sections : plus de rythme (espacements responsive) */
@media (max-width: 768px){
  .gdf-section{ padding: 34px 0; }
}
@media (min-width: 769px){
  .gdf-section{ padding: 56px 0; }
}

/* 7) Formulaire : meilleure sensation de qualité */
.wpforms-container .wpforms-field-label{
  font-weight: 700 !important;
  color: var(--dark) !important;
}
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select{
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.05) !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus{
  outline: none !important;
  border-color: rgba(30, 90, 166, 0.45) !important;
  box-shadow: 0 10px 24px rgba(30, 90, 166, 0.14) !important;
}

/* 8) Bande “preuves” (si on l’ajoute ensuite) */
.gdf-badges{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gdf-badge{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px 16px;
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.05);
}

/* ===== Page : Travaux de gouttière (mise en page) ===== */
.gdf-page .gdf-wrap{ max-width: 980px; } /* page éditoriale plus confortable */

.gdf-hero .gdf-wrap{
  padding-top: 10px;
  padding-bottom: 10px;
}
.gdf-kicker{
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.gdf-hero h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 44px);
}
.gdf-lead{
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 75ch;
}

.gdf-note{
  margin-top: 18px;
  border-left: 4px solid rgba(30, 90, 166, 0.35);
  background: #fff;
}
.gdf-note strong{ color: var(--dark); }

.gdf-toc .gdf-card{
  padding: 16px 16px;
}
.gdf-toc h2{
  font-size: 1.1rem;
  margin: 0 0 10px;
}
.gdf-toc ul{
  list-style: none;
  padding: 0;
  margin: 0;
}
.gdf-toc li{
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.gdf-toc li:first-child{ border-top: none; }
.gdf-toc a{
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.gdf-content h2{
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: 1.55rem;
}
.gdf-content p{
  margin: 0 0 14px;
  max-width: 80ch;
}
.gdf-content ul{
  padding-left: 18px;
  margin: 0 0 14px;
}
.gdf-content li{ margin: 6px 0; }

.gdf-split{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px){
  .gdf-split{ grid-template-columns: 1fr; }
}

.gdf-mini h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.gdf-mini p{
  margin: 0 0 10px;
  color: var(--text);
}

.gdf-cta-soft{
  border: 1px solid rgba(30, 90, 166, 0.18);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
}
.gdf-cta-soft p{ margin: 0; }

/* ===== Page devis : ajustements légers (optionnels) ===== */
.gdf-form-card{
  padding: 22px;
}

/* Espace propre entre les champs WPForms */
.wpforms-container .wpforms-field{
  margin-bottom: 14px !important;
}

/* Titre des champs plus lisible */
.wpforms-container .wpforms-field-label{
  margin-bottom: 6px !important;
}

/* Bouton : alignement + largeur raisonnable sur mobile */
.wpforms-container .wpforms-submit{
  width: 100%;
  max-width: 340px;
}

/* Sur desktop, bouton pas trop large */
@media (min-width: 769px){
  .wpforms-container .wpforms-submit{
    width: auto;
  }
}

/* ================================
   CTA – Global (Gouttière de France)
   ================================ */

/* Conteneur CTA */
.gdf-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* Bouton principal */
.gdf-cta .btn {
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* Texte rassurant sous CTA */
.gdf-cta-note {
  font-size: 14px;
  color: #555;
}

/* Variante secondaire si besoin plus tard */
.gdf-cta--secondary .btn {
  font-size: 15px;
  padding: 12px 22px;
}
/* Cards prestations avec fond bleu (CTA-like) */
.gdf-card.is-cta {
  background: var(--primary);
  color: #fff;
  border: none;
}

/* Titres dans les cards bleues */
.gdf-card.is-cta h3,
.gdf-card.is-cta strong {
  color: #fff;
}

/* Texte secondaire */
.gdf-card.is-cta p {
  color: rgba(255,255,255,0.95);
}

/* Boutons dans les cards bleues */
.gdf-card.is-cta .btn {
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.gdf-card.is-cta .btn:hover {
  filter: brightness(0.95);
}
/* ===== Galerie photos (home) ===== */
.gdf-gallery__title{
  margin: 0 0 8px;
}

.gdf-gallery__lead{
  margin: 0 0 18px;
  color: var(--muted);
}

.gdf-gallery__grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gdf-gallery__item{
  margin: 0;
}

.gdf-gallery__img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(10, 37, 64, 0.06);
}

/* Mobile */
@media (max-width: 900px){
  .gdf-gallery__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gdf-gallery__img{
    height: 160px;
  }
}
/* Hover léger et pro */
.gdf-gallery__item{
  overflow: hidden;
  border-radius: var(--radius);
}

.gdf-gallery__img{
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.gdf-gallery__item:hover .gdf-gallery__img{
  transform: scale(1.02);
  filter: brightness(1.02);
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.10);
}

.header-form-wrap .wpforms-field {
    text-align: center;
}
.header-form-wrap .wpforms-field input {
    max-width: 400px;
    margin: 0 auto;
    display: block;
}
.header-form-wrap .wpforms-submit-container {
    text-align: center;
}

/* Mini formulaire above the fold */
.header-form-wrap .wpforms-field-container {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}
.header-form-wrap .wpforms-field {
    margin-bottom: 0 !important;
    flex: 0 0 220px !important;
}
.header-form-wrap .wpforms-field label {
    display: none !important;
}
.header-form-wrap .wpforms-field input {
    height: 42px !important;
    margin: 0 !important;
}
.header-form-wrap .wpforms-submit-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.header-form-wrap .wpforms-submit {
    height: 42px !important;
    margin: 0 !important;
}

/* Formulaire above fold — pages ville */
.ville-form-wrap .wpforms-field-container {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.ville-form-wrap .wpforms-field {
    margin-bottom: 0 !important;
    flex: 0 0 250px !important;
    width: 250px !important;
    min-width: 250px !important;
}
.ville-form-wrap .wpforms-field label {
    display: none !important;
}

.ville-form-wrap .wpforms-field input {
    height: 42px !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 250px !important;
    box-sizing: border-box !important;
}
.ville-form-wrap .wpforms-submit-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ville-form-wrap .wpforms-submit {
    height: 42px !important;
    margin: 0 !important;
}

