/* site v1.3 : sections de l'accueil (constructeur du CMS, Accueil et carousel) */

/* visibilité par écran */
@media (max-width: 760px) { .hs-hide-m { display: none !important; } }
@media (min-width: 761px) { .hs-hide-d { display: none !important; } }

/* couleur d'accent d'une section */
.hs-accent .eyebrow { color: var(--hs-accent); }
.hs-accent .eyebrow::before { background: var(--hs-accent); }
.hs-accent .link-more { color: var(--hs-accent); }
.hs-accent .link-more:hover { color: #fff; }
.hs-accent .hero-title .hl { color: var(--hs-accent); }
.hs-accent .hero-title .hl .stroke path { stroke: var(--hs-accent); }
.hs-accent .btn-primary { background: var(--hs-accent); box-shadow: 0 12px 28px -14px rgba(var(--hs-accent-rgb), .8); --fill: color-mix(in srgb, var(--hs-accent) 78%, #fff); }
.hs-accent .rich h2, .hs-accent .rich a, .hs-accent .rich li::marker { color: var(--hs-accent); }
.hs-accent .post-meta { color: var(--hs-accent); }

/* ---------- bloc de texte ---------- */
.hs-text-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.hs-side-left .hs-text-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hs-side-right .hs-text-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.hs-side-right .hs-text-media { order: 2; }
.hs-side-none .hs-text-body { max-width: 760px; margin: 0 auto; text-align: center; align-items: center; }
.hs-side-none .hs-text-body .eyebrow { align-self: center; }
.hs-text-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hs-title { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 700; }
.hs-rich { font-size: 15.5px; color: var(--muted); }
.hs-rich p:last-child { margin-bottom: 0; }
.hs-side-none .hs-rich ul, .hs-side-none .hs-rich ol { text-align: left; }
.hs-text-body .cta-row { margin-top: 6px; }
.hs-side-none .hs-text-body .btn { align-self: center; }
.hs-text-media { position: relative; }
.hs-text-media.slot { flex: none; }
.hs-text-frame { --tone: #7d62d9; position: relative; height: auto; aspect-ratio: var(--ar, 4 / 5); width: min(100%, calc(520px * var(--ar, .8))); border-radius: var(--r); overflow: hidden; background: #1d1129; box-shadow: 0 32px 64px -28px rgba(0,0,0,.9); }
.hs-text-frame > .paintable { position: absolute; inset: 0; }
/* goutte de peinture sous l'image */
.hs-drop { position: absolute; z-index: 3; bottom: -18px; right: 14%; width: 30px; height: 38px; background: var(--hs-accent, var(--magenta)); border-radius: 50% 50% 48% 52% / 62% 62% 40% 40%; box-shadow: 0 10px 22px -8px rgba(0,0,0,.7); pointer-events: none; }
.hs-drop::before { content: ""; position: absolute; left: 50%; top: -26px; width: 9px; height: 34px; margin-left: -4px; background: inherit; border-radius: 48% 52% 50% 50% / 30% 30% 70% 70%; }
.hs-side-left .hs-drop { right: auto; left: 16%; }

/* ---------- appel à l'action peint ---------- */
.hs-cta-box { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 250px; padding: 56px 72px; }
.hs-cta-paint { position: absolute; inset: -10px -20px; z-index: -1; width: calc(100% + 40px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.hs-cta-text { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.hs-cta-text h2 { margin: 0; font-size: 34px; line-height: 1.15; color: #fff; text-shadow: 0 2px 18px rgba(20,10,28,.45); }
.hs-cta-text p { margin: 0; font-size: 16px; line-height: 1.65; color: #fff5fa; text-shadow: 0 1px 12px rgba(20,10,28,.55); }
.hs-cta-btn { background: #140a1c; color: #fff; box-shadow: 0 16px 34px -14px rgba(0,0,0,.9); --fill: var(--cta, #b8307a); align-self: center; }
.hs-cta-btn:hover { transform: rotate(-2.5deg); }

/* ---------- séparateur ajouté à la main ---------- */
.hs-separator .brush-sep { margin: 12px 0; }

@media (max-width: 1120px) {
  .hs-side-left .hs-text-grid, .hs-side-right .hs-text-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hs-side-right .hs-text-media { order: 0; }
  .hs-text-frame { max-width: 560px; }
}
@media (max-width: 760px) {
  .hs-title, .hs-cta-text h2 { font-size: 27px; }
  .hs-text-frame { }
  .hs-cta-box { flex-direction: column; align-items: flex-start; padding: 48px 26px; min-height: 0; }
  .hs-cta-btn { align-self: flex-start; }
  .hs-cta-paint { inset: -10px -8px; width: calc(100% + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hs-text-media.slot { transform: none; }
}
