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

:root {
  --red: #8b2020;
  --red-light: #a83232;
  --brown: #3a2a2a;
  --brown-light: #7a5a5a;
  --cream: #faf6f4;
  --cream-dark: #f5ecea;
  --white: #ffffff;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
}

a { color: var(--red); }
img { max-width: 100%; height: auto; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.site-header {
  background: var(--red);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo { text-decoration: none; display: flex; align-items: center; }
.site-logo img { height: 60px; width: auto; }
.site-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: bold;
}
.site-nav { display: flex; gap: 20px; }
.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: Helvetica, Arial, sans-serif;
  font-variant: small-caps;
  letter-spacing: 0.5px;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}
.btn-don {
  background: var(--white);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
}
.btn-don:hover { background: var(--cream-dark); }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-instagram {
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
}
.header-instagram:hover { color: var(--white); }

/* === Hero === */
.hero {
  background: var(--cream-dark);
  padding: 48px 0 20px 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--brown);
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--brown-light);
  margin: 0 auto 32px auto;
}

/* === Sections === */
section { padding: 40px 0; }
section h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
section p {
  color: var(--brown-light);
  margin-bottom: 16px;
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--brown-light); }

/* === Button === */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
}
.btn:hover { background: var(--red-light); }

/* === Quote === */
.quote-section { padding: 20px 0; }
.quote-block {
  text-align: center;
  padding: 40px 0;
}
.quote-block blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--brown);
  margin: 0 auto 16px auto;
  line-height: 1.8;
}
.quote-block cite {
  display: block;
  font-size: 0.9rem;
  color: var(--brown-light);
  font-style: normal;
}

/* === Video embed === */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 8px;
}

/* === Content pages === */
.page-header {
  background: var(--cream-dark);
  padding: 48px 0;
  text-align: center;
}
.page-header h1 { font-size: 2rem; }
.content { padding: 48px 0; }
.content p { margin-bottom: 16px; }
.content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--red);
}
.content hr {
  border: none;
  border-top: 1px solid #e0d8d6;
  margin: 32px 0;
}
.content blockquote {
  font-style: italic;
  color: var(--brown-light);
  margin: 16px 0;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}

/* === Footer === */
.site-footer {
  background: var(--cream-dark);
  padding: 40px 0 24px 0;
  font-size: 0.85rem;
  color: var(--brown-light);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.footer-cols a { color: var(--red); text-decoration: none; }
.footer-name { font-weight: bold; color: var(--brown); }
.footer-copy {
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 16px;
}

/* === Page intro === */
.page-intro {
  font-size: 1.1rem;
  color: var(--brown-light);
  margin-bottom: 40px;
}

/* === Dog placeholder === */
.dog-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255,255,255,0.6);
  font-family: Helvetica, Arial, sans-serif;
}

/* === Card image wrapper === */
.card-img-wrapper {
  position: relative;
}
.card-img-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

/* === Parrainage === */
.parrainage-available h2 {
  margin-top: 0;
}
.parrainage-cta-card {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.parrainage-cta-card h3 {
  margin-top: 0;
  color: var(--brown);
}
.parrainage-sponsored {
  margin-top: 48px;
}
.parrainage-sponsored h2 {
  margin-top: 0;
}
.parrainage-sponsor {
  font-size: 0.85rem;
  color: var(--red);
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 8px;
}
.parrainage-card .card-body h3 {
  margin-bottom: 4px;
}
.parrainage-card .video-embed,
.adoption-card .video-embed {
  margin: 12px 0;
  border-radius: 6px;
}
.parrainage-card .video-embed iframe,
.adoption-card .video-embed iframe {
  border-radius: 6px;
}

/* === Adoption === */
.adoption-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.adoption-badge-primary {
  background: var(--red);
  color: var(--white);
}
.adoption-badge-secondary {
  background: var(--brown);
  color: var(--white);
}
.adoption-badge-muted {
  background: var(--cream-dark);
  color: var(--brown-light);
}
.adoption-meta {
  font-size: 0.85rem;
  color: var(--brown-light);
  font-family: Helvetica, Arial, sans-serif;
  margin-bottom: 8px;
}
.adoption-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.adoption-tag {
  background: var(--cream-dark);
  color: var(--brown-light);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: Helvetica, Arial, sans-serif;
}
.adoption-cta {
  text-align: center;
  background: var(--cream-dark);
  padding: 48px 32px;
  border-radius: 8px;
  margin-top: 48px;
}
.adoption-cta h2 {
  margin-top: 0;
  color: var(--brown);
}
.adoption-cta p {
  color: var(--brown-light);
  margin-bottom: 24px;
}

/* === Sauvetages === */
.sauvetages h2 {
  font-size: 1.6rem;
  color: var(--brown);
  margin-top: 48px;
  margin-bottom: 4px;
}
.sauvetages h2 + em,
.sauvetages h2 + p:first-of-type em {
  display: block;
  font-size: 0.85rem;
  color: var(--red);
  font-family: Helvetica, Arial, sans-serif;
  font-style: normal;
  margin-bottom: 16px;
}
.sauvetages hr {
  border: none;
  border-top: 1px solid #e0d8d6;
  margin: 40px 0;
}
.sauvetages p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.sauvetages .video-embed {
}

/* === Responsive === */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav { flex-wrap: wrap; gap: 8px 16px; font-size: 0.75rem; }
  .header-right { width: 100%; justify-content: space-between; }
  .hero h1 { font-size: 1.8rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .parrainage-cta-card { padding: 16px; }
  .video-embed { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; border-radius: 0; }
  .video-embed iframe { border-radius: 0; }
}
