/* Motifil : charte « toile et fil » (29/11/2026). Gloock (titres) + Instrument Sans (texte).
   lin #F3EEE3 · papier #FFFCF6 · indigo #1E2B4A · garance #B8332B · fil vert #3F6B52 · doré #C8973A */
:root {
  --lin: #F3EEE3; --papier: #FFFCF6; --encre: #1E2B4A; --encre-2: #4A5570; --garance: #B8332B; --garance-f: #962620;
  --vert: #3F6B52; --dore: #C8973A; --filet: #DDD3C1;
  --titre: 'Gloock', Georgia, serif; --texte: 'Instrument Sans', system-ui, sans-serif;
  --aida: radial-gradient(circle, rgba(30,43,74,.13) 1.1px, transparent 1.3px) 0 0 / 9px 9px;
}
body { background: var(--lin) !important; color: var(--encre); font-family: var(--texte); font-size: 17px; line-height: 1.6; }

/* ---------- chrome Kadence remplacé ---------- */
#masthead, .site-header, #colophon, .site-footer { display: none !important; }
.content-container.site-container { max-width: none; padding: 0; }
.content-area { margin: 0 !important; }
.entry.single-entry, .content-bg, body.content-style-unboxed .site { background: transparent !important; box-shadow: none !important; }
.entry-content-wrap { padding: 0 !important; }
.entry-hero, .entry-header { display: none; }
.mf h1, .mf h2, .mf h3 { margin: 0; font-family: var(--titre); font-weight: 400; color: var(--encre); letter-spacing: 0; }
.mf p { margin: 0 0 1em; }
.mf a { color: var(--garance); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mf-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- en-tête ---------- */
.mf-tete { background: var(--papier); border-bottom: 1px solid var(--filet); position: relative; z-index: 20; }
.mf-tete .mf-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.mf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--encre) !important; font: 30px/1 var(--titre); }
.mf-logo svg { width: 30px; height: 30px; flex: none; }
.mf-nav { display: flex; gap: 6px; }
.mf-nav a { color: var(--encre) !important; text-decoration: none !important; font-weight: 600; font-size: 15.5px; padding: 8px 12px; border-radius: 6px; }
.mf-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--garance); border-radius: 0; }
.mf-burger { display: none; background: none; border: 1px solid var(--filet); border-radius: 6px; padding: 8px 10px; font: 600 15px var(--texte); color: var(--encre); }
@media (max-width: 720px) {
  .mf-burger { display: block; }
  .mf-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--papier); border-bottom: 1px solid var(--filet); padding: 8px 20px 14px; }
  .mf-nav.ouvert { display: flex; }
}

/* ---------- surpiqûre (point avant) : signature ---------- */
.mf-pique { background: repeating-linear-gradient(90deg, var(--garance) 0 9px, transparent 9px 15px) left bottom / 100% 2px no-repeat; padding-bottom: 8px; }
.mf-carte { position: relative; display: block; background: var(--papier); border: 1px solid var(--filet); border-radius: 10px; padding: 12px; text-decoration: none !important; color: var(--encre) !important; }
.mf-carte::after { content: ''; position: absolute; inset: 6px; border: 2px dashed transparent; border-radius: 6px; pointer-events: none; transition: border-color .2s; }
.mf-carte img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #F1EBDF; border-radius: 4px; }
.mf-petite .mf-carte img, .mf-lettres .mf-carte img { aspect-ratio: 3 / 4; }
.mf-carte b { display: block; font: 21px/1.2 var(--titre); font-weight: 400; margin: 10px 2px 2px; }
.mf-carte small { display: block; color: var(--encre-2); font-size: 14px; margin: 0 2px; }
@media (hover: hover) { .mf-carte:hover::after, .mf-carte:focus-visible::after { border-color: var(--garance); } }

/* ---------- boutons ---------- */
.mf-bouton { display: inline-flex; align-items: center; gap: 10px; background: var(--garance); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 17px;
  padding: 14px 22px; border-radius: 8px; box-shadow: 0 3px 0 var(--garance-f); }
.mf-bouton svg { width: 20px; height: 20px; }
.mf-bouton.mf-sec { background: var(--papier); color: var(--encre) !important; border: 1.5px solid var(--encre); box-shadow: 0 3px 0 var(--encre); }
@media (hover: hover) { .mf-bouton:hover { transform: translateY(-1px); filter: brightness(1.06); } }
.mf-bouton:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--garance-f); }
@media (prefers-reduced-motion: no-preference) { .mf-bouton { transition: transform .12s, filter .12s; } }

/* ---------- accueil ---------- */
.mf-hero { background: var(--aida), var(--papier); border-bottom: 1px solid var(--filet); }
.mf-hero .mf-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.mf-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; }
.mf-hero p { font-size: 18.5px; color: var(--encre-2); max-width: 34em; margin-top: 16px; }
.mf-hero img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(30,43,74,.12); }
.mf-hero .mf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 820px) { .mf-hero .mf-in { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; padding-bottom: 30px; } }

.mf-section { padding: 46px 0 10px; }
.mf-section > .mf-in > h2 { font-size: clamp(27px, 3.4vw, 36px); line-height: 1.15; display: inline-block; }
.mf-section > .mf-in > p.mf-chapo { color: var(--encre-2); max-width: 44em; margin-top: 14px; }
.mf-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 24px; }
.mf-grille.mf-petite { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

/* abécédaire de navigation A-Z */
.mf-az { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; margin-top: 20px; }
.mf-az a { display: grid; place-items: center; aspect-ratio: 1; background: var(--papier); border: 1px solid var(--filet); border-radius: 6px;
  font: 24px/1 var(--titre); color: var(--encre) !important; text-decoration: none !important; }
.mf-az a[aria-current="page"] { background: var(--encre); color: var(--papier) !important; border-color: var(--encre); }
@media (hover: hover) { .mf-az a:hover { border-color: var(--garance); color: var(--garance) !important; } }
@media (max-width: 640px) { .mf-az { grid-template-columns: repeat(7, 1fr); } }

/* ---------- fiche ---------- */
.mf-fiche { padding: 26px 0 10px; }
.mf-fil { font-size: 14.5px; color: var(--encre-2); margin-bottom: 10px; }
.mf-fil a { color: var(--encre-2) !important; }
.mf-fiche h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
.mf-infos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.mf-infos li { background: var(--papier); border: 1px solid var(--filet); border-radius: 99px; padding: 4px 12px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mf-vue { background: var(--papier); border: 1px solid var(--filet); border-radius: 12px; padding: 12px; }
.mf-vue img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mf-bascule { display: inline-flex; border: 1px solid var(--filet); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.mf-bascule button { background: var(--papier); border: 0; padding: 8px 14px; font: 600 14.5px var(--texte); color: var(--encre-2); cursor: pointer; }
.mf-bascule button[aria-pressed="true"] { background: var(--encre); color: var(--papier); }
.mf-dl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 6px; }
.mf-dl small { flex-basis: 100%; color: var(--encre-2); font-size: 14px; }
.mf-texte { max-width: 760px; }
.mf-texte h2 { font-size: clamp(25px, 3vw, 31px); line-height: 1.2; margin: 38px 0 12px; }
.mf-texte p, .mf-texte li { font-size: 17.5px; }
.mf-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-variant-numeric: tabular-nums; background: var(--papier); }
.mf-table th, .mf-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--filet); font-size: 15.5px; }
.mf-table th { font-weight: 700; background: #EDE6D8; }
.mf-pastille { display: inline-block; width: 15px; height: 15px; border-radius: 3px; vertical-align: -2px; margin-right: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.mf-colonnes { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 900px) { .mf-colonnes { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- pied ---------- */
.mf-pied { margin-top: 60px; background: var(--encre); color: #D9DDE8; padding: 34px 0 26px; font-size: 15px; }
.mf-pied .mf-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.mf-pied b { display: block; color: #fff; font: 24px/1.2 var(--titre); font-weight: 400; margin-bottom: 8px; }
.mf-pied a { color: #fff !important; text-decoration: none !important; display: block; padding: 3px 0; }
.mf-pied .mf-bas { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; font-size: 13.5px; color: #AEB5C6; }
@media (max-width: 720px) { .mf-pied .mf-in { grid-template-columns: 1fr; } }

.mf a:focus-visible, .mf-tete a:focus-visible, .mf-pied a:focus-visible, .mf button:focus-visible { outline: 2px solid var(--garance); outline-offset: 2px; }

/* corrections mobile (29/11) */
.mf ul.mf-infos { margin-left: 0 !important; padding-left: 0 !important; }
.mf-table th, .mf-table td { white-space: nowrap; }
@media (max-width: 640px) {
  .mf-grille.mf-petite { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mf-petite .mf-carte { padding: 5px; border-radius: 7px; }
  .mf-petite .mf-carte b { font-size: 17px; margin: 4px 0 0; text-align: center; }
  .mf-petite .mf-carte small { display: none; }
  .mf-grille.mf-lettres { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mf-lettres .mf-carte b { font-size: 18px; }
  .mf-lettres .mf-bouton { width: 100%; justify-content: center; }
  .mf-table th, .mf-table td { padding: 8px 9px; font-size: 14.5px; }
}
@media (max-width: 640px) {
  .mf-grille:not(.mf-petite) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mf-grille:not(.mf-petite) .mf-carte { padding: 7px; }
  .mf-grille:not(.mf-petite) .mf-carte b { font-size: 17.5px; margin-top: 7px; }
  .mf-grille:not(.mf-petite) .mf-carte small { font-size: 13px; }
}

.mf-grille + .mf-texte, .mf-az + .mf-grille + .mf-texte { margin-top: 34px; }
