/* Pages Réserver et Carte : même ambiance que l'accueil du site (photo, titres Young Serif, bouton principal rose). */
body.themed { --ocean: #0f3d4c; --bouga: #c8336e; --gold: #f2a63b; --disp: 'Young Serif', Georgia, serif; }
body.themed .hero.ph { background: #0b4a63; isolation: isolate; border-radius: 0 0 28px 28px; padding-bottom: 72px; }
body.themed .hero.ph::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; animation: kb 2.4s cubic-bezier(.16, .84, .3, 1) both; }
body.themed .hero.ph::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 42, 59, .55) 0%, rgba(6, 42, 59, .25) 45%, rgba(6, 42, 59, .88) 100%); }
body.themed .hero h1 { font-family: var(--disp); font-weight: 400; letter-spacing: -.005em; font-size: clamp(38px, 10vw, 60px); line-height: .98; animation: rise .8s .2s cubic-bezier(.16, .84, .3, 1) both; }
body.themed .hero p { animation: rise .8s .35s cubic-bezier(.16, .84, .3, 1) both; text-shadow: 0 1px 12px rgba(6, 30, 40, .4); }
body.themed h2, body.themed .cat-title { font-family: var(--disp); font-weight: 400; letter-spacing: 0; }
body.themed .btn:not(.ghost):not(.wa):not(.wave):not(.danger) { background: var(--bouga); box-shadow: 0 12px 26px -14px rgba(200, 51, 110, .8); }
body.themed .btn:not(.ghost):not(.wa):not(.wave):not(.danger):hover { background: #ad2a5d; }
body.themed .btn:active { transform: scale(.97); }
@keyframes kb { from { transform: scale(1.12); filter: saturate(.7) brightness(.85); } to { transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { body.themed .hero.ph::before, body.themed .hero h1, body.themed .hero p { animation: none; } }

/* Options pendant la réservation */
.opts { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.opts legend { font-weight: 800; margin-bottom: 8px; padding: 0; } .opts legend small { font-weight: 400; color: var(--muted, #6b7a80); }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line, #e6ece9); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:has(input:checked) { border-color: var(--bouga, #c8336e); background: #fdeef4; }
.opt input { width: 22px; height: 22px; accent-color: var(--bouga, #c8336e); margin: 0; }
.opt span { display: grid; gap: 2px; } .opt small { color: var(--muted, #6b7a80); font-size: 14px; font-weight: 400; }
.opt em { font-style: normal; font-weight: 800; text-align: right; white-space: nowrap; display: grid; } .opt em small { font-weight: 400; }

/* Demandes particulières et annulation */
.specials { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.specials legend { font-weight: 800; margin-bottom: 8px; padding: 0; } .specials legend small { font-weight: 400; color: var(--muted, #6b7a80); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.chips2 label { cursor: pointer; } .chips2 input { position: absolute; opacity: 0; pointer-events: none; }
.chips2 span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line, #e6ece9); font-size: 15px; font-weight: 700; transition: background .2s, border-color .2s; }
.chips2 input:checked + span { background: #fdeef4; border-color: var(--bouga, #c8336e); color: #7d1d45; }
.chips2 input:focus-visible + span { outline: 3px solid rgba(200, 51, 110, .35); outline-offset: 2px; }
.cancel { margin: 4px 0 0; padding: 12px 14px; border-radius: 14px; background: #f6f3ee; line-height: 1.45; }

/* Pictogrammes des plats */
.tg { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 4px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; vertical-align: 2px; background: #eef4f2; color: #0f3d4c; }
.tg.coeur { background: #fff1d6; color: #a55d00; } .tg.epice { background: #fde8e4; } .tg.vege { background: #e3f4e6; } .tg.poisson { background: #e3f1f7; } .tg.sansgluten { background: #f1ecfb; color: #5b3f99; }

/* Chambres avec photo et équipements, dates proches */
.room:has(.rimg) { grid-template-columns: 64px 1fr auto; }
.room .rimg { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.rfeat { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .rfeat span { padding: 3px 8px; border-radius: 999px; background: #e7f5f4; color: #0f3d4c; font-size: 12px; font-weight: 700; }
.near { display: grid; gap: 8px; } .near .btn { width: 100%; }

/* Étapes de la réservation */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding-top: 12px; font-size: 13px; font-weight: 800; text-align: center; }
.steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 9px; background: #e4ddd1; }
.steps li.ok::before, .steps li.cur::before { background: var(--bouga, #c8336e); }
.steps li.cur::before { background: linear-gradient(90deg, var(--bouga, #c8336e) 55%, #f1c4d5); }
.steps li.cur { color: var(--ocean, #0f3d4c); }
.steps li.ok { color: var(--ocean, #0f3d4c); } .steps li.ok::after { content: ' ✓'; color: var(--bouga, #c8336e); }

/* Carte : photos des plats et rubriques */
.catnav { position: sticky; top: 72px; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 10px; padding: 6px 4px; background: var(--sand); }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; }
.cat { scroll-margin-top: 140px; }
.dish.hasph { align-items: center; }
.dish .dph { flex: none; width: 64px; height: 64px; border-radius: 14px; object-fit: cover; align-self: center; }
.steps { position: relative; z-index: 2; background: #fff; padding: 10px 12px 9px; border-radius: 16px; box-shadow: 0 10px 26px -16px rgba(6, 42, 59, .45); }
.steps li { color: #7d8b90; } .steps li.ok, .steps li.cur { color: #0f3d4c; }

/* Chargement : sable qui s'écoule */
.sandload { display: grid; justify-items: center; gap: 14px; padding: 60px 0 80px; color: var(--muted, #6b7a80); font-weight: 700; }
.sandload p { margin: 0; }
.sandload .glass { position: relative; width: 56px; height: 76px; border: 3px solid #d9c49b; border-radius: 10px 10px 28px 28px / 10px 10px 40px 40px; overflow: hidden; background: linear-gradient(180deg, transparent 60%, #e8cf9f 60%); }
.sandload i { position: absolute; top: -6px; width: 4px; height: 4px; border-radius: 50%; background: #d4a95f; animation: grain 1.1s linear infinite; }
.sandload i:nth-child(1) { left: 14px; } .sandload i:nth-child(2) { left: 22px; animation-delay: .2s; } .sandload i:nth-child(3) { left: 30px; animation-delay: .45s; } .sandload i:nth-child(4) { left: 38px; animation-delay: .7s; } .sandload i:nth-child(5) { left: 26px; animation-delay: .9s; } .sandload i:nth-child(6) { left: 18px; animation-delay: .6s; }
@keyframes grain { to { transform: translateY(52px); } }
@media (prefers-reduced-motion: reduce) { .sandload i { animation: none; } }

/* Carte : les plats tombent en place, cœur des favoris, prix qui défilent */
.dish.drop { animation: dropin .42s calc(var(--i, 0) * 35ms) cubic-bezier(.2, .8, .3, 1.15) both; }
@keyframes dropin { from { opacity: 0; transform: translateY(-14px); } }
.dish .fav { display: grid; place-items: center; width: 32px; height: 32px; margin-right: 2px; border: 0; background: none; cursor: pointer; flex: none; align-self: center; }
.dish .fav svg { width: 20px; height: 20px; fill: none; stroke: var(--bouga, #c8336e); stroke-width: 1.9; stroke-linejoin: round; }
.dish .fav[aria-pressed="true"] svg { fill: var(--bouga, #c8336e); }
.dish .fav.pop svg { animation: favpop .45s cubic-bezier(.2, .9, .3, 1.4); } @keyframes favpop { 40% { transform: scale(1.4); } }
.roll.rolling { color: var(--bouga, #c8336e); }
@media (prefers-reduced-motion: reduce) { .dish.drop { animation: none; } }
