/* Fenaison · page Mariages (/traiteur-mariage-touraine)
   Moment propre à la page : « Le jour J, heure par heure ». Une scène
   collante où la journée passe (le panneau va du pré du début d’après-midi
   au vert de nuit) et où les six moments du jour se posent l’un sur l’autre
   comme des assiettes, pendant que l’heure tourne à gauche. */

.btn-pre { background: var(--pre); color: var(--encre); }
.btn-pre:hover { background: #D3E2CC; }

/* ---------- Introduction ---------- */
.m-intro { padding-top: 16px; }
.m-intro-in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-items: center; min-height: calc(100svh - var(--hdr) - 32px);
}
.m-intro-texte { grid-column: 1 / 7; padding-block: 32px 40px; }
.m-intro-texte .titre-page { font-size: clamp(40px, 4.45vw, 64px); }
.m-intro-texte .intro-chapo { margin-top: 26px; }
.m-intro-texte .actions { margin-top: 32px; }
.m-reperes { margin-top: 28px; max-width: 560px; }
.m-reperes li { border-radius: 16px; }
.m-intro-photo {
  grid-column: 7 / 13; position: relative; align-self: stretch;
  min-height: 560px; max-height: 860px;
  border-radius: 28px; overflow: hidden; background: #D6DACE;
}
.m-intro-photo img {
  position: absolute; left: 0; top: -4%; width: 100%; height: 108%;
  object-fit: cover; object-position: 50% 42%;
  transform: translate3d(0, calc((var(--v) - .5) * -5%), 0);
}

/* ---------- Formules ---------- */
.f-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.f-carte { display: flex; flex-direction: column; gap: 16px; padding: 32px 30px 34px; }
.f-carte h3 { font-stretch: 116%; --w: 116; font-weight: 520; font-size: 30px; letter-spacing: -.02em; line-height: 1.04; }
.f-carte .prix { align-self: flex-start; }
.f-carte > p:last-child { font-size: 16.5px; line-height: 1.55; }

.f-encadre { margin-top: 48px; }
.f-encadre-in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px;
  padding-block: 72px 80px;
}
.f-encadre h3 { font-stretch: 112%; --w: 112; font-weight: 560; font-size: 21px; letter-spacing: -.012em; line-height: 1.15; margin-bottom: 16px; }
.f-compris { grid-column: 1 / 6; }
.f-compris > p { font-size: 16.5px; line-height: 1.6; }
.f-tarifs { display: grid; gap: 8px; margin-top: 24px; }
.f-tarifs li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--lin); border-radius: 16px; padding: 12px 12px 12px 18px; font-size: 15.5px; font-weight: 520;
}
.f-tarifs .prix { flex: none; background: var(--pre); }
.f-options { grid-column: 7 / 13; }
.f-options-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-options-liste li {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--lin); border-radius: 18px; padding: 16px 20px 18px;
}
.f-opt-nom { font-weight: 600; font-size: 16px; line-height: 1.35; }
.f-opt-prix { font-size: 15px; line-height: 1.45; color: var(--encre-douce); }
.f-opt-long { grid-column: 1 / -1; }
.f-opt-detail { margin-top: 6px; font-size: 15px; line-height: 1.5; }

/* ---------- Menu de printemps ---------- */
.mp-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.mp-photo { grid-column: 1 / 6; position: relative; }
.mp-photo-cadre {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: #D6DACE;
  clip-path: inset(calc((1 - var(--v)) * 5%) calc((1 - var(--v)) * 4%) round 28px);
}
.mp-photo-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 26% 50%; }
.mp-legende {
  position: absolute; left: 20px; bottom: 20px; max-width: calc(100% - 40px);
  background: var(--lin); border-radius: 999px; padding: 11px 18px;
  font-size: 14.5px; font-weight: 540; line-height: 1.35;
}
.mp-texte { grid-column: 7 / 13; padding-top: 8px; }
.mp-carte { margin-top: 36px; padding: 14px 36px; }
.mp-plat { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); column-gap: 20px; padding-block: 20px; }
.mp-plats dt { font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--regain); padding-top: 3px; }
.mp-plats dt span { display: block; font-weight: 500; color: var(--encre-douce); }
.mp-plats dd { margin: 0; font-stretch: 106%; --w: 106; font-size: 19px; line-height: 1.42; letter-spacing: -.004em; text-wrap: pretty; }
.mp-saison { margin-top: 24px; font-size: 16px; line-height: 1.55; color: var(--encre-douce); max-width: 58ch; }

/* ---------- Compris, pas compris ---------- */
.cp-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.cp-col { border-radius: 28px; padding: 38px 40px 40px; display: flex; flex-direction: column; }
.cp-non { background: var(--pre); }
.cp-col h3 { font-stretch: 116%; --w: 116; font-weight: 520; font-size: 28px; letter-spacing: -.018em; line-height: 1.05; margin-bottom: 24px; }
.cp-liste li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.45; }
.cp-liste li + li { margin-top: 12px; }
.cp-liste li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 12px; border-radius: 50%;
}
.cp-oui li::before { background: var(--regain); }
.cp-non li::before { box-shadow: inset 0 0 0 2px var(--encre-douce); }
.cp-chute { margin-top: auto; padding-top: 28px; font-size: 16px; line-height: 1.5; color: var(--encre-douce); }
.cp-oui .cp-chute { font-stretch: 108%; --w: 108; font-size: 18px; color: var(--encre); font-weight: 480; }

/* ---------- Le jour J ---------- */
.jourj { padding-top: var(--sec); }
.jj-scene { padding-inline: var(--marge-bloc); }
.jj-ciel { position: relative; border-radius: 32px; background: var(--pre); overflow: hidden; isolation: isolate; }
.jj-nuit { display: none; }
.jj-in {
  width: var(--cont); margin-inline: auto; padding-block: 104px 112px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start;
}
.jj-gauche { grid-column: 1 / 6; }
.jj-gauche .titre { max-width: 12ch; }
.jj-note { margin-top: 20px; max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--encre-douce); }
.jj-horloge, .jj-index { display: none; }
.jourj:not(.scene-on) .jj-gauche { position: sticky; top: calc(var(--hdr) + 40px); }
.jj-etapes { grid-column: 7 / 13; display: grid; gap: 14px; }
.jj-carte {
  position: relative; background: var(--porcelaine); border-radius: 24px; padding: 26px 30px 28px;
  box-shadow: var(--ombre);
}
.jj-h { display: inline-flex; align-items: center; background: var(--pre); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; line-height: 1.2; font-variant-numeric: proportional-nums lining-nums; }
.jj-carte h3 { margin-top: 14px; font-stretch: 112%; --w: 112; font-weight: 560; font-size: 23px; letter-spacing: -.014em; line-height: 1.12; text-wrap: balance; }
.jj-carte > p:last-child { margin-top: 8px; font-size: 16.5px; line-height: 1.5; color: var(--encre); }

/* Scène (posée par mariage.js quand l’écran le permet et que le mouvement est accepté) */
.jourj.scene-on { height: 480svh; padding-top: 0; margin-top: var(--sec); }
.jourj.scene-on .jj-scene {
  position: sticky; top: var(--hdr); height: calc(100svh - var(--hdr));
  padding-bottom: var(--marge-bloc);
}
.jourj.scene-on .jj-ciel { height: 100%; }
.jourj.scene-on .jj-in {
  height: 100%; padding-block: clamp(40px, 7svh, 72px) 84px;
  grid-template-rows: minmax(0, 1fr); align-items: stretch;
}
.jourj.scene-on .jj-gauche { display: flex; flex-direction: column; min-height: 0; }
.jourj.scene-on .jj-horloge {
  display: block; margin-block: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 80%, transparent 100%);
  font-stretch: 122%; --w: 122; font-weight: 470; letter-spacing: -.03em;
  font-size: clamp(76px, min(8.4vw, 15svh), 132px); line-height: 1.3; height: 1.3em;
  font-variant-numeric: proportional-nums lining-nums;
}
.jj-heures { display: flex; flex-direction: column; will-change: transform; }
.jj-heures span { display: block; height: 1.3em; line-height: 1.3em; white-space: nowrap; }
.jourj.scene-on .jj-index {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0;
  font-size: 14px; font-weight: 600; line-height: 1.2; font-variant-numeric: proportional-nums lining-nums;
}
.jj-index li {
  padding: 7px 12px; border-radius: 999px; color: var(--encre-douce);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.jj-index li.passe { color: var(--encre); }
.jj-index li.on { background: var(--regain); color: #fff; }
.jourj.scene-on .jj-etapes {
  position: relative; display: block; align-self: center;
  height: var(--jj-h, 280px);
}
.jourj.scene-on .jj-etape {
  position: absolute; left: 0; right: 0; top: 0; z-index: var(--i);
  will-change: transform, opacity; transform-origin: 50% 100%;
}
.jourj.scene-on .jj-etape + .jj-etape { transform: translate3d(0, 120vh, 0); }
.jourj.scene-on .jj-carte {
  height: var(--jj-h, auto); box-shadow: none; padding: 36px 44px 42px;
}
.jourj.scene-on .jj-h { font-size: 15px; padding: 7px 14px; }
.jourj.scene-on .jj-carte h3 { margin-top: 22px; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.08; }
.jourj.scene-on .jj-carte > p:last-child { margin-top: 14px; font-size: 19px; line-height: 1.5; max-width: 34ch; }
.jourj.scene-on .jj-carte::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: var(--ombre-nette); opacity: var(--o, 1);
}

/* Le soir tombe : le texte posé sur le panneau passe en lin. */
.jj-gauche .titre, .jj-note, .jj-horloge { transition: color .35s var(--ease); }
.jj-soir .jj-gauche .titre, .jj-soir .jj-horloge { color: var(--lin); }
.jj-soir .jj-note { color: #CFDDD4; }
.jj-soir .jj-index li { color: #B9CDC2; }
.jj-soir .jj-index li.passe { color: var(--lin); }
.jj-soir .jj-index li.on { background: var(--regain-clair); color: var(--encre); }

/* ---------- Dégustation ---------- */
.dg-in {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px;
  align-items: center; padding-block: 104px;
}
.dg-texte { grid-column: 1 / 7; }
.dg-texte .texte-lead { margin-top: 24px; max-width: 52ch; }
.dg-prix { display: inline-flex; margin-top: 28px; background: var(--lin); font-size: 15px; padding: 10px 16px; border-radius: 16px; }
.dg-table {
  grid-column: 8 / 13; background: var(--porcelaine); border-radius: 28px; padding: 34px 36px 36px;
  box-shadow: var(--ombre);
}
.dg-table-titre { font-size: 14.5px; font-weight: 600; color: var(--regain); margin-bottom: 14px; }
.dg-liste li {
  display: flex; align-items: center; gap: 16px; min-height: 56px;
  font-stretch: 110%; --w: 110; font-size: 21px; font-weight: 480; letter-spacing: -.01em; line-height: 1.2;
}
.dg-nb { display: inline-flex; gap: 5px; width: 66px; flex: none; }
.dg-nb i {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, var(--porcelaine) 0 4px, var(--pre) 4.5px 100%);
  box-shadow: inset 0 0 0 1.5px var(--regain);
}

/* ---------- Questions ---------- */
.q-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: start; }
.q-in > .titre { grid-column: 1 / 5; position: sticky; top: calc(var(--hdr) + 32px); }
.q-in > .faq-liste { grid-column: 5 / 13; }

/* ---------- Appel final : photo de la tablée ---------- */
.appel-photo-cadre > img { object-position: 50% 62%; }
.dock-gauche .appel-photo-cadre { justify-content: flex-end; }
.dock-droite .appel-photo-cadre { justify-content: flex-start; }

/* ---------- Tablette ---------- */
@media (max-width: 1199px) {
  .f-options-liste { grid-template-columns: 1fr; }
  .f-compris { grid-column: 1 / 7; }
}
@media (max-width: 1023px) {
  .m-intro-in { min-height: 0; row-gap: 32px; }
  .m-intro-texte { grid-column: 1 / -1; padding-block: 24px 0; }
  .m-intro-texte .titre-page { max-width: 14ch; }
  .m-intro-photo { grid-column: 1 / -1; aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
  .f-cartes { grid-template-columns: 1fr; }
  .f-compris, .f-options { grid-column: 1 / -1; }
  .f-options-liste { grid-template-columns: 1fr 1fr; }
  .mp-photo { grid-column: 1 / -1; }
  .mp-photo-cadre { aspect-ratio: 3 / 2; }
  .mp-photo-cadre img { object-position: 50% 50%; }
  .mp-texte { grid-column: 1 / -1; padding-top: 48px; }
  .cp-colonnes { grid-template-columns: 1fr; }
  .jj-gauche, .jj-etapes { grid-column: 1 / -1; }
  .jourj:not(.scene-on) .jj-gauche { position: static; }
  .dg-texte, .dg-table { grid-column: 1 / -1; }
  .q-in > .titre, .q-in > .faq-liste { grid-column: 1 / -1; position: static; }

  /* Scène en colonne : titre, heure, puis la pile des moments. */
  .jourj.scene-on .jj-in {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    row-gap: 12px; padding-block: 36px 84px;
  }
  .jourj.scene-on .jj-gauche { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; }
  .jourj.scene-on .jj-gauche .titre { grid-column: 1 / -1; max-width: none; }
  .jourj.scene-on .jj-note { grid-column: 1 / -1; margin-top: 12px; max-width: 52ch; }
  .jourj.scene-on .jj-horloge { margin-top: 16px; font-size: clamp(56px, 9vw, 84px); }
  .jourj.scene-on .jj-index { margin-top: 0; padding-bottom: 6px; justify-content: flex-end; max-width: 360px; }
  .jourj.scene-on .jj-etapes { align-self: end; width: 100%; max-width: 640px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 759px) {
  .m-intro { padding-top: 8px; }
  .m-intro-texte { padding-top: 20px; }
  .m-intro-texte .actions { margin-top: 26px; }
  .m-reperes { margin-top: 22px; }
  .m-intro-photo { aspect-ratio: 4 / 5; border-radius: 22px; margin-inline: -10px; }
  .f-carte { padding: 26px 22px 28px; }
  .f-carte h3 { font-size: 26px; }
  .f-encadre { margin-top: 32px; border-radius: 26px; }
  .f-encadre-in { padding: 44px 20px 48px; row-gap: 36px; }
  .f-options-liste { grid-template-columns: 1fr; }
  .f-tarifs li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .mp-photo { margin-inline: -10px; }
  .mp-photo-cadre { aspect-ratio: 4 / 5; border-radius: 22px; }
  .mp-photo-cadre img { object-position: 24% 50%; }
  .mp-legende { left: 12px; bottom: 12px; max-width: calc(100% - 24px); border-radius: 18px; }
  .mp-texte { padding-top: 40px; }
  .mp-carte { padding: 4px 20px; margin-top: 28px; }
  .mp-plat { grid-template-columns: 1fr; row-gap: 6px; padding-block: 18px; }
  .mp-plats dd { font-size: 18px; }
  .cp-col { padding: 28px 22px 30px; border-radius: 24px; }
  .cp-col h3 { font-size: 25px; margin-bottom: 18px; }
  .cp-liste li { font-size: 16.5px; }
  .jj-scene { padding-inline: 10px; }
  .jj-ciel { border-radius: 26px; }
  .jj-in { padding-block: 64px 72px; padding-inline: 0; width: auto; margin-inline: 20px; }
  .jj-carte { padding: 22px 22px 24px; }
  .jj-carte h3 { font-size: 21px; }
  .jourj.scene-on .jj-scene { padding-bottom: 10px; }
  .jourj.scene-on .jj-in { padding-block: 28px 84px; margin-inline: 16px; }
  .jourj.scene-on .jj-gauche { grid-template-columns: minmax(0, 1fr); }
  .jourj.scene-on .jj-gauche .titre { font-size: 30px; }
  .jourj.scene-on .jj-note { font-size: 14.5px; margin-top: 8px; }
  .jourj.scene-on .jj-horloge { margin-top: 10px; font-size: clamp(50px, 15vw, 64px); }
  .jourj.scene-on .jj-index { justify-content: flex-start; max-width: none; gap: 4px; margin-top: 6px; font-size: 13px; }
  .jourj.scene-on .jj-index li { padding: 6px 9px; }
  .jourj.scene-on .jj-etapes { align-self: center; }
  .jourj.scene-on .jj-carte { padding: 26px 24px 28px; }
  .jourj.scene-on .jj-carte h3 { font-size: 24px; }
  .jourj.scene-on .jj-carte > p:last-child { margin-top: 10px; font-size: 17px; }
  .dg-bloc { border-radius: 26px; }
  .dg-in { padding: 64px 20px; }
  .dg-table { padding: 26px 22px 28px; border-radius: 24px; }
  .dg-liste li { font-size: 19px; }
}

/* Téléphone à l’écran bas (Safari avec ses barres) : l’heure de la carte est
   déjà donnée en grand, la carte s’allège pour tenir sous l’index. */
@media (max-width: 759px) and (max-height: 760px) {
  .jourj.scene-on .jj-in { padding-top: 22px; }
  .jourj.scene-on .jj-gauche .titre { font-size: 27px; }
  .jourj.scene-on .jj-note { font-size: 14px; line-height: 1.45; }
  .jourj.scene-on .jj-horloge { margin-top: 14px; font-size: clamp(40px, 7.4svh, 56px); }
  .jourj.scene-on .jj-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
  .jourj.scene-on .jj-carte h3 { margin-top: 0; font-size: 22px; }
  .jourj.scene-on .jj-carte { padding: 22px 22px 24px; }
  .jourj.scene-on .jj-carte > p:last-child { font-size: 16px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .m-intro-photo img { top: 0; height: 100%; transform: none; }
  .mp-photo-cadre { clip-path: inset(0 round 28px); }
}
