/* ==========================================================================
   Boucherie Evrard — feuille de style
   Breakpoints : 640 / 960 / 1200 / 1600
   ========================================================================== */

:root {
    --primary: #69072a;
    --primary-dark: #560622;
    --tertiary: #c90f50;
    --tertiary-light: #f6b3cb; /* framboise éclairci, lisible sur fond sombre */
    --black: #1b1512;
    --text: #2e2420;
    --white: #ffffff;
    --paper: #fbf7f0;
    --light: #f3eadb;
    --midlight: #e6dccb;
    --slate: #2e2d2a;
    --wood: #7a4e2d;

    --font-body: "Lora", Georgia, serif;
    --font-title: "Fraunces", Georgia, serif;
    --font-hand: "Caveat", cursive;

    /* Grain papier, superposé aux fonds clairs */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    --radius: 6px;
    --shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    --gutter: 25px;
    --grid-gap: 40px;
    --section-padding: 100px;
}

@media (min-width: 768px) {
    :root { --gutter: 30px; }
}

@media (min-width: 1200px) {
    :root {
        --grid-gap: 70px;
        --section-padding: 150px;
    }
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Les ancres ne passent pas sous le menu collant */
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
}

/* Grain papier sur toute la page, en un seul calque : fonds et vagues
   partagent ainsi exactement la même texture, sans ligne de raccord. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: var(--grain);
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Rien ne doit élargir la page (zooms d'animation, illustrations décalées).
   « clip » ne crée pas de zone de défilement : position: sticky reste fonctionnel. */
main {
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

/* Liens au fil du texte : soulignés, la couleur seule ne suffit pas à les repérer */
main p a:not([class]),
.cookie-banner p a,
.cookie-dialog p a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

p {
    line-height: 1.75;
}

strong {
    font-weight: 600;
}

h1,
h2,
h3 {
    margin: 0 0 20px;
    font-family: var(--font-title);
    font-weight: 600;
    font-variation-settings: "SOFT" 70;
    color: var(--text);
}

figure {
    margin: 0;
}

address {
    font-style: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 15px;
    z-index: 2000;
    padding: 10px 15px;
    background: var(--white);
    color: var(--black);
}

.skip-link:focus {
    top: 15px;
}

:focus-visible {
    outline: 2px solid var(--tertiary);
    outline-offset: 3px;
}

/* Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: calc(1200px + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--small  { max-width: calc(900px + 2 * var(--gutter)); }
.container--large  { max-width: calc(1400px + 2 * var(--gutter)); }
.container--xlarge { max-width: calc(1600px + 2 * var(--gutter)); }

.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid__col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

@media (min-width: 1200px) {
    .grid--3-2 { grid-template-columns: 3fr 2fr; }
    .grid--1-1 { grid-template-columns: 1fr 1fr; }

    /* Image à gauche sur desktop, sous le texte sur mobile */
    .grid--3-2.grid--reverse { grid-template-columns: 2fr 3fr; }
    .grid--reverse > .grid__col:last-child { order: -1; }
}

.text-center {
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

/* Sections
   ========================================================================== */

.section {
    position: relative;
    z-index: 0;
    padding: var(--section-padding) 0;
}

.section--light {
    background-color: var(--light);
}

.section--primary {
    background-color: var(--primary);
    color: var(--white);
}

.section--primary h2 {
    color: var(--white);
}

.section__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    /* Variantes fournies par bg_style() (includes/config.php) */
    background-image: var(--bg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: saturate(0);
    opacity: 0.2;
}

@media (min-width: 800px) {
    .section__bg {
        background-image: var(--bg-lg, var(--bg));
    }
}

/* Calque agrandi de 100px, translaté au scroll (assets/js/main.js) */
.section:has([data-parallax]) {
    overflow: clip;
}

.section__bg[data-parallax] {
    top: -100px;
    will-change: transform;
}

.section--tile .section__bg {
    background-size: 500px;
    background-repeat: repeat;
    opacity: 0.07;
}

/* Illustrations au trait en fond de section (desktop uniquement) */
.deco {
    overflow-x: clip;
}

.deco::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    display: none;
    width: 400px;
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    transform: translateY(var(--deco-y, 0px)) rotate(var(--deco-r, 0deg));
    will-change: transform;
}

.deco--viande::after       { background-image: url(../img/deco-viande.svg); }
.deco--charcuteries::after { background-image: url(../img/deco-charcuteries.svg); }
.deco--preparations::after { background-image: url(../img/deco-preparations-maison.svg); }
.deco--fromages::after     { background-image: url(../img/deco-fromages.svg); }

@media (min-width: 1200px) {
    .deco::after { display: block; }
    .deco--right::after { right: -50px; }
    .deco--left::after { left: -50px; }
}

@media (min-width: 1600px) {
    .deco::after { width: 600px; }
    .deco--right::after { right: 50px; }
    .deco--left::after { left: 50px; }
}

/* Séparateurs en vagues */
.wave {
    position: absolute;
    left: 0;
    right: 0;
    z-index: -1;
    overflow: hidden;
    height: 75px;
    pointer-events: none;
}

.wave svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wave--top { top: -1px; }
.wave--bottom { bottom: -1px; }
.wave--bottom svg { transform: scaleY(-1); }

.wave--white svg     { fill: var(--paper); }
.wave--lightgray svg { fill: var(--light); }
.wave--primary svg   { fill: var(--primary); }
.wave--dark svg      { fill: var(--primary-dark); }

/* Contenu texte
   ========================================================================== */

.text > * {
    margin: 0;
}

.text > * + * {
    margin-top: 20px;
}

.heading h1 {
    font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.8rem);
    line-height: 1.2;
}

.heading h2 {
    font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem);
    line-height: 1.3;
}

.heading h2 strong {
    display: block;
    font-size: clamp(2rem, 1.6rem + 1vw, 2.4rem);
    font-weight: 700;
    color: var(--tertiary);
}

.heading__sub {
    margin: 10px 0 0;
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--tertiary);
}

.list {
    padding: 0 0 0 15px;
    list-style: none;
    text-align: left;
}

.list li {
    position: relative;
    padding-left: 20px;
    color: var(--primary);
}

.list li + li {
    margin-top: 10px;
}

.list li::before {
    content: "\e5df";
    position: absolute;
    top: -2px;
    left: 0;
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.picture img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Photo avec étiquette dans une colonne de texte (passage à la télévision) */
.picture--label {
    position: relative;
    overflow: hidden;
    margin: 30px 0 0;
    border-radius: var(--radius);
}

.picture--label img {
    display: block;
}

/* Photo de l'américain, entre le texte et le bouton */
.americain__picture {
    max-width: 600px;
    margin: 40px auto 0;
}

/* Boutons
   ========================================================================== */

.buttons {
    margin-top: 50px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 53px;
    padding: 0 40px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.button:active {
    transform: none;
}

.button--primary {
    background-color: var(--primary);
    color: var(--white);
}

.button--primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.button--white,
.button--white:hover {
    background-color: var(--paper);
    color: var(--black);
}

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

.button .material-symbols-outlined {
    font-size: 24px;
}

/* Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 100px;
    padding: 0 25px;
    background-color: var(--black);
    box-shadow: 0 0 20px #000;
    transition: min-height 0.3s ease;
}

.navbar__menu {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar__menu--left { justify-content: flex-end; }
.navbar__menu--right { justify-content: flex-start; }

.navbar__menu li {
    display: flex;
    align-items: center;
    min-height: 80px;
}

.navbar__menu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--white);
}

.navbar__menu a:hover,
.navbar__menu .is-active a {
    /* Le framboise (--tertiary) n'est pas assez contrasté sur la photo sombre */
    color: var(--tertiary-light);
    text-decoration: none;
}

.navbar__logo {
    grid-column: 2;
    position: relative;
    width: 150px;
    height: 100px;
    transition: height 0.3s ease;
}

.navbar__logo img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    transition: width 0.3s ease, height 0.3s ease, left 0.3s ease;
}

/* Au défilement, le menu s'affine et le logo rentre dans la barre */
.site-header.is-scrolled .navbar {
    min-height: 80px;
}

.site-header.is-scrolled .navbar__logo {
    height: 80px;
}

.site-header.is-scrolled .navbar__logo img {
    left: 35px;
    width: 80px;
    height: 80px;
}

.navbar__toggle {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--white);
    fill: currentColor;
    cursor: pointer;
}

@media (min-width: 960px) {
    .navbar__menu { display: flex; }
    .navbar__toggle { display: none; }
    .navbar__menu--left { grid-column: 1; grid-row: 1; }
    .navbar__menu--right { grid-column: 3; grid-row: 1; }
}

@media (min-width: 1200px) {
    .navbar__menu li { margin: 0 10px; }
    .navbar__menu a { padding: 0 15px; }
}

/* Menu mobile (offcanvas) */
.offcanvas {
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow: hidden;
    visibility: hidden;
}

.offcanvas.is-open {
    visibility: visible;
}

.offcanvas__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s;
}

.offcanvas__bar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 270px;
    max-width: 100%;
    overflow-y: auto;
    background-color: var(--primary);
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.offcanvas.is-open .offcanvas__overlay { opacity: 1; }
.offcanvas.is-open .offcanvas__bar { transform: none; }

@media (min-width: 640px) {
    .offcanvas__bar { width: 350px; }
}

.offcanvas__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--white);
    cursor: pointer;
}

.offcanvas__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    min-height: 100px;
}

.offcanvas__menu {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.offcanvas__menu li + li {
    border-top: 1px solid var(--primary-dark);
}

.offcanvas__menu a {
    display: flex;
    justify-content: center;
    padding: 15px;
    font-weight: 400;
    color: var(--white);
}

.offcanvas__menu a:hover,
.offcanvas__menu .is-active a {
    background-color: var(--primary-dark);
    text-decoration: none;
}

.offcanvas__social {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 25px;
    list-style: none;
}

.offcanvas__social a {
    display: flex;
    padding: 10px;
    color: var(--white);
}

/* Sections spécifiques
   ========================================================================== */

.hero {
    overflow: clip;
    background-color: var(--black);
    color: var(--white);
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(219deg, rgba(17, 17, 17, 0) 20%, #111111 100%);
}

.hero .heading h1 {
    margin: 0;
    color: var(--white);
}

.about {
    text-align: center;
}

@media (min-width: 1200px) {
    .hero,
    .about {
        text-align: left;
    }
}

/* Pages intérieures
   ========================================================================== */

.page-hero {
    padding-bottom: calc(var(--section-padding) + 25px);
}

.page-hero__text {
    max-width: 800px;
}

@media (max-width: 1199px) {
    .page-hero__text {
        margin: 0 auto;
    }
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 5px;
}

.breadcrumb a {
    color: var(--white);
}

.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 50px 0 0;
    padding: 0;
    list-style: none;
}

.anchor-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: background-color 0.2s, border-color 0.2s;
}

.anchor-nav a:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    text-decoration: none;
}

@media (min-width: 1200px) {
    .breadcrumb ol,
    .anchor-nav {
        justify-content: flex-start;
    }
}

[id] {
    scroll-margin-top: 30px;
}

@media (min-width: 1200px) {
    .grid--2-3 { grid-template-columns: 2fr 3fr; }
    .grid__col--top { justify-content: flex-start; }

    /* La colonne texte suit le défilement le long d'une grille plus haute */
    .grid__col--sticky > .text {
        position: sticky;
        top: 120px;
    }
}

.text > h3 {
    margin-top: 40px;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

.section .heading.text-center {
    margin-bottom: 50px;
}

/* Grille de produits : photo + étiquette en coin */
.product-grid {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
}

.product-grid--wide {
    margin-top: var(--grid-gap);
}

.product-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: var(--radius);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

.product-tile img,
.bento__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-tile:hover img,
.bento__item:hover img {
    transform: scale(1.06);
}

.product-tile .corner-label,
.bento__item .corner-label {
    transition: padding 0.3s ease;
}

.product-tile:hover .corner-label,
.bento__item:hover .corner-label {
    padding-right: 35px;
}

img.is-top {
    object-position: center top;
}

img.is-bottom {
    object-position: center 85%;
}

.corner-label {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 50%;
    margin: 0;
    padding: 10px 25px;
    border-radius: var(--radius) 0 var(--radius) 0;
    background-color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
    text-align: center;
}

.corner-label span {
    display: block;
    font-size: 13px;
    font-weight: 300;
}

.product-tile--note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    border-radius: var(--radius);
    background-color: var(--light);
    border: 1px dashed var(--primary);
}

.product-tile--note h3 {
    margin: 0;
    color: var(--tertiary);
}

.product-tile--note p {
    margin: 0;
    line-height: 1.6;
}

.product-tile--note a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

@media (max-width: 639px) {
    .product-tile--note {
        aspect-ratio: auto;
    }
}

/* Mosaïque photo : grande vue d'étal + deux cases, cadre décalé en arrière-plan */
.bento {
    --frame-y: 0px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0;
}

.bento::before {
    content: "";
    position: absolute;
    top: 40px;
    right: -20px;
    bottom: -20px;
    left: 40px;
    z-index: -1;
    border: 2px solid var(--tertiary);
    border-radius: var(--radius);
    opacity: 0.35;
    transform: translateY(var(--frame-y));
}

.bento--left::before {
    right: 40px;
    left: -20px;
}

.bento__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    margin: 0;
    border-radius: var(--radius);
    background-color: var(--midlight);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.12);
}

.bento__item--wide {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

.bento .corner-label {
    min-width: 0;
    font-size: 14px;
}

.bento__note {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    background-color: var(--primary);
    color: var(--white);
}

.bento__note::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../img/opt/motif-boucherie-500.webp) center / 260px repeat;
    filter: saturate(0);
    opacity: 0.1;
    animation: motif-drift 40s linear infinite;
}

@keyframes motif-drift {
    to { background-position: 260px 260px; }
}

.bento__kicker {
    position: relative;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.bento__words {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
    line-height: 1.2;
}

.bento__words li:nth-child(2) { color: #f3a6c1; }

/* Cartes */
.cards {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

@media (min-width: 960px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 10px 20px 30px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover img {
    transform: scale(1.06);
}

.card__body {
    padding: 30px;
}

.card__body h3 {
    margin: 0 0 10px;
    color: var(--tertiary);
}

.card__body p {
    margin: 0;
}

/* Carte entièrement cliquable (sommaire de l'accueil) */
.card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card__link .card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card__link:hover {
    text-decoration: none;
}

.card__link .link-more {
    margin-top: auto;
    padding-top: 20px;
}

.card__link:hover .link-more::after {
    transform: translateX(4px);
}

.card__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.button--outline {
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
}

.button--outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.text-center .buttons,
.buttons.text-center {
    justify-content: center;
}

@media (max-width: 1199px) {
    .hero .buttons,
    .about .buttons {
        justify-content: center;
    }
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.link-more::after {
    content: "arrow_forward" / "";
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.2s;
}

.link-more:hover {
    text-decoration: none;
}

.link-more:hover::after {
    transform: translateX(4px);
}

/* Pied de page
   ========================================================================== */

.site-footer {
    position: relative;
    z-index: 10;
    padding: 50px 0;
    background-color: var(--primary-dark);
    color: var(--white);
}

.site-footer .wave {
    top: -50px;
    z-index: 0;
    height: 50px;
    transform: scaleY(-1);
}

.footer-grid {
    display: grid;
    gap: var(--grid-gap);
    align-items: center;
    text-align: center;
}

.footer-grid__logo img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.footer-grid__menu ul,
.footer-grid__contact ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid__menu a {
    display: inline-block;
    padding: 5px 0;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--white);
}

.footer-grid__menu a:hover,
.footer-grid__menu .is-active a {
    /* Rose clair : le framboise n'est pas assez contrasté sur le bordeaux foncé */
    color: var(--tertiary-light);
    text-decoration: none;
}

.footer-grid__contact strong {
    font-weight: 600;
}

.footer-grid__contact .footer-hours {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-grid__contact p {
    margin: 10px 0;
    line-height: 1.5;
}

.footer-grid__contact a {
    color: var(--tertiary);
}

.footer-grid__contact .social {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.footer-grid__contact .social a {
    display: flex;
    padding: 5px;
    color: var(--white);
}

.footer-grid__contact .social a:hover {
    color: var(--tertiary);
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 3fr 1fr;
    }

    .footer-grid__logo img {
        max-width: 100%;
    }

    .footer-grid__contact {
        text-align: left;
    }

    .footer-grid__contact .social {
        justify-content: flex-start;
    }
}

.credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 25px;
    background-color: var(--primary-dark);
    font-size: 0.8rem;
    color: var(--white);
    text-align: center;
}

.credits p,
.credits ul {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    list-style: none;
}

.credits a {
    color: var(--white);
}

@media (min-width: 1200px) {
    .credits {
        flex-direction: row;
        justify-content: space-between;
        padding: 25px 75px;
    }
}

/* Boutons flottants
   ========================================================================== */

.top-button {
    position: fixed;
    right: 15px;
    bottom: 15px;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    transform: translateX(calc(100% + 30px));
    transition: transform 0.2s;
}

.top-button.is-visible {
    transform: none;
}

.top-button:hover {
    background-color: var(--primary-dark);
}

.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
}

.mobile-cta a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    background-color: var(--primary);
    font-weight: 600;
    color: var(--white);
}

.mobile-cta a:hover {
    text-decoration: none;
}

.mobile-cta .material-symbols-outlined {
    font-size: 24px;
}

/* Espace réservé sous le pied de page pour la barre d'appel mobile */
@media (max-width: 959px) {
    body { padding-bottom: 60px; }
}

@media (min-width: 960px) {
    .mobile-cta { display: none; }
    .top-button { display: flex; }
}

/* Touche rustique
   Titres en Fraunces, accroches à la main (Caveat, comme les étiquettes
   de l'étal), ardoises à la craie, papier et kraft.
   ========================================================================== */

/* Titres : grand titre en serif, accroche manuscrite en dessous */
.heading h2 {
    font-family: var(--font-hand);
    font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--tertiary);
}

.heading h2 strong {
    margin-bottom: 8px;
    font-family: var(--font-title);
    font-size: clamp(2.1rem, 1.6rem + 1.4vw, 2.9rem);
    font-weight: 650;
    font-variation-settings: "SOFT" 70;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.section--primary .heading h2 { color: #f6b3cb; }
.section--primary .heading h2 strong { color: var(--white); }

.heading h1 {
    font-size: clamp(2.4rem, 1.7rem + 2vw, 3.4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.heading__sub {
    margin-top: 14px;
    font-family: var(--font-hand);
    font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: #f07aa4;
}

h3 {
    font-weight: 600;
    color: var(--primary);
}

.hero__kicker {
    margin: 0 0 14px;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f07aa4;
}

.heading__tagline {
    display: block;
    margin-top: 10px;
    font-size: 0.6em;
    font-weight: 500;
    line-height: 1.2;
}

/* Petit ornement sous les titres centrés : filet — losange — filet */
.text-center .heading::after,
.heading.text-center::after {
    content: "";
    display: block;
    width: 120px;
    height: 14px;
    margin: 18px auto 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M0 7h48M72 7h48' stroke='%23c90f50' stroke-width='1.5'/%3E%3Cpath d='M60 1l6 6-6 6-6-6z' fill='none' stroke='%23c90f50' stroke-width='1.5'/%3E%3Ccircle cx='60' cy='7' r='1.6' fill='%23c90f50'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Listes : petit losange à la place de la flèche */
.list li {
    padding-left: 22px;
    color: var(--text);
}

.list li::before {
    content: "";
    top: 0.72em;
    width: 7px;
    height: 7px;
    background-color: var(--tertiary);
    transform: rotate(45deg);
}

.list strong {
    color: var(--primary);
}

/* Photos : coins plus francs, tonalité légèrement chaude */
.picture img,
.product-tile img,
.bento__item img,
.card img {
    filter: sepia(0.08) saturate(1.05);
}

/* Boutons : coins francs, filet intérieur façon étiquette */
.button {
    position: relative;
    border-radius: 4px;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    font-variation-settings: "SOFT" 70;
    letter-spacing: 0.02em;
    text-transform: none;
}

.button::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: 0.3;
    pointer-events: none;
}

.button--outline::after {
    display: none;
}

.anchor-nav a {
    border-radius: 4px;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 500;
}

/* Étiquettes des photos : comme les étiquettes manuscrites de l'étal.
   L'inclinaison passe par « rotate » pour ne pas gêner l'animation (transform). */
.corner-label {
    right: 14px;
    bottom: 14px;
    min-width: 0;
    padding: 6px 16px 6px 24px;
    border-radius: 3px;
    background-color: var(--paper);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    font-family: var(--font-hand);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
    text-align: left;
    rotate: -3deg;
    transition: rotate 0.3s ease;
}

/* Trou de l'étiquette */
.corner-label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background-color: var(--midlight);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.corner-label span {
    margin-top: 2px;
    font-family: var(--font-hand);
    font-size: 19px;
    font-weight: 500;
    color: var(--tertiary);
}

.bento .corner-label {
    font-size: 24px;
}

.product-tile:hover .corner-label,
.bento__item:hover .corner-label {
    padding-right: 16px;
    rotate: 1deg;
}

/* Ardoises à la craie, cadre en bois */
.bento__note,
.product-tile--note,
.card.card--text {
    border: 8px solid var(--wood);
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.07), transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(255, 255, 255, 0.05), transparent 50%),
        var(--grain) var(--slate);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.35),
        10px 10px 20px rgba(0, 0, 0, 0.15);
    color: #f2efe8;
}

.bento__note::before {
    display: none;
}

.bento__kicker {
    font-family: var(--font-hand);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(242, 239, 232, 0.7);
}

.bento__words {
    font-family: var(--font-hand);
    font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem);
    font-weight: 600;
    line-height: 1.05;
}

.bento__words li:nth-child(2) { color: #f6b3cb; }

.product-tile--note h3 {
    font-family: var(--font-hand);
    font-size: 2.2rem;
    color: #f6b3cb;
}

.product-tile--note p {
    font-family: var(--font-hand);
    font-size: 1.55rem;
    line-height: 1.2;
}

.product-tile--note a {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: #f2efe8;
}

/* Carte sans photo (en attendant une photo) : ardoise */
.card--text {
    display: flex;
    align-items: center;
}

.card--text .card__body h3 {
    font-family: var(--font-hand);
    font-size: 2.2rem;
    line-height: 1.1;
    color: #f6b3cb;
}

.card--text .card__body p {
    font-family: var(--font-hand);
    font-size: 1.55rem;
    line-height: 1.2;
}

/* Petits écrans : ardoise et étiquettes resserrées pour tenir dans les cases */
@media (max-width: 639px) {
    .bento {
        gap: 14px;
    }

    .bento__note {
        padding: 14px;
        border-width: 6px;
    }

    .bento__kicker {
        margin-bottom: 4px;
        font-size: 18px;
    }

    .bento__words {
        font-size: 1.7rem;
    }

    .corner-label,
    .bento .corner-label {
        right: 8px;
        bottom: 8px;
        padding: 4px 10px 4px 20px;
        font-size: 19px;
    }

    .corner-label::before {
        left: 7px;
        width: 6px;
        height: 6px;
        margin-top: -3px;
    }

    .corner-label span {
        font-size: 15px;
    }
}

/* Cadre décalé des mosaïques : trait pointillé, comme une couture */
.bento::before {
    border: 2px dashed var(--primary);
    opacity: 0.3;
}

/* Cartes : papier sur fond kraft */
.card {
    border: 1px solid rgba(105, 7, 42, 0.1);
    background-color: var(--paper);
}

.card__body h3 {
    color: var(--primary);
}

/* Navigation et pied de page : typographie de titre */
.navbar__menu a,
.offcanvas__menu a {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 500;
}

.footer-grid__menu a {
    font-family: var(--font-title);
    font-weight: 400;
}

.footer-grid__contact strong {
    font-family: var(--font-title);
}

.footer-grid__contact a[href^="tel"] {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: #f07aa4;
}

.link-more {
    font-family: var(--font-title);
}

.mobile-cta a {
    font-family: var(--font-title);
}

/* Composants des pages intérieures
   ========================================================================== */

/* Mosaïque à deux cases égales */
.bento--pair .bento__item {
    aspect-ratio: 4 / 5;
}

/* Nuage d'étiquettes manuscrites (types d'événements…) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    position: relative;
    padding: 6px 16px 6px 24px;
    border-radius: 3px;
    background-color: var(--paper);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    font-family: var(--font-hand);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    rotate: -2deg;
}

.text > .tag-list {
    margin-top: 30px;
    margin-bottom: 10px;
}

.tag-list li:nth-child(3n + 2) { rotate: 1.5deg; }
.tag-list li:nth-child(3n + 3) { rotate: -0.5deg; }

.tag-list li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 9px;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background-color: var(--midlight);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.section--light .tag-list li { background-color: var(--white); }

@media (max-width: 1199px) {
    .text-center .tag-list,
    .about .tag-list { justify-content: center; }
}

/* Grand tableau-ardoise façon menu */
.menu-board {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
    border: 14px solid var(--wood);
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.08), transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(255, 255, 255, 0.05), transparent 50%),
        var(--grain) var(--slate);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.4),
        inset 0 0 50px rgba(0, 0, 0, 0.4),
        15px 15px 30px rgba(0, 0, 0, 0.2);
    color: #f2efe8;
    text-align: center;
}

.menu-board__title {
    margin: 0;
    font-family: var(--font-hand);
    font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    color: #f6b3cb;
}

.menu-board__subtitle {
    margin: 6px 0 0;
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: rgba(242, 239, 232, 0.7);
}

.menu-board ul {
    display: grid;
    gap: 18px 50px;
    margin: 35px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

@media (min-width: 768px) {
    .menu-board ul { grid-template-columns: 1fr 1fr; }
}

.menu-board li {
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(242, 239, 232, 0.25);
    font-family: var(--font-hand);
    font-size: 1.75rem;
    line-height: 1.15;
}

.menu-board li span {
    display: block;
    margin-top: 2px;
    font-size: 1.35rem;
    color: rgba(242, 239, 232, 0.7);
}

/* Frise des générations */
.timeline {
    position: relative;
    display: grid;
    gap: 40px;
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 29px;
    border-left: 2px dashed rgba(105, 7, 42, 0.35);
}

.timeline__step {
    position: relative;
    padding-left: 90px;
}

.timeline__dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background-color: var(--paper);
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 650;
    color: var(--primary);
}

.timeline__step:last-child .timeline__dot {
    background-color: var(--primary);
    color: var(--white);
}

.timeline__gen {
    margin: 0;
    font-family: var(--font-hand);
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--tertiary);
}

.timeline__name {
    margin: 4px 0 0;
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--primary);
}

.timeline__role {
    margin: 6px 0 0;
    line-height: 1.5;
}

@media (min-width: 960px) {
    .timeline {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        text-align: center;
    }

    .timeline::before {
        top: 30px;
        bottom: auto;
        right: 12.5%;
        left: 12.5%;
        border-top: 2px dashed rgba(105, 7, 42, 0.35);
        border-left: 0;
    }

    .timeline__step {
        padding-top: 85px;
        padding-left: 0;
    }

    .timeline__dot {
        left: 50%;
        margin-left: -30px;
    }
}

/* Citation manuscrite */
.quote {
    position: relative;
    margin: 0;
    padding: 0 0 0 30px;
    border-left: 3px solid var(--tertiary);
}

.quote p {
    margin: 0;
    font-family: var(--font-hand);
    font-size: clamp(1.6rem, 1.3rem + 0.7vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

.quote cite {
    display: block;
    margin-top: 12px;
    font-family: var(--font-title);
    font-size: 1rem;
    font-style: normal;
    color: var(--text);
}

.text-center .quote {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    border: 0;
}

/* Valeurs */
.values {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 960px) {
    .values { grid-template-columns: repeat(3, 1fr); }
}

.value {
    padding: 35px 28px 30px;
    border: 1px solid rgba(105, 7, 42, 0.12);
    border-radius: var(--radius);
    background-color: var(--paper);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.value__num {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-hand);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--tertiary);
}

.value h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.value p {
    margin: 0;
}

/* Paragraphe d'introduction mis en avant */
.lead {
    font-size: 1.25rem;
    line-height: 1.7;
}

/* Contact */
.contact-card {
    padding: clamp(28px, 4vw, 45px);
    border: 1px solid rgba(105, 7, 42, 0.12);
    border-radius: var(--radius);
    background-color: var(--paper);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.06);
}

.contact-card h2 {
    margin: 0 0 25px;
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-list {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.contact-list .material-symbols-outlined {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--light);
    font-size: 22px;
    color: var(--primary);
}

.contact-list strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--primary);
}

.contact-list p {
    margin: 0;
    line-height: 1.5;
}

.contact-list .hours {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.6;
}

.contact-list .hours li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 12px;
    max-width: 320px;
}

.contact-list .hours li span:last-child {
    font-weight: 600;
}

.contact-list .contact-warning {
    margin-top: 6px;
    font-size: 0.9rem;
    font-style: italic;
}

.contact-list .contact-big {
    font-family: var(--font-hand);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
}

/* Carte : chargée seulement à la demande (Google Maps) */
.map {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    height: 100%;
    border-radius: var(--radius);
    background: url(../img/opt/boucherie-evrard-villers-la-ville-bg-1600.webp) center / cover;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.12);
}

.map::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 21, 18, 0.55);
}

.map__consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px;
    color: var(--white);
    text-align: center;
}

.map__consent a {
    color: var(--white);
    text-decoration: underline;
}

.map__consent p {
    max-width: 380px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Formulaire */
.form {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .form { grid-template-columns: 1fr 1fr; }
    .form__full { grid-column: 1 / -1; }
}

.form label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--primary);
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(46, 36, 32, 0.25);
    border-radius: 4px;
    background-color: var(--white);
    font: inherit;
    color: var(--text);
}

.form input:focus,
.form textarea:focus {
    border-color: var(--primary);
    outline: 2px solid rgba(105, 7, 42, 0.2);
    outline-offset: 0;
}

.form textarea {
    min-height: 160px;
    resize: vertical;
}

.form__error {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--tertiary);
}

.form [aria-invalid="true"] {
    border-color: var(--tertiary);
}

.map:has(iframe)::before {
    display: none;
}

.form__trap {
    position: absolute;
    left: -9999px;
}

.form__notice {
    padding: 14px 18px;
    border-radius: 4px;
    font-weight: 600;
}

.form__notice--ok {
    background-color: #e6efe0;
    color: #2f5a1e;
}

.form__notice--error {
    background-color: #f6e1e6;
    color: var(--primary);
}

/* Texte légal */
.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    margin: 50px 0 15px;
    font-size: 1.6rem;
    color: var(--primary);
}

.prose ul {
    padding-left: 20px;
}

.prose li + li {
    margin-top: 6px;
}

/* Cookies
   ========================================================================== */

.cookie-banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 2600;
    padding: 22px 24px;
    border: 1px solid rgba(105, 7, 42, 0.15);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    background-color: var(--paper);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    animation: cookie-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(20px); }
}

@media (max-width: 959px) {
    /* Au-dessus de la barre d'appel mobile */
    .cookie-banner { bottom: 72px; }
}

@media (min-width: 640px) {
    .cookie-banner {
        right: auto;
        max-width: 470px;
    }
}

.cookie-banner p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cookie-banner__title {
    font-family: var(--font-hand);
    font-size: 1.7rem !important;
    font-weight: 700;
    line-height: 1 !important;
    color: var(--primary);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.cookie-banner__actions .button {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0 16px;
    font-size: 15px;
}

.cookie-dialog {
    width: min(560px, calc(100vw - 32px));
    padding: clamp(24px, 4vw, 36px);
    border: 0;
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    background-color: var(--paper);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    color: var(--text);
}

.cookie-dialog::backdrop {
    background: rgba(27, 21, 18, 0.55);
}

/* Lightbox (créée par assets/js/main.js) */
.lightbox {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.lightbox::backdrop {
    background: rgba(27, 21, 18, 0.88);
}

.lightbox__img {
    display: block;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
    background-color: var(--tertiary);
}

.cookie-dialog h2 {
    margin: 0 0 20px;
    font-size: 1.6rem;
    color: var(--primary);
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px dashed rgba(105, 7, 42, 0.2);
}

.cookie-option p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-option .cookie-option__title {
    margin-bottom: 4px;
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--primary);
}

.cookie-dialog__more {
    margin: 4px 0 0;
    font-size: 0.95rem;
}

/* Interrupteur */
.switch {
    flex: none;
    position: relative;
    width: 46px;
    height: 26px;
    margin: 4px 0 0;
    border-radius: 13px;
    background-color: var(--midlight);
    cursor: pointer;
    appearance: none;
    transition: background-color 0.2s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.switch:checked {
    background-color: var(--primary);
}

.switch:checked::after {
    transform: translateX(20px);
}

.switch:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.credits__button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: var(--white);
    cursor: pointer;
}

.credits__button:hover {
    text-decoration: underline;
}

.credits ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
}

/* Tableau des cookies */
.cookie-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(105, 7, 42, 0.15);
    text-align: left;
    vertical-align: top;
}

.cookie-table th {
    font-family: var(--font-title);
    color: var(--primary);
}

.table-scroll {
    overflow-x: auto;
}

/* Animations
   ========================================================================== */

/* Vagues : les deux calques translucides ondulent lentement */
.wave path:not(:last-child) {
    transform-box: fill-box;
    transform-origin: center;
    animation: wave-sway 9s ease-in-out infinite alternate;
}

.wave path:nth-child(2) {
    animation-duration: 7s;
    animation-direction: alternate-reverse;
}

@keyframes wave-sway {
    from { transform: translateX(-2%) scaleX(1.05); }
    to   { transform: translateX(2%) scaleX(1.05); }
}

/* Lent zoom sur la photo de fond des bannières */
.hero > .section__bg {
    animation: ken-burns 18s ease-out both;
}

@keyframes ken-burns {
    from { transform: scale(1.12); }
    to   { transform: scale(1); }
}

/* Apparition au défilement — classes posées par assets/js/main.js,
   le contenu reste visible sans JavaScript */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s),
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s);
}

.js .reveal--left  { transform: translateX(-30px); }
.js .reveal--right { transform: translateX(30px); }

/* Photos : l'image se dévoile de bas en haut en se recadrant.
   Le masque est posé sur l'image (et non sur le conteneur observé),
   sinon IntersectionObserver ne détecte jamais l'entrée à l'écran. */
.js .reveal--image {
    opacity: 1;
    transform: none;
}

.js .reveal--image img {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.25);
    transition:
        clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1) var(--reveal-delay, 0s),
        transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s);
}

.js .reveal--image .corner-label {
    transform: translateX(101%);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--reveal-delay, 0s) + 0.7s), padding 0.3s ease, rotate 0.3s ease;
}

/* L'ombre des photos isolées apparaît avec l'image */
.js .picture.reveal--image img {
    box-shadow: none;
}

.js .reveal.is-revealed {
    opacity: 1;
    transform: none;
}

.js .reveal--image.is-revealed img {
    clip-path: inset(0 0 0 0);
    transform: none;
}

.js .picture.reveal--image.is-revealed img {
    box-shadow: var(--shadow);
    transition:
        clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1) var(--reveal-delay, 0s),
        transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s),
        box-shadow 0.6s ease calc(var(--reveal-delay, 0s) + 0.9s);
}

.js .reveal--image.is-revealed .corner-label {
    transform: none;
}

.js .reveal--image.is-revealed:hover img {
    transform: scale(1.06);
}

/* Mots de l'atelier : un par un */
.js .bento__words li {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .bento__note.is-revealed .bento__words li {
    opacity: 1;
    transform: none;
}

.js .bento__note.is-revealed .bento__words li:nth-child(1) { transition-delay: calc(var(--reveal-delay, 0s) + 0.5s); }
.js .bento__note.is-revealed .bento__words li:nth-child(2) { transition-delay: calc(var(--reveal-delay, 0s) + 0.7s); }
.js .bento__note.is-revealed .bento__words li:nth-child(3) { transition-delay: calc(var(--reveal-delay, 0s) + 0.9s); }

/* À propos : bloc éthique au-dessus des valeurs */
.ethics {
    margin-bottom: 70px;
}

.ethics .quote {
    margin-top: 30px;
}

/* Actualités : mini-articles en cartes
   ========================================================================== */

@media (min-width: 640px) and (max-width: 959px) {
    .news { grid-template-columns: repeat(2, 1fr); }
}

/* Cartes sans contour : une ombre douce suffit à les détacher du papier */
.card.news__item {
    border: 0;
    background-color: #fffdf9;
    box-shadow:
        0 1px 2px rgba(60, 30, 10, 0.05),
        0 6px 18px rgba(60, 30, 10, 0.06);
}

.card.news__item:hover {
    box-shadow:
        0 2px 4px rgba(60, 30, 10, 0.05),
        0 14px 30px rgba(60, 30, 10, 0.09);
}

.news__item article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news__media {
    overflow: hidden;
}

/* Affiche ou menu : montré en entier sur fond kraft plutôt que recadré */
.news__media--contain {
    background-color: var(--light);
}

.news__media--contain img,
.card:hover .news__media--contain img {
    object-fit: contain;
    transform: none;
}

.news .card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 26px 28px 28px;
}

.news .card__body p {
    font-size: 1rem;
}

.news__date {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--tertiary);
}

.news__title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--primary);
}

/* Mention discrète, en pied d'article */
.news .news__note {
    align-self: stretch;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(105, 7, 42, 0.18);
    font-size: 0.875rem;
    font-style: italic;
    line-height: 1.5;
    color: rgba(46, 36, 32, 0.68);
}

.news .link-more {
    margin-top: auto;
    padding-top: 8px;
}

/* Article sans photo : ardoise kraft */
.card.news__item--text {
    background-color: var(--light);
}

.news__item--text .card__body {
    justify-content: center;
}

/* Mouvement réduit
   ========================================================================== */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .js .reveal,
    .js .reveal--image img,
    .js .reveal--image .corner-label,
    .js .bento__words li {
        opacity: 1;
        transform: none;
        clip-path: none;
    }
}
