/* ==========================================================
   Carte d'un restaurant – shortcode [volavola_carte]
   Base aux couleurs du site volavola, puis une identité par
   restaurant (.vv-carte--amore reprend la carte papier Amore).
   ========================================================== */

@font-face {
    font-family: 'Anton';
    src: url('../fonts/anton-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-500-latin.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Barlow Condensed';
    src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-variable-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

.vv-carte {
    /* Couleurs */
    --vv-ink: #2E312B;             /* titres, noms de plats */
    --vv-accent: #2b6ea3;          /* petites étiquettes, liens */
    --vv-highlight: #2E312B;       /* encadrés, badge « nouveau » */
    --vv-on-highlight: #fffdf5;
    --vv-paper: #fffdf5;
    --vv-muted: #5f615b;           /* descriptions */
    --vv-line: rgba(46, 49, 43, 0.16);
    /* Typographies */
    --vv-display: 'SaaSeriesADOT', Arial, sans-serif;  /* grands titres */
    --vv-label: 'Adrianna', Arial, sans-serif;         /* noms de plats, navigation */
    --vv-text: 'Adrianna', Arial, sans-serif;          /* textes courants */
    /* Rythme */
    --vv-gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
    --vv-nav-h: 3.5rem;
    --vv-radius: 1.25rem;
    --vv-ease: cubic-bezier(0.16, 1, 0.3, 1);

    max-width: 1440px;
    margin: 0 auto;
    /* L'en-tête du thème est fixe (dans le flux) sur ces pages : pas besoin de grande marge au-dessus. */
    padding: clamp(1.5rem, 1rem + 2vw, 3rem) var(--vv-gutter) clamp(4rem, 3rem + 4vw, 8rem);
    color: var(--vv-ink);
    font-family: var(--vv-text);
    font-size: 1rem;
    line-height: 1.45;
}

/* Identité de la carte papier Amore : marine, bordeaux, bleu gris. */
.vv-carte--amore {
    --vv-ink: #1f4571;
    --vv-accent: #722d40;
    --vv-highlight: #722d40;
    --vv-on-highlight: #fff8f0;
    --vv-muted: #43728c;           /* bleu gris du PDF, assombri pour rester lisible */
    --vv-line: rgba(31, 69, 113, 0.16);
    --vv-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
    --vv-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --vv-text: 'Montserrat', Arial, sans-serif;
}

/* Le thème et Bootstrap ajoutent des marges aux titres et paragraphes : on les neutralise ici. */
.vv-carte :is(h1, h2, h3, p, ul, dl, dd) {
    margin: 0;
}

/* Le thème met « overflow-x: hidden » sur body, ce qui empêche position: sticky.
   « clip » coupe pareil le débordement horizontal sans casser le sticky. */
body:has(.vv-carte) {
    overflow-x: clip !important;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.vv-carte) {
        scroll-behavior: smooth;
    }
}

.vv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Introduction ---------- */

.vv-carte__intro {
    display: grid;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: end;
    padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

@media (min-width: 992px) {
    .vv-carte__intro {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }
}

.vv-carte__intro-texte {
    display: grid;
    gap: 1rem;
}

.vv-carte__resto {
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--vv-accent);
}

.vv-carte__titre {
    font-family: var(--vv-display);
    font-size: clamp(3.5rem, 1.5rem + 8vw, 9.5rem);
    font-weight: 400;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--vv-ink);
    text-wrap: balance;
}

.vv-carte__accroche {
    max-width: 38ch;
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    font-weight: 500;
    color: var(--vv-accent);
}

.vv-carte__pdf {
    justify-self: start;
    font-size: 0.9375rem;
    color: var(--vv-ink);
    text-decoration: underline;
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1px;
}

.vv-carte__pdf:hover,
.vv-carte__pdf:focus-visible {
    color: var(--vv-accent);
    text-decoration-thickness: 2px;
}

/* Bandeau « 100 % fait avec amour » */
.vv-carte__encadre {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border-radius: var(--vv-radius);
    background: var(--vv-highlight);
    color: var(--vv-on-highlight);
    font-family: var(--vv-display);
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 1.5rem 3rem -1.5rem rgba(114, 45, 64, 0.55);
    transform: rotate(-1.5deg);
}

.vv-coeur {
    flex: none;
    width: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
    height: auto;
    fill: currentColor;
}

.vv-coeur:last-child {
    transform: scaleX(-1) rotate(-8deg);
}

/* ---------- Navigation des sections ---------- */

.vv-carte__nav {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 0 calc(-1 * var(--vv-gutter));
    padding: 0 var(--vv-gutter);
    background: var(--vv-paper);
    border-top: 2px solid var(--vv-ink);
    border-bottom: 1px solid var(--vv-line);
}

.admin-bar .vv-carte__nav {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .vv-carte__nav {
        top: 46px;
    }
}

.vv-carte__nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0.625rem 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.vv-carte__nav ul::-webkit-scrollbar {
    display: none;
}

.vv-carte__nav a {
    display: block;
    padding: 0.4375rem 0.875rem 0.375rem;
    border-radius: 999px;
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--vv-ink);
    transition: background-color 200ms var(--vv-ease), color 200ms var(--vv-ease);
}

.vv-carte__nav a:hover {
    background: color-mix(in srgb, var(--vv-ink) 9%, transparent);
    color: var(--vv-ink);
}

.vv-carte__nav a:focus-visible {
    outline: 2px solid var(--vv-accent);
    outline-offset: 2px;
}

.vv-carte__nav a:active {
    background: var(--vv-ink);
    color: var(--vv-paper);
}

/* ---------- Sections ---------- */

.vv-section {
    display: grid;
    gap: 1.75rem;
    padding: clamp(3rem, 2rem + 3vw, 5.5rem) 0;
    border-bottom: 1px solid var(--vv-line);
    scroll-margin-top: calc(var(--vv-nav-h) + 1rem);
}

.vv-section__head {
    display: grid;
    align-content: start;
    gap: 0.625rem;
}

.vv-section__titre {
    font-family: var(--vv-display);
    font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
    font-weight: 400;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--vv-ink);
}

.vv-section__sous-titre {
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--vv-ink);
}

.vv-section__note {
    max-width: 34ch;
    padding-left: 0.875rem;
    border-left: 3px solid var(--vv-accent);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--vv-ink);
}

.vv-section__corps {
    display: grid;
    gap: 2.25rem;
}

@media (min-width: 992px) {
    .vv-section {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
        column-gap: clamp(2rem, 1rem + 4vw, 6rem);
    }

    .vv-section__head {
        align-self: start;   /* sans ça la colonne s'étire et le sticky n'a plus de marge */
        position: sticky;
        top: calc(var(--vv-nav-h) + 2rem);
    }
}

/* Section encadrée (ex. menu enfant « Bambino ! ») : carte bordeaux comme sur le PDF. */
.vv-section--encadre {
    margin: clamp(2rem, 1rem + 3vw, 4rem) 0;
    padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    border: 0;
    border-radius: var(--vv-radius);
    background: var(--vv-highlight);
    color: var(--vv-on-highlight);
    align-items: center;
}

.vv-section--encadre :is(.vv-section__titre, .vv-section__sous-titre, .vv-plat__ligne, .vv-plat__desc) {
    color: var(--vv-on-highlight);
}

.vv-section--encadre .vv-section__sous-titre {
    font-family: var(--vv-display);
    font-weight: 400;
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
    text-transform: uppercase;
}

.vv-section--encadre .vv-section__head {
    position: static;
}

.vv-section--encadre .vv-section__titre {
    font-size: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.vv-section--encadre .vv-plat__ligne {
    font-size: 1.75rem;
}

.vv-section--encadre .vv-plat__desc {
    font-size: 1rem;
}

/* ---------- Sous-sections ---------- */

.vv-sous-section {
    display: grid;
    gap: 1.25rem;
}

.vv-sous-section__titre {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--vv-text);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vv-accent);
}

.vv-sous-section__titre::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vv-line);
}

/* ---------- Plats ---------- */

.vv-plats {
    display: grid;
    gap: 1.625rem 3rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) and (max-width: 991.98px), (min-width: 1200px) {
    .vv-plats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vv-plat,
.vv-plat__texte {
    display: grid;
    align-content: start;
    gap: 0.3125rem;
}

/* Plat avec photo : vignette carrée à gauche du texte. */
.vv-plat--photo {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.vv-plat__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--vv-ink) 8%, transparent);
    box-shadow: 0 0.5rem 1.25rem -0.75rem rgba(31, 69, 113, 0.45);
}

@media (min-width: 768px) {
    .vv-plat--photo {
        grid-template-columns: 7rem minmax(0, 1fr);
        gap: 1.25rem;
    }
}

.vv-plat__ligne {
    font-family: var(--vv-label);
    font-size: 1.375rem;
    line-height: 1.1;
    color: var(--vv-ink);
}

.vv-plat__nom {
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.vv-plat__format {
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
}

.vv-plat__sep {
    margin: 0 0.25em;
    font-weight: 500;
}

.vv-plat__prix {
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Vraie photo : entière (pas rognée) sur fond blanc, cliquable pour l'agrandir. */
.vv-plat__photo--reelle {
    object-fit: contain;
    background: #fff;
}

.vv-plat__zoom {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0.75rem;
    background: none;
    cursor: zoom-in;
}

.vv-plat__zoom::after {
    content: "";
    position: absolute;
    right: 0.375rem;
    bottom: 0.375rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--vv-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.5'/%3E%3Cpath d='m15 15 4.5 4.5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
    opacity: 0.85;
    transition: transform 200ms var(--vv-ease), opacity 200ms var(--vv-ease);
}

.vv-plat__zoom .vv-plat__photo {
    transition: transform 250ms var(--vv-ease);
}

.vv-plat__zoom:hover .vv-plat__photo {
    transform: scale(1.04);
}

.vv-plat__zoom:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

.vv-plat__zoom:focus-visible {
    outline: 2px solid var(--vv-accent);
    outline-offset: 3px;
}

/* Fenêtre du zoom.
   Le reset CSS du thème (reseter.css) met « dialog { position: absolute } » : la fenêtre se plaçait
   alors en haut du document et la page remontait. On la fixe à l'écran. */
.vv-zoom {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(92vw, 56rem);
    height: fit-content;
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 2rem 5rem -1rem rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.vv-zoom::backdrop {
    background: rgba(20, 30, 45, 0.72);
    backdrop-filter: blur(4px);
}

.vv-zoom__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92vh;
    object-fit: contain;
    transition: filter 200ms ease;
}

/* Vignette agrandie le temps que la grande photo arrive. */
.vv-zoom__image.est-apercu {
    filter: blur(6px);
}

.vv-zoom__fermer {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1f4571;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

.vv-zoom__fermer:hover,
.vv-zoom__fermer:focus-visible {
    background: #fff;
    outline: 2px solid #1f4571;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .vv-zoom[open] {
        animation: vv-zoom-entree 250ms cubic-bezier(0.16, 1, 0.3, 1);
    }
}

@keyframes vv-zoom-entree {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.vv-feuille {
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.2em;
    vertical-align: -0.05em;
}

.vv-badge {
    display: inline-block;
    margin-left: 0.5em;
    padding: 0.3em 0.55em 0.25em;
    border-radius: 0.3em;
    background: var(--vv-highlight);
    color: var(--vv-on-highlight);
    font-weight: 600;
    font-size: 0.6em;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    vertical-align: 0.25em;
}

.vv-plat__mention {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--vv-ink);
}

.vv-plat__desc {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--vv-muted);
}

.vv-plat__allergenes {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--vv-muted);
}

.vv-plat__allergenes span {
    font-weight: 600;
    color: var(--vv-accent);
}

.vv-section--encadre .vv-plat__allergenes,
.vv-section--encadre .vv-plat__allergenes span {
    color: var(--vv-on-highlight);
}

.vv-plat__apres strong {
    font-weight: 600;
    color: var(--vv-ink);
}

/* ---------- Glossaire ---------- */

.vv-glossaire {
    display: grid;
    gap: 1.5rem;
    padding: clamp(3rem, 2rem + 3vw, 5rem) 0 2rem;
}

.vv-glossaire__titre {
    font-family: var(--vv-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--vv-accent);
}

.vv-glossaire__liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem 2rem;
}

.vv-glossaire__liste div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;   /* deux polices différentes : on aligne sur la ligne de base du texte */
    gap: 0 0.4em;
    font-size: 0.9375rem;
}

.vv-glossaire__liste dt {
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1.0625rem;
    text-transform: uppercase;
    color: var(--vv-ink);
}

.vv-glossaire__liste dt::after {
    content: " :";
}

.vv-glossaire__liste dd {
    color: var(--vv-muted);
}

/* ---------- Mentions ---------- */

.vv-carte__mentions {
    display: grid;
    gap: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vv-line);
    font-size: 0.8125rem;
    color: var(--vv-muted);
}

/* ---------- Filtres ---------- */

.vv-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
}

.vv-filtres[hidden] {
    display: none;
}

.vv-filtres button {
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border: 1.5px solid var(--vv-ink);
    border-radius: 999px;
    background: transparent;
    color: var(--vv-ink);
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 150ms var(--vv-ease), color 150ms var(--vv-ease);
}

.vv-filtres button:hover {
    background: color-mix(in srgb, var(--vv-ink) 8%, transparent);
}

.vv-filtres button[aria-pressed="true"] {
    background: var(--vv-ink);
    color: var(--vv-paper);
}

.vv-filtres button:focus-visible {
    outline: 2px solid var(--vv-accent);
    outline-offset: 2px;
}

.vv-carte [hidden] {
    display: none !important;
}

/* ---------- Carte d'Italie ---------- */

.vv-italie {
    display: grid;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: center;
    padding: clamp(3rem, 2rem + 3vw, 5rem) 0;
    border-bottom: 1px solid var(--vv-line);
}

@media (min-width: 992px) {
    .vv-italie {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    }
}

.vv-italie__texte {
    display: grid;
    gap: 0.875rem;
    align-content: start;
}

.vv-italie__intro {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--vv-accent);
}

.vv-italie__liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.375rem 1.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--vv-muted);
}

.vv-italie__liste li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.vv-italie__liste strong {
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1.0625rem;
    text-transform: uppercase;
    color: var(--vv-ink);
}

.vv-italie__num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    background: #d6312b;            /* pastilles rouges de l'illustration */
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    transform: translateY(-0.1em);
}

.vv-italie__carte {
    width: 100%;
    height: auto;
    border-radius: var(--vv-radius);
    box-shadow: 0 1.5rem 3rem -2rem rgba(31, 69, 113, 0.55);
}

/* ---------- Origine des viandes ---------- */

.vv-origines {
    display: grid;
    gap: 1rem;
    padding-top: 2.5rem;
}

.vv-origines__liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.5rem 2rem;
    margin: 0;
}

.vv-origines__liste div {
    display: flex;
    gap: 0.4em;
    align-items: baseline;
    font-size: 0.9375rem;
}

.vv-origines__liste dt {
    font-family: var(--vv-label);
    font-weight: 600;
    font-size: 1.0625rem;
    text-transform: uppercase;
    color: var(--vv-ink);
}

.vv-origines__liste dt::after {
    content: " :";
}

.vv-origines__liste dd {
    margin: 0;
    color: var(--vv-muted);
}
