/* Educatii en application (docs/plateforme-v2/PLAN.md) : barre du haut, menu latéral, onglets sur téléphone,
   fil des écoles (photos carrées), stories, Mercato, comparateur flottant. Complète horizon.css et educatii.css. */
.ed-app { --bar-h: 62px; --tabs-h: 0px; background: var(--bg); }
.ed-app main { min-height: calc(100vh - var(--bar-h)); padding-bottom: calc(var(--tabs-h) + 32px); }

/* ------------------------------------------------------------ barre du haut */
.ed-bar { position: sticky; top: 0; z-index: 60; height: var(--bar-h); display: flex; align-items: center; gap: 12px; padding: 0 max(16px, calc((100vw - 1240px) / 2)); background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.ed-bar__brand { flex: none; display: flex; align-items: center; }
.ed-bar__brand img { height: 34px; width: auto; display: block; }
.ed-bar__center { flex: 1; min-width: 0; display: flex; justify-content: center; }
.ed-bar__actions { flex: none; display: flex; align-items: center; gap: 6px; }
.ed-bar__search { width: min(100%, 560px); display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); text-decoration: none; font-size: .92rem; border: 1px solid var(--line); }
.ed-bar__search:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); color: var(--ink-2); }
.ed-bar .ed-search { width: min(100%, 560px); margin: 0; padding: 0 6px 0 4px; height: 42px; border-radius: 999px; background: var(--bg-2); box-shadow: none; border: 1px solid var(--line); align-items: center; }
.ed-bar .ed-search:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 14%, transparent); }
.ed-bar .ed-search input { font-size: .95rem; padding: 0 8px; height: 40px; }
.ed-bar .ed-search__ico { padding-left: 10px; font-size: 1rem; }
.ed-bar .ed-ac__list { top: calc(100% + 6px); }
.ed-iconbtn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; font-size: 1.05rem; }
.ed-iconbtn:hover { background: var(--bg-2); }
.ed-iconbtn .ed-badge { position: absolute; top: 2px; right: 0; }
.ed-pulse { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); animation: ed-pulse 1.8s infinite; }
.ed-pulse--inline { position: relative; top: 0; right: 0; flex: none; }
@keyframes ed-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ed-pulse { animation: none; } }

/* ------------------------------------------------------------ menu latéral */
.ed-menu-backdrop, .ed-drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 6, 30, .45); }
.ed-menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(360px, 88vw); background: var(--surface); box-shadow: -20px 0 60px rgba(10, 6, 30, .25); padding: 12px 16px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; animation: ed-slide-l .22s ease both; }
.ed-menu[hidden], .ed-menu-backdrop[hidden], .ed-drawer[hidden], .ed-drawer-backdrop[hidden] { display: none; }
@keyframes ed-slide-l { from { transform: translateX(100%); } to { transform: none; } }
.ed-menu__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; }
.ed-menu__head img { height: 30px; width: auto; }
.ed-menu ul { list-style: none; margin: 0; padding: 0; }
.ed-menu__main a, .ed-menu__lang summary { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.ed-menu__main a span, .ed-menu__lang summary span { width: 26px; text-align: center; }
.ed-menu__main a:hover, .ed-menu__lang summary:hover { background: var(--bg-2); }
.ed-menu__main a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.ed-count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; padding: 0 6px; }
.ed-menu__create { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 10px 26px color-mix(in oklab, var(--brand) 35%, transparent); }
.ed-menu__create .ed-pulse { grid-row: span 2; background: #fff; }
.ed-menu__create small { opacity: .88; font-size: .8rem; grid-column: 2; }
.ed-menu__lang { border-top: 1px solid var(--line); padding-top: 6px; }
.ed-menu__lang summary { list-style: none; font-weight: 500; }
.ed-menu__lang summary::-webkit-details-marker { display: none; }
.ed-menu__lang div { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px 48px; }
.ed-menu__lang button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 .85rem var(--font-body); cursor: pointer; color: var(--ink-2); }
.ed-menu__lang button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.ed-menu__small { display: flex; flex-wrap: wrap; gap: 4px 16px; border-top: 1px solid var(--line); padding: 12px 10px 0 !important; }
.ed-menu__small a { color: var(--ink-3); font-size: .88rem; text-decoration: none; }
.ed-menu__small a:hover { color: var(--brand); }
.ed-menu .ed-social { padding: 0 10px; }
.ed-menu__copy { color: var(--ink-3); font-size: .78rem; margin: auto 10px 0; }

/* ------------------------------------------------------------ onglets (téléphone) */
.ed-tabs { display: none; }
@media (max-width: 760px) {
  .ed-app { --bar-h: 56px; --tabs-h: 62px; }
  .ed-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 24, 40, .06); }
  .ed-tabs a, .ed-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--ink-3); font: 600 .7rem var(--font-body); text-decoration: none; cursor: pointer; }
  .ed-tabs span { font-size: 1.25rem; line-height: 1; filter: grayscale(1); opacity: .7; }
  .ed-tabs [aria-current="page"] { color: var(--brand); }
  .ed-tabs [aria-current="page"] span { filter: none; opacity: 1; }
  .ed-bar { gap: 6px; padding: 0 10px; }
  .ed-bar__brand img { height: 28px; max-width: 92px; object-fit: contain; }
  .ed-bar__actions [data-menu-open] { display: none; }
  .ed-bar .ed-search, .ed-bar__search { height: 40px; }
  .ed-bar .ed-search__ico { display: none; }
  .hz-fab { bottom: calc(var(--tabs-h) + 14px) !important; }
}

/* ------------------------------------------------------------ pages intérieures */
.ed-pagehead { padding: 14px 0 6px; }
.ed-pagehead .hz-wrap, .ed-pagehead .hz-wrap--narrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-pagehead h1 { margin: 0; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); flex: 1; min-width: 0; }
.ed-pagehead__intro { flex-basis: 100%; color: var(--ink-2); }
.ed-pagehead__intro:empty { display: none; }
.ed-pagehead__intro p { margin: 0; }
.ed-back { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg-2); color: var(--ink); text-decoration: none; font-size: 1.2rem; flex: none; }
.ed-back:hover { background: var(--brand-soft); color: var(--brand-ink); }
.ed-back--label { width: auto; border-radius: 999px; padding: 0 16px; font-size: .95rem; font-weight: 700; }
.ed-h2 { font-size: 1.15rem; margin: 26px 0 14px; }
.ed-app .hz-section:first-of-type { padding-top: 18px; }

/* ------------------------------------------------------------ filtres : grand panneau à droite (ordinateur), feuille (téléphone) */
.ed-drawer { position: fixed; top: 12px; bottom: 12px; right: 12px; z-index: 95; width: min(780px, calc(100vw - 24px)); background: var(--bg); border-radius: 26px; box-shadow: 0 30px 80px rgba(10, 6, 30, .35); display: flex; flex-direction: column; overflow: hidden; animation: ed-slide-l .25s cubic-bezier(.2, .9, .3, 1) both; }
.ed-drawer__head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ed-drawer__head > div { flex: 1; display: grid; }
.ed-drawer__head strong { font: 800 1.3rem var(--font-head); }
.ed-drawer__head small { color: var(--ink-3); }
.ed-drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; overscroll-behavior: contain; }
.ed-drawer__foot { display: flex; gap: 10px; justify-content: space-between; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.ed-drawer__foot .hz-btn--primary { flex: 1; max-width: 360px; }
.fl-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.fl-sec--wide { grid-column: 1 / -1; }
.fl-sec h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.fl-sec h3 span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); font-size: .95rem; }
.fl-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fl-seg span { justify-content: center; width: 100%; padding: 10px 8px; }
.fl-search .ux-input { min-height: 44px; }
.ed-drawer .ed-chips { display: flex; flex-wrap: wrap; flex-direction: row; gap: 8px; }
.ed-drawer .ed-chip span { width: auto; border-radius: 999px; padding: 9px 14px; font-size: .88rem; border-width: 1.5px; }
.fl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ed-drawer .fl-tile span { width: 100%; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 76px; font-weight: 700; }
.ed-drawer .fl-tile span i { font-style: normal; font-size: 1.4rem; line-height: 1; }
.ed-drawer .fl-tile input:checked + span::before { position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-size: .7rem; }
.fl-tile { position: relative; }
.fl-switch { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.fl-switch input { position: absolute; opacity: 0; }
.fl-switch span { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.fl-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s; }
.fl-switch input:checked + span { background: var(--brand); }
.fl-switch input:checked + span::after { transform: translateX(18px); }
.fl-switch input:focus-visible + span { outline: 3px solid color-mix(in oklab, var(--brand) 45%, #fff); }
.fl-n { min-width: 22px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .25); display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.fl-n[hidden] { display: none; }
@media (max-width: 760px) {
  .ed-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; animation: ux-sheet .28s cubic-bezier(.2, .9, .3, 1) both; }
  .ed-drawer__head { position: relative; padding-top: 26px; }
  .ed-drawer__head::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 5px; background: var(--line); }
  .ed-drawer__body { grid-template-columns: 1fr; padding: 14px 14px 20px; gap: 12px; }
  .fl-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
html.ed-locked, html.ed-locked body { overflow: hidden; }

/* ------------------------------------------------------------ fil */
.ed-feedwrap { width: min(100% - 32px, 1240px); margin: 18px auto 0; }
.ed-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
@media (max-width: 1080px) { .ed-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ed-feedwrap { width: min(100% - 20px, 520px); margin-top: 12px; } .ed-feed { grid-template-columns: 1fr; gap: 30px; } }
.ed-feed.is-loading { opacity: .5; }
.ed-feed__sep { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-weight: 600; font-size: .9rem; padding: 6px 0; display: flex; align-items: center; gap: 14px; }
.ed-feed__sep::before, .ed-feed__sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ed-more-pages { display: flex; justify-content: center; gap: 18px; padding: 26px 0 8px; }
.ed-more-pages a { color: var(--brand); font-weight: 700; text-decoration: none; }
.js .ed-more-pages { visibility: hidden; height: 1px; padding: 0; overflow: hidden; }
.ed-loader { grid-column: 1 / -1; display: flex; justify-content: center; padding: 20px; }
.ed-loader i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: ed-spin .8s linear infinite; }
@keyframes ed-spin { to { transform: rotate(360deg); } }

/* publication d'une école : photo carrée ≥ 70 % de la carte, bordure basse à la couleur d'Educatii */
.ed-post { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 4px solid var(--brand); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(16, 24, 40, .05); }
.ed-post--sponsored { border-bottom-color: #f59e0b; }
.ed-post__media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); }
.ed-post__track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ed-post__track::-webkit-scrollbar { display: none; }
.ed-post__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.ed-post__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-post__slide--ph { display: grid; place-items: center; }
.ed-post__slide--ph span { font: 800 3rem var(--font-head); color: var(--brand-ink); opacity: .5; }
.ed-post__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #141824; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.ed-post__nav--prev { left: 10px; } .ed-post__nav--next { right: 10px; }
.ed-post__media:hover .ed-post__nav, .ed-post__nav:focus-visible { opacity: 1; }
@media (hover: none) { .ed-post__nav { display: none; } }
.ed-post__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.ed-post__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 2px rgba(0, 0, 0, .4); }
.ed-post__dots i.is-on { background: #fff; width: 16px; border-radius: 4px; }
.ed-post__report { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; font-weight: 800; opacity: 0; transition: opacity .15s; }
.ed-post__media:hover .ed-post__report, .ed-post__report:focus-visible { opacity: 1; }
@media (hover: none) { .ed-post__report { opacity: .8; } }
.ed-post__badges { position: absolute; top: 10px; left: 10px; right: 48px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.ed-post__badges span { background: rgba(255, 255, 255, .92); color: #141824; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 700; }
.ed-post__badges span.sponsored { background: #111827; color: #fff; }
.ed-post__badges span.featured { background: #f59e0b; color: #1f1300; }
.ed-post__body { padding: 10px 12px 10px; display: grid; gap: 8px; }
.ed-post__head { display: flex; gap: 10px; align-items: center; min-width: 0; }
.ed-post__logo { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 2px; }
.ed-post__logo--ph { display: grid; place-items: center; padding: 0; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: .8rem; border: 0; }
.ed-post__title { min-width: 0; }
.ed-post h2 { margin: 0; font-size: .98rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-post__where { color: var(--ink-3); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-post__flags { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-post__flags span { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.ed-post__flags .ok { color: #047857; background: #ecfdf5; }
.ed-post__flags .adm { color: #1d4ed8; background: #eff6ff; }
.ed-post__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ed-post__foot .hz-btn { min-height: 34px; padding: 6px 16px; }

/* ------------------------------------------------------------ stories */
.ed-story { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #2b1866, var(--brand) 60%, var(--accent)); color: #fff; text-decoration: none; isolation: isolate; box-shadow: 0 6px 20px rgba(16, 24, 40, .12); }
.ed-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.ed-story:hover img { transform: scale(1.04); }
.ed-story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .78)); }
.ed-story__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; z-index: -1; opacity: .6; }
.ed-story__ring { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#ffd166, #ff8fab, #a78bfa, #ffd166); padding: 3px; }
.ed-story__ring::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: url("/assets/favicon.ico") center / 60% no-repeat, #fff; }
.ed-story__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); display: grid; place-items: center; font-size: 1.3rem; padding-left: 4px; }
.ed-story__body { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; }
.ed-story__body small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.ed-story__body b { font: 800 1.05rem/1.25 var(--font-head); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ed-feed__story .ed-story { aspect-ratio: auto; height: 100%; min-height: 100%; }
@media (max-width: 640px) { .ed-feed__story .ed-story { aspect-ratio: 4 / 5; } }
.ed-stories-page { padding: 6px 0 20px; }
.ed-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 640px) { .ed-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ed-story__body b { font-size: .92rem; } .ed-story { border-radius: 14px; } }
.ed-stories--row { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ed-scrollchips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.ed-scrollchips::-webkit-scrollbar { display: none; }
.ed-scrollchips .hz-chip { flex: none; }
.ed-storypage { padding-top: 6px; }
.ed-storypage__media { border-radius: 18px; overflow: hidden; background: #000; margin-bottom: 18px; }
.ed-storypage__media img { width: 100%; max-height: 72vh; object-fit: cover; display: block; }
.ed-storypage__media--video video, .ed-storypage__media--video iframe { width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; display: block; border: 0; margin: 0 auto; background: #000; }
.ed-storypage__media--video iframe[src*="youtube"], .ed-storypage__media--video iframe[src*="vimeo"] { aspect-ratio: 16 / 9; }
.ed-storypage__cat { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); text-decoration: none; }
.ed-storypage h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin: 6px 0 8px; }
.ed-storypage__meta { display: flex; gap: 14px; color: var(--ink-3); font-size: .86rem; margin-bottom: 18px; flex-wrap: wrap; }

/* ------------------------------------------------------------ annonces (Mercato) et carte « Créer le site » */
.ed-adtile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 4px solid #0ea5e9; border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 2px 10px rgba(16, 24, 40, .05); }
.ed-adtile__media { aspect-ratio: 1 / 1; display: grid; place-items: center; background: linear-gradient(135deg, #e0f2fe, #fef3c7); overflow: hidden; }
.ed-adtile__media img { width: 100%; height: 100%; object-fit: cover; }
.ed-adtile__ico { font-size: 4rem; }
.ed-adtile__label { position: absolute; top: 10px; left: 10px; background: #111827; color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.ed-adtile__body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.ed-adtile__body b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-adtile__body span { color: var(--ink-2); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ed-adtile__body small { color: var(--ink-3); font-size: .78rem; }
.ed-stories .ed-adtile { aspect-ratio: 4 / 5; }
.ed-stories .ed-adtile__media { aspect-ratio: auto; flex: 1; }
.ed-promo { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px; min-height: 100%; border-radius: 18px; color: #fff; text-decoration: none; background: radial-gradient(600px 300px at 100% 0, rgba(255, 209, 102, .45), transparent 60%), linear-gradient(150deg, #140c33, #3b1f7a 55%, var(--brand)); box-shadow: 0 10px 30px color-mix(in oklab, var(--brand) 30%, transparent); }
@media (max-width: 640px) { .ed-promo { min-height: 320px; } }
.ed-promo__badge { align-self: flex-start; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 700; }
.ed-promo b { font: 800 1.5rem/1.2 var(--font-head); }
.ed-promo > span:not(.hz-btn):not(.ed-promo__badge) { opacity: .9; }
.ed-promo .hz-btn { align-self: flex-start; }

/* ------------------------------------------------------------ comparateur flottant */
.ed-cmp { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); z-index: 75; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: #120b2b; color: #fff; box-shadow: 0 14px 40px rgba(10, 6, 30, .35); animation: ed-pop .25s ease both; max-width: calc(100vw - 24px); }
.ed-cmp[hidden] { display: none; }
@keyframes ed-pop { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.ed-cmp__hint { font-size: .85rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-cmp__go { display: none; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; text-decoration: none; font-weight: 800; border-radius: 999px; padding: 10px 18px; white-space: nowrap; }
.ed-cmp.is-ready { padding-left: 6px; }
.ed-cmp.is-ready .ed-cmp__go { display: inline-flex; }
.ed-cmp.is-ready .ed-cmp__hint { display: none; }
.ed-cmp__clear { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; flex: none; }
body:has(.ed-cmp:not([hidden])) .hz-fab { bottom: calc(var(--tabs-h) + 78px) !important; }
.ed-badge[hidden], .ed-count[hidden] { display: none !important; }
.ed-menu__lang summary b { margin-left: auto; color: var(--ink-3); font-weight: 600; }

/* ------------------------------------------------------------ Mercato */
.mk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 0 6px; }
.mk-head .ed-scrollchips { flex: 1 1 100%; padding-bottom: 4px; }
.mk-filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.mk-filters .hz-input { width: auto; min-height: 38px; padding: 6px 12px; font-size: .88rem; }
.mk-publish { flex: none; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 12px 0 20px; }
@media (max-width: 640px) { .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.mk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 4px solid var(--brand); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.mk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mk-card--ad { border-bottom-color: #0ea5e9; } .mk-card--job_seeker { border-bottom-color: #10b981; } .mk-card--job_offer { border-bottom-color: #f59e0b; } .mk-card--supplier { border-bottom-color: #8b5cf6; }
.mk-card__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); font-size: 3.2rem; }
.mk-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mk-card__kind { position: absolute; top: 8px; left: 8px; background: rgba(17, 24, 39, .85); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mk-card__body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.mk-card__body small { color: var(--brand); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.mk-card__body b { font-size: .96rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-card__body > span { color: var(--ink-2); font-size: .82rem; }
.mk-card__meta { color: var(--ink-3) !important; font-size: .78rem !important; }
.mk-empty { margin: 20px 0; }
.mk-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 26px 0 10px; }
.mk-who a { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mk-who a:hover { border-color: var(--brand); }
.mk-who span { color: var(--ink-3); font-size: .86rem; }
.mk-show { padding-bottom: 30px; }
.mk-show__media { border-radius: 18px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 1 / 1; max-height: 520px; }
.mk-show__media img { width: 100%; height: 100%; object-fit: cover; }
.mk-show__cat { color: var(--brand); font-weight: 800; text-transform: uppercase; font-size: .76rem; letter-spacing: .05em; }
.mk-show h2 { margin: 4px 0 6px; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.mk-show__who { color: var(--ink-3); margin: 0 0 8px; }
.mk-show__price { font: 800 1.3rem var(--font-head); color: var(--ink); margin: 0 0 12px; }
.mk-show__details { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 16px; }
.mk-show__details div { background: var(--bg-2); border-radius: 12px; padding: 10px 12px; }
.mk-show__details dt { font-size: .74rem; color: var(--ink-3); font-weight: 700; }
.mk-show__details dd { margin: 2px 0 0; font-weight: 600; }
.mk-show__body { line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; }
.mk-show__contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; bottom: calc(var(--tabs-h) + 10px); background: var(--surface); padding: 10px; border-radius: 16px; box-shadow: var(--shadow); }
.mk-form { padding-bottom: 40px; }
.mk-form .hz-form { display: grid; gap: 8px; }
.mk-form label:not(.mk-kind):not(.mk-checks label) { font-weight: 700; font-size: .9rem; margin-top: 6px; }
.mk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .mk-row { grid-template-columns: 1fr; } }
.mk-kinds { border: 0; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-kinds legend { font-weight: 800; margin-bottom: 8px; }
@media (max-width: 560px) { .mk-kinds { grid-template-columns: 1fr; } }
.mk-kind { position: relative; cursor: pointer; }
.mk-kind input { position: absolute; opacity: 0; }
.mk-kind span { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; height: 100%; }
.mk-kind small { color: var(--ink-3); font-size: .8rem; }
.mk-kind input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.mk-kind input:focus-visible + span { outline: 3px solid color-mix(in oklab, var(--brand) 40%, #fff); }
.mk-target { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; margin-top: 8px; }
.mk-target legend { font-weight: 800; padding: 0 6px; }
.mk-target summary { cursor: pointer; font-weight: 600; }
.mk-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; font-size: .88rem; max-height: 220px; overflow-y: auto; }
.mk-checks label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500 !important; margin: 0 !important; }
.mk-thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.mk-space { padding-bottom: 40px; }
.mk-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 18px; }
.mk-new__item { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.mk-new__item small { opacity: .9; }
.mk-mine { display: grid; gap: 12px; }
.mk-mine__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; }
.mk-mine__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mk-mine__head small { color: var(--ink-3); font-weight: 700; font-size: .74rem; text-transform: uppercase; }
.mk-mine__head h2 { margin: 2px 0 0; font-size: 1.05rem; }
.mk-mine__meta { margin: 0; color: var(--ink-3); font-size: .86rem; }
.mk-mine__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mk-mine__actions form { margin: 0; }
.mk-send { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-send .hz-input { width: auto; min-height: 34px; padding: 4px 10px; font-size: .85rem; }
.mk-status { flex: none; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: var(--bg-2); color: var(--ink-2); }
.mk-status--active, .mk-status--paid { background: #ecfdf5; color: #047857; }
.mk-status--pending, .mk-status--review { background: #eff6ff; color: #1d4ed8; }
.mk-status--unpaid { background: #fff7ed; color: #c2410c; }
.mk-status--rejected, .mk-status--failed { background: #fef2f2; color: #b91c1c; }
.mk-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 8px; }
.mk-table th, .mk-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.pay-box { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.pay-box small { color: var(--ink-3); font-family: ui-monospace, monospace; }
.pay-amount { font: 800 1.8rem var(--font-head); }
.pay-box .mk-status { justify-self: start; }
.pay-manual { background: var(--bg-2); border-radius: 14px; padding: 14px; margin-bottom: 12px; line-height: 1.5; }
.pay-wait { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 20px 0; }
.hz-alert { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }

/* ------------------------------------------------------------ « Créer le site de mon école » et parents */
.cs-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 8px; padding: clamp(22px, 4vw, 44px); border-radius: 24px; color: #fff; background: radial-gradient(700px 300px at 100% 0, rgba(255, 209, 102, .4), transparent 60%), linear-gradient(140deg, #140c33, #3b1f7a 55%, var(--brand)); }
.cs-hero h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.2rem); }
.cs-hero p { opacity: .9; margin: 0 0 18px; }
.cs-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cs-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-proof li { display: flex; gap: 12px; align-items: baseline; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 12px 16px; }
.cs-proof b { font: 800 1.5rem var(--font-head); }
.cs-proof span { opacity: .85; }
@media (max-width: 760px) { .cs-hero { grid-template-columns: 1fr; } }
.cs-block { margin-top: 30px; }
.cs-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cs-features div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cs-features span { font-size: 1.6rem; }
.cs-features b { display: block; margin: 6px 0 4px; }
.cs-features p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.cs-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.cs-theme { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding-bottom: 12px; }
.cs-theme[hidden] { display: none; }
.cs-theme__img { display: block; aspect-ratio: 16 / 10.75; overflow: hidden; background: var(--bg-2); }
.cs-theme__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.cs-theme:hover .cs-theme__img img { transform: scale(1.03); }
.cs-theme__body { display: grid; gap: 2px; padding: 0 14px; }
.cs-theme__body small { color: var(--brand); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.cs-theme__body span { color: var(--ink-2); font-size: .86rem; }
.cs-theme .hz-btn { margin: 0 14px; align-self: flex-start; }
.cs-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.cs-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 6px; }
.cs-plan--main { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.cs-plan__price { font: 800 1.5rem var(--font-head); }
.cs-plan__price small { font: 500 .85rem var(--font-body); color: var(--ink-3); margin-left: 6px; }
.cs-plan p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.cs-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0; margin: 0 0 18px; list-style: none; counter-reset: s; }
.cs-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; counter-increment: s; }
.cs-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; }
.cs-steps span { color: var(--ink-2); font-size: .9rem; }
.pa-search { max-width: none; margin: 8px 0 14px; box-shadow: none; border: 1px solid var(--line); }
.pa-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pa-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.pa-list a:hover { border-color: var(--brand); }
.pa-list img, .pa-ph { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: var(--bg-2); display: grid; place-items: center; flex: none; }
.pa-list span { display: grid; flex: 1; min-width: 0; }
.pa-list small { color: var(--ink-3); }
.pa-none { color: var(--ink-3); padding: 10px; }
.mk-filters .ux-input { width: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; }
