/* AYUMIA Éditeur — styles des blocs ajoutés (sections, éléments, composants).
   Tous les blocs s'appuient sur les jetons du thème (--ed-*), définis par page dans <style data-ed-theme>. */
:root {
  --ed-primary: #2f5d50; --ed-accent: #c9a227; --ed-bg: #ffffff; --ed-surface: #f6f5f1; --ed-text: #1d1f1c; --ed-muted: #6b6f68;
  --ed-on-primary: #ffffff; --ed-font-heading: Georgia, 'Times New Roman', serif; --ed-font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ed-radius: 10px; --ed-space: 24px; --ed-max: 1180px; --ed-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.ed-section { position: relative; padding: calc(var(--ed-space) * 3.2) var(--ed-space); background: var(--ed-bg); color: var(--ed-text); font-family: var(--ed-font-body); box-sizing: border-box; overflow: hidden; }
.ed-section *, .ed-section *::before, .ed-section *::after { box-sizing: border-box; }
.ed-section.ed-alt { background: var(--ed-surface); }
.ed-section.ed-dark { background: var(--ed-text); color: var(--ed-bg); }
.ed-section.ed-brand { background: var(--ed-primary); color: var(--ed-on-primary); }
.ed-container { max-width: var(--ed-max); margin: 0 auto; position: relative; }
.ed-stack { display: flex; flex-direction: column; gap: calc(var(--ed-space) * .7); }
.ed-row { display: flex; flex-wrap: wrap; gap: var(--ed-space); align-items: center; }
.ed-center { text-align: center; align-items: center; justify-content: center; }
.ed-grid { display: grid; gap: var(--ed-space); grid-template-columns: repeat(var(--ed-cols, 3), minmax(0, 1fr)); }
.ed-split { display: grid; gap: calc(var(--ed-space) * 2); grid-template-columns: 1fr 1fr; align-items: center; }
.ed-h1, .ed-h2, .ed-h3 { font-family: var(--ed-font-heading); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
.ed-h1 { font-size: clamp(36px, 5.2vw, 68px); }
.ed-h2 { font-size: clamp(28px, 3.4vw, 44px); }
.ed-h3 { font-size: clamp(19px, 1.7vw, 24px); }
.ed-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--ed-accent); margin: 0; }
.ed-text { font-size: 17px; line-height: 1.65; margin: 0; color: inherit; opacity: .88; max-width: 68ch; }
.ed-center .ed-text { margin-inline: auto; }
.ed-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 600 15px/1 var(--ed-font-body); text-decoration: none; cursor: pointer; border: 2px solid var(--ed-primary); background: var(--ed-primary); color: var(--ed-on-primary); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.ed-btn:hover { transform: translateY(-2px); box-shadow: var(--ed-shadow); }
.ed-btn.ed-ghost { background: transparent; color: inherit; border-color: currentColor; }
.ed-img { display: block; width: 100%; height: auto; border-radius: var(--ed-radius); object-fit: cover; background: var(--ed-surface); }
.ed-img.ed-cover { aspect-ratio: 4 / 3; }
.ed-card { background: var(--ed-bg); color: var(--ed-text); border-radius: var(--ed-radius); box-shadow: var(--ed-shadow); overflow: hidden; display: flex; flex-direction: column; }
.ed-card > .ed-card-body { padding: var(--ed-space); display: flex; flex-direction: column; gap: 10px; }
.ed-divider { height: 1px; background: currentColor; opacity: .15; border: 0; width: 100%; margin: 0; }
.ed-spacer { height: calc(var(--ed-space) * 2); }
.ed-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ed-surface); color: var(--ed-text); font-size: 13px; font-weight: 600; }
.ed-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--ed-primary) 14%, transparent); color: var(--ed-primary); font-size: 22px; }
.ed-hero { min-height: 78vh; display: grid; place-items: center; color: #fff; background: #222 center / cover no-repeat; }
.ed-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.ed-hero > .ed-container { z-index: 1; }
.ed-quote { font-family: var(--ed-font-heading); font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; margin: 0; }
.ed-faq details { border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); padding: 18px 0; }
.ed-faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ed-faq summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.ed-faq details[open] summary::after { transform: rotate(45deg); }
.ed-faq details > div { padding-top: 10px; }
.ed-form { display: grid; gap: 14px; }
.ed-form input, .ed-form textarea, .ed-form select { width: 100%; padding: 14px 16px; border-radius: calc(var(--ed-radius) * .7); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit; font: 16px var(--ed-font-body); }
.ed-form textarea { min-height: 130px; resize: vertical; }
.ed-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--ed-space); }
.ed-stat b { display: block; font-family: var(--ed-font-heading); font-size: clamp(32px, 4vw, 52px); color: var(--ed-primary); }
.ed-logos { display: flex; flex-wrap: wrap; gap: calc(var(--ed-space) * 1.5); justify-content: center; align-items: center; opacity: .7; }
.ed-logos img { height: 34px; width: auto; filter: grayscale(1); }
.ed-price { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.ed-price.ed-featured { border: 2px solid var(--ed-primary); transform: translateY(-8px); }
.ed-price .ed-amount { font-family: var(--ed-font-heading); font-size: 44px; }
.ed-gallery { display: grid; gap: 12px; grid-template-columns: repeat(var(--ed-cols, 3), minmax(0, 1fr)); }
.ed-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--ed-radius) * .6); display: block; }
.ed-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ed-radius); overflow: hidden; background: #000; }
.ed-video iframe, .ed-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ed-marquee { overflow: hidden; white-space: nowrap; }
.ed-marquee > div { display: inline-flex; gap: 48px; animation: ed-marquee 22s linear infinite; }
@keyframes ed-marquee { to { transform: translateX(-50%); } }
.ed-footer { padding: calc(var(--ed-space) * 2) var(--ed-space); }
.ed-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--ed-space); padding: 18px var(--ed-space); }
.ed-nav a { color: inherit; text-decoration: none; }
.ed-nav .ed-links { display: flex; gap: 26px; }
/* emplacement vide (mode édition) */
.ed-empty { min-height: 90px; border: 2px dashed rgba(127,127,127,.35); border-radius: var(--ed-radius); display: grid; place-items: center; color: rgba(127,127,127,.8); font: 14px var(--ed-font-body); }
/* responsive */
@media (max-width: 1099px) {
  .ed-grid { grid-template-columns: repeat(min(var(--ed-cols, 3), 2), minmax(0, 1fr)); }
  .ed-split { gap: var(--ed-space); }
}
@media (max-width: 767px) {
  .ed-section { padding: calc(var(--ed-space) * 2.2) calc(var(--ed-space) * .75); }
  .ed-grid, .ed-split { grid-template-columns: 1fr; }
  .ed-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-nav .ed-links { display: none; }
  .ed-price.ed-featured { transform: none; }
  .ed-hero { min-height: 64vh; }
}
/* animations (état initial, joué par ed-runtime.js) */
[data-ed-anim]:not(.ed-in) { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { [data-ed-anim] { animation: none !important; transition: none !important; } }
/* sections converties depuis la capture */
.ed-hero.ed-light { color: var(--ed-text); }
.ed-hero.ed-light::before { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.25)); }
.ed-hero .ed-bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ed-hero:has(.ed-bgvideo)::before { z-index: 1; }
.ed-hero:has(.ed-bgvideo) > .ed-container { z-index: 2; }
.ed-icon-img, .ed-icon-svg svg { max-width: 72px; height: auto; display: block; }
.ed-center .ed-icon-img, .ed-center .ed-icon-svg { margin-inline: auto; }
.ed-section ul.ed-text { padding-left: 1.2em; margin: 0; }
.ed-hero.ed-ov::before { background: var(--ed-ov); }
.ed-center > .ed-img, .ed-center > div > .ed-img { margin-inline: auto; }
/* parties globales : barres prêtes à l'emploi */
.ed-topbar { position: relative; background: var(--ed-primary); color: var(--ed-on-primary); font: 500 14px/1.4 var(--ed-font-body); padding: 9px 44px; text-align: center; z-index: 70; }
.ed-topbar .ed-row { gap: 14px; flex-wrap: wrap; }
.ed-topbar-link { color: inherit; font-weight: 700; text-decoration: underline; }
.ed-bar-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
.ed-bottombar { display: none; }
@media (max-width: 767px) {
  .ed-bottombar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--ed-bg); box-shadow: 0 -6px 24px rgba(0,0,0,.14); }
  .ed-bottombar .ed-btn { flex: 1; justify-content: center; padding: 12px 10px; }
  html.ed-has-bottombar body { padding-bottom: 76px; }
}
.ed-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-inline: auto; background: var(--ed-bg); color: var(--ed-text); font: 14px/1.5 var(--ed-font-body); border-radius: var(--ed-radius); box-shadow: 0 12px 40px rgba(0,0,0,.22); padding: 16px 18px; display: grid; gap: 12px; }
.ed-cookie p { margin: 0; }
.ed-cookie .ed-row { justify-content: flex-end; gap: 8px; }
html.ed-has-bottombar .ed-cookie { bottom: 92px; }
/* listes de produits (blocs « Carrousel / Grille de produits ») : carrousel = défilement horizontal aimanté */
.ed-pscroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--ed-space)) / 4); gap: var(--ed-space); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.ed-pscroll > * { scroll-snap-align: start; }
.ed-pcard { text-decoration: none; }
.ed-pcard .price { font-weight: 600; color: var(--ed-text); }
@media (max-width: 1099px) { .ed-pscroll { grid-auto-columns: calc((100% - var(--ed-space)) / 2.3); } }
@media (max-width: 767px) { .ed-pscroll { grid-auto-columns: 72%; } }
