:root {
  /* Palette principale : ajuster ici les couleurs du site. */
  --color-cream: #fbf7ef;
  --color-ivory: #fffdf8;
  --color-sage: #8fa696;
  --color-sage-dark: #536b5e;
  --color-terracotta: #c98973;
  --color-blush: #ead0c8;
  --color-brown: #6d5548;
  --color-ink: #302a25;
  --color-muted: #766d64;
  --shadow-soft: 0 20px 50px rgba(83, 76, 63, 0.12);
  --radius-small: 8px;
  --radius-large: 24px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-ivory);
  line-height: 1.7;
}

img,
video {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
  text-align: center;
}

.section-padding {
  padding: 100px 0;
}

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

/* En-tête et navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.9);
  border-bottom: 1px solid rgba(109, 85, 72, 0.12);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  height: 54px;
  max-width: 230px;
  object-fit: contain;
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--color-cream);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--color-brown);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Section d'accueil */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--color-ivory);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #b9c7b5, #ead0c8 45%, #c98973);
}

.hero-media.image-missing {
  background: linear-gradient(135deg, #aebfac, #ead0c8 50%, #c98973);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(48, 42, 37, 0.74), rgba(48, 42, 37, 0.26)),
    linear-gradient(180deg, rgba(48, 42, 37, 0.08), rgba(48, 42, 37, 0.42));
}

.hero-content {
  position: relative;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--color-terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--color-blush);
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 500;
  color: var(--color-brown);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--color-sage-dark);
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.15rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  color: var(--color-ivory);
  background: var(--color-sage-dark);
}

.btn-secondary {
  color: var(--color-brown);
  background: rgba(255, 253, 248, 0.85);
  border-color: rgba(109, 85, 72, 0.2);
}

/* Grilles de contenu réutilisables */
.two-column,
.feature-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.feature-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
}

.reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.text-block p,
.feature-copy > p,
.contact-copy > p,
.video-section p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.image-card {
  margin: 0;
  min-height: 420px;
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--color-sage), var(--color-blush));
}

.image-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-card.image-missing {
  position: relative;
  display: grid;
  place-items: center;
}

.image-card.image-missing::before {
  content: "Image à remplacer";
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-brown);
  background: rgba(255, 253, 248, 0.84);
  font-weight: 700;
}

.image-missing img {
  opacity: 0;
}

.portrait-card {
  aspect-ratio: 4 / 5;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.soft-card {
  padding: 24px;
  border: 1px solid rgba(109, 85, 72, 0.1);
  border-radius: var(--radius-small);
  background: rgba(255, 253, 248, 0.74);
}

.soft-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.benefit-list,
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.benefit-list span,
.values span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-brown);
  background: var(--color-cream);
  border: 1px solid rgba(143, 166, 150, 0.28);
}

.video-frame {
  margin-top: 36px;
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  background: var(--color-brown);
}

.video-frame video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Contact et carte à intégrer plus tard */
.contact {
  background: linear-gradient(180deg, var(--color-ivory), var(--color-cream));
}

.contact-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin: 32px 0;
  font-style: normal;
}

.contact-details span {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(109, 85, 72, 0.14);
  color: var(--color-muted);
}

.contact-details strong {
  color: var(--color-brown);
}

.contact-details a {
  color: var(--color-sage-dark);
  font-weight: 700;
}

.map-placeholder {
  min-height: 460px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 32px;
  border: 1px dashed rgba(109, 85, 72, 0.28);
  border-radius: var(--radius-large);
  color: var(--color-brown);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(143, 166, 150, 0.16), rgba(234, 208, 200, 0.34)),
    var(--color-ivory);
}

.map-placeholder span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.map-placeholder p {
  margin: 0;
  color: var(--color-muted);
}

.legal-hero {
  padding: 112px 0 72px;
  background: linear-gradient(180deg, var(--color-cream), var(--color-ivory));
}

.legal-hero h1 {
  margin-right: auto;
  margin-left: auto;
  color: var(--color-brown);
}

.legal-hero p:not(.eyebrow) {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.legal-section {
  padding-top: 60px;
}

.legal-content {
  max-width: 880px;
}

.legal-note {
  margin-bottom: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--color-terracotta);
  border-radius: var(--radius-small);
  color: var(--color-muted);
  background: var(--color-cream);
}

.legal-content article {
  padding: 30px 0;
  border-bottom: 1px solid rgba(109, 85, 72, 0.14);
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.legal-content p {
  color: var(--color-muted);
}

.legal-content a:not(.btn) {
  color: var(--color-sage-dark);
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--color-ivory);
  background: var(--color-sage-dark);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  padding: 28px 0;
  color: var(--color-muted);
  background: var(--color-ink);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-content p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-ivory);
}

/* Animation discrète au scroll */
.section-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(109, 85, 72, 0.12);
    border-radius: var(--radius-small);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 12px 4px;
  }

  .two-column,
  .feature-grid,
  .reverse,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .reverse .image-card {
    order: 2;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .navbar {
    width: calc(100% - 28px);
  }

  .brand-logo {
    height: 46px;
    max-width: 180px;
  }

  .section-padding {
    padding: 72px 0;
  }

  .hero {
    min-height: calc(92vh - var(--header-height));
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(48, 42, 37, 0.62), rgba(48, 42, 37, 0.52));
  }

  .hero-content {
    padding: 72px 0 82px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .image-card,
  .map-placeholder {
    min-height: 320px;
    border-radius: 18px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
