:root {
  --sable: #f7efe4;
  --terre: #c2602f;
  --terre-fonce: #8f3f1b;
  --vert: #2f6f5e;
  --texte: #2b2420;
  --gris: #6b625c;
  --rayon: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--texte);
  background: var(--sable);
}

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

a { color: var(--terre-fonce); }

/* En-tête */
.hero {
  color: #fff;
  background:
    linear-gradient(rgba(43, 36, 32, 0.55), rgba(43, 36, 32, 0.7)),
    url("images/chihuahua-1.jpg") center 30% / cover no-repeat,
    var(--terre);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 2rem;
}

.logo { font-weight: 700; font-size: 1.2rem; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a { color: #fff; text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.hero-text {
  margin: auto;
  max-width: 720px;
  padding: 2rem;
  text-align: center;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p { font-size: 1.15rem; }

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--terre);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--terre-fonce); }

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  color: var(--terre-fonce);
  margin-top: 0;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.gallery figure {
  margin: 0;
  background: #fff;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery figure:hover img { transform: scale(1.04); }

.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--gris);
}

/* Origines : frise */
.origines { max-width: 800px; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 3px solid var(--terre);
}

.timeline li {
  position: relative;
  margin-bottom: 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 9px);
  top: 0.4rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--sable);
  border: 3px solid var(--terre);
}

.timeline h3 { margin: 0 0 0.3rem; color: var(--vert); }
.timeline p { margin: 0; }

/* Cartes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--rayon);
  border-top: 4px solid var(--vert);
}
.card h3 { margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--gris); }

/* Pied de page */
.footer {
  background: var(--texte);
  color: #e8dfd6;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}
.footer > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.footer h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.footer a { color: #f3b38f; }
.credits { padding-left: 1.2rem; }
