/* =========================================================
   Il Quadrifoglio
   Structure et typographie reprises de la page de reference
   Big Mamma. Couleurs reprises du logo de la maison :
   le trefle vert #799A03 releve au pipette sur leur marque.
   Titres Lora, labels Red Hat Display, photos bord a bord.
   Systeme de formes : images a angles vifs, boutons en pilule.
   ========================================================= */

:root {
  --green:      #799a03;   /* vert du trefle, couleur de marque */
  --green-deep: #4f6702;   /* meme vert assombri, lisible en texte */
  --cream:      #fcfaf1;
  --dark:       #1e2609;   /* olive tres sombre : ruban, bar, pied de page */

  --bg:    var(--cream);
  --ink:   var(--dark);
  --muted: #5c6647;
  --line:  rgba(30, 38, 9, .18);
  --accent-text: var(--green-deep);

  --maxw:  1440px;
  --ease:  cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #151b06;
    --ink:   var(--cream);
    --muted: #a8b491;
    --line:  rgba(252, 250, 241, .22);
    --accent-text: #a9cf2b;
  }
}
:root[data-theme="light"] { --bg: #fcfaf1; --ink: #1e2609; --muted: #5c6647; --line: rgba(30,38,9,.18); --accent-text: #4f6702; }
:root[data-theme="dark"]  { --bg: #151b06; --ink: #fcfaf1; --muted: #a8b491; --line: rgba(252,250,241,.22); --accent-text: #a9cf2b; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .band-quote, blockquote p, .stats dd {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: var(--dark);
  padding: .75rem 1.25rem; text-decoration: none; font-weight: 700;
}
.skip:focus { left: 0; }

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

/* ---------- Boutons : pilule, petites capitales ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: 'Red Hat Display', sans-serif;
  font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-sm { padding: .6rem 1.4rem; font-size: .72rem; }

.btn-solid         { background: var(--green); color: var(--dark); }
.btn-outline       { border-color: var(--ink); color: var(--ink); }
.btn-cream         { background: var(--cream); color: var(--dark); }
.btn-outline-cream { border-color: rgba(252, 250, 241, .8); color: var(--cream); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-solid:hover { background: var(--green-deep); color: var(--cream); }
  .btn-outline:hover       { background: var(--ink); color: var(--bg); }
  .btn-outline-cream:hover { background: var(--cream); color: var(--dark); }
}
.btn:active { transform: scale(.975); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-center { justify-content: center; margin-top: 3rem; }

/* ---------- Ruban et navigation ---------- */

.ribbon {
  background: var(--green); color: var(--dark);
  text-align: center;
  padding: .6rem 1rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

.nav {
  position: sticky; top: 0; z-index: 50;
  height: 74px;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 clamp(1rem, 3.5vw, 2.75rem);
  background: var(--dark);
  border-bottom: 1px solid rgba(252, 250, 241, .14);
}

.brand {
  display: flex; align-items: center;
  text-decoration: none; margin-right: auto;
}
/* nav toujours sur fond olive sombre : le logo reste en creme, plus lisible */
.brand .logo { display: block; width: auto; height: 34px; }
@media (max-width: 940px) { .brand .logo { height: 30px; } }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none; font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(252, 250, 241, .82);
  padding-bottom: 2px; border-bottom: 1.5px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { color: var(--cream); border-bottom-color: var(--green); }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav { height: 64px; }
}

/* ---------- Hero : photo plein cadre ---------- */

.hero {
  position: relative;
  min-height: min(88dvh, 860px);
  display: grid; place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-position: 50% 55%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(24, 20, 13, .62) 0%, rgba(24, 20, 13, .52) 45%, rgba(24, 20, 13, .78) 100%);
}
.hero-inner {
  text-align: center; color: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 4rem);
  max-width: 60rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 500;
  text-shadow: 0 2px 24px rgba(18, 14, 8, .45);
}
.hero-inner p {
  margin: 1.6rem auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: rgba(252, 250, 241, .92);
  text-shadow: 0 1px 14px rgba(18, 14, 8, .5);
}
.hero .cta-row { justify-content: center; margin-top: 2.4rem; }

@media (max-width: 700px) {
  .hero { min-height: 74dvh; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* ---------- Sections creme ---------- */

.cream {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.head { max-width: 52rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.head h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); }
.head p { margin-top: 1.2rem; color: var(--muted); font-size: 1.08rem; }
.head-cream h2 { color: var(--cream); }
.head-cream p  { color: rgba(252, 250, 241, .78); }

/* ---------- Grille de plats : titre pose sur la photo ---------- */

.grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.1vw, 1rem);
}
.card {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  text-decoration: none; color: var(--cream);
  isolation: isolate;
}
.card img { transition: transform 1s var(--ease); }
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24, 20, 13, .93) 0%, rgba(24, 20, 13, .72) 26%, rgba(24, 20, 13, .28) 55%, rgba(24, 20, 13, .04) 80%);
}
.card-txt {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: clamp(1.3rem, 2.4vw, 2.2rem);
  text-align: center;
}
.card-txt h3 { font-size: clamp(1.25rem, 1.85vw, 1.75rem); }
.card-txt p {
  margin: .6rem auto 0; max-width: 26rem;
  font-size: .92rem; line-height: 1.5;
  color: rgba(252, 250, 241, .84);
}
@media (hover: hover) { .card:hover img { transform: scale(1.06); } }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---------- Bandes photo pleine largeur ---------- */

.band { position: relative; isolation: isolate; }
.band img { aspect-ratio: 16 / 7; }
.band-tall img { aspect-ratio: 16 / 8; }
.band-txt {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center;
  padding: 2rem clamp(1.25rem, 6vw, 5rem);
  background: rgba(24, 20, 13, .42);
}
.band-quote {
  color: var(--cream); text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-style: italic;
  max-width: 24ch;
  text-shadow: 0 2px 20px rgba(18, 14, 8, .5);
}
@media (max-width: 700px) {
  .band img { aspect-ratio: 4 / 3; }
  .band-tall img { aspect-ratio: 4 / 3; }
}

/* ---------- Duo image + texte ---------- */

.duo {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.duo-media { aspect-ratio: 4 / 5; overflow: hidden; }
.duo-copy h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.duo-copy p { margin-top: 1.6rem; color: var(--muted); font-size: 1.06rem; max-width: 46ch; }
.duo-copy .note {
  font-size: .97rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--green);
}
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Signature : deux images superposees ---------- */

.sig {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.sig-stack { position: relative; padding: 0 3.5rem 4rem 0; }
.sig-a { aspect-ratio: 4 / 5; overflow: hidden; }
.sig-b {
  position: absolute; right: 0; bottom: 0; width: 45%;
  aspect-ratio: 1 / 1; overflow: hidden;
  border: 8px solid var(--bg);
}
.sig-copy h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.sig-copy p { margin-top: 1.6rem; color: var(--muted); font-size: 1.06rem; max-width: 46ch; }
.sig-copy .pull {
  font-family: 'Lora', Georgia, serif;
  font-style: italic; font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  color: var(--accent-text); line-height: 1.25;
}
@media (max-width: 900px) {
  .sig { grid-template-columns: 1fr; }
  .sig-stack { padding: 0 2rem 3rem 0; }
}

/* ---------- Le bar : bloc sombre ---------- */

.bar {
  background: var(--dark);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.bar .head { padding: 0 clamp(1.25rem, 4vw, 3rem); }

.rail {
  display: flex; align-items: flex-start;
  gap: clamp(.6rem, 1.1vw, 1rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: clamp(1.25rem, 4vw, 3rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1rem;
}
.rail-item { flex: 0 0 clamp(220px, 25vw, 320px); scroll-snap-align: start; }
.rail-item img { aspect-ratio: 4 / 5; height: auto; }
.rail-item figcaption {
  margin-top: .9rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(252, 250, 241, .68);
}

/* ---------- Citation et chiffres ---------- */

.proof {
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.proof blockquote { margin: 0; }
.proof blockquote p {
  font-size: clamp(1.35rem, 2.6vw, 2.35rem);
  font-style: italic; line-height: 1.28;
}
.proof cite {
  display: block; margin-top: 1.5rem; font-style: normal;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.stats { display: grid; gap: 1.5rem; margin: 0; }
.stats > div { border-top: 1px solid var(--line); padding-top: .9rem; }
.stats dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin: .35rem 0 0; font-size: 2.4rem; line-height: 1; color: var(--accent-text); }
.stats dd span { font-size: 1rem; color: var(--muted); }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; } }

/* ---------- Infos pratiques ---------- */

.infos-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
.infos-grid h3 {
  font-family: 'Red Hat Display', sans-serif;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.infos-grid .h3-next { margin-top: 2.4rem; }
.infos-copy .cta-row { margin-top: 2.4rem; }

/* Carte : fond OpenStreetMap retraite aux couleurs de la maison */
.map {
  position: relative; display: block;
  aspect-ratio: 16 / 10; overflow: hidden;
  isolation: isolate;
}
/* picture est inline par defaut : sans cela l'image ne remplit pas le cadre */
.map picture { display: block; width: 100%; height: 100%; }
.map img { transition: transform 1s var(--ease); }
.map-cta {
  position: absolute; left: clamp(1rem, 2vw, 1.6rem); bottom: clamp(1rem, 2vw, 1.6rem);
  background: var(--green); color: var(--dark);
  padding: .7rem 1.5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
@media (hover: hover) {
  .map:hover img { transform: scale(1.04); }
  .map:hover .map-cta { background: var(--green-deep); color: var(--cream); }
}
.map-credit {
  margin-top: 1.4rem; text-align: center;
  font-size: .68rem; letter-spacing: .06em; color: var(--muted);
}
.infos-grid address { font-style: normal; font-size: 1.25rem; line-height: 1.5; }
.tel { margin-top: .8rem; }
.tel a { text-decoration: none; color: var(--accent-text); border-bottom: 1.5px solid var(--green); font-size: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { padding: .55rem 0; vertical-align: top; font-weight: 400; text-align: left; }
.hours th { color: var(--muted); font-size: .95rem; width: 55%; }
.hours tr + tr { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .infos-grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- Pied de page ---------- */

.foot {
  background: var(--dark); color: var(--cream);
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
}
.foot-logo { display: block; width: auto; height: 46px; margin: 0 auto; }
.foot-links {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.5rem;
}
.foot-links a {
  color: rgba(252, 250, 241, .78); text-decoration: none;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.foot-links a:hover { color: var(--cream); }

/* ---------- Apparition au defilement ---------- */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card img { transition: none; }
}
