/**
 * VT Dufour — Global Design System
 * À inclure via functions.php ou Elementor > Custom CSS
 */

/* ── Variables ────────────────────────────────────────── */
:root {
  /* Palette bleue */
  --blue-50:  #dbeef7;
  --blue-100: #bcdded;
  --blue-200: #88bfd8;
  --blue-400: #4091b7;
  --blue-600: #17678c;
  --blue-800: #09374c;
  --blue-900: #021c28;

  /* Neutres */
  --cream:    #f8fbfd;
  --text-dark:#0d1f2b;
  --text-mid: #3a5a6e;
  --text-soft:#7a9aaa;
  --border:   #d4e8f0;

  /* Typographie */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  /* Espacements */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Rayons */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(9, 55, 76, 0.08);
  --shadow-md: 0 4px 12px rgba(9, 55, 76, 0.12);
  --shadow-lg: 0 8px 32px rgba(9, 55, 76, 0.16);
}

/* ── Reset / Base ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typographie ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--blue-800);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  color: var(--text-mid);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-400);
}

/* ── Boutons ───────────────────────────────────────────── */
.btn,
.elementor-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary,
.elementor-button.btn-primary {
  background-color: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background-color: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.btn-outline:hover {
  background-color: var(--blue-50);
}

/* ── Navigation ────────────────────────────────────────── */
.site-header,
#site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-navigation a,
.elementor-nav-menu a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-mid);
  padding: var(--space-2) var(--space-3);
  transition: color 0.2s ease;
}

.site-navigation a:hover,
.elementor-nav-menu a:hover,
.site-navigation .current-menu-item > a {
  color: var(--blue-600);
}

/* ── Sections ──────────────────────────────────────────── */
.section-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-600) 100%);
  color: #fff;
  padding: var(--space-24) 0;
}

.section-hero h1,
.section-hero p {
  color: #fff;
}

.section-light {
  background-color: var(--cream);
  padding: var(--space-16) 0;
}

.section-muted {
  background-color: var(--blue-50);
  padding: var(--space-16) 0;
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Formulaires ───────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(64, 145, 183, 0.15);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer,
#site-footer {
  background-color: var(--blue-900);
  color: var(--blue-100);
  padding: var(--space-12) 0 var(--space-6);
}

.site-footer a {
  color: var(--blue-200);
}

.site-footer a:hover {
  color: #fff;
}

/* ── Utilitaires ───────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-soft); }
.divider      { border: none; border-top: 1px solid var(--border); margin: var(--space-8) 0; }
.container-sm { max-width: 720px; margin-inline: auto; }
