/* AMILIVRE – styles du site */

:root {
  --ink: #1d2622;
  --ink-soft: #4a5650;
  --paper: #faf6ee;
  --paper-2: #f2eadb;
  --white: #ffffff;
  --green: #21433a;
  --green-deep: #183229;
  --bordeaux: #8a2e3b;
  --gold: #d8a446;
  --gold-light: #e6b965;
  --line: #e3d9c7;
  --focus: var(--bordeaux);
  --radius: 14px;
  --shadow: 0 12px 32px rgba(29, 38, 34, 0.08);
  --container: 1120px;
  --header-h: 72px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--bordeaux);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  --focus: var(--gold);
}

.skip-link:focus {
  top: 12px;
  color: var(--paper);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--green);
  text-decoration: none;
}

.brand span {
  font-style: italic;
  color: var(--bordeaux);
}

a.brand:hover {
  color: var(--green);
}

.site-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--paper-2);
  color: var(--green);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 767px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .js .header-inner {
    flex-wrap: nowrap;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(29, 38, 34, 0.08);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 2px;
    padding: 8px 20px 16px;
  }

  .js .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
  }
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(250, 246, 238, 0.6);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(250, 246, 238, 0.1);
  color: var(--paper);
}

.btn-dark {
  background: var(--green);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--green-deep);
  color: var(--paper);
}

/* Bandeau d'accueil */

.hero {
  --focus: var(--gold);
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(60% 80% at 85% 15%, rgba(216, 164, 70, 0.2), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(138, 46, 59, 0.38), transparent 60%),
    linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
}

.hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow,
.kicker {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
}

.kicker {
  color: var(--bordeaux);
}

.hero h1 {
  max-width: 14ch;
  color: var(--paper);
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.lead {
  max-width: 42ch;
  margin-bottom: 32px;
  color: rgba(250, 246, 238, 0.88);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Étagère décorative (formes CSS) */

.shelf-wrap {
  display: flex;
  justify-content: center;
}

.shelf {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5em;
  height: 190px;
  padding: 0 1.4em;
  font-size: 13px;
}

.shelf::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #c08b45, #8d5f2c);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.spine {
  position: relative;
  flex: 0 0 auto;
  width: var(--w, 2em);
  height: var(--h, 80%);
  border-radius: 4px 4px 2px 2px;
  background: var(--c, var(--bordeaux));
  box-shadow: inset -7px 0 0 rgba(0, 0, 0, 0.14), inset 3px 0 0 rgba(255, 255, 255, 0.1);
}

.spine::before,
.spine::after {
  content: "";
  position: absolute;
  right: 9px;
  left: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--band, rgba(250, 246, 238, 0.45));
}

.spine::before {
  top: 12%;
}

.spine::after {
  top: calc(12% + 8px);
}

.spine:nth-child(1) { --h: 70%; --w: 1.875em; --c: var(--bordeaux); }
.spine:nth-child(2) { --h: 88%; --w: 2.625em; --c: var(--gold); --band: rgba(29, 38, 34, 0.35); }
.spine:nth-child(3) { --h: 62%; --w: 1.75em; --c: #efe5d2; --band: rgba(29, 38, 34, 0.3); }
.spine:nth-child(4) { --h: 96%; --w: 2.875em; --c: #3f7062; }
.spine:nth-child(5) { --h: 78%; --w: 2em; --c: #c4673f; }
.spine:nth-child(6) { --h: 84%; --w: 2.25em; --c: #efe5d2; --band: rgba(138, 46, 59, 0.55); }

.spine:nth-child(7) {
  --h: 74%;
  --w: 1.875em;
  --c: var(--bordeaux);
  margin-left: 1.8em;
  transform: rotate(-12deg);
  transform-origin: bottom left;
}

@media (min-width: 480px) {
  .shelf {
    height: 240px;
    font-size: 16px;
  }
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section--alt {
  background: var(--paper-2);
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head p:last-child {
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--bordeaux);
}

.card:nth-child(2)::before {
  background: var(--gold);
}

.card:nth-child(3)::before {
  background: var(--green);
}

.card h3 {
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

/* À propos */

.about {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }
}

.about-text p {
  max-width: 60ch;
  color: var(--ink-soft);
}

.facts-card {
  padding: 26px 26px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.facts-card h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

/* Contact */

.contact {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
  }
}

.address-card {
  margin: 8px 0 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  font-style: normal;
  line-height: 1.75;
}

.address-card strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green);
}

.map {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 599px) {
  .map {
    aspect-ratio: 1 / 1;
  }
}

/* Pied de page */

.site-footer {
  --focus: var(--gold);
  background: var(--green-deep);
  color: rgba(250, 246, 238, 0.82);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }
}

.brand--footer {
  margin-bottom: 14px;
  font-size: 1.8rem;
  color: var(--paper);
}

.brand--footer span {
  color: var(--gold);
}

.footer-brand p:last-child,
.footer-legal p {
  margin: 0;
  line-height: 1.8;
}

.footer-title {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(250, 246, 238, 0.15);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
