/* Maquettes du site vitrine : socle commun (chaque thème ajoute sa direction artistique) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.mq { margin: 0; font: 17px/1.55 "Roboto Condensed", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.mq-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mq-section { padding: 64px 0; scroll-margin-top: 70px; }
.mq-center { text-align: center; }
.mq-note { font-size: .88rem; opacity: .8; margin: 10px 0 0; }
.mq-pre { white-space: pre-line; }

/* Bandeau « maquette privée » (n'existera pas sur le site) */
.mq-ribbon { position: sticky; top: 0; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  background: #fff3cd; color: #6b4e00; font: 600 14px/1.3 system-ui, sans-serif; padding: 7px 16px; border-bottom: 1px solid #e8d48a; }
.mq-ribbon nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mq-ribbon a { color: #6b4e00; text-decoration: none; }
.mq-ribbon a.on { text-decoration: underline; text-underline-offset: 3px; }

/* Navigation (burger sans JavaScript) */
.mq-nav { display: flex; align-items: center; }
/* Intitulés sur deux lignes si besoin, jamais deux rangées d'intitulés */
.mq-nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; }
.mq-nav-links a { text-decoration: none; font-weight: 700; text-align: center; line-height: 1.15; max-width: 6.6em; }
.cl-brand { white-space: nowrap; flex: none; }
.mq-burger { display: none; position: relative; }
.mq-burger summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 12px; border-radius: 8px; }
.mq-burger summary::-webkit-details-marker { display: none; }
.mq-burger > div { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; display: flex; flex-direction: column;
  padding: 8px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); z-index: 50; }
.mq-burger > div a { padding: 10px 12px; text-decoration: none; font-weight: 700; border-radius: 8px; }

/* Boutons */
.mq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.mq-btn.small { padding: 7px 14px; font-size: .9rem; }
.mq-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Lignes de carte (nom … prix) */
.mq-lines { list-style: none; margin: 0; padding: 0; }
.mq-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; }
.mq-lines li span { min-width: 0; }
.mq-lines li small { display: block; opacity: .75; font-size: .88rem; }
.mq-lines li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mq-lines.small li { padding: 4px 0; }
.mq-lines.plain em { font-style: normal; font-weight: 700; margin-right: 6px; }
.mq-tag { font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; border-radius: 999px; vertical-align: 2px; }
.mq-labels { margin: 0 0 4px; font-size: .85rem; opacity: .75; text-align: right; }

/* Jour, carte */
.mq-jour { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.mq-jour h3 { margin: 0 0 6px; }
.mq-carte-sec { border-radius: 12px; margin: 0 0 10px; }
.mq-carte-sec summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.mq-carte-sec summary::-webkit-details-marker { display: none; }
.mq-carte-sec summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.mq-carte-sec[open] summary::after { content: "–"; }
.mq-carte-sec summary small { font-weight: 400; opacity: .7; margin-left: auto; margin-right: 12px; }
.mq-carte-sec > :not(summary) { padding-left: 18px; padding-right: 18px; }
.mq-carte-sec > ul { padding-bottom: 12px; }
.mq-carte-sub { margin: -4px 0 6px; font-size: .9rem; font-style: italic; opacity: .8; }
.mq-lines li small.mq-producer { font-style: italic; }
/* Plusieurs prix (vins, bières, planches) : colonnes alignées d'une ligne à l'autre ; sur smartphone, sous le nom */
.mq-prices { display: grid; gap: 0 10px; flex: none; }
.mq-prices.n2 { grid-template-columns: repeat(2, 66px); }
.mq-prices.n3 { grid-template-columns: repeat(3, 66px); }
.mq-prices.n4 { grid-template-columns: repeat(4, 66px); }
.mq-prices span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.mq-prices span.empty small { visibility: hidden; }
@media (max-width: 600px) {
  .mq-lines li.mq-multi { flex-wrap: wrap; row-gap: 4px; }
  .mq-lines li.mq-multi > span { flex: 1 1 100%; }
  .mq-multi .mq-prices { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .mq-multi .mq-prices.n2 { grid-template-columns: repeat(2, 1fr); }
  .mq-multi .mq-prices.n3 { grid-template-columns: repeat(3, 1fr); }
}
.mq-lines li .mq-prices small { display: block; font-size: .68rem; font-weight: 400; letter-spacing: .04em; opacity: .7; }

/* Horaires */
.mq-hours { width: 100%; border-collapse: collapse; }
.mq-hours th, .mq-hours td { text-align: left; padding: 9px 0; vertical-align: top; }
.mq-hours th { width: 38%; }
.mq-hours td small { display: block; opacity: .75; font-size: .86rem; }
.mq-hours tr.closed td { opacity: .7; font-style: italic; }

/* Avis */
.mq-stars { letter-spacing: 2px; white-space: nowrap; }
.mq-stars span { opacity: .3; }
.mq-stars span.on { opacity: 1; }
.mq-avis { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: start; }
.mq-avis-score { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px; border-radius: 16px; }
.mq-avis-score b { font-size: 3rem; line-height: 1; }
.mq-avis-score b small { font-size: 1rem; opacity: .7; }
.mq-avis-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mq-quote { margin: 0; padding: 18px; border-radius: 14px; }
.mq-quote p { margin: 6px 0; }
.mq-quote footer { font-size: .86rem; opacity: .75; }

/* Photos du lieu */
.mq-photo { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.mq-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Actualités : cartes légèrement penchées (affiche façon polaroïd, actu sans affiche façon note scotchée) */
.mq-actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; align-items: start; padding: 10px 8px; }
.mq-actus.full { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mq-actu { background: #fff; color: #2b2420; padding: 10px 10px 6px; border-radius: 4px; transform: rotate(-1.4deg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22); transition: transform .25s; }
.mq-actu:nth-child(3n+2) { transform: rotate(1.2deg); margin-top: 16px; }
.mq-actu:nth-child(3n) { transform: rotate(-.6deg); }
.mq-actu:hover { transform: rotate(0) scale(1.02); }
.mq-actu img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.mq-actu > div { padding: 10px 6px 6px; }
.mq-actu time { font-size: .85rem; opacity: .7; }
.mq-actu h3 { margin: 2px 0 0; font-size: 1.08rem; line-height: 1.25; font-family: "Roboto Condensed", sans-serif; font-weight: 700; }
.mq-actu p { margin: 6px 0 0; font-size: .93rem; }
.mq-actu { position: relative; }
.mq-actu-link { color: inherit; text-decoration: none; }
.mq-actu-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* toute la carte est cliquable */
.mq-actu-link:focus-visible { outline: none; }
.mq-actu:has(.mq-actu-link:focus-visible) { outline: 3px solid currentColor; outline-offset: 4px; }
.mq-actu-more { display: inline-block; margin-top: 8px; font-size: .86rem; font-weight: 700; opacity: .8; }
.mq-actu:hover .mq-actu-more { text-decoration: underline; opacity: 1; }
.mq-actu.note { background: #fffbea; padding: 26px 16px 16px; position: relative; }
.mq-actu.note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(231, 211, 150, .85); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* Page d'une actualité */
.mq-actu-page { padding-top: 26px; }
.mq-actu-kicker { margin: 0; font-size: .95rem; opacity: .8; text-align: center; }
.mq-actu-kicker a { color: inherit; font-weight: 700; }
.mq-actu-title { text-align: center; margin: 6px 0 26px; font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.mq-actu-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 34px; align-items: start; }
.mq-actu-detail.no-img { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin: 0 auto; }
.mq-actu-detail figure { margin: 0; position: sticky; top: 130px; }
.mq-actu-detail img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .2); display: block; }
.mq-actu-detail.poster figure { transform: rotate(-1deg); }
/* Texte mis en forme (éditeur de la gazette, copier-coller depuis ChatGPT…) */
.mq-rt { font-size: 1.05rem; line-height: 1.65; overflow-wrap: anywhere; }
.mq-rt > :first-child { margin-top: 0; }
.mq-rt p { margin: 0 0 .9em; }
.mq-rt h3, .mq-rt h4 { font-family: "Roboto Condensed", sans-serif; font-weight: 700; margin: 1.3em 0 .45em; line-height: 1.3; }
.mq-rt h3 { font-size: 1.3rem; }
.mq-rt h4 { font-size: 1.1rem; }
.mq-rt ul, .mq-rt ol { margin: 0 0 .9em; padding-left: 1.4em; }
.mq-rt li { margin: .2em 0; }
.mq-rt li p { margin: 0; }
.mq-rt blockquote { margin: 0 0 .9em; padding: 4px 0 4px 16px; border-left: 3px solid currentColor; font-style: italic; opacity: .9; }
.mq-rt hr { border: 0; border-top: 1px solid currentColor; opacity: .25; margin: 1.4em 0; }
.mq-rt a { color: inherit; font-weight: 700; }

/* Épicerie */
.mq-shop { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.mq-shop-photo { grid-column: span 2; grid-row: span 2; box-shadow: none; min-height: 260px; }
.mq-product { border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.mq-product img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.mq-product img.icon { object-fit: contain; background: #fff9ef; }
/* Photos détourées : le produit seul, posé sur un fond propre (chaque thème a sa mise en scène) */
.mq-cut { position: relative; aspect-ratio: 3 / 4; min-height: 0; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.mq-cut img { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); width: auto; height: auto; max-width: 86%;
  max-height: calc(100% - 26px); aspect-ratio: auto; object-fit: contain; border-radius: 0; margin: 0;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .22)); }
.mq-product small { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
.mq-product h3 { margin: 0; font-size: 1rem; line-height: 1.25; }

/* Nous trouver : affiche « Tous les chemins mènent à La Terrasse » + infos */
.mq-trouver { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.mq-affiche { width: 100%; height: auto; margin: -10px 0 8px; }
.mq-trouver-visuel h3 { margin-top: 18px !important; }

/* Logo officiel dans le haut de page */
.mq-hero-logo { width: 170px; height: auto; margin: 0 auto 12px; }
.mq-trouver-sub { font-size: 1.3rem; margin: 0 0 16px; }
.mq-trouver h3 { margin: 0 0 8px; }
.mq-trouver h3:not(:first-child) { margin-top: 20px; }

.mq-gps { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mq-chips li { padding: 4px 12px; border-radius: 999px; font-size: .9rem; }

/* Plan (image statique OpenStreetMap, aucun service tiers chargé) */
.mq-map { display: block; margin: 0 0 10px; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.mq-map img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .3s; }
.mq-map:hover img { transform: scale(1.03); }

/* Contacter l'équipe : onglets en CSS seul (boutons radio) */
.mq-tabs { scroll-margin-top: 120px; --tab-off: rgba(0, 0, 0, .06); --tab-on: #fff; }
.mq-tab-r { position: absolute; opacity: 0; pointer-events: none; }
.mq-tab-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mq-tab-labels label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; border-radius: 16px 16px 0 0;
  cursor: pointer; font-weight: 700; text-align: center; line-height: 1.2; background: var(--tab-off); transition: background .2s; }
.mq-tab-labels i { font-style: normal; }
.mq-tab-labels span { font-size: 1.25rem; }
.mq-tab-panel { display: none; padding: 28px; border-radius: 0 0 18px 18px; background: var(--tab-on); }
#tab-reserver:checked ~ #reserver, #tab-evenement:checked ~ #evenement, #tab-privatiser:checked ~ #privatiser { display: block; }
#tab-reserver:checked ~ .mq-tab-labels [for="tab-reserver"], #tab-evenement:checked ~ .mq-tab-labels [for="tab-evenement"],
#tab-privatiser:checked ~ .mq-tab-labels [for="tab-privatiser"] { background: var(--tab-on); }
#tab-reserver:focus-visible ~ .mq-tab-labels [for="tab-reserver"], #tab-evenement:focus-visible ~ .mq-tab-labels [for="tab-evenement"],
#tab-privatiser:focus-visible ~ .mq-tab-labels [for="tab-privatiser"] { outline: 3px solid currentColor; outline-offset: -4px; }
.mq-tab-intro { margin: 0 0 20px; font-size: 1.06rem; max-width: 820px; }
.mq-direct { text-align: center; margin: 20px 0 0; font-weight: 700; }
.mq-direct a { text-decoration: none; }
.mq-evt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.mq-evt-side h3 { margin: 0 0 8px; }

/* Privatisation (le bistro entier) */
.mq-privat-photo { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.mq-evt-side .mq-occasions { margin-bottom: 18px; }
.mq-offre { border-radius: 16px; padding: 22px; }
.mq-offre h3 { margin: 0 0 6px; font-size: 1.3rem; }
.mq-offre p { margin: 0; }
.mq-todo { font-size: .88rem; font-weight: 700; color: #8a5a00; background: #fff3cd; display: inline-block; padding: 2px 8px; border-radius: 6px; }
.mq-occasions { margin: 0; }
.mq-devis { border-radius: 16px; padding: 20px; }
.mq-devis h3 { margin: 0; }

/* Formulaires (factices) */
.mq-form { display: flex; flex-direction: column; gap: 12px; }
.mq-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .92rem; }
.mq-form input, .mq-form select, .mq-form textarea { font: inherit; font-weight: 400; padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .2); background: #fff; color: #202020; }
.mq-form .mq-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
/* Formulaires actifs : message après envoi, erreurs, champ piège, notes détaillées de l'avis */
.mq-form .mq-check input { flex: none; width: 18px; height: 18px; margin: 0; }
.mq-form .mq-check a { color: inherit; }
.mq-form small { font-weight: 400; opacity: .75; }
.mq-alert { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-weight: 700; line-height: 1.4; }
.mq-alert.ok { background: #e7f4ea; color: #1d5b2c; border: 1px solid #b9dcc1; }
.mq-alert.err { background: #fbeaea; color: #8a1020; border: 1px solid #efc0c4; }
.mq-alert strong { display: block; }
.mq-field-error { color: #b0102a; font-size: .86rem; font-weight: 700; }
/* Contrôle en temps réel (static/js/champs.js) */
.mq-field-error.live-error { display: block; margin-top: 4px; }
/* Pas de message = pas d'espace : un message masqué ou vide ne prend aucune place */
.mq-field-error[hidden], .mq-field-error:empty, #resa-info:empty { display: none !important; }
.mq-form .is-invalid { border-color: #b0102a !important; box-shadow: 0 0 0 3px rgba(176, 16, 42, .12); }
.mq-form .is-valid { border-color: #2f6b2a !important; }
.mq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mq-details-notes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mq-details-notes legend { font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 4px; }
.mq-details-notes label { font-weight: 400; font-size: .86rem; }
@media (max-width: 640px) { .mq-details-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mq-row2, .mq-row3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mq-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* La gazette (recevoir les actualités) */
.mq-gazette { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 30px; border-radius: 20px; }
.mq-gazette-title { font-size: 1.55rem; font-weight: 700; margin: 0 0 6px !important; }
.mq-gazette p { margin: 0; }
.mq-gazette-form { gap: 8px; }
.mq-gazette-row { display: flex; gap: 8px; }
.mq-gazette-row input { flex: 1; min-width: 0; border-radius: 999px !important; padding: 12px 16px !important; }

/* Pied de page */
.mq-footer { padding: 46px 0 24px; }
.mq-footer-grid { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: .94rem; line-height: 1.7; }
.mq-footer small { opacity: .7; }
.mq-alcool { text-align: center; font-size: .85rem; opacity: .7; margin: 26px 20px 0; }

/* Pages secondaires, liens « voir plus » */
.mq-narrow { max-width: 860px; }
.mq-back { margin: 18px 0 0; font-weight: 700; }
.mq-back a { text-decoration: none; opacity: .8; }
.mq-page { padding-top: 26px; }
.mq-more { text-align: center; margin: 28px 0 0; }


/* Le concept : un lieu de vie */
.mq-concept { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mq-concept-lead { font-size: 1.7rem; line-height: 1.25; margin: 0 0 14px; }
.mq-concept-text p { margin: 0 0 12px; }
.mq-concept-text .mq-envies { margin-top: 18px; }
.mq-concept-photos { position: relative; }
.mq-concept-photos.n1 .mq-photo { aspect-ratio: 1 / 1; }
.mq-concept-photos.n2 { padding-bottom: 46px; }
.mq-concept-photos.n2 .mq-photo:first-child { width: 84%; margin-left: auto; aspect-ratio: 4 / 3; }
.mq-concept-photos.n2 .mq-photo:nth-child(2) { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; border: 6px solid var(--photo-border, #fff); }
/* Déroulé de la journée : frise verticale (couleurs propres à chaque thème) */
.mq-moments { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--moment, #A50020); }
.mq-moments li { display: flex; gap: 14px; padding: 12px 0 12px 18px; position: relative; }
.mq-moments li::before { content: ""; position: absolute; left: -9px; top: 18px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--moment-bg, #fff); border: 3px solid var(--moment, #A50020); }
.mq-moments b { font-size: 1.35rem; line-height: 1.1; min-width: 62px; color: var(--moment, #A50020); }
.mq-moments strong { display: block; }
.mq-moments span { font-size: .93rem; }

/* Laisser un avis (replié par défaut) */
.mq-avis-form { margin-top: 26px; scroll-margin-top: 120px; }
.mq-avis-form > summary { display: none; }   /* ouvert par le bouton « Laisser un avis » sous la moyenne */
.mq-avis-form > summary::-webkit-details-marker { display: none; }
.mq-avis-form[open] > summary { margin-bottom: 16px; }
.mq-avis-form > form { max-width: 720px; margin: 0 auto; padding: 22px; border-radius: 16px; background: var(--card, rgba(0, 0, 0, .04)); }

/* Pied de page : réseaux */
.mq-social { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mq-social a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mq-social small { display: block; line-height: 1.2; }
.mq-social span { line-height: 1.25; }
.mq-ico { width: 34px; height: 34px; flex: none; padding: 7px; border-radius: 50%; fill: currentColor; background: rgba(255, 255, 255, .14); }
.mq-social a:hover .mq-ico { background: rgba(255, 255, 255, .3); }

@media (max-width: 860px) {
  .mq-ribbon { position: static; }
  .mq-concept { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mq-concept-text { grid-column: 1 / -1; }
  .mq-gazette, .mq-evt { grid-template-columns: minmax(0, 1fr); }
  .mq-actus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mq-actus:not(.full) .mq-actu:nth-child(3) { display: none; }
  .mq-shop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mq-trouver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mq-affiche { max-width: 360px; }
  .mq-trouver-visuel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .mq-trouver-visuel .mq-affiche { grid-row: span 2; }
  .mq-nav-links { display: none; }
  .mq-burger { display: block; }
  .mq-avis { grid-template-columns: minmax(0, 1fr); }
  .mq-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body.mq { font-size: 16px; }
  .mq-section { padding: 44px 0; }
  .mq-wrap { padding: 0 16px; }
  .mq-row2, .mq-row3 { grid-template-columns: minmax(0, 1fr); }
  .mq-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .mq-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mq-shop .mq-product:nth-of-type(n+7) { display: none; }
  .mq-shop-photo { min-height: 0; aspect-ratio: 4 / 3; grid-row: auto; }
  .mq-concept { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  /* Actus : on fait défiler les cartes du doigt */
  .mq-actus:not(.full) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 18px; overflow-x: auto;
    scroll-snap-type: x mandatory; padding: 14px 16px 22px; margin: 0 -16px; }
  .mq-actus:not(.full) .mq-actu { scroll-snap-align: center; }
  .mq-actus:not(.full) .mq-actu:nth-child(3) { display: block; }
  .mq-actus.full { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 6px 14px; }
  .mq-actu:nth-child(3n+2) { margin-top: 0; }
  .mq-trouver { grid-template-columns: minmax(0, 1fr); }
  .mq-affiche { max-width: 280px; margin: 0 auto 10px; }
  .mq-trouver-visuel { display: block; }
  .mq-hero-logo { width: 130px; }
  .mq-tab-labels { gap: 4px; }
  .mq-tab-labels label { flex-direction: column; gap: 2px; padding: 12px 4px; font-size: .9rem; }
  .mq-tab-labels i { display: none; }
  .mq-tab-panel { padding: 20px 14px; }
  .mq-gazette { padding: 22px 18px; }
  .mq-gazette-row { flex-direction: column; }
}


/* Retour sur un formulaire après envoi : la rubrique ne passe pas sous l'en-tête fixe */
#gazette, #laisser-avis, .mq-tabs { scroll-margin-top: 90px; }

/* Ça mijote aujourd'hui : plats du jour + formule empilés à gauche, ardoises à droite */
.mq-jour { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.mq-jour.no-boards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mq-jour.no-side { grid-template-columns: minmax(0, 1fr); }   /* ardoises seules (après 14h30…) : toute la largeur, côte à côte */
.mq-jour.no-boards .mq-jour-side { display: contents; }
.mq-jour-side, .mq-jour-boards { display: grid; gap: 22px; align-items: start; }
.mq-jour-boards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 860px) {
  .mq-actu-detail { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .mq-actu-detail figure { position: static; max-width: 420px; margin: 0 auto; }
  .mq-actu-title { margin-bottom: 18px; }
}
@media (max-width: 820px) { .mq-jour { grid-template-columns: minmax(0, 1fr); } }

/* Privatiser : diaporama automatique (5 photos × 6 s, fondu enchaîné + lent zoom), pause au survol */
.mq-slides { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0b1a2e;
  box-shadow: 0 14px 34px rgba(9, 40, 73, .25); margin: 0 0 16px; }
.mq-slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: mq-slide 30s infinite; }
.mq-slide img { width: 100%; height: 100%; object-fit: cover; display: block; animation: mq-burns 30s infinite; transform-origin: 30% 60%; }
.mq-slide.s2, .mq-slide.s2 img, .mq-slides-dots .s2 { animation-delay: 6s; }
.mq-slide.s3, .mq-slide.s3 img, .mq-slides-dots .s3 { animation-delay: 12s; }
.mq-slide.s4, .mq-slide.s4 img, .mq-slides-dots .s4 { animation-delay: 18s; }
.mq-slide.s5, .mq-slide.s5 img, .mq-slides-dots .s5 { animation-delay: 24s; }
.mq-slide.s2 img { transform-origin: 70% 40%; }
.mq-slide.s4 img { transform-origin: 50% 30%; }
.mq-slides::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.mq-slides-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.mq-slides-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); animation: mq-dot 30s infinite; }
.mq-slides:hover .mq-slide, .mq-slides:hover .mq-slide img, .mq-slides:hover .mq-slides-dots i { animation-play-state: paused; }
@keyframes mq-slide { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
@keyframes mq-burns { 0% { transform: scale(1); } 24% { transform: scale(1.12) translate(-1.5%, -1%); } 100% { transform: scale(1.12); } }
@keyframes mq-dot { 0%, 22% { background: #fff; width: 22px; border-radius: 4px; } 24%, 100% { background: rgba(255, 255, 255, .45); width: 8px; } }
.mq-slide.s1 { opacity: 1; }      /* première image visible avant le démarrage de l'animation */
@media (prefers-reduced-motion: reduce) {
  .mq-slide, .mq-slide img, .mq-slides-dots i { animation: none; }
  .mq-slide:not(.s1), .mq-slides-dots { display: none; }
}

/* Tous les avis */
.mq-avis-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.mq-avis-all .mq-quote { margin: 0; }
.mq-avis-all .mq-quote p { white-space: pre-line; }
/* Notes détaillées : jauge de 5 segments (macro subnotes de _blocs.html) ; une colonne dans les cartes étroites */
.mq-subnotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 6px 26px; margin: 10px 0 6px; font-size: .84rem; line-height: 1.25; }
.mq-subnotes > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mq-subnotes dt { margin: 0; opacity: .85; overflow-wrap: anywhere; }
.mq-subnotes dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.mq-subnotes dd b, .mq-avis-score .mq-subnotes dd b { font-size: 1em; line-height: 1; min-width: 1.9em; text-align: right; font-variant-numeric: tabular-nums; }
.mq-seg { display: inline-flex; gap: 3px; }
.mq-seg i { display: block; width: 15px; height: 7px; border-radius: 4px; background: currentColor; opacity: .15; }
.mq-seg i.on { opacity: 1; background: var(--seg, #e3a008); }
.mq-seg i.half { opacity: 1; background: linear-gradient(90deg, var(--seg, #e3a008) 50%, rgba(127, 127, 127, .3) 50%); }
.mq-subnotes-score { width: 100%; max-width: 560px; margin: 14px auto 0; text-align: left; font-size: .95rem; --seg: #f5c04d; }
.mq-subnotes-score .mq-seg i { width: 20px; height: 8px; }
.mq-subnotes-score .mq-seg i:not(.on):not(.half) { background: #fff; opacity: .25; }
.mq-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Ils parlent de nous : la moyenne puis les deux boutons, empilés */
.mq-avis-side { display: flex; flex-direction: column; gap: 12px; }
.mq-avis-side .mq-btn { justify-content: center; text-align: center; }
.mq-avis-form:not([open]) { margin: 0; }
/* Privatiser › « On peut prévoir » : pastilles comme les occasions, en bordeaux */
.mq-options { margin: 0; }
.mq-classique .mq-chips.mq-options li { background: var(--red, #A50020); color: #fff; }

/* Langues du site : voir static/css/lang.css (menu déroulant avec drapeaux) */
.mq-note.mq-center { text-align: center; }
/* En-tête du site : langues après le menu (ordinateur), juste avant le bouton ☰ (téléphone) */
@media (max-width: 860px) { .mq-lang-menu { order: 2; margin-left: auto; } .cl-header .mq-nav { margin-left: 8px; } }
.mq-burger summary { white-space: nowrap; }
