/* ==========================================================================
   MENU DE MARIAGE · STYLE DESSIN D'ARTISTE HARMONISÉ AU SITE PRINCIPAL
   Alya & Jesse · 12 Septembre 2026
   Thème : Élégance florale et tons terreux
   ========================================================================== */

:root {
  /* Nuancier officiel du mariage harmonisé avec le site principal */
  --ink: #2d211a;
  --muted: #765f53;
  --cream: #fffaf2;
  --paper: #f8efe2;
  --sage: #8a8f5a;
  --terracotta: #c8653d;
  --cacao: #6b4a33;
  --fuchsia: #c2188b;
  --line: rgba(107, 74, 51, 0.18);
  --shadow: 0 24px 80px rgba(45, 33, 26, 0.18);

  /* Typographies harmonisées */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script-title: "Caveat", "Bradley Hand", "Snell Roundhand", cursive;
  --filigree: "Pinyon Script", "Alex Brush", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Fond chaud en dégradé rayonnant identique au site principal */
  background:
    radial-gradient(circle at 15% 10%, rgba(194, 24, 139, 0.13), transparent 26rem),
    radial-gradient(circle at 85% 34%, rgba(138, 143, 90, 0.2), transparent 24rem),
    linear-gradient(180deg, #fff7ec 0%, #f5e4d2 42%, #fffaf2 100%);
}

/* Grille géométrique subtile de fond identique au site principal */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 56, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 56, 39, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
  z-index: 3;
}

/* Texture de grain argentique identique au site principal */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BARRE DE NAVIGATION HAUTE (STYLE SITE PRINCIPAL)
   ========================================================================== */

.menu-nav-bar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3.5rem);
  max-width: 900px;
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cacao);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 74, 51, 0.22);
  background: rgba(255, 250, 242, 0.85);
  box-shadow: 0 4px 14px rgba(45, 33, 26, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.nav-back-button:hover {
  background: var(--cacao);
  color: var(--cream);
  border-color: var(--cacao);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(107, 74, 51, 0.2);
}

/* ==========================================================================
   PAGE CONTAINER & FEUILLE DE MENU D'ARTISTE
   ========================================================================== */

.page-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem 4rem;
}

.menu-art-sheet {
  position: relative;
  width: min(100%, 680px);
  min-height: 860px;
  background-color: var(--paper);
  /* Fond papier cuve chaud avec double halo terracotta et sauge */
  background-image:
    radial-gradient(circle at 16% 24%, rgba(200, 101, 61, 0.08), transparent 15rem),
    radial-gradient(circle at 86% 12%, rgba(138, 143, 90, 0.12), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 239, 226, 0.95) 50%, #f4e7d5 100%);
  padding: clamp(2.8rem, 6.5vw, 4.4rem) clamp(1.4rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem);
  border-radius: 8px;
  border: 1px solid rgba(107, 74, 51, 0.16);
  box-shadow:
    0 1px 3px rgba(45, 33, 26, 0.04),
    0 20px 60px rgba(45, 33, 26, 0.14),
    0 40px 90px rgba(45, 33, 26, 0.08);
  overflow: hidden;
  animation: sheetFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Filet intérieur discret identique au style de la carte faire-part */
.menu-art-sheet::after {
  content: "";
  position: absolute;
  inset: 1.1rem;
  pointer-events: none;
  border: 1px solid rgba(107, 74, 51, 0.12);
  border-radius: 6px;
}

@keyframes sheetFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   FILIGRANES DE MOTS DOUX EN ARRIÈRE-PLAN
   ========================================================================== */

.watermark-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.watermark {
  position: absolute;
  font-family: var(--filigree);
  color: rgba(107, 74, 51, 0.085);
  user-select: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
  animation: watermarkShimmer 8s ease-in-out infinite alternate;
}

.wm-1 {
  top: 7%;
  left: 6%;
  font-size: 2.3rem;
  transform: rotate(-14deg);
}

.wm-2 {
  top: 18%;
  right: 8%;
  font-size: 2.1rem;
  transform: rotate(8deg);
  animation-delay: -2s;
}

.wm-3 {
  top: 42%;
  left: 20%;
  font-size: 2.6rem;
  transform: rotate(-6deg);
  color: rgba(200, 101, 61, 0.075);
  animation-delay: -4s;
}

.wm-4 {
  top: 60%;
  right: 12%;
  font-size: 2.2rem;
  transform: rotate(12deg);
  animation-delay: -1s;
}

.wm-5 {
  bottom: 18%;
  left: 10%;
  font-size: 2.4rem;
  transform: rotate(-10deg);
  animation-delay: -5s;
}

.wm-6 {
  bottom: 6%;
  right: 22%;
  font-size: 2rem;
  transform: rotate(-4deg);
  animation-delay: -3s;
}

.wm-7 {
  top: 75%;
  left: 35%;
  font-size: 2.8rem;
  font-weight: 600;
  color: rgba(138, 143, 90, 0.12);
  transform: rotate(5deg);
  animation-delay: -6s;
}

@keyframes watermarkShimmer {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }

  100% {
    opacity: 0.7;
  }
}

/* ==========================================================================
   ANIMATIONS DES ILLUSTRATIONS DESSINÉES
   ========================================================================== */

.animated-doodle {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animated-doodle:hover {
  transform: scale(1.04);
}

/* 1. HAUT DROITE : Grand vase fleuri */
.doodle-vase-top-right {
  position: absolute;
  top: -10px;
  right: -10px;
  width: clamp(170px, 32vw, 230px);
  height: clamp(170px, 32vw, 230px);
  z-index: 3;
}

/* Balancement doux des branches et fleurs */
.animated-branches {
  transform-origin: 140px 180px;
  animation: swayBranches 7s ease-in-out infinite alternate;
}

@keyframes swayBranches {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(2.5deg) translateY(-2px);
  }

  100% {
    transform: rotate(-2deg) translateY(1px);
  }
}

/* Respiration douce des fleurs individuelles */
.animated-flower {
  transform-origin: center;
  animation: flowerBreathe 5s ease-in-out infinite alternate;
}

.f-left {
  animation-delay: 0s;
}

.f-top {
  animation-delay: -1.2s;
}

.f-right {
  animation-delay: -2.4s;
}

.f-mid-left {
  animation-delay: -3.6s;
}

.f-mid-right {
  animation-delay: -4.8s;
}

@keyframes flowerBreathe {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05) rotate(1.5deg);
  }

  100% {
    transform: scale(0.98) rotate(-1deg);
  }
}

/* 2. MILIEU GAUCHE : Vase bleu & fleurs terracotta/sauge + Verre */
.doodle-vase-mid-left {
  position: absolute;
  top: 26%;
  left: 0.4rem;
  width: clamp(130px, 25vw, 175px);
  height: clamp(170px, 32vw, 230px);
  z-index: 3;
}

/* Balancement gracieux des clochettes/tulipes */
.animated-bell-flowers {
  transform-origin: 50px 110px;
  animation: swayBells 6s ease-in-out infinite alternate;
}

@keyframes swayBells {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-3deg) translateY(-2px);
  }

  100% {
    transform: rotate(2deg) translateY(1px);
  }
}

.bell-flower {
  transform-origin: center top;
  animation: bellNod 4.5s ease-in-out infinite alternate;
}

.bell-1 {
  animation-delay: 0s;
}

.bell-2 {
  animation-delay: -1s;
}

.bell-3 {
  animation-delay: -2s;
}

.bell-4 {
  animation-delay: -3s;
}

.bell-5 {
  animation-delay: -1.5s;
}

@keyframes bellNod {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(4deg) scale(1.03);
  }

  100% {
    transform: rotate(-3deg) scale(0.97);
  }
}

/* Verre esquissé avec scintillement discret */
.animated-glass {
  animation: glassPulse 6s ease-in-out infinite;
}

.glass-gleam {
  animation: gleamShimmer 3.5s ease-in-out infinite alternate;
}

@keyframes glassPulse {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes gleamShimmer {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 0.9;
    stroke-width: 1.6;
  }
}

/* 3. BAS GAUCHE : Coquetier / Coupe de dessert à pois terracotta */
.doodle-dessert-bot-left {
  position: absolute;
  bottom: 4.5rem;
  left: 2.2rem;
  width: clamp(65px, 14vw, 90px);
  height: clamp(80px, 17vw, 110px);
  z-index: 3;
}

.animated-eggcup {
  transform-origin: 45px 95px;
  animation: eggcupSway 6.5s ease-in-out infinite alternate;
}

@keyframes eggcupSway {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(-3px);
  }

  100% {
    transform: rotate(-2deg) translateY(1px);
  }
}

.animated-dots circle {
  animation: dotPulse 4s ease-in-out infinite alternate;
}

.animated-dots circle:nth-child(even) {
  animation-delay: -2s;
}

@keyframes dotPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.18);
    opacity: 1;
  }
}

/* 4. BAS DROITE : Assiette avec mets doré + Tasse à café avec vapeur */
.doodle-plate-bot-right {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  width: clamp(150px, 30vw, 220px);
  height: clamp(130px, 26vw, 185px);
  z-index: 3;
}

/* Vapeur de café montante animée */
.coffee-steam .steam-line {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: steamRise 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
}

.coffee-steam .s1 {
  animation-delay: 0s;
}

.coffee-steam .s2 {
  animation-delay: 1.5s;
}

@keyframes steamRise {
  0% {
    stroke-dashoffset: 20;
    opacity: 0;
    transform: translateY(4px);
  }

  35% {
    opacity: 0.6;
  }

  70% {
    stroke-dashoffset: 0;
    opacity: 0.35;
    transform: translateY(-8px);
  }

  100% {
    stroke-dashoffset: -10;
    opacity: 0;
    transform: translateY(-16px);
  }
}

/* Chaleur dorée du mets */
.dish-pastry {
  animation: pastryWarmth 5s ease-in-out infinite alternate;
}

@keyframes pastryWarmth {
  0% {
    fill: #e0a133;
    filter: drop-shadow(0 0 0 transparent);
  }

  100% {
    fill: #f0b54e;
    filter: drop-shadow(0 0 4px rgba(224, 161, 51, 0.3));
  }
}

/* Petite cuillère avec légère oscillation */
.animated-spoon {
  transform-origin: 140px 146px;
  animation: spoonWiggle 7s ease-in-out infinite alternate;
}

@keyframes spoonWiggle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-3deg);
  }

  100% {
    transform: rotate(2deg);
  }
}

/* ==========================================================================
   CONTENU DU MENU & TYPOGRAPHIE HARMONISÉE
   ========================================================================== */

.menu-content-centered {
  position: relative;
  z-index: 10;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* En-tête */
.menu-art-header {
  max-width: 500px;
  margin: 0 auto clamp(1.8rem, 4.5vw, 2.8rem);
  text-align: center;
}

.menu-eyebrow {
  margin: 0;
  color: var(--terracotta);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-script-title {
  margin: 0.25rem 0 0;
  font-family: var(--script-title);
  font-size: clamp(3.8rem, 11vw, 5.8rem);
  font-weight: 700;
  line-height: 0.88;
  color: var(--ink);
  transform: rotate(-3.5deg);
  display: inline-block;
  letter-spacing: -0.01em;
  transition: transform 0.3s ease;
}

.menu-script-title:hover {
  transform: rotate(-1deg) scale(1.03);
}

.couple-subtitle {
  margin: 0.55rem 0 0;
  color: var(--cacao);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
}

.wedding-theme-tag {
  margin-top: 0.6rem;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Déroulement des sections du repas */
.menu-sections-flow {
  display: grid;
  gap: clamp(1.4rem, 3.8vw, 2.1rem);
  max-width: 460px;
  margin: 0 auto;
}

.menu-group {
  text-align: center;
}

.section-number {
  margin: 0 0 0.2rem;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Titre des rubriques */
.group-heading {
  margin: 0 0 0.65rem;
  color: var(--cacao);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Liste des plats */
.items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.items-list li {
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.3;
  transition: color 0.2s ease, transform 0.2s ease;
}

.items-list li:hover {
  color: var(--terracotta);
  transform: translateY(-1px);
}

/* Pied de page du menu */
.menu-card-footer {
  margin-top: clamp(2.2rem, 5vw, 3rem);
  text-align: center;
}

.footer-line-accent {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  color: var(--cacao);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.footer-line-accent span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107, 74, 51, 0.28), transparent);
}

.appetit-quote {
  margin: 0;
  padding: 0 0.4rem;
}

.wedding-place-tag {
  margin: 0.75rem 0 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ==========================================================================
   ADAPTATION MOBILE & PETITS ÉCRANS
   ========================================================================== */

@media (max-width: 640px) {
  .menu-nav-bar {
    padding: 0.8rem 1rem;
  }

  .page-container {
    padding: 0.4rem 0.6rem 2.8rem;
  }

  .menu-art-sheet {
    min-height: auto;
    padding: 2.2rem 1.1rem 2rem;
  }

  .menu-art-sheet::after {
    inset: 0.65rem;
  }

  .menu-content-centered {
    max-width: 100%;
  }

  .doodle-vase-top-right {
    top: -8px;
    right: -12px;
    width: 130px;
    height: 130px;
    opacity: 0.8;
  }

  .doodle-vase-mid-left {
    top: 22%;
    left: -14px;
    width: 105px;
    height: 140px;
    opacity: 0.55;
  }

  .doodle-dessert-bot-left {
    bottom: 3.2rem;
    left: 0.4rem;
    width: 55px;
    height: 70px;
    opacity: 0.7;
  }

  .doodle-plate-bot-right {
    bottom: 0.2rem;
    right: -6px;
    width: 130px;
    height: 110px;
    opacity: 0.75;
  }

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

  .footer-line-accent span {
    width: min(100%, 10rem);
    margin: 0 auto;
  }

  .watermark {
    font-size: 1.6rem !important;
  }
}