/* ============================================================
   Pension Canine des Yvelines — style.css
   Palette : #33691E (vert forêt), #FFF8E1 (beige), #8D1B3D (bordeaux)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #33691E;
  --green-d: #255214;
  --green-l: #558B2F;
  --beige:   #FFF8E1;
  --beige-d: #F5EFD6;
  --red:     #8D1B3D;
  --red-d:   #6B1430;
  --text:    #2C2C2C;
  --gray:    #6B6B6B;
  --white:   #FFFFFF;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --radius:  14px;
  --font:    'Lato', sans-serif;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--beige);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-d); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .5rem;
}

/* ---------- Container ---------- */
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(51,105,30,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--green);
}
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover {
  background: var(--red-d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(141,27,61,.35);
}

/* ---------- Header / Nav ---------- */
#header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.logo svg { flex-shrink: 0; }
.logo span { color: #C8E6C9; font-weight: 400; font-size: .85rem; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav-links a {
  color: #C8E6C9;
  font-size: .92rem;
  font-weight: 600;
  padding: .45rem .8rem;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.nav-links .btn-nav-cta {
  background: var(--red);
  color: var(--white);
  padding: .45rem 1.2rem;
  border-radius: 50px;
  margin-left: .4rem;
}
.nav-links .btn-nav-cta:hover {
  background: var(--red-d);
  color: var(--white);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--green-d);
  padding: 1rem 1.2rem 1.4rem;
}
.nav-mobile a {
  color: #C8E6C9;
  font-weight: 600;
  padding: .65rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: block;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--green);
  overflow: hidden;
  padding: 5rem 0 4rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='6'/%3E%3Ccircle cx='17' cy='12' r='3.5'/%3E%3Ccircle cx='26' cy='12' r='3.5'/%3E%3Ccircle cx='11' cy='16' r='3'/%3E%3Ccircle cx='80' cy='70' r='6'/%3E%3Ccircle cx='77' cy='62' r='3.5'/%3E%3Ccircle cx='86' cy='62' r='3.5'/%3E%3Ccircle cx='71' cy='66' r='3'/%3E%3Ccircle cx='50' cy='110' r='6'/%3E%3Ccircle cx='47' cy='102' r='3.5'/%3E%3Ccircle cx='56' cy='102' r='3.5'/%3E%3Ccircle cx='41' cy='106' r='3'/%3E%3Ccircle cx='100' cy='30' r='6'/%3E%3Ccircle cx='97' cy='22' r='3.5'/%3E%3Ccircle cx='106' cy='22' r='3.5'/%3E%3Ccircle cx='91' cy='26' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(21,70,10,.85) 0%, rgba(51,105,30,.6) 60%, rgba(141,27,61,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #C8E6C9;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(4px);
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero h1 em { color: #A5D6A7; font-style: normal; }
.hero p {
  color: rgba(255,255,255,.88);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat {
  color: var(--white);
  text-align: center;
}
.hero-stat strong { display: block; font-size: 2rem; color: #A5D6A7; }
.hero-stat span { font-size: .85rem; opacity: .8; }

/* ---------- Section Styles ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--green); color: var(--white); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { color: var(--green); margin-bottom: .8rem; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--gray); max-width: 600px; margin-inline: auto; font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,.75); }

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(51,105,30,.06);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: #E8F5E9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 32px; height: 32px; }
.card h3 { color: var(--green); margin-bottom: .6rem; font-size: 1.15rem; }
.card p { color: var(--gray); font-size: .95rem; margin: 0; }

/* ---------- Features strip ---------- */
.features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2.5rem 0;
  background: var(--green);
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: 50px;
}
.feature-chip svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}
.testimonial-stars { color: #F9A825; font-size: 1.1rem; margin-bottom: .8rem; }
.testimonial-text { color: var(--text); font-style: italic; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-info strong { display: block; font-size: .95rem; }
.testimonial-info span { font-size: .82rem; color: var(--gray); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--red);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--white); color: var(--red); }
.cta-band .btn-primary:hover { background: var(--beige); }

/* ---------- Tarifs ---------- */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  align-items: start;
}
.tarif-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.tarif-card:hover { transform: translateY(-6px); }
.tarif-card.featured { border: 3px solid var(--green); }
.tarif-header {
  background: var(--green);
  color: var(--white);
  padding: 1.6rem 1.8rem;
  text-align: center;
}
.tarif-header.red { background: var(--red); }
.tarif-header h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.tarif-price { font-size: 2.6rem; font-weight: 700; }
.tarif-price sub { font-size: 1rem; font-weight: 400; }
.tarif-price sup { font-size: 1.4rem; }
.tarif-body { padding: 1.6rem 1.8rem; }
.tarif-body ul li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .5rem 0;
  font-size: .95rem;
  border-bottom: 1px solid var(--beige-d);
  color: var(--text);
}
.tarif-body ul li:last-child { border-bottom: none; }
.tarif-body ul li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: .15rem; }

/* ---------- Calculateur ---------- */
.calculator {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin-inline: auto;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.calc-field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green);
  margin-bottom: .5rem;
}
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  height: 6px;
  cursor: pointer;
}
.calc-field select,
.calc-field input[type="number"] {
  width: 100%;
  padding: .65rem 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  font-family: var(--font);
  font-size: .95rem;
  transition: var(--transition);
}
.calc-field select:focus,
.calc-field input:focus {
  outline: none;
  border-color: var(--green);
}
.calc-value {
  display: inline-block;
  background: #E8F5E9;
  color: var(--green);
  font-weight: 700;
  font-size: .9rem;
  padding: .2rem .7rem;
  border-radius: 50px;
  margin-left: .5rem;
}
.calc-checkbox {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  background: var(--beige);
  border-radius: 10px;
  cursor: pointer;
}
.calc-checkbox input { accent-color: var(--green); width: 18px; height: 18px; }
.calc-result {
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: center;
  margin-top: 1.4rem;
}
.calc-result-price {
  font-size: 3rem;
  font-weight: 700;
  color: #A5D6A7;
  line-height: 1;
}
.calc-result-detail {
  font-size: .9rem;
  opacity: .8;
  margin-top: .4rem;
}

/* ---------- Galerie ---------- */
.gallery-grid {
  columns: 3;
  column-gap: 1.2rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
  padding: 2rem 1rem;
}
.gallery-placeholder svg { opacity: .7; }

/* ---------- Zone SVG ---------- */
.zone-map-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.zone-svg { width: 100%; max-width: 500px; margin-inline: auto; display: block; }

.villes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .8rem;
  margin-top: 2rem;
}
.ville-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--white);
  border: 1px solid #E0E0E0;
  border-radius: 50px;
  font-size: .88rem;
  color: var(--text);
  transition: var(--transition);
}
.ville-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: #E8F5E9;
}
.ville-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  width: 20px; height: 20px;
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 1.5rem;
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.2rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-card {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}
.contact-info-card h3 { margin-bottom: 1.4rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-detail svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: .15rem; opacity: .9; }
.contact-detail strong { display: block; font-size: .85rem; opacity: .7; margin-bottom: .2rem; }
.contact-detail span { font-size: .97rem; }

/* Form */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}
.form-card h3 { color: var(--green); margin-bottom: 1.4rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 10px;
  font-family: var(--font);
  font-size: .97rem;
  transition: var(--transition);
  background: var(--beige);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success {
  display: none;
  background: #E8F5E9;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--beige-d);
  padding: .8rem 0;
  font-size: .85rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
}
.breadcrumb li { display: flex; align-items: center; gap: .3rem; }
.breadcrumb li + li::before { content: '›'; color: var(--gray); }
.breadcrumb a { color: var(--green); }
.breadcrumb span { color: var(--gray); }

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  background: var(--green);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='15' cy='15' r='4' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='13' cy='9' r='2.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3Ccircle cx='20' cy='9' r='2.5' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.page-hero-content { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: .8rem; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 600px; }

/* ---------- Footer ---------- */
footer {
  background: #1B2A14;
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.65; }
footer h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
footer ul li { margin-bottom: .5rem; }
footer ul a { color: rgba(255,255,255,.65); font-size: .9rem; transition: var(--transition); }
footer ul a:hover { color: #A5D6A7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .83rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}
.page-404 h1 { font-size: 8rem; color: var(--green); line-height: 1; }
.page-404 h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 1rem; }
.page-404 p { color: var(--gray); margin-bottom: 2rem; }

/* ---------- Star rating display ---------- */
.stars { color: #F9A825; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 4rem 0 3rem; min-height: 80vh; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery-grid { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .tarifs-grid { grid-template-columns: 1fr; }
}
