/* ── DOGTOR à domicile — Design System V2 · organique & joyeux ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --d-primary:   #D94B3D;
  --d-coral:     #F07A5A;
  --d-coral-soft:#FBEDE4;
  --d-bg:        #FDFAF6;
  --d-cream:     #F8F4EF;
  --d-text:      #2B2B2B;
  --d-brown:     #6B5545;
  --d-sand:      #EADFD2;
  --d-sand-dark: #b8a590;
  --d-muted:     #74675b;
  --d-white:     #ffffff;

  --nav-h: 76px;
  --radius-card: 28px;
  --radius-pill: 100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--d-bg);
  color: var(--d-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--d-sand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-brand:hover img { transform: rotate(-8deg) scale(1.05); }

.nav-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name .dog { font-size: 22px; font-weight: 800; letter-spacing: 0.05em; color: var(--d-primary); }
.nav-brand-name .tor { color: #F2802B; }
.nav-brand-name .sub { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--d-muted); }

/* Photo héros accueil (Chloé & Kenia) */
.hero-photo-kenia { width: min(440px, 92%); height: auto; border-radius: 28px; box-shadow: 0 26px 64px rgba(150,50,30,.24); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--d-muted);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--d-coral);
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active:not(.nav-cta)::after { width: 100%; left: 0; }

.nav-links a:hover,
.nav-links a.active { color: var(--d-text); }

.nav-cta {
  background: var(--d-primary);
  color: var(--d-white) !important;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: #c23d31 !important; transform: scale(1.05); }

/* ── Burger (mobile) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--d-coral-soft);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--d-primary);
  transition: transform 0.25s, opacity 0.2s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav { padding: 0 20px; }

  .nav-burger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 12px;
    right: 12px;
    background: var(--d-white);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(107, 85, 69, 0.15);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 28px 24px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a { display: block; padding: 12px 0; font-size: 15px; }

  .nav-links a:not(.nav-cta)::after { display: none; }

  .nav-links .nav-cta {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 26px;
  }

  .section, .section-sm { padding-left: 24px; padding-right: 24px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--d-primary);
  color: var(--d-white);
  box-shadow: 0 6px 20px rgba(217, 75, 61, 0.25);
}
.btn-primary:hover { background: #c23d31; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(217, 75, 61, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--d-text);
  border: 2px solid var(--d-sand-dark);
}
.btn-outline:hover { border-color: var(--d-primary); color: var(--d-primary); transform: translateY(-2px); }

/* ── Layout ── */
.page-content { padding-top: var(--nav-h); }

.section { padding: 88px 40px; }
.section-sm { padding: 56px 40px; }

.container { max-width: 1080px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--d-primary);
  background: var(--d-coral-soft);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.section-title em { font-style: italic; color: var(--d-primary); }

.section-subtitle {
  font-size: 16px;
  color: var(--d-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ── Blobs & décos ── */
.blob {
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  animation: blobmorph 14s ease-in-out infinite alternate;
}

@keyframes blobmorph {
  0%   { border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%; }
  50%  { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
  100% { border-radius: 45% 55% 58% 42% / 42% 48% 52% 58%; }
}

.float-dot {
  position: absolute;
  border-radius: 50%;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── Vagues ── */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: -1px;
}

/* ── Marquee ── */
.marquee-strip {
  background: var(--d-primary);
  transform: rotate(-1.2deg) scale(1.02);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-inner span {
  color: var(--d-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 18px;
}

.marquee-inner .sep { color: rgba(255,255,255,0.5); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Reveal au scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .float-dot, .marquee-inner { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── CTA de bas de page (pages intérieures) ── */
.cta-section { padding: 40px 24px 48px; background: transparent; }

.cta-section .container-sm {
  background: var(--d-primary);
  border-radius: 40px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-section .container-sm::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  left: -70px;
  bottom: -70px;
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
}

.cta-section .section-title { position: relative; }
.cta-section p { position: relative; }

.cta-section .btn-primary {
  background: var(--d-white);
  color: var(--d-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
}

.cta-section .btn-primary:hover { background: var(--d-cream); transform: translateY(-2px); }

/* ── Footer ── */
.footer {
  background: var(--d-brown);
  color: rgba(255,255,255,0.6);
  padding: 48px 40px 40px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 36px 36px 0 0;
  margin-top: 24px;
}

.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }

.footer-links { line-height: 2; }
.footer-ig { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.footer-ig svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════
   BIBLIOTHÈQUE DE COMPOSANTS DOGTOR (préfixe c-)
   Voir composants.html pour la documentation
   ═══════════════════════════════════════════════ */

/* ── Carte service ── */
.c-card {
  background: var(--d-white);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 30px rgba(107, 85, 69, 0.07);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(107, 85, 69, 0.12); }

.c-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.c-card p { font-size: 14px; color: var(--d-muted); line-height: 1.7; }

.c-card-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d-coral-soft);
  color: var(--d-primary);
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  margin-bottom: 18px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.c-card:hover .c-card-icon { background: var(--d-primary); color: var(--d-white); transform: rotate(-8deg) scale(1.08); }

/* ── Carte FAQ ── */
.c-faq {
  background: var(--d-white);
  border-radius: 22px;
  padding: 4px 26px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(107, 85, 69, 0.05);
  transition: box-shadow 0.25s ease;
}

.c-faq[open] { box-shadow: 0 10px 30px rgba(107, 85, 69, 0.1); }

.c-faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.c-faq summary::-webkit-details-marker { display: none; }

.c-faq summary::after {
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--d-coral-soft);
  color: var(--d-primary);
  font-size: 20px;
  font-weight: 500;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.c-faq[open] summary::after { transform: rotate(45deg); }

.c-faq p {
  font-size: 14.5px;
  color: var(--d-muted);
  line-height: 1.75;
  padding: 0 40px 20px 0;
  animation: faqFade 0.35s ease;
}

@keyframes faqFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Étape ── */
.c-step { text-align: center; }

.c-step-num {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--d-coral-soft);
  color: var(--d-primary);
  font-weight: 800;
  font-size: 21px;
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.c-step:hover .c-step-num { background: var(--d-primary); color: var(--d-white); transform: scale(1.12) rotate(6deg); }

.c-step h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.c-step p { font-size: 13px; color: var(--d-muted); line-height: 1.6; }

/* ── Témoignage ── */
.c-testimonial {
  background: var(--d-white);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 30px rgba(107, 85, 69, 0.07);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-testimonial:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(107, 85, 69, 0.11); }

.c-testimonial .stars { color: var(--d-coral); font-size: 16px; letter-spacing: 3px; }

.c-testimonial blockquote {
  font-size: 14.5px;
  color: var(--d-text);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.c-testimonial .author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--d-muted);
}

.c-testimonial .author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--d-coral-soft);
  color: var(--d-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* ── Comparaison (2 colonnes) ── */
.c-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.c-compare > div {
  border-radius: 24px;
  padding: 26px 28px;
}

.c-compare .compare-a { background: var(--d-coral-soft); }
.c-compare .compare-b { background: var(--d-white); box-shadow: 0 6px 20px rgba(107, 85, 69, 0.06); }

.c-compare h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-primary);
  margin-bottom: 12px;
}

.c-compare li { font-size: 14px; color: var(--d-text); padding: 5px 0; list-style: none; line-height: 1.6; }

/* ── Alerte ── */
.c-alert {
  background: var(--d-coral-soft);
  border-radius: 18px;
  padding: 18px 22px;
  font-size: 14px;
  color: var(--d-text);
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.c-alert.urgent { background: var(--d-primary); color: var(--d-white); }
.c-alert.urgent a { color: #fff; font-weight: 700; text-decoration: underline; }

.c-alert .c-alert-icon { flex-shrink: 0; margin-top: 2px; }

/* ── Conseil ── */
.c-tip {
  background: var(--d-white);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(107, 85, 69, 0.06);
  padding: 22px 24px;
  font-size: 14px;
  color: var(--d-muted);
  line-height: 1.7;
}

.c-tip strong { color: var(--d-primary); display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Chiffre clé ── */
.c-stat { text-align: center; padding: 20px; }

.c-stat .num {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--d-primary);
  line-height: 1;
}

.c-stat .label { font-size: 13.5px; color: var(--d-muted); margin-top: 8px; line-height: 1.5; }

/* ── CTA panneau ── */
.c-cta {
  background: var(--d-primary);
  border-radius: 40px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.c-cta::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
  left: -70px;
  bottom: -70px;
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
}

.c-cta h2, .c-cta h3 { color: var(--d-white); position: relative; }
.c-cta p { color: rgba(255,255,255,0.85); position: relative; }

/* ── Encadré important ── */
.c-callout {
  background: var(--d-white);
  border: 2px solid var(--d-primary);
  border-radius: 24px;
  padding: 24px 28px;
  font-size: 14.5px;
  color: var(--d-text);
  line-height: 1.75;
  position: relative;
}

.c-callout::before {
  content: 'Important';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--d-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

@media (max-width: 720px) {
  .c-compare { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   MICRO-INTERACTIONS GLOBALES
   ═══════════════════════════════════════════════ */

/* Chargement de page : fondu doux */
body { animation: pageIn 0.5s ease-out; }

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--d-primary), var(--d-coral));
  z-index: 200;
  border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
}

/* Nav : ombre au scroll */
.nav.scrolled { box-shadow: 0 6px 24px rgba(107, 85, 69, 0.1); }

/* Boutons : enfoncement au clic */
.btn:active, .nav-cta:active, .service-chip:active { transform: scale(0.96) !important; }

/* Liens footer */
.footer a { transition: color 0.2s; }

/* Bouton retour en haut */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--d-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(217, 75, 61, 0.35);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
  z-index: 150;
}

.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: #c23d31; transform: translateY(-3px); }

/* Barre de contact flottante (mobile uniquement) */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--d-sand);
  box-shadow: 0 -6px 24px rgba(107, 85, 69, 0.1);
}

.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s;
}

.mobile-cta a:active { transform: scale(0.96); }
.mobile-cta a svg { width: 19px; height: 19px; flex-shrink: 0; }

.mobile-cta .mc-call { background: var(--d-coral-soft); color: var(--d-primary); }
.mobile-cta .mc-wa { background: #25D366; color: #fff; }

@media (max-width: 640px) {
  .mobile-cta { display: flex; }
  .back-top { bottom: 84px; }
}

/* Accessibilité : focus clavier visible */
:focus-visible {
  outline: 3px solid var(--d-coral);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .c-faq p { animation: none; }
}

/* ── Pied de page : réseaux sociaux ── */
.footer-social { display: flex; justify-content: center; gap: 18px; align-items: center; }
.footer-social a { display: inline-flex; transition: transform .2s; }
.footer-social a:hover { transform: translateY(-3px) scale(1.08); }
