/* ============================================================
   Socle charte Dog Solution v5 "premium chaleureux"
   Partagé par les pages du programme de l'été (juillet 2026).
   Transposé de mockups/ds.css (direction B validée 2026-07-03).
   ============================================================ */

:root {
  /* Palette de base */
  --ds-bg: #ebe3d5;
  --ds-surface: #faf3e0;
  --ds-title: #7c582d;
  --ds-btn-bg: #8b5a3c;
  --ds-btn-bg-hover: #6f4730;
  --ds-btn-text: #faf3e0;
  --ds-text: #152237;
  --ds-text-secondary: #3d4a5c;
  --ds-muted: #6b5a47;
  --ds-border: rgba(124, 88, 45, 0.18);
  --ds-border-subtle: rgba(124, 88, 45, 0.08);

  /* Accent or + profondeur */
  --ds-gold: #c9a25a;
  --ds-gold-soft: rgba(201, 162, 90, 0.35);
  --ds-deep: #2a1a10;

  /* États système */
  --ds-danger: #b3261e;

  /* Dégradés */
  --grad-cta: linear-gradient(135deg, #9a6645 0%, #8b5a3c 55%, #6f4730 100%);
  --grad-accent: linear-gradient(90deg, #c9a25a 0%, #7c582d 100%);
  --grad-surface: radial-gradient(ellipse at top, #faf3e0 0%, #ebe3d5 75%);

  /* Paliers */
  --ds-title-80: #8e6e4a;

  /* Formes */
  --ds-radius-card: 10px;
  --ds-radius-input: 12px;
  --ds-radius-btn: 9999px;

  /* Ombres stackées teintées brun */
  --ds-shadow-xs: 0 1px 2px rgba(124, 88, 45, 0.08);
  --ds-shadow-sm: 0 1px 2px rgba(124, 88, 45, 0.08), 0 2px 6px rgba(124, 88, 45, 0.06);
  --ds-shadow: 0 1px 2px rgba(124, 88, 45, 0.08), 0 4px 16px rgba(124, 88, 45, 0.12);
  --ds-shadow-lg: 0 2px 4px rgba(124, 88, 45, 0.10), 0 12px 40px rgba(124, 88, 45, 0.22);
  --ds-shadow-edito: 0 30px 60px -20px rgba(42, 26, 16, 0.35),
                     0 10px 20px -10px rgba(124, 88, 45, 0.25);

  /* Typo */
  --ds-font-title: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --ds-font-body: "Nunito", "Helvetica Neue", Arial, sans-serif;

  /* Transitions */
  --ds-transition: 0.15s ease;
  --ds-transition-slow: 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ds-font-title);
  color: var(--ds-title);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

em, .ds-italic {
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

p { margin: 0 0 16px; }
a { color: var(--ds-btn-bg); }

[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 640px; }

/* ---------- Kickers / labels uppercase ---------- */
.kicker {
  display: block;
  font-family: var(--ds-font-body);
  font-weight: 800;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ds-muted);
  margin-bottom: 12px;
}
.kicker--gold { color: var(--ds-gold); }

/* ---------- Sous-trait or éditorial ---------- */
.gold-rule {
  width: 56px;
  height: 2px;
  background: var(--grad-accent);
  border: 0;
  margin: 16px 0 24px;
  opacity: 0.85;
}
.gold-rule--center { margin-left: auto; margin-right: auto; }

/* ---------- Boutons (3 niveaux) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--ds-radius-btn);
  font-family: var(--ds-font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  min-height: 48px;
  cursor: pointer;
  border: 0;
  transition: transform var(--ds-transition), box-shadow var(--ds-transition),
              background-position var(--ds-transition-slow), color var(--ds-transition),
              border-color var(--ds-transition);
}
.btn::after {
  content: "→";
  display: inline-block;
  transition: transform var(--ds-transition);
}
.btn:hover::after { transform: translateX(4px); }

.btn--primary {
  color: var(--ds-btn-text);
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: var(--ds-shadow), inset 0 1px 0 rgba(255, 240, 210, 0.18);
}
.btn--primary:hover {
  background: var(--grad-cta);
  background-size: 200% 200%;
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: var(--ds-shadow-lg), inset 0 1px 0 rgba(255, 240, 210, 0.18);
  color: var(--ds-btn-text);
}

.btn--secondary {
  color: var(--ds-title);
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
}
.btn--secondary:hover {
  border-color: var(--ds-btn-bg);
  color: var(--ds-btn-bg);
  background: var(--ds-bg);
  transform: translateY(-1px);
}

.btn--big { padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* Bouton neutralisé (complet, chargement) : pas de flèche, pas de hover. */
.btn[disabled], .btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--ds-shadow-xs) !important;
}
.btn--static::after { content: none; }

.btn-note {
  display: block;
  font-size: 0.8125rem;
  color: var(--ds-muted);
  margin-top: 8px;
}

/* ---------- Cartes ---------- */
.card {
  background: var(--ds-surface);
  border-radius: var(--ds-radius-card);
  padding: 32px;
  box-shadow: var(--ds-shadow-sm);
  transition: transform var(--ds-transition-slow), box-shadow var(--ds-transition-slow);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow); }

.card--featured {
  position: relative;
  overflow: hidden;
}
.card--featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.85;
}

/* ---------- Numéros éditoriaux or ---------- */
.ed-num {
  font-family: var(--ds-font-title);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 20;
  color: var(--ds-gold);
  font-size: 2rem;
  line-height: 1;
}

/* ---------- Logo ---------- */
.logo {
  border-radius: 28%;
  box-shadow: var(--ds-shadow-xs), inset 0 0 0 1px var(--ds-gold-soft);
}

/* ---------- Texte utilitaires ---------- */
.muted { color: var(--ds-muted); }
.secondary { color: var(--ds-text-secondary); }
.lead { font-size: 1.25rem; line-height: 1.6; }
.center { text-align: center; }

/* ---------- Formulaires (modale funnel) ---------- */
.field { margin: 0 0 16px; text-align: left; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ds-text);
  margin-bottom: 4px;
}
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-radius-input);
  background: var(--ds-bg);
  color: var(--ds-text);
  font: inherit;
}
.field input:focus {
  outline: none;
  border-color: var(--ds-btn-bg);
  box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.18);
}
.field .hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--ds-muted);
  margin-top: 4px;
}

/* Choix de date en pilules radio */
.date-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.date-pick .pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-radius-btn);
  background: var(--ds-bg);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--ds-text);
  cursor: pointer;
  transition: border-color var(--ds-transition), color var(--ds-transition);
}
.date-pick .pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.date-pick .pick:has(input:checked) {
  border-color: var(--ds-btn-bg);
  color: var(--ds-btn-bg);
  background: var(--ds-surface);
}
.date-pick .pick--off {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-error {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ds-danger);
  margin: 0 0 12px;
}
.form-ok {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ds-title-80);
  margin: 0 0 12px;
}

/* ---------- Modale funnel ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 34, 55, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--ds-surface);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow-lg);
  padding: 32px;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal h3 {
  font-size: 1.5rem;
  padding-right: 32px;
  margin-bottom: 4px;
}
.modal .recap {
  color: var(--ds-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}
.modal .recap .dot { color: var(--ds-gold); margin: 0 6px; }

/* Upsell 1ère rencontre : question + liste d'options */
.modal .upsell-q {
  font-size: 0.9375rem;
  color: var(--ds-text);
  line-height: 1.55;
  margin: 0 0 16px;
}
.opt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
}
.opt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 14px 18px;
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-radius-input);
  background: var(--ds-bg);
  font: inherit;
  cursor: pointer;
  transition: border-color var(--ds-transition), background var(--ds-transition);
}
.opt:hover { border-color: var(--ds-btn-bg); }
.opt:disabled { opacity: 0.6; cursor: wait; }
.opt--hot {
  border-color: var(--ds-gold);
  background: var(--ds-surface);
}
.opt .opt-main {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ds-title);
}
.opt .opt-sub {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ds-muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ds-muted);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--ds-title); background: var(--ds-border-subtle); }

/* ---------- Footer commun ---------- */
.site-footer {
  padding: 48px 20px 64px;
  text-align: center;
}
.site-footer .tagline {
  font-family: var(--ds-font-title);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--ds-title-80);
  font-size: 1.125rem;
  margin: 0 0 8px;
}
.site-footer .meta {
  font-size: 0.8125rem;
  color: var(--ds-muted);
  margin: 0;
}
.site-footer .meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .meta a:hover { color: var(--ds-title); }
