/* Dolce Napolitani */

:root {
  --cream: #fbf5ec;
  --cream-2: #f3e8d8;
  --paper: #ffffff;
  --ink: #2a1d17;
  --muted: #65554a;
  --red: #a32a1f;
  --red-dark: #7f1d15;
  --green: #1f4a36;
  --gold: #e0b458;
  --night: #24180f;
  --line: rgba(42, 29, 23, 0.12);
  --radius: 18px;
  --shadow: 0 18px 40px -24px rgba(42, 29, 23, 0.45);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--red-dark);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

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

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* En-tête */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 236, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
}

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

.brand:hover {
  color: var(--red-dark);
}

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

.nav-list a {
  display: block;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover {
  background: var(--cream-2);
  color: var(--red-dark);
}

/* Boutons */

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

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

/* Accueil */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(224, 180, 88, 0.3), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(163, 42, 31, 0.1), transparent 45%),
    var(--cream);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 0.2em;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  letter-spacing: -0.01em;
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  color: var(--green);
}

.lead {
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 2.25rem;
}

.hero-facts {
  display: flex;
  gap: 2.5rem;
  max-width: 30rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  display: flex;
  flex-direction: column-reverse;
}

.hero-facts dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--red);
}

.hero-art {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
}

.hero-art span {
  position: absolute;
  display: block;
}

.arch {
  inset: 0 12% 0 8%;
  overflow: hidden;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(165deg, #c2412f 0%, var(--red) 45%, var(--red-dark) 100%);
  box-shadow: var(--shadow);
}

.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(251, 245, 236, 0.18) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
}

.arch::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(251, 245, 236, 0.45);
  border-radius: 999px 999px 18px 18px;
}

.disc {
  top: 8%;
  right: 0;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f5d995, var(--gold) 60%, #c8932f);
  box-shadow: 0 16px 30px -16px rgba(127, 29, 21, 0.7);
}

.leaf {
  bottom: 9%;
  left: 0;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 0 70% 0 70%;
  background: linear-gradient(135deg, #2f6b4e, var(--green));
  box-shadow: var(--shadow);
}

.ring {
  right: 4%;
  bottom: 3%;
  width: 24%;
  aspect-ratio: 1;
  border: 10px solid var(--cream-2);
  border-radius: 50%;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

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

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* À propos */

.about {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-text p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--muted);
}

.timeline {
  margin: 0;
  padding: 1.75rem 1.5rem;
  list-style: none;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 2.25rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 16px;
  height: 16px;
  border: 3px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 0.25rem;
  left: 7px;
  width: 2px;
  background: rgba(163, 42, 31, 0.25);
}

.timeline li:last-child::after {
  display: none;
}

.timeline time {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}

/* Adresses */

.location-grid {
  display: grid;
  gap: 1.5rem;
}

.location {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location-body {
  flex: 1;
  padding: 1.5rem 1.5rem 1.25rem;
}

.tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 74, 54, 0.09);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location h3 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.location address {
  margin-bottom: 1rem;
  font-style: normal;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.map {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}

/* Pied de page */

.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--night);
  color: #eadfce;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold);
}

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

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li + li {
  margin-top: 0.5rem;
}

.legal {
  margin: 0;
  line-height: 1.75;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(234, 223, 206, 0.15);
  font-size: 0.875rem;
  color: #cbbba6;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */

@media (max-width: 359px) {
  .brand {
    font-size: 1rem;
  }

  .nav-list a {
    padding: 0.45rem 0.4rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .brand {
    font-size: 1.45rem;
  }

  .nav-list {
    gap: 0.5rem;
  }

  .nav-list a {
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
  }

  .section {
    padding: 5.5rem 0;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

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

@media (min-width: 960px) {
  .hero {
    padding: 5.5rem 0 6rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .hero-art {
    width: min(100%, 400px);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .location-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .location:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 3rem;
  }
}
