/* ============================================================
   CAM & CO — Petsitting & Éducateur Canin — style.css
   ============================================================ */

/* ── Variables ── */
:root {
  --cream:       #FAF7F2;
  --white:       #FFFDF9;
  --charcoal:    #1A1A1A;
  --brown:       #5C3D2E;
  --brown-light: #8B6249;
  --gold:        #C9964A;
  --gold-light:  #F0D49A;
  --sage:        #7A9E7E;
  --sage-light:  #A8C5A0;
  --shadow:      0 4px 24px rgba(92,61,46,.10);
  --shadow-lg:   0 16px 48px rgba(92,61,46,.16);
  --radius:      20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
em { color: var(--gold); font-style: italic; }
strong { color: var(--brown); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ── Animations ── */
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fadeIn  { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse   { 0%,100%{transform:scale(1)} 50%{transform:scale(1.05)} }

.paw-float  { animation: float  4s ease-in-out infinite; }
.hero-fade  { animation: fadeIn 1s ease forwards; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Shared layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section-white { background: var(--white); }
.section-dark  { background: linear-gradient(135deg, var(--brown) 0%, #3D2416 100%); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .5rem; }
.section-sub { color: var(--brown-light); font-size: .95rem; margin-top: .3rem; }
.text-white { color: #fff; }

/* ── Pill tag ── */
.pill-tag {
  display: inline-block;
  background: rgba(201,150,74,.18);
  color: var(--brown);
  padding: .3rem 1rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.pill-dark {
  background: rgba(201,150,74,.25);
  color: var(--gold-light);
}

/* ── Buttons ── */
.btn-main {
  display: inline-block;
  background: var(--brown);
  color: var(--white);
  padding: .85rem 2rem;
  border-radius: 50px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.btn-main:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,150,74,.4);
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--brown);
  color: var(--brown);
  padding: .85rem 2rem;
  border-radius: 50px;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-2px);
}

/* ════════════════════════════════
   NAV
════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
nav.scrolled {
  background: rgba(250,247,242,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(92,61,46,.08);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; font-size: 1.8rem;
}
.nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--brown);
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-link {
  color: var(--charcoal); font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: color .2s;
}
.nav-link:hover { color: var(--gold); }
.nav-btn { padding: .5rem 1.3rem !important; font-size: .82rem !important; }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all .3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column; align-items: flex-start;
    padding: 1.5rem 2rem; gap: 1.2rem;
    border-top: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1rem; }
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 7rem 2rem 4rem;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(201,150,74,.13) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 75%, rgba(122,158,126,.10) 0%, transparent 55%),
    var(--cream);
}
.hero-inner {
  max-width: 1100px; width: 100%;
  display: flex; align-items: center;
  gap: 4rem; flex-wrap: wrap; justify-content: center;
}
.hero-content { flex: 1; min-width: 280px; max-width: 520px; }
.hero-content h1 { margin-bottom: 1.2rem; }
.hero-sub {
  color: var(--brown-light); font-size: 1rem;
  font-weight: 300; letter-spacing: .02em;
  line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-badges { display: flex; gap: 2rem; flex-wrap: wrap; }
.badge { text-align: center; }
.badge-icon { display: block; font-size: 1.4rem; }
.badge-label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--brown); letter-spacing: .05em; text-transform: uppercase;
}
.badge-sub { display: block; font-size: .72rem; color: var(--brown-light); }

.hero-visual { flex-shrink: 0; text-align: center; }
.hero-logo {
  width: clamp(260px, 32vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(92,61,46,.18));
}
.hero-tagline {
  font-size: .78rem; color: var(--brown-light);
  letter-spacing: .12em; text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-cta, .hero-badges { justify-content: center; }
  .hero-visual { animation: none; }
}

/* ════════════════════════════════
   SERVICES
════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,150,74,.1);
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  opacity: .6;
}
.service-icon { font-size: 2rem; margin-bottom: .8rem; }
.service-card h3 { color: var(--brown); margin-bottom: .5rem; }
.service-card p  { font-size: .88rem; color: #666; line-height: 1.65; }

/* ════════════════════════════════
   TARIFS
════════════════════════════════ */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}
.tarif-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,150,74,.1);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.tarif-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tarif-card.featured { border: 2px solid var(--gold); }

.badge-populaire {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--gold); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .05em;
  padding: .2rem .7rem; border-radius: 50px;
}

/* Header variants */
.tarif-header { padding: 1.5rem 1.8rem; color: var(--white); }
.tarif-brown  { background: linear-gradient(135deg, var(--brown), var(--brown-light)); }
.tarif-gold   { background: linear-gradient(135deg, var(--gold), var(--brown)); }
.tarif-sage   { background: linear-gradient(135deg, var(--sage), #4a7a55); }

.tarif-icon { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.tarif-header h3 { margin-bottom: .2rem; }
.tarif-header p  { font-size: .82rem; opacity: .8; }

.tarif-body { padding: 1.2rem 1.8rem; flex: 1; }
.tarif-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .88rem; color: #555;
}
.tarif-row:last-child { border-bottom: none; }
.price {
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--brown); font-size: 1rem;
}
.tarif-note {
  padding: .8rem 1.8rem 1.2rem;
  border-top: 1px solid rgba(0,0,0,.04);
  font-size: .78rem; color: var(--brown-light); font-style: italic;
}
.tarif-disclaimer {
  text-align: center; font-size: .88rem;
  color: var(--brown-light); font-style: italic;
  margin-top: .5rem;
}

/* ════════════════════════════════
   ZONE
════════════════════════════════ */
.dep-grid {
  display: flex; gap: 2rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.dep-card {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  text-align: center; color: #fff;
  min-width: 240px;
  backdrop-filter: blur(4px);
  transition: transform .3s, background .3s;
}
.dep-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.15); }
.dep-price {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; margin-bottom: .4rem;
}
.dep-free { color: var(--sage-light); }
.dep-paid { color: var(--gold-light); }
.dep-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.dep-card p  { font-size: .85rem; opacity: .7; line-height: 1.5; }

.communes {
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  display: block;
}

/* ════════════════════════════════
   POURQUOI
════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.why-item { padding: 1.5rem; border-left: 3px solid var(--gold); }
.why-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: rgba(201,150,74,.15); line-height: 1; display: block;
  margin-bottom: .4rem;
}
.why-item h4 { color: var(--brown); margin-bottom: .5rem; }
.why-item p  { font-size: .88rem; color: #666; line-height: 1.65; }

/* ════════════════════════════════
   CONTACT
════════════════════════════════ */
.contact-inner {
  max-width: 580px; margin: 0 auto; text-align: center;
}
.contact-paw {
  font-size: 4rem; margin-bottom: 1rem;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}
.contact-inner h2 { margin-bottom: 1rem; }
.contact-inner > p { color: #666; line-height: 1.7; margin-bottom: 2.5rem; font-size: .95rem; }
.contact-btns {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1.5rem;
}
.contact-zone { font-size: .85rem; color: var(--brown-light); }

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: .82rem;
}
.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}
footer p { margin-bottom: .3rem; }
.footer-love { color: rgba(255,255,255,.25); font-size: .75rem; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .dep-grid { flex-direction: column; align-items: center; }
  .dep-card { width: 100%; max-width: 320px; padding: 2rem; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}
