/*
Theme Name: Divi Child 02
*/

/* ===============================
   1. IMPORT GOOGLE FONTS
================================= */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ===============================
   2. VARIABLES GLOBALES
================================= */
:root {
  /* Couleurs */
  --folk-brown: #7B4B2A;
  --folk-brown-dark: #4A2C1A;
  --folk-cream: #F2E8D8;
  --folk-black: #111111;
  --folk-offwhite: #FAF7F2;

  /* Typographie */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Source Sans 3', sans-serif;
}

/* ===============================
   3. BASE TYPOGRAPHIE
================================= */
html { font-size: 18px; }

body {
  font-family: var(--font-body);
  background-color: var(--folk-offwhite);
  color: var(--folk-black);
  font-size: 1rem;
  line-height: 1.7;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--folk-brown-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.55rem; }

p { line-height: 1.7; }

/* Forcer taille texte Divi */
.et_pb_text p,
.et_pb_blurb_description p,
.et_pb_toggle_content,
.et_pb_tab_content {
  font-size: 1rem;
}

/* ===============================
   4. HEADER & MENU
================================= */
#main-header {
  background-color: var(--folk-offwhite);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#top-menu li a {
  color: var(--folk-black);
  font-weight: 500;
}

#top-menu li a:hover {
  color: var(--folk-brown);
}

/* ===============================
   5. HERO
================================= */
.hero-overlay {
  background-color: rgba(17, 17, 17, 0.55);
}

.hero-title,
.hero-subtitle { color: var(--folk-cream); }

.hero-subtitle { opacity: 0.9; }

/* ===============================
   6. BOUTONS
================================= */
.et_pb_button {
  background-color: var(--folk-brown);
  color: var(--folk-cream);
  border: none;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.et_pb_button:hover {
  background-color: var(--folk-brown-dark);
  color: #ffffff;
}

/* ===============================
   7. SECTIONS – ALTERNANCE FINALE
================================= */
.section-light {
  background-color: var(--folk-offwhite);
  color: var(--folk-black);
}

.section-warm {
  background-color: var(--folk-cream);
  color: var(--folk-brown-dark);
}

.section-dark {
  background-color: var(--folk-brown-dark);
  color: var(--folk-cream);
}

.section-dark h2,
.section-dark h3 {
  color: var(--folk-cream);
}

/* Mapping recommandé homepage :
   Hero -> hero-section (overlay)
   Événements -> section-warm
   Association -> section-light
   Immersion -> section-dark
   Devenir membre -> section-warm
   Agenda régional -> section-light
   Nous contacter -> section-warm
   Partenaires -> section-light
   Footer -> section-dark
*/

/* ===============================
   8. CARTES & ÉLÉMENTS FOLK
================================= */
.folk-card {
  background-color: var(--folk-cream);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.folk-card:hover { transform: translateY(-5px); }

.folk-artist {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2em;
}

.folk-date {
  letter-spacing: 2px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--folk-brown);
}

.folk-divider {
  width: 60px;
  height: 3px;
  background-color: var(--folk-brown);
  margin: 15px 0 25px 0;
}

/* ===============================
   9. LIENS
================================= */
a { color: var(--folk-brown); transition: 0.3s; }
a:hover { color: var(--folk-brown-dark); }

/* ===============================
   10. RESPONSIVE
================================= */
@media (max-width: 980px) {
  html { font-size: 17px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}

@media (max-width: 767px) {
  html { font-size: 16px; }
}

/* ===============================
   11. SHORTCODES / CODE
================================= */
code {
  font-family: var(--font-body);
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* ===============================
   12. FORMULAIRES - STYLE FOLK
================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--folk-black);
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--folk-brown);
  box-shadow: 0 0 0 2px rgba(123,75,42,0.15);
}

label {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  color: var(--folk-brown-dark);
}

input[type="submit"],
button[type="submit"] {
  background-color: var(--folk-brown);
  color: var(--folk-cream);
  border: none;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--folk-brown-dark);
}

.wpcf7-not-valid-tip {
  color: #b00020;
  font-size: 0.9rem;
}

.wpcf7-response-output {
  border-radius: 6px;
  padding: 12px;
  font-size: 0.95rem;
}

.wpcf7-mail-sent-ok {
  border: 1px solid var(--folk-brown);
  background-color: var(--folk-cream);
  color: var(--folk-brown-dark);
}

.section-dark input,
.section-dark textarea,
.section-dark select { background-color: #fff; }