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

:root {
  --brown: #5c4033;
  --cream: #f5efe6;
  --green: #6b8e4e;
  --dark: #3b2f2a;
  --amber: #c47a4a;
  --forest: #3d5a2e;
  --white: #fffdf9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--amber);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("/images/vue-exterieure.webp") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(59, 47, 42, 0.35),
    rgba(59, 47, 42, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

#hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.slogan {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--cream);
  font-style: italic;
  margin-top: 0.4em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.sous-titre {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--cream);
  opacity: 0.85;
  margin-top: 0.6em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--forest);
  color: var(--cream);
}

.inner {
  max-width: 960px;
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--brown);
  text-align: center;
  margin-bottom: 2rem;
}

.section-alt h2 {
  color: var(--cream);
}

.section p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

/* ===== POINTS FORTS ===== */
.grille-pf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.carte-pf {
  background: rgba(255, 253, 249, 0.1);
  border: 1px solid rgba(245, 239, 230, 0.2);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s, background 0.2s;
}

.carte-pf:hover {
  transform: translateY(-3px);
  background: rgba(255, 253, 249, 0.15);
}

.carte-pf h3 {
  font-size: 1.15rem;
  color: var(--amber);
  margin-bottom: 0.6em;
}

.carte-pf p {
  text-align: left;
  font-size: 0.98rem;
  opacity: 0.9;
}

/* ===== GALERIE ===== */
.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.galerie-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.galerie-item:hover img {
  transform: scale(1.03);
}

/* ===== PIED DE PAGE ===== */
#pied {
  background: var(--brown);
  color: var(--cream);
  padding: 3rem 1.5rem;
}

.pied-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pied-bloc h3 {
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.8em;
}

.coord {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.3em;
}

.coord .label {
  font-weight: 700;
  color: var(--amber);
}

#pied a.tel {
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 700;
}

#pied a.tel:hover {
  color: var(--amber);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .grille-pf {
    grid-template-columns: 1fr;
  }

  .galerie {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
  }

  .pied-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section {
    padding: 3.5rem 1.2rem;
  }
}
