/* Royal Frite : feuille de styles unique, sans dépendance. */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
    font-weight: 500 800;
    font-display: swap;
}
@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #121110;
    --surface: #1b1917;
    --surface-2: #25221f;
    --line: rgba(243, 236, 224, 0.1);
    --text: #f3ece0;
    --muted: #a39b8f;
    --gold: #f2b43a;
    --gold-hover: #f7c65e;
    --on-gold: #1c1404;
    --radius: 16px;
    --wrap: 1200px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
    --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 999px;
    font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Champs à compléter avant la mise en ligne (bien visibles exprès) */
.a-completer { background: #fde047; color: #1c1404; padding: 0 4px; border-radius: 3px; }

.ic { width: 1.1em; height: 1.1em; flex: none; }

/* ===== Boutons (forme : pilule partout) ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 52px; padding: 0 26px; border-radius: 999px;
    font-family: var(--body); font-weight: 700; font-size: 1rem; white-space: nowrap;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.95rem; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-gold .ic { transition: transform 0.25s var(--ease); }
.btn-gold:hover .ic { transform: translateX(3px); }
.btn-line { border-color: rgba(243, 236, 224, 0.28); color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-disabled { background: var(--surface-2); color: var(--muted); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Navigation ===== */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 17, 16, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
}
.brand-crown { width: 26px; height: 26px; color: var(--gold); }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav .btn { margin-left: 0; }
}

/* ===== Accueil ===== */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; max-width: 12ch; }
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 44ch; }
.hero .btn-row { margin-top: 34px; }

.hero-visual { position: relative; padding-bottom: 12%; }
.hero-main {
    width: 88%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.hero-side {
    position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 466 / 390; object-fit: cover;
    border-radius: var(--radius); border: 6px solid var(--bg);
}
@media (min-width: 900px) {
    .hero { padding: 72px 0 104px; }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

/* Entrée de l'accueil */
@media (prefers-reduced-motion: no-preference) {
    .hero-text > *, .hero-main, .hero-side { animation: rise 0.9s var(--ease) both; }
    .hero-text > :nth-child(2) { animation-delay: 0.08s; }
    .hero-text > :nth-child(3) { animation-delay: 0.16s; }
    .hero-main { animation-delay: 0.12s; }
    .hero-side { animation-delay: 0.3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ===== Sections ===== */
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 18ch; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.eyebrow {
    color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 14px;
}

/* Apparition au défilement (activée par js/site.js seulement) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Bento des incontournables ===== */
.bento { display: grid; gap: 16px; margin-top: 40px; }
.tile { margin: 0; border-radius: var(--radius); overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.9s var(--ease); }
.tile-photo:hover img { transform: scale(1.04); }
.tile-gold, .tile-dark { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile-gold { background: var(--gold); color: var(--on-gold); }
.tile-gold h3, .tile-dark h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; }
.tile-kicker { font-weight: 700; font-size: 0.95rem; opacity: 0.75; }
.tile-price { margin-top: auto; padding-top: 16px; font-family: var(--display); font-weight: 800; font-size: 2rem; }
.tile-dark { background: var(--surface); border: 1px solid var(--line); }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.mini-list li { display: flex; justify-content: space-between; gap: 16px; }
.mini-list li span:last-child { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
    .bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: 380px 320px; }
    .tile-a { grid-column: 1 / 3; }
    .tile-d { grid-column: 2 / 4; }
    .tile-photo img { aspect-ratio: auto; }
    .tile-d img { object-position: center 65%; }
}

/* ===== Nos friteries ===== */
.section-shops { background: var(--surface); border-block: 1px solid var(--line); }
.shops { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 900px) { .shops { grid-template-columns: 1fr 1fr; gap: 24px; } }
.shop {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 768px) { .shop { padding: 40px; } }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.shop h3 { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; }
.badge { font-size: 0.82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.badge-on { background: rgba(242, 180, 58, 0.14); color: var(--gold); }
.badge-soon { background: var(--surface-2); color: var(--muted); }
.shop-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop-info li { display: flex; align-items: center; gap: 12px; }
.shop-info .ic { color: var(--gold); }
.shop-info a { text-decoration: none; }
.shop-info a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 0; vertical-align: top; }
.hours td { text-align: right; padding: 10px 0; font-variant-numeric: tabular-nums; }
.hours tr + tr { border-top: 1px solid var(--line); }
.shop-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.link-fb { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.link-fb:hover { color: var(--text); }

/* ===== La carte ===== */
.menu-tabs {
    display: flex; gap: 8px; margin-top: 36px; padding-bottom: 6px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -20px; padding-inline: 20px;
}
.menu-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .menu-tabs { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chip {
    flex: none; scroll-snap-align: start;
    font: 600 0.95rem var(--body); color: var(--muted);
    background: transparent; border: 1px solid var(--line); border-radius: 999px;
    padding: 9px 18px; cursor: pointer; transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(243, 236, 224, 0.3); }
.chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.chip-skeleton { width: 110px; height: 40px; background: var(--surface); border: 0; }

.menu-panel { margin-top: 32px; min-height: 320px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 56px; }
@media (min-width: 768px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-item-name { font-weight: 700; }
.menu-item-price { font-family: var(--display); font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.menu-item-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.93rem; }
.menu-foot { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.menu-foot a { color: var(--gold); font-weight: 700; }
.menu-skeleton { display: grid; gap: 14px; }
@media (min-width: 768px) { .menu-skeleton { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.menu-skeleton span { height: 52px; border-radius: 8px; background: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
    .menu-skeleton span, .chip-skeleton { animation: pulse 1.4s ease-in-out infinite; }
    .menu-list { animation: rise 0.5s var(--ease) both; }
}
@keyframes pulse { 50% { opacity: 0.5; } }

/* ===== Pied de page ===== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; color: var(--muted); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer .brand { color: var(--text); }
.footer-note { margin-top: 10px; }
.footer-title { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-grid p { margin-bottom: 8px; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem;
}

/* ===== Pages de texte (mentions légales) ===== */
.page-text { padding: 64px 0 96px; }
.page-text .wrap { max-width: 760px; }
.page-text h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 32px; }
.page-text h2 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 12px; }
.page-text p { color: var(--muted); margin-bottom: 12px; }
.page-text a { color: var(--gold); }
