/* Charte Mémé Jeanne (d'après le catalogue Canva) */
:root {
  --cream: #fff9ef;
  --paper: #f9f5f0;
  --sand: #d3b094;
  --sage: #76956b;
  --sage-light: #96a78d;
  --terracotta: #c4683f;
  --brown: #9a5a40;
  --red: #d63b3b;
  --ink: #4a3a32;
  --soft: #7b6a60;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
h1, h2 { text-transform: uppercase; letter-spacing: .03em; color: var(--sage); }
h3 { color: var(--terracotta); }

.script { font-family: 'Allura', cursive; color: var(--brown); font-size: 2rem; line-height: 1.1; }
.script.center { text-align: center; margin-bottom: 1.5rem; }
.script.big { font-size: 3rem; margin-top: -.6rem; }
.script-sm { font-family: 'Allura', cursive; font-size: 1.5rem; color: var(--brown); }

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 0% 100%, rgba(211,176,148,.55) 0 14%, transparent 14.2%),
    radial-gradient(circle at 100% 0%, rgba(150,167,141,.35) 0 12%, transparent 12.2%),
    var(--cream);
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; max-width: 1150px; width: 100%; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-brand span { font-family: 'Allura', cursive; font-size: 1.9rem; color: var(--brown); }
.nav-links a { margin-left: 1.4rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links a:hover { color: var(--terracotta); }

.hero-content {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 1rem 1.5rem 3rem;
}
.hero-logo { width: min(280px, 65vw); height: auto; filter: drop-shadow(0 8px 24px rgba(154,90,64,.12)); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; }
.hero .script { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--red); margin-bottom: 1rem; }
.tagline { max-width: 34rem; font-size: 1.1rem; color: var(--soft); margin-bottom: 2rem; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block; background: var(--terracotta); color: #fff;
  padding: .85rem 1.7rem; border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 2px solid var(--terracotta); transition: background .2s, transform .2s;
}
.btn:hover { background: var(--brown); border-color: var(--brown); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--terracotta); }
.btn-ghost:hover { color: #fff; }

/* Sections */
.section { padding: 5rem 1.5rem; text-align: center; }
.section.alt { background: var(--paper); }
.section h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.intro { color: var(--soft); max-width: 36rem; margin: 0 auto 2.5rem; }

/* Cartes collections */
.collections {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem; max-width: 1150px; margin: 0 auto; text-align: left;
}
.collections.two { max-width: 760px; }
.card {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(74,58,50,.08); transition: transform .25s;
}
.card:hover { transform: translateY(-5px); }
.card > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.duo { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 3px; aspect-ratio: 4/5; }
.duo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.card-body { padding: 1.1rem 1.3rem 1.4rem; }
.card-body h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.card-body p { color: var(--soft); font-size: .95rem; }

/* Noël */
.noel {
  background:
    radial-gradient(circle at 95% 10%, rgba(214,59,59,.08) 0 10%, transparent 10.2%),
    var(--paper);
}
.noel h2 { color: #5a1f2b; }
.noel .script { color: var(--red); }
.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  max-width: 1150px; margin: 0 auto;
}
.mosaic figure { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(74,58,50,.1); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform .4s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic .wide { grid-column: span 4; }
.mosaic .wide img { aspect-ratio: 21/9; object-position: center 40%; }
.mosaic figcaption {
  position: absolute; left: .8rem; bottom: .8rem; background: rgba(255,249,239,.92);
  padding: .25rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--ink);
}

/* Étapes commande */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 2rem auto 0; }
.step { background: #fff; border-radius: 20px; padding: 1.8rem 1.4rem; box-shadow: 0 4px 18px rgba(74,58,50,.06); }
.step span {
  display: inline-flex; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--sage); color: #fff; font-weight: 700; margin-bottom: .7rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--soft); font-size: .95rem; }

/* Événement */
.event {
  display: flex; gap: 1.5rem; align-items: center; max-width: 600px; margin: 2rem auto 0;
  background: #fff; padding: 1.5rem; border-radius: 20px; box-shadow: 0 4px 18px rgba(74,58,50,.08); text-align: left;
}
.event-date {
  background: var(--sage); color: #fff; border-radius: 14px; padding: .8rem 1.1rem;
  text-align: center; display: flex; flex-direction: column; min-width: 80px;
}
.event-date .day { font-size: 2rem; font-family: 'DM Serif Display', serif; line-height: 1; }
.event-date .month { text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.event p { color: var(--soft); }
.event h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.event p + p { margin-top: .35rem; }
.event .event-orga { font-size: .85rem; font-style: italic; }
.event-map { display: inline-block; margin-top: .6rem; color: var(--terracotta); font-weight: 700; text-decoration: none; }
.event-map:hover { text-decoration: underline; }
.event-none { color: var(--soft); margin-top: 1.5rem; }
.event-none a { color: var(--terracotta); font-weight: 700; }
[hidden] { display: none !important; }

/* Footer */
.footer { text-align: center; padding: 3rem 2rem; font-size: .9rem; color: var(--soft); }
.footer .merci { font-size: 3.2rem; color: #d0739a; margin-bottom: .5rem; }
.footer details { margin-top: 1rem; }
.footer summary { cursor: pointer; text-decoration: underline; }
.footer details p { margin-top: .75rem; font-size: .8rem; max-width: 620px; margin-inline: auto; }

@media (max-width: 760px) {
  .nav { flex-direction: column; gap: .5rem; }
  .nav-links a { margin: 0 .55rem; font-size: .92rem; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .wide { grid-column: span 2; }
  .mosaic .wide img { aspect-ratio: 4/3; }
  .section { padding: 3.5rem 1.2rem; }
}

/* ---------- Page de captation (QR code) ---------- */
body.capture {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem;
  background:
    radial-gradient(circle at 0% 100%, rgba(211,176,148,.55) 0 18%, transparent 18.2%),
    radial-gradient(circle at 100% 0%, rgba(150,167,141,.35) 0 14%, transparent 14.2%),
    var(--cream);
}
.capture-card {
  background: #fff; border-radius: 24px; box-shadow: 0 6px 30px rgba(74,58,50,.1);
  padding: 1.6rem 1.4rem 2rem; max-width: 460px; width: 100%; text-align: center;
}
.capture-logo { width: 150px; height: auto; margin: 0 auto .4rem; display: block; }
.capture-card h1 { font-size: 1.9rem; line-height: 1.1; margin-bottom: .2rem; }
.capture-card .script { color: var(--red); margin-bottom: .8rem; }
.capture-intro { color: var(--soft); margin-bottom: 1.5rem; }
.capture form { text-align: left; display: flex; flex-direction: column; gap: .9rem; }
.capture label { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .95rem; }
.capture input[type=text], .capture input[type=email], .capture input[type=tel], .capture textarea {
  font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1.5px solid #efe4d6;
  border-radius: 12px; background: var(--cream); font-size: 16px;
}
.capture input:focus, .capture textarea:focus { outline: none; border-color: var(--terracotta); background: #fff; }
.capture .hint { font-size: .85rem; color: var(--soft); margin-top: -.5rem; }
.capture fieldset { border: none; display: flex; flex-direction: column; gap: .5rem; }
.capture legend { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.capture label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 400; }
.capture label.check input { width: 20px; height: 20px; accent-color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.capture .consent { font-size: .82rem; color: var(--soft); }
.capture button.btn { font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; padding: 1rem; margin-top: .3rem; }
.capture button.btn:disabled { opacity: .6; }
.alert { background: #fbe9e9; color: var(--red); border-radius: 12px; padding: .8rem; margin-bottom: 1rem; font-size: .9rem; }
.hp { position: absolute; left: -9999px; }
.merci-box { text-align: center; }
.merci-box .script { font-size: 3.4rem; color: #d0739a; }
.merci-box p { color: var(--soft); margin: .5rem 0 1.5rem; }
