/* ============================================
   Profile 06 — Soft Pastel
   Soft, friendly, accessible
   ============================================ */

:root {
  --primary: #A78BFA;
  --primary-dark: #7C3AED;
  --accent: #FCD34D;
  --secondary: #86EFAC;
  --surface: #FFFFFF;
  --surface-alt: #F5F3FF;
  --surface-warm: #FEFCE8;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E9D5FF;
  --gradient: linear-gradient(135deg, #A78BFA 0%, #C4B5FD 50%, #FCD34D 100%);
  --gradient-soft: linear-gradient(135deg, #F5F3FF 0%, #FEFCE8 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
}

h1, h2, h3 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 24px; }
h3 { font-size: 1.375rem; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Header — light, rounded */
.site-header {
  padding: 24px 0;
  background: var(--surface);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.logo::before { content: "✿"; color: var(--primary); font-size: 1.5rem; }
.logo span { color: var(--primary); }
.site-header nav ul { display: flex; gap: 32px; list-style: none; align-items: center; }
.site-header nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--primary); }
.btn-nav {
  background: var(--gradient);
  color: white !important;
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.4);
}
.btn-nav:hover { transform: translateY(-1px); }

/* Hero — gradient soft + blob */
.hero {
  padding: 96px 0 80px;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.hero::before {
  top: -150px; left: -100px;
  width: 400px; height: 400px;
  background: var(--primary);
}
.hero::after {
  bottom: -150px; right: -100px;
  width: 350px; height: 350px;
  background: var(--accent);
}
.hero .container { position: relative; max-width: 880px; text-align: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 36px;
}

.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(167, 139, 250, 0.5); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}
.btn-secondary:hover { background: var(--surface-alt); }

/* Sections */
section { padding: 104px 0; }
section.alt { background: var(--surface-alt); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; margin-top: 16px; }

/* Cards — pastel rounded */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border-radius: 28px;
  padding: 36px 32px;
  border: 2px solid var(--border);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover::before { opacity: 0.25; }
.card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 12px 32px rgba(167, 139, 250, 0.18); }
.card > * { position: relative; z-index: 1; }
.card .icon {
  width: 64px; height: 64px;
  background: var(--gradient);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: white;
  margin-bottom: 20px;
}
.card:nth-child(2) .icon { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.card:nth-child(3) .icon { background: linear-gradient(135deg, var(--accent), var(--primary)); }
.card:nth-child(4) .icon { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.card h3 { margin-bottom: 12px; font-family: 'Quicksand', sans-serif; }
.card p { color: var(--text-muted); }

/* Steps — bubbles */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  padding: 36px 28px;
  border-radius: 28px;
  border: 2px solid var(--border);
  text-align: center;
  counter-increment: step;
  transition: all 0.2s;
}
.step:hover { border-color: var(--primary); transform: translateY(-2px); }
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(167, 139, 250, 0.4);
}
.step h3 { font-size: 1.125rem; margin-bottom: 8px; font-family: 'Quicksand', sans-serif; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Cities */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.cities-grid a {
  display: block;
  padding: 16px 22px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s;
}
.cities-grid a:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* CTA banner — gradient pastel */
.cta-banner {
  background: var(--gradient);
  border-radius: 48px;
  padding: 80px 48px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: "✿";
  position: absolute;
  font-size: 8rem;
  color: white;
  opacity: 0.1;
}
.cta-banner::before { top: -20px; left: 20px; }
.cta-banner::after { bottom: -40px; right: 20px; transform: rotate(45deg); }
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,0.95); font-size: 1.15rem; margin: 20px auto 32px; max-width: 640px; }
.cta-banner .btn-primary { background: white; color: var(--primary-dark); }
.cta-banner .btn-primary:hover { background: var(--surface-warm); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.faq details[open] { border-color: var(--primary); background: var(--surface-alt); }
.faq summary {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::after {
  content: "✿";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin-top: 16px; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--surface-alt);
  padding: 64px 0 32px;
  margin-top: 80px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  font-family: 'Quicksand', sans-serif;
  color: var(--primary-dark);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: var(--text-muted); }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   FORMULAIRE CONTACT (compatible tous profiles)
   ============================================ */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.contact-form h3 + div,
.contact-form h3 + label { margin-top: 0; }

.contact-form > h3 + label,
.contact-form > div + h3 { margin-top: 2rem; }

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: var(--primary);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.contact-form input.is-valid {
  border-color: #10B981;
}

.contact-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.contact-form .form-row {
  display: grid;
  gap: 1rem;
}
.contact-form .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.contact-form .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.contact-form .form-row.cp-ville { grid-template-columns: 130px 1fr; }

@media (max-width: 540px) {
  .contact-form { padding: 1.75rem 1.25rem; }
  .contact-form .form-row.cols-2,
  .contact-form .form-row.cols-3,
  .contact-form .form-row.cp-ville { grid-template-columns: 1fr; }
}

.contact-form .help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
  line-height: 1.4;
}

.contact-form .checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
  cursor: pointer;
  padding: 0.85rem;
  background: var(--surface-alt, #f5f5f5);
  border-radius: var(--radius-sm, 8px);
}

.contact-form .checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.contact-form .checkbox-row span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  position: relative;
}

.contact-form .btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 0.6rem;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.contact-form .btn.is-submitting .spinner { display: inline-block; }
.contact-form .btn.is-submitting .label-default { display: none; }

.contact-form .reassure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.contact-form .reassure-item {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.contact-form .reassure-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

/* page-header (utilisé par contact.php et autres) */
.page-header {
  padding: 80px 0 40px;
  background: var(--surface-alt, var(--surface));
  text-align: center;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* Errors */
.error-banner {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 1.5rem;
}
.error-banner ul { margin: 0.5rem 0 0; padding-left: 1.5rem; }
.field-error { color: #DC2626; font-size: 0.85rem; margin-top: -0.75rem; margin-bottom: 1rem; }


/* ============================================
   SEO Text Block — place haut dans le DOM (apres <nav>)
   Repositionne visuellement en bas via CSS
   ============================================ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-header { order: 1; }
main { order: 2; flex: 1 0 auto; }
.site-footer { order: 3; }
.seo-text-block {
  order: 99; /* tout en bas visuellement */
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 24px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a5566;
}
.seo-text-block p {
  max-width: 820px;
  margin: 0 auto;
}
