site-panzai/assets/main.css

191 lines
11 KiB
CSS
Raw Normal View History

2026-11-13 13:57:04 +01:00
/* ───────── PANZAÏ — design tokens ───────── */
:root {
--bg: #14100D;
--bg-deep: #0E0B09;
--surface: #1F1812;
--surface-2: #2A1F17;
--surface-3: #241B15;
--wood: #5A3A22;
--wood-dark: #3A2617;
--orange-1: #FFB43A;
--orange-2: #E8622A;
--grad: linear-gradient(90deg, #FFB43A, #E8622A);
--grad-v: linear-gradient(180deg, #FFB43A 20%, #E8622A 90%);
--green: #2F6B2A;
--green-dark: #1E4A1B;
--leaf: #8CC63F;
--cream: #F3E3C3;
--white: #fff;
--danger: #FF6B4A;
--danger-text: #FF8A5C;
--line: rgba(243, 227, 195, .1);
--line-2: rgba(243, 227, 195, .18);
--radius: 22px;
--shadow: 0 24px 50px rgba(0, 0, 0, .45);
--font: Manrope, system-ui, -apple-system, sans-serif;
--display: Shojumaru, 'Bowlby One', Impact, sans-serif;
--wood-tex: repeating-linear-gradient(91deg, rgba(0,0,0,.22) 0 2px, transparent 2px 11px),
repeating-linear-gradient(89deg, rgba(255,214,160,.05) 0 1px, transparent 1px 17px),
linear-gradient(175deg, #5A3A22, #3A2617);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
margin: 0; background: var(--bg); color: var(--cream);
font-family: var(--font); font-size: 16px; line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-1); }
a:hover { color: var(--cream); }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange-1); outline-offset: 2px; }
input, textarea, select { font: inherit; color: var(--white); }
/* ───────── Layout ───────── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { opacity: .75; }
.small { font-size: 13px; }
.strong { font-weight: 800; color: var(--white); }
.price { color: var(--orange-1); font-weight: 800; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* ───────── Typo ───────── */
.display {
font-family: var(--display); font-weight: 400; letter-spacing: .3px;
background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent;
line-height: 1.06;
}
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; opacity: .7; }
.section-title { font-size: clamp(28px, 4vw, 44px); }
/* ───────── Boutons ───────── */
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 10px;
min-height: 48px; padding: 0 20px; border: 0; border-radius: 16px; cursor: pointer;
font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap;
transition: transform .15s ease, filter .15s ease, background .2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; transform: none; }
.btn-primary { background: var(--grad); color: var(--bg); box-shadow: 0 12px 30px rgba(232, 98, 42, .3); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { background: var(--surface); color: var(--cream); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--bg); }
.btn-cream:hover { color: var(--bg); }
.btn-green { background: var(--leaf); color: var(--bg); }
.btn-danger { background: transparent; border: 1px solid rgba(255,107,74,.6); color: var(--danger-text); }
.btn-lg { min-height: 58px; font-size: 17px; border-radius: 18px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; min-height: 46px; padding: 0; border-radius: 14px; }
/* ───────── Cartes / badges ───────── */
.card { background: var(--surface); border-radius: var(--radius); }
.badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--bg); }
.badge-best { background: var(--orange-1); }
.badge-spicy { background: var(--orange-2); }
.badge-veggie { background: var(--leaf); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-green { background: var(--leaf); }
.dot-red { background: var(--orange-2); }
.blink { animation: blink 1.6s ease-in-out infinite; }
.wood { background: var(--wood-tex); }
.placeholder-tag {
position: absolute; padding: 4px 8px; border-radius: 6px; background: rgba(20,16,13,.88);
font-size: 10px; font-weight: 700; letter-spacing: .6px; color: var(--cream);
}
/* ───────── Formulaires ───────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 14px; font-weight: 800; color: var(--white); }
.input {
min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2);
background: var(--surface); font-size: 15px; width: 100%;
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 72px; }
.input::placeholder { color: rgba(243,227,195,.45); }
.input:focus { outline: 2px solid var(--orange-1); outline-offset: 1px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; padding: 5px; border-radius: 18px; background: var(--surface); }
.seg button { min-height: 48px; border: 0; border-radius: 14px; background: transparent; color: var(--cream); font-weight: 700; cursor: pointer; padding: 0 14px; }
.seg button[aria-pressed="true"] { background: var(--grad); color: var(--bg); font-weight: 800; }
.opt {
min-height: 48px; border-radius: 14px; border: 2px solid rgba(243,227,195,.14); background: var(--bg);
color: var(--cream); font-weight: 700; cursor: pointer; padding: 6px 12px;
display: flex; flex-direction: column; align-items: center; justify-content: center;
transition: border-color .15s, background .15s, transform .12s;
}
.opt:active { transform: scale(.96); }
.opt[aria-pressed="true"] { border-color: var(--orange-1); background: rgba(255,180,58,.12); color: var(--white); font-weight: 800; }
.switch { position: relative; width: 56px; height: 32px; border-radius: 16px; border: 0; background: var(--wood-dark); cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s ease; }
.switch[aria-checked="true"] { background: var(--leaf); }
.switch[aria-checked="true"]::after { left: 28px; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); }
.qty button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--cream); font-size: 20px; font-weight: 800; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; color: var(--white); }
/* ───────── Bol (photo) ───────── */
.dish-photo { position: relative; overflow: hidden; }
.dish-photo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); transition: transform .4s ease; }
.dish-photo .empty-bowl {
position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1.3; transform: translate(-50%, -40%);
border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #7A5030, #2A1C12);
box-shadow: inset 0 14px 0 rgba(63,138,53,.9), 0 18px 28px rgba(0,0,0,.45);
}
/* ───────── Animations ───────── */
@keyframes blink { 50% { opacity: .35; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes toucan { 0% { transform: translateY(50px) scale(.75); opacity: 0; } 65% { transform: translateY(-6px) scale(1.04); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(3deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes modal { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,58,.6), 0 0 0 2px var(--orange-1); } 50% { box-shadow: 0 0 0 14px rgba(255,180,58,0), 0 0 0 2px var(--orange-1); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,180,58,.6); } 100% { box-shadow: 0 0 0 16px rgba(255,180,58,0); } }
@keyframes bell { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.rise { animation: rise .7s ease both; }
.toucan-in { animation: toucan 1s cubic-bezier(.2,.9,.3,1.2) both .35s; }
.sway { animation: sway 7s ease-in-out infinite; transform-origin: 50% 100%; }
.pop { animation: pop .4s ease; }
@supports (animation-timeline: view()) {
.parallax { animation: parallax linear both; animation-timeline: view(); }
@keyframes parallax { from { translate: 0 40px; } to { translate: 0 -40px; } }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* ───────── Hover cartes ───────── */
.hover-lift { transition: transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hover-lift:hover .dish-photo img { transform: scale(1.05) rotate(-1.5deg); }
/* ───────── Overlay / modale ───────── */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8,6,5,.75); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
.sheet { width: 100%; max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; animation: sheet .4s cubic-bezier(.2,.9,.3,1) both; }
@media (min-width: 768px) {
.overlay { align-items: center; padding: 24px; }
.sheet { max-width: 780px; border-radius: 28px; animation: modal .3s cubic-bezier(.2,.9,.3,1) both; }
}
/* ───────── Toast ───────── */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; padding: 12px 18px; border-radius: 14px; background: var(--cream); color: var(--bg); font-weight: 800; box-shadow: var(--shadow); animation: rise .3s ease both; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }