/* 1. Polices et palette du bistrot. */
@font-face {
    font-family: Fraunces;
    src: url('../fonts/Fraunces.ttf');
    font-weight: 100 900;
    font-display: swap
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/DMSans.ttf');
    font-weight: 100 1000;
    font-display: swap
}

:root {
    --sand: #f5efdf;
    --paper: #fffdf7;
    --navy: #233e35;
    --muted: #5c675d;
    --clay: #a9432c;
    --line: #d4ccba;
    --serif: Fraunces, Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
    --gutter: clamp(22px, 5vw, 80px)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px
}

body {
    margin: 0;
    background: var(--sand);
    color: var(--navy);
    font: 16px/1.7 var(--sans)
}

h1,
h2,
h3,
p,
figure {
    margin: 0
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 450;
    line-height: 1.1;
    letter-spacing: -.035em
}

h1 {
    font-size: clamp(48px, 5.5vw, 84px)
}

h2 {
    font-size: clamp(36px, 4.4vw, 64px)
}

h3 {
    font-size: 26px
}

em {
    font-style: normal;
    color: var(--clay)
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

img {
    display: block;
    width: 100%;
    object-fit: cover
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #c87925;
    outline-offset: 5px
}

.wrap {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding-inline: var(--gutter)
}

.section {
    padding-block: 90px
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    margin-bottom: 22px
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 14px 25px;
    border: 1px solid var(--clay);
    border-radius: 2px;
    background: var(--clay);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, transform .2s
}

.button:hover {
    background: #85321f;
    transform: translateY(-2px)
}

.button.small {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 12px;
    background: transparent;
    color: var(--clay)
}

.button.small:hover {
    background: var(--clay);
    color: white
}

.text-link {
    display: inline-block;
    font-size: 14px;
    border-bottom: 1px solid currentColor;
    padding-block: 6px
}

.skip {
    position: absolute;
    top: -100px;
    background: white;
    padding: 15px;
    z-index: 10
}

.skip:focus {
    top: 8px
}

.note {
    font-size: 12px;
    line-height: 1.7
}

.demo {
    background: var(--navy);
    color: var(--sand);
    text-align: center;
    font-size: 10px;
    padding: 7px 20px
}

/* 2. Accueil : la cuisine au premier plan. */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 24px
}

.brand {
    font: 450 29px/1.2 var(--serif);
    white-space: nowrap
}

.brand span {
    display: block;
    font: 8px/1.5 var(--sans);
    letter-spacing: .18em;
    margin-top: 8px
}

.header nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px
}

.header nav>a:not(.button):hover {
    color: var(--clay)
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    padding: 10px 16px;
    color: var(--navy)
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
    max-width: 1600px;
    margin: auto;
    border-block: 1px solid var(--line)
}

.hero-copy {
    padding: 70px var(--gutter);
    align-self: center
}

.hero-copy>p:not(.eyebrow) {
    max-width: 450px;
    font-size: 16px;
    color: var(--muted);
    margin-top: 26px
}

.hero-copy .hero-note {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--clay);
    margin-top: 36px
}

.hero .eyebrow {
    max-width: 360px
}

.actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap
}

.hero-photo {
    position: relative;
    min-height: 620px;
    overflow: hidden
}

.hero-photo img {
    height: 100%;
    position: absolute;
    inset: 0;
    object-position: center 48%
}

.hero-photo figcaption {
    position: absolute;
    bottom: 28px;
    left: 28px;
    background: var(--paper);
    padding: 20px 25px;
    color: var(--navy);
    font: 22px/1.3 var(--serif);
    max-width: calc(100% - 56px)
}

.hero-photo figcaption span {
    display: block;
    font: 9px/1.5 var(--sans);
    letter-spacing: .16em;
    margin-bottom: 8px
}

.ribbon {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
    background: var(--clay);
    color: var(--paper);
    font-size: 12px;
    letter-spacing: .05em;
    text-align: center
}

/* 3. Carte à lire comme un menu imprimé. */
.menu-section {
    background: var(--paper)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 36px
}

.section-head>p {
    font-size: 13px;
    color: var(--muted);
    max-width: 300px
}

.menu-filters {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    border-block: 1px solid var(--line);
    padding: 8px 0;
    margin-bottom: 12px
}

.menu-filters button {
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    padding: 12px 0;
    font-size: 14px
}

.menu-filters button[aria-pressed=true] {
    border-color: var(--clay);
    color: var(--clay);
    font-weight: 700
}

.menu-filters button:hover {
    color: var(--clay)
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 70px
}

.dish {
    padding: 28px 0;
    border-bottom: 1px solid var(--line)
}

.dish[hidden] {
    display: none
}

.dish-type {
    color: var(--clay);
    font-size: 9px;
    letter-spacing: .14em;
    font-weight: 700;
    margin-bottom: 12px
}

.dish>div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start
}

.dish>div>span {
    white-space: nowrap;
    font-weight: 600;
    font-size: 18px
}

.dish>p:not(.dish-type) {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
    max-width: 420px
}

.dish small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 10px
}

.menu-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 25px
}

.table-story {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 7vw;
    align-items: center
}

.food-photo {
    position: relative;
    overflow: hidden
}

.food-photo img {
    height: 460px;
    transition: transform .5s
}

.food-photo figcaption {
    background: var(--paper);
    padding: 14px 18px;
    font-size: 12px;
    border-bottom: 1px solid var(--line)
}

.table-story>div>p:not(.eyebrow) {
    color: var(--muted);
    margin: 28px 0;
    max-width: 440px
}

/* 4. Réservation et contact : simulations locales. */
.booking {
    border-block: 1px solid var(--line);
    background: #e8e8d9
}

.booking-grid,
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: start
}

.booking-grid>div>p:not(.eyebrow) {
    max-width: 400px;
    margin-top: 24px
}

.booking-grid .note {
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 20px
}

.form-card {
    background: var(--paper);
    padding: 34px;
    border: 1px solid var(--line)
}

.form-card h3 {
    margin-bottom: 24px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.form-row>div {
    min-width: 0
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 18px 0 7px
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #9caea8;
    border-radius: 2px;
    background: var(--paper);
    color: var(--navy);
    font-size: 16px
}

input,
select {
    height: 52px;
    line-height: 1.25
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23233e35' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px
}

textarea {
    resize: vertical
}

form .button {
    margin-top: 24px;
    width: 100%
}

.result {
    font-size: 13px;
    margin-top: 18px
}

.result:empty {
    display: none
}

.contact>div>p:not(.eyebrow) {
    max-width: 420px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 14px
}

.contact-note {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 24px;
    font-size: 13px
}

.contact-note p {
    color: var(--muted);
    margin-top: 10px;
    max-width: 420px
}

.contact form>.note {
    margin-top: 14px;
    color: var(--muted)
}

/* 5. Pied de page et animations discrètes. */
footer {
    background: var(--navy);
    color: var(--sand);
    padding-block: 45px 24px
}

.footer-main {
    display: flex;
    gap: 35px;
    align-items: center;
    font-size: 13px
}

.footer-main .brand {
    margin-right: auto
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #65756a;
    font-size: 10px
}

.footer-bottom details {
    max-width: 450px
}

.footer-bottom summary {
    cursor: pointer
}

.footer-bottom details p {
    margin-top: 12px
}

.footer-bottom details a {
    text-decoration: underline
}

.reveal {
    opacity: 1
}

.motion .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s, transform .6s
}

.motion .reveal.visible {
    opacity: 1;
    transform: none
}

@media(hover:hover) {
    .food-photo:hover img {
        transform: scale(1.025)
    }
}

/* 6. Tablette et téléphone. */
@media(max-width:1050px) {
    .header nav {
        gap: 17px;
        font-size: 12px
    }

    .brand {
        font-size: 25px
    }

    .hero-copy {
        padding: 48px 30px
    }

    .hero h1 {
        font-size: 58px
    }

    .hero-photo,
    .hero {
        min-height: 600px
    }

    .booking-grid,
    .contact {
        gap: 40px
    }

    .form-card {
        padding: 25px
    }

    .form-row {
        gap: 12px
    }

    .menu-grid {
        gap: 0 40px
    }
}

@media(max-width:800px) {
    .header {
        flex-wrap: wrap;
        padding-block: 20px
    }

    .menu-toggle {
        display: block
    }

    .header nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid var(--line);
        gap: 4px
    }

    .header nav.open {
        display: flex
    }

    .header nav a {
        padding: 12px
    }

    .hero {
        grid-template-columns: 1fr
    }

    .hero-copy {
        padding: 45px var(--gutter)
    }

    .hero h1 {
        font-size: clamp(45px, 8vw, 66px)
    }

    .hero-copy>p:not(.eyebrow) {
        max-width: 560px
    }

    .hero-photo {
        min-height: 440px
    }

    .hero-photo img {
        object-position: center 45%
    }

    .hero-photo figcaption {
        font-size: 20px
    }

    .ribbon {
        gap: 20px;
        font-size: 11px
    }

    .section {
        padding-block: 65px
    }

    .section-head {
        display: block
    }

    .section-head>p {
        margin-top: 22px
    }

    .table-story {
        gap: 30px;
        grid-template-columns: 1fr
    }

    .food-photo img {
        height: 390px
    }

    .booking-grid,
    .contact {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .footer-main {
        flex-wrap: wrap;
        gap: 22px
    }

    .footer-main .brand {
        flex-basis: 100%
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px
    }
}

@media(max-width:540px) {
    .demo {
        font-size: 9px
    }

    .eyebrow {
        font-size: 10px
    }

    .hero-photo {
        min-height: 390px
    }

    .hero-copy {
        padding-block: 34px
    }

    .hero-copy>p:not(.eyebrow) {
        font-size: 15px
    }

    .hero-copy .hero-note {
        font-size: 18px;
        margin-top: 25px
    }

    .hero-photo figcaption {
        left: 20px;
        bottom: 20px;
        max-width: calc(100% - 40px);
        padding: 15px 18px
    }

    .actions {
        gap: 18px;
        margin-top: 26px
    }

    .ribbon {
        flex-wrap: wrap;
        gap: 6px 20px
    }

    .menu-grid {
        grid-template-columns: 1fr
    }

    .menu-filters {
        gap: 6px 20px
    }

    .menu-filters button {
        font-size: 13px
    }

    .dish h3 {
        font-size: 24px
    }

    .dish>div>span {
        font-size: 16px
    }

    .food-photo img {
        height: 310px
    }

    .form-card {
        padding: 23px
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0
    }

    .footer-main .brand span {
        white-space: normal
    }
}

@media(forced-colors:active) {
    select {
        appearance: auto;
        background-image: none
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important
    }

    .motion .reveal {
        opacity: 1;
        transform: none
    }
}

/* 7. En-tête de bistrot : enseigne centrée et sommaire de la carte. */
.header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: 30px 18px;
    text-align: center;
}

.header .brand {
    font-size: 38px;
}

.header nav {
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    width: 100%;
    padding: 8px 0;
}

.header nav>a {
    padding: 10px 30px;
    font-size: 14px;
}

.header nav .button {
    background: transparent;
    color: inherit;
    border: 0;
    border-left: 1px solid currentColor;
    border-radius: 0;
}

.header nav .button:hover {
    background: transparent;
    color: inherit;
    text-decoration: underline;
}

.menu-filters {
    border-block: 1px solid currentColor;
    padding-block: 12px;
}

.motion .reveal {
    transform: none;
    transition: opacity .25s;
}

@media(prefers-reduced-motion:no-preference) {
    .dish:not([hidden]) {
        animation: carte-appear .22s ease-out;
    }
}

@keyframes carte-appear {
    from {
        opacity: .3
    }

    to {
        opacity: 1
    }
}

@media(max-width:820px) {
    .header {
        position: relative;
        gap: 18px;
    }

    .header .brand {
        font-size: 32px;
    }

    .header .menu-toggle {
        align-self: center;
        border-radius: 0;
        border-block: 1px solid currentColor;
        padding: 10px 30px;
    }

    .header nav.open {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
        gap: 0;
    }

    .header nav>a {
        padding: 12px;
        min-height: 44px;
    }

    .header nav .button {
        border-left: 0;
        border-top: 1px solid currentColor;
        margin-top: 8px;
    }
}