/* =========================================================
   Vivi Pâtisserie — feuille de style
   Pour changer l'ambiance : modifiez les variables ci-dessous.
   ========================================================= */
:root {
  --cream: #fbf6ef;
  --cream-2: #f4ebe0;
  --blush: #f3d5cf;
  --rose: #c9566b;
  --rose-dark: #a8404f;
  --cocoa: #3a2722;
  --cocoa-soft: #6e5650;
  --gold: #c8a265;
  --white: #fff;

  --font-title: "Fraunces", Georgia, serif;
  --font-text: "DM Sans", system-ui, sans-serif;

  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 20px 50px -25px rgba(58, 39, 34, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cocoa);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
em { font-style: italic; color: var(--rose); }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.02em; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.5rem; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.8rem; border-radius: 999px; border: 1.5px solid var(--cocoa);
  background: var(--cocoa); color: var(--cream); text-decoration: none; font-weight: 500;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--rose); border-color: var(--rose); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cocoa); }
.btn--ghost:hover { color: var(--cream); }
.btn--small { padding: .6rem 1.2rem; font-size: .95rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(251, 246, 239, .85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(58,39,34,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-title); font-size: 2rem; font-style: italic; text-decoration: none; }
.logo span { color: var(--rose); }
.logo--light { color: var(--cream); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: var(--rose); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cocoa); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; position: relative; }
.hero::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -10vw; z-index: -1;
  background: radial-gradient(circle, var(--blush) 0%, transparent 65%); opacity: .8;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero__title { font-size: clamp(3rem, 7.5vw, 6.2rem); letter-spacing: -.035em; font-weight: 300; }
.hero__lead { font-size: 1.15rem; color: var(--cocoa-soft); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 3rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.5rem; }
.hero__stats strong { display: block; font-family: var(--font-title); font-size: 2.2rem; font-weight: 400; line-height: 1; }
.hero__stats span { font-size: .85rem; color: var(--cocoa-soft); }
.hero__visual { position: relative; aspect-ratio: 4/5; }
.hero__img { position: absolute; overflow: hidden; box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main {
  inset: 0 0 8% 12%; border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: linear-gradient(160deg, #f6d9d3, #e7a8a8 55%, #c9566b);
}
.hero__img--small {
  width: 42%; aspect-ratio: 1; left: 0; bottom: 0; border-radius: 50%; border: 8px solid var(--cream);
  background: linear-gradient(135deg, #f1e4c9, var(--gold));
  animation: float 6s ease-in-out infinite;
}
.hero__badge { position: absolute; top: 4%; right: -2%; width: 120px; height: 120px; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.hero__badge text { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; fill: var(--cocoa); font-family: var(--font-text); }
.hero__badge span { font-size: 1.6rem; color: var(--rose); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ---------- Bandeau ---------- */
.marquee { background: var(--cocoa); color: var(--cream); overflow: hidden; padding: 1.2rem 0; transform: rotate(-1.5deg); margin: 0 -2rem; }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 35s linear infinite; }
.marquee span { font-family: var(--font-title); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; white-space: nowrap; }
.marquee span:nth-child(even) { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- À propos ---------- */
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__photo {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(200deg, var(--cream-2), var(--blush)); box-shadow: var(--shadow);
}
.about__photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.about__photo-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-title); font-style: italic; color: var(--cocoa-soft); }
.about__text > p { color: var(--cocoa-soft); }
.values { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: .8rem; }
.values li { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.2rem; background: var(--white); border-radius: 14px; }
.values span { font-size: 1.3rem; }
.signature { font-family: var(--font-title); font-style: italic; font-size: 2.6rem; color: var(--rose); }

/* ---------- Créations ---------- */
.creations { background: var(--cream-2); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  border: 1.5px solid rgba(58,39,34,.2); background: transparent; color: var(--cocoa);
  padding: .55rem 1.1rem; border-radius: 999px; font-size: .9rem; transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--cocoa); }
.filter.is-active { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }
.gallery { columns: 3 280px; column-gap: 1.25rem; }
.tile {
  break-inside: avoid; margin-bottom: 1.25rem; position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; text-align: left; color: var(--white);
  transition: opacity .4s, transform .4s var(--ease);
}
.tile.is-hidden { display: none; }
.tile__media { aspect-ratio: var(--ratio, 4/5); background: var(--bg); transition: transform .8s var(--ease); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile__media { transform: scale(1.06); }
.tile__caption {
  position: absolute; inset: auto 0 0; padding: 3rem 1.3rem 1.2rem;
  background: linear-gradient(transparent, rgba(40, 24, 20, .75));
}
.tile__caption strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; }
.tile__caption span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tile__icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.5rem; opacity: .55; pointer-events: none; }

/* ---------- Étapes ---------- */
.steps { background: var(--cocoa); color: var(--cream); }
.steps em, .steps .eyebrow { color: var(--gold); }
.steps__list { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { padding: 2rem 1.6rem; border: 1px solid rgba(251,246,239,.15); border-radius: var(--radius); transition: background .4s, transform .4s var(--ease); }
.step:hover { background: rgba(251,246,239,.05); transform: translateY(-6px); }
.step__num { font-family: var(--font-title); font-size: 3rem; font-style: italic; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.5rem; margin: 1rem 0 .6rem; }
.step p { color: rgba(251,246,239,.7); font-size: .95rem; margin: 0; }
.steps__note { margin-top: 2.5rem; color: rgba(251,246,239,.8); }

/* ---------- Formulaires ---------- */
.card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.form__hint { font-size: .9rem; color: var(--cocoa-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--cocoa); background: var(--cream);
  border: 1.5px solid transparent; border-radius: 12px; padding: .8rem 1rem; transition: border-color .3s, background .3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); background: var(--white); }
.field .is-invalid { border-color: var(--rose-dark); background: #fdf0f0; }
.checkbox { display: flex; gap: .7rem; font-size: .85rem; color: var(--cocoa-soft); margin-bottom: 1.4rem; line-height: 1.5; }
.checkbox input { accent-color: var(--rose); margin-top: .2rem; width: 18px; height: 18px; flex-shrink: 0; }
.form__status { margin: 1rem 0 0; font-size: .95rem; min-height: 1.5em; }
.form__status.is-success { color: #2f7a4b; }
.form__status.is-error { color: var(--rose-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.stars { display: flex; gap: .2rem; }
.stars button { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: #e3d6c8; padding: 0 .1rem; transition: color .2s, transform .2s; }
.stars button.is-on { color: var(--gold); }
.stars button:hover { transform: scale(1.15); }

/* ---------- Livre d'or ---------- */
.guestbook__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.guestbook__inner > form { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.guestbook__list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.entry { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.7rem; position: relative; animation: pop .6s var(--ease) both; }
.entry::before { content: "“"; position: absolute; top: -.3rem; right: 1.2rem; font-family: var(--font-title); font-size: 5rem; color: var(--blush); line-height: 1; }
.entry__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.entry__name { font-family: var(--font-title); font-size: 1.25rem; }
.entry__stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.entry__date { font-size: .8rem; color: var(--cocoa-soft); }
.entry p { margin: 0; color: var(--cocoa-soft); position: relative; }
.entry--pending { opacity: .7; border: 1.5px dashed var(--blush); }
.guestbook__more { margin-top: 1.5rem; }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Réseaux ---------- */
.social { text-align: center; background: linear-gradient(180deg, var(--cream), var(--blush)); }
.social .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.social__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.social__link {
  display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.6rem; border-radius: 999px;
  background: var(--white); text-decoration: none; font-weight: 500; transition: transform .3s var(--ease), background .3s, color .3s;
}
.social__link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social__link:hover { background: var(--rose); color: var(--white); transform: translateY(-4px) rotate(-2deg); }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__info > p { color: var(--cocoa-soft); }
.contact__details { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__details li { display: flex; gap: 1rem; align-items: center; }
.contact__details span { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.contact__details a { text-decoration: none; border-bottom: 1px solid var(--blush); }

/* ---------- Pied de page ---------- */
.footer { background: var(--cocoa); color: rgba(251,246,239,.75); padding: 4rem 0 2rem; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 1rem; }
.footer .logo { font-size: 3rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { text-decoration: none; color: var(--cream); }
.footer__links a:hover { color: var(--gold); }
.footer__legal { font-size: .85rem; margin-top: 1.5rem; opacity: .7; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(30, 18, 15, .92); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 1rem; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 1rem; color: var(--cream); text-align: center; }
.lightbox__img { width: min(80vw, 640px); max-height: 75vh; aspect-ratio: var(--ratio, 4/5); border-radius: var(--radius); overflow: hidden; background: var(--bg); display: grid; place-items: center; font-size: 5rem; }
.lightbox__img img { width: 100%; height: 100%; object-fit: contain; background: #1e120f; }
.lightbox figcaption strong { display: block; font-family: var(--font-title); font-weight: 400; font-size: 1.6rem; }
.lightbox figcaption span { opacity: .75; }
.lightbox button { background: none; border: 0; color: var(--cream); font-size: 3rem; line-height: 1; padding: .5rem 1rem; opacity: .75; transition: opacity .2s; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { position: absolute; top: .5rem; right: .5rem; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .about__inner, .guestbook__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; width: 100%; margin-inline: auto; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .guestbook__inner > form { position: static; }
  .about__photo { max-width: 460px; }
}
@media (max-width: 760px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--cream); flex-direction: column; justify-content: center;
    gap: 1.8rem; font-size: 1.4rem; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav a:not(.btn) { font-family: var(--font-title); font-size: 1.8rem; }
  .nav.is-open { opacity: 1; pointer-events: auto; }
  .hero__stats { gap: 1.5rem; }
  .hero__stats strong { font-size: 1.7rem; }
  .form__row { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 1rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__img { width: 90vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Ajouts : images des étapes & grille Instagram ---------- */
.step { padding: 0 0 1.8rem; overflow: hidden; }
.step > :not(.step__img) { padding-inline: 1.6rem; }
.step__img { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 1.4rem; }
.step__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .8s var(--ease); }
.step:hover .step__img img { transform: scale(1.07); }
.step__num { display: block; margin-top: -3.2rem; position: relative; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

.social__handle { font-family: var(--font-title); font-style: italic; font-size: 1.3rem; color: var(--rose); }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin: 2.5rem 0 1rem; }
.insta { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: block; }
.insta img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.insta::after {
  content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--white);
  background: rgba(201, 86, 107, .45); opacity: 0; transition: opacity .4s;
}
.insta:hover img { transform: scale(1.1); }
.insta:hover::after { opacity: 1; }
.insta:nth-child(even) { transform: translateY(1.5rem); }
.insta.reveal.is-visible:nth-child(even) { transform: translateY(1.5rem); }

/* parallaxe douce du hero */
.hero__img--main img { transform: scale(1.08) translateY(var(--parallax, 0)); transition: transform .1s linear; }

@media (max-width: 960px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .insta:nth-child(even), .insta.reveal.is-visible:nth-child(even) { transform: none; }
}
.step { position: relative; }
.step > .step__num {
  position: absolute; top: 1rem; left: 1rem; margin: 0; padding: .35rem .8rem; font-size: 1.4rem;
  background: var(--cocoa); border-radius: 999px; text-shadow: none;
}
@media (max-width: 600px) {
  .gallery { columns: 2; column-gap: .7rem; }
  .tile { margin-bottom: .7rem; border-radius: 16px; }
  .tile__caption { padding: 2rem .8rem .7rem; }
  .tile__caption strong { font-size: 1rem; line-height: 1.2; }
  .tile__caption span { font-size: .65rem; }
}
