/* MH Traiteur — thème Vert & Crème, touches champagne
   Vert foncé #366325 · Vert clair #ACC8A7 · Blanc / Crème · Champagne (CTA premium) */
:root {
  --vert: #366325;
  --vert-dark: #27491a;
  --vert-clair: #acc8a7;
  --cream: #f7f3ea;
  --blanc: #ffffff;
  --champagne: #e6d3a3;
  --champagne-dark: #d4bc85;
  --ink: #22271f;
  --line: #e4ddcb;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Urbanist', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.15; color: var(--vert); }
a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Urbanist (auto-hébergée, variable 100-900, subsets latin/latin-ext) ---------- */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/urbanist-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Header : burger | logo centre | contact (flux sticky) ---------- */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .9rem 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 90;
}
.brand { display: flex; align-items: center; justify-self: center; }
.brand-logo { height: 2.7rem; width: auto; display: block; }

/* Libellés nav uniformes (Menu & Contact même taille/gramme/couleur). */
.nav-link {
  font-size: 1rem; font-weight: 600; color: var(--vert);
  text-decoration: none; transition: color .15s ease;
}
/* Touch : pas de hover collant après un tap (le a:hover global est neutralisé). */
.nav-link:hover { text-decoration: none; }
/* Soulignement uniquement au vrai survol souris. */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--vert-dark); text-decoration: underline; }
}
.header-contact { justify-self: end; padding: .4rem .2rem; }

/* Burger = label auto-bascule : "Menu" fermé / "✕" ouvert.
   Les deux libellés empilés sur la MÊME cellule (inline-grid) → la croix est
   centrée exactement sur le mot, et le burger reste DANS la navbar sticky :
   on le voit et on le clique aussi quand le menu est ouvert. */
.nav-burger {
  display: inline-grid; place-items: center;
  justify-self: start; cursor: pointer; user-select: none;
  min-height: 2.7rem;
}
.nav-burger span { grid-area: 1 / 1; }
.nav-burger .burger-x { display: block; visibility: hidden; font-size: 1.35rem; line-height: 1; }
.nav-toggle:checked ~ .site-header .nav-burger .burger-menu { visibility: hidden; }
.nav-toggle:checked ~ .site-header .nav-burger .burger-x { visibility: visible; }

/* ---------- Menu overlay : occupe l'écran SOUS la navbar ---------- */
.nav-overlay {
  position: fixed; inset: 0; top: 0; z-index: 70;
  padding-top: 4.6rem;
  background: var(--vert-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.nav-toggle:checked ~ .nav-overlay {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease;
}
/* Titres du menu ouvert : blancs par défaut, page courante en vert clair + souligné gras. */
.nav-full { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.nav-full a {
  font-family: var(--sans); font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 700; color: #fff;
  padding: .35rem 1rem; letter-spacing: .01em;
}
.nav-full a.active {
  color: var(--vert-clair); font-weight: 800;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.nav-full a:hover { color: var(--champagne); }
.nav-foot { margin-top: 2.5rem; color: var(--vert-clair); }
.nav-foot a { color: var(--champagne); }

/* Liseré vert clair sur tout le site (touche de test, pointer-events: none). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100;
  border: 4px solid var(--vert-clair); pointer-events: none;
}

/* ---------- Boutons : CTA unifiés — fond transparent, texte + bordure blancs, hover/click champagne ---------- */
.btn, .btn-primary, .btn-ghost, .btn-solid {
  display: inline-block; padding: .7rem 1.7rem; border-radius: 999px;
  font-weight: 800; font-size: .98rem; letter-spacing: .02em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none !important;
  background: transparent; color: #fff;
  border: 1.5px solid #fff;
}
.btn:hover, .btn-primary:hover, .btn-ghost:hover, .btn-solid:hover {
  background: var(--champagne); color: var(--vert-dark);
  border-color: var(--champagne);
  transform: translateY(-1px);
}
.btn:active, .btn-primary:active, .btn-ghost:active, .btn-solid:active {
  background: var(--champagne-dark); color: var(--vert-dark);
  border-color: var(--champagne-dark);
  transform: translateY(0);
}

/* ---------- HERO pleine viewport ---------- */
.hero-spot {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background-size: cover;          /* remplit sans déformer */
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-spot .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;              /* vidéo non déformée */
  z-index: 0;
}
.hero-spot .hero-spot-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(34,45,26,.55) 0%, rgba(34,45,26,.28) 45%, rgba(34,45,26,.55) 100%);
}
.hero-spot-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1100px; margin: 0 auto; padding: 5rem 2rem;
  text-align: center;             /* CTA centrés en largeur */
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .8rem;
  /* Pleine hauteur : sans ça, justify-content des variantes de placement
     n'a aucun effet (le conteneur serait haut que son contenu). */
  min-height: 100vh; min-height: 100svh;
  box-sizing: border-box;
}
/* Placement des textes + CTA selon le champ CMS (vertical, le CSS suit) */
.hero-spot.cta-haut  .hero-spot-content { justify-content: flex-start; padding-top: 16vh; }
.hero-spot.cta-centre .hero-spot-content { justify-content: center; }
.hero-spot.cta-bas   .hero-spot-content { justify-content: flex-end; padding-bottom: 14vh; }
.hero-spot-content h1, .hero-spot-content h2 {
  color: var(--blanc); font-size: clamp(2rem, 5vw, 3.4rem);
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-spot-content .lead {
  color: rgba(255,255,255,.94); font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 42rem; text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-spot-content .cta-row {
  display: flex; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; justify-content: center;
}
/* Hero sans média : dégradé vert élégant, COMPACT (s'ajuste au texte).
   Pas de pleine hauteur inutile sans image. */
.hero-plain {
  background: linear-gradient(135deg, var(--vert-dark) 0%, var(--vert) 55%, var(--vert-clair) 130%);
}
.hero-plain, .hero-plain .hero-spot-content { min-height: auto; }
.hero-plain .hero-spot-content { padding: 4.5rem 2rem; }

/* ---------- Sections génériques ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2rem; }
.section h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--vert); }

/* Hero "en-tête" sobre (pages sans hero CMS) */
.hero {
  min-height: 34vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem; text-align: center;
}
.hero h1 { color: var(--blanc); font-size: clamp(2rem, 4.5vw, 3rem); }
.hero .lead { color: rgba(255,255,255,.92); max-width: 40rem; }

/* ---------- Cartes (bloc générique cliquable) ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
a.card {
  display: flex; flex-direction: column;
  background: var(--blanc); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(54,99,37,.18); text-decoration: none; }
.card-media {
  display: block; aspect-ratio: 4 / 3;
  background-size: cover; background-position: center; background-color: var(--vert-clair);
}
.card-media.is-video video { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.card-body strong { font-family: var(--sans); font-weight: 800; font-size: 1.15rem; color: var(--vert); }
.card-tagline { font-size: .92rem; color: #5c6154; }

/* ---------- Feed / galerie (liste réalisations) ---------- */
/* Filtres 100% CSS : radios cachés + labels, zéro JS */
/* Filtres 100% CSS : les radios natifs sont cachés, seuls les labels cliquables restent visibles */
.feed-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
input[name="feed-filter"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.feed-filters label {
  padding: .4rem 1.1rem; border: 1px solid var(--vert-clair); border-radius: 999px;
  cursor: pointer; font-size: .9rem; color: var(--vert-dark); background: var(--blanc);
  transition: all .15s ease;
}
.feed-filters label:hover { border-color: var(--vert); }
.feed-grid { columns: 4 220px; column-gap: 1rem; }
.feed-item {
  break-inside: avoid; margin-bottom: 1rem; border-radius: 8px; overflow: hidden;
  position: relative; background: var(--blanc); border: 1px solid var(--line);
}
.feed-item img { width: 100%; }
.feed-item .cap { padding: .7rem .8rem; font-size: .85rem; color: #4a5158; }
.feed-item .src { position: absolute; top: .5rem; right: .5rem; background: rgba(39,73,26,.8); color: #fff; font-size: .7rem; padding: .15rem .5rem; border-radius: 999px; }

/* Règles de filtrage 100% CSS (source + compte) — radios siblings du grid */
#ff-all:checked ~ .feed-grid .feed-item { display: block; }
#ff-insta:checked ~ .feed-grid .feed-item:not([data-source="insta"]) { display: none; }
#ff-linkedin:checked ~ .feed-grid .feed-item:not([data-source="linkedin"]) { display: none; }
#ff-actu:checked ~ .feed-grid .feed-item:not([data-source="actu"]) { display: none; }
#ff-photo:checked ~ .feed-grid .feed-item:not([data-source="photo"]) { display: none; }
#fa-mh:checked ~ .feed-grid .feed-item:not([data-account="mhreceptions"]) { display: none; }
#fa-vb:checked ~ .feed-grid .feed-item:not([data-account="villablanche_dk"]) { display: none; }
#fa-ebj:checked ~ .feed-grid .feed-item:not([data-account="ermitageduboisjoli"]) { display: none; }
#fa-mj:checked ~ .feed-grid .feed-item:not([data-account="maisondujardinier_quaedypre"]) { display: none; }
/* label actif selon le radio coché */
#ff-all:checked ~ .feed-filters label[for="ff-all"],
#ff-insta:checked ~ .feed-filters label[for="ff-insta"],
#ff-linkedin:checked ~ .feed-filters label[for="ff-linkedin"],
#ff-actu:checked ~ .feed-filters label[for="ff-actu"],
#ff-photo:checked ~ .feed-filters label[for="ff-photo"],
#fa-mh:checked ~ .feed-filters label[for="fa-mh"],
#fa-vb:checked ~ .feed-filters label[for="fa-vb"],
#fa-ebj:checked ~ .feed-filters label[for="fa-ebj"],
#fa-mj:checked ~ .feed-filters label[for="fa-mj"]
{ background: var(--vert); color: var(--blanc); border-color: var(--vert); }

/* Teaser home */
.teaser-more { margin-top: 1rem; }

/* ---------- Fiche lieu ---------- */
.lieu-info { border-left: 4px solid var(--champagne); background: var(--blanc); border-radius: 0 10px 10px 0; }
.lieu-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.lieu-meta .k {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--vert); font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--blanc); margin-top: 4rem; }
.foot-grid { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 1rem; display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2rem; }
.foot-grid h3 { font-size: 1rem; margin-bottom: .6rem; }
.foot-logo { height: 3rem; width: auto; margin-bottom: .8rem; }
.foot-legal { text-align: center; padding: 1rem; font-size: .8rem; color: #777; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .site-header { padding: .8rem 1rem; }
  .brand-name { display: none; }
  .hero-spot-content { padding: 4rem 1.2rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .feed-grid { columns: 2 160px; }
}
/* Mobile : hero pleine hauteur SAUF hero-plain (compact = hauteur du texte). */
@media (max-width: 600px) {
  .hero-spot:not(.hero-plain) { min-height: 100svh; }
  .hero-plain .hero-spot-content { padding: 3rem 1.2rem; }
  .hero-spot-content .cta-row { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-spot-content .btn { text-align: center; }
}

/* ---------- Blocs formulaires (CMS) ---------- */
.mh-form { max-width: 720px; margin: 0 auto 3.5rem; background: var(--blanc); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.mh-form-title { margin-bottom: .4rem; }
.mh-form-intro { color: #5a6152; margin-bottom: 1.25rem; }
.mh-fields { display: grid; gap: 1rem; }
.mh-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3rem; color: var(--vert-dark); }
.mh-field .mh-req { color: #b3541e; }
.mh-field input:not([type="checkbox"]):not([type="radio"]), .mh-field select, .mh-field textarea {
  width: 100%; padding: .6rem .75rem; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fffdf8;
}
.mh-field textarea { min-height: 6rem; resize: vertical; }
.mh-field input:focus, .mh-field select:focus, .mh-field textarea:focus { outline: none; border-color: var(--vert-clair); box-shadow: 0 0 0 3px rgba(172,200,167,.25); }
.mh-field.is-missing > label, .mh-field.is-missing > .mh-check { color: #b3541e; }
.mh-field.is-missing input, .mh-field.is-missing select, .mh-field.is-missing textarea { border-color: #e0b39a; background: #fdf6f2; }
.mh-missing { color: #b3541e; font-size: .82rem; margin-top: .25rem; }
.mh-help { color: #7a8170; font-size: .82rem; margin-top: .25rem; }
.mh-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 600 !important; }
.mh-check input { width: auto !important; }
.mh-field select[multiple] { min-height: 6.5rem; }
.mh-form-help { color: #b3541e; font-size: .85rem; margin: .75rem 0 0; }
/* Le JS masque la ligne d'aide via [hidden] quand tout est rempli ; on garde
   l'espace réservé pour que le bouton ne remonte pas coller au contenu. */
.mh-form-help[hidden] { display: block; visibility: hidden; }
.mh-submit:disabled { opacity: .45; cursor: not-allowed; }

/* Boutons EN FORMULAIRE (fond crème) : variante visible. Le style .btn par
   défaut (transparent + blanc) est pensé pour les heroes sombres ; sur fond
   clair il rend le bouton invisible. Scopé .mh-form pour ne rien casser
   dans les CTA hero. */
.mh-form .btn-primary {
  background: var(--vert); color: #fff; border-color: var(--vert);
}
.mh-form .btn-primary:hover:not(:disabled) {
  background: var(--vert-dark); border-color: var(--vert-dark);
}
.mh-form .btn-primary:active:not(:disabled) {
  background: var(--vert-dark);
}
.mh-form .btn-ghost {
  background: transparent; color: var(--vert); border-color: var(--vert-clair);
}
.mh-form .btn-ghost:hover:not(:disabled) {
  background: var(--vert-clair); color: var(--vert-dark); border-color: var(--vert-clair);
}
.mh-form .btn:disabled { opacity: .45; cursor: not-allowed; }
.mh-success { color: var(--vert-dark); font-weight: 700; font-size: 1.05rem; padding: 1rem; background: var(--cream); border-radius: 10px; }

/* Multi-étapes */
.mh-steps-nav { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.25rem; counter-reset: step; }
.mh-steps-nav li { font-size: .82rem; color: #9aa090; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.mh-steps-nav li::before { content: counter(step); counter-increment: step; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: #6a7160; font-size: .78rem; }
.mh-steps-nav li.is-active { color: var(--vert); }
.mh-steps-nav li.is-active::before { background: var(--vert); color: #fff; }
.mh-steps-nav li.is-done::before { background: var(--vert-clair); color: var(--vert-dark); content: "✓"; }
.mh-step { border: none; padding: 0; margin: 0; }
.mh-step legend { font-weight: 800; color: var(--vert); font-size: 1.1rem; margin-bottom: .75rem; padding: 0; }
.mh-form-nav { display: flex; gap: .75rem; margin-top: 1.25rem; }
.mh-form-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }
.mh-form-nav .btn[hidden] { display: none; }

/* ═════════════════ BLOC COLLECTION — PAGINATION (pager) ═════════════════
   Les styles .pg-btn + état actif sont inline dans le composant. Ici le layout
   du conteneur, la radio cachée et l'info, partagés cartes + galerie. */
.pg-radio { position: absolute; opacity: 0; pointer-events: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.5rem; }
.pg-info { font-size: .82rem; color: #7a8070; margin-left: .5rem; }

/* ═════════════════ BLOC COLLECTION — GALERIE pleine largeur ═════════════════
   Mosaïque de tuiles (masonry CSS), bord à bord pc/mobile, zoom + légende au survol. */
.section-full { width: 100%; max-width: none; }
.gallery-full { padding: 3.5rem 0; background: var(--cream); }
.gallery-title {
  text-align: center; font-size: 2rem; color: var(--vert);
  margin: 0 auto 1.75rem; padding: 0 2rem;
}
.gallery-full .pager { justify-content: center; }
.gallery-grid { column-count: 4; column-gap: .75rem; }
.gallery-tile {
  position: relative; break-inside: avoid; margin: 0 0 .75rem;
  border-radius: 10px; overflow: hidden; background: var(--blanc);
  border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(39,73,26,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(39,73,26,.16); }
.gallery-tile img { width: 100%; display: block; transition: transform .4s ease; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .9rem .8rem;
  display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem;
  color: #fff; font-size: .9rem; font-weight: 600;
  background: linear-gradient(to top, rgba(30,45,20,.85), rgba(30,45,20,0));
}
.gallery-src {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  background: var(--vert); color: #fff; padding: .15rem .55rem;
  border-radius: 999px; white-space: nowrap;
}
@media (max-width: 1100px) { .gallery-grid { column-count: 3; } }
@media (max-width: 820px)  { .gallery-grid { column-count: 2; } }
@media (max-width: 480px)  { .gallery-grid { column-count: 1; } }

