/* Accueil ECO CSE (chargé seulement sur la page d'accueil) */
.ecs-btn-lg { padding: 15px 26px; font-size: 17px; }
.ecs-btn-ghost { background: #fff; border-color: #cfd6dd; color: var(--eco-ink); }
.ecs-btn-ghost:hover { border-color: var(--eco-g); color: var(--eco-g-dark); }
.ecs-btn-light { background: #fff; color: var(--eco-g-dark); }
.ecs-btn-light:hover { background: var(--eco-g-pale); color: var(--eco-g-dark); }
.ecs-btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.ecs-btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.eco-home h1, .eco-home h2, .eco-home h3 { font-family: var(--eco-head); }
.hm-kicker { margin: 0 0 8px; color: var(--eco-g-dark); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hm-hero { background: radial-gradient(circle at 85% 15%, #d9f1d5 0, transparent 45%), linear-gradient(180deg, #fff, var(--eco-bg)); padding: 56px 0 64px; overflow: hidden; }
.hm-hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eco-home .hm-hero h1 { font: 800 clamp(34px, 5vw, 56px)/1.05 var(--eco-head); margin: 0 0 18px; letter-spacing: -.01em; }
.hm-lead { font-size: 19px; color: #33405c; margin: 0 0 28px; max-width: 560px; }
.hm-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.hm-card { position: relative; width: min(400px, 100%); aspect-ratio: 1.586; border-radius: 22px; padding: 26px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 14px 16px; align-items: center; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.25) 0, transparent 40%), linear-gradient(135deg, var(--eco-g-dark), var(--eco-g) 60%, #8fd987); box-shadow: 0 30px 60px rgba(46,125,50,.35); transform: rotate(-6deg); }
.hm-card img { width: 64px; height: 64px; border-radius: 14px; background: #fff; padding: 3px; }
.hm-card span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hm-card strong { display: block; font: 800 30px/1 var(--eco-head); }
.hm-card small { display: block; font-size: 12px; opacity: .9; margin-top: 4px; }
.hm-card em { grid-column: 1 / -1; font-style: normal; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; justify-self: start; }
.hm-bubble { position: absolute; background: #fff; color: var(--eco-g); font: 800 20px/1 var(--eco-head); padding: 12px 16px; border-radius: 999px; box-shadow: 0 10px 24px rgba(20,33,61,.12); }
.hm-b1 { top: 6%; right: 6%; transform: rotate(8deg); }
.hm-b2 { bottom: 10%; left: 2%; transform: rotate(-8deg); }
.hm-b3 { bottom: 2%; right: 14%; font-size: 16px; }

.hm-stats { background: linear-gradient(135deg, #1f5e25, var(--eco-g-dark)); color: #fff; }
.hm-stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.hm-stats strong { display: block; font: 800 40px/1 var(--eco-head); color: #8fd987; }
.hm-stats span { font-size: 15px; color: #dff2db; }

.hm-section { padding: 72px 0; }
.hm-alt { background: #fff; }
.hm-head { max-width: 640px; margin-bottom: 36px; }
.hm-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.hm-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-steps li { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--eco-shadow); }
.hm-steps li > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--eco-g-pale); color: var(--eco-g-dark); font: 800 22px var(--eco-head); margin-bottom: 16px; }
.hm-steps h3 { margin: 0 0 8px; font-size: 20px; }
.hm-steps p { margin: 0; color: var(--eco-muted); }
.hm-audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hm-audiences article { border: 1px solid var(--eco-line); border-radius: 20px; padding: 28px; background: var(--eco-bg); display: flex; flex-direction: column; }
.hm-audiences h3 { font-size: 21px; margin: 0 0 10px; }
.hm-audiences p { margin: 0 0 16px; color: var(--eco-muted); }
.hm-audiences ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-audiences li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.hm-audiences svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--eco-g); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hm-more { margin-top: auto; padding-top: 18px; font-weight: 700; text-decoration: none; }
.hm-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hm-split h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.hm-split p { color: #33405c; font-size: 17px; }
.hm-split-card { background: linear-gradient(135deg, var(--eco-g-pale), #fff); border: 1px solid var(--eco-g-line); border-radius: 24px; padding: 36px; text-align: center; }
.hm-split-card strong { display: block; font: 800 72px/1 var(--eco-head); color: var(--eco-g); }
.hm-split-card span { color: var(--eco-ink); font-weight: 600; }
.hm-partners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-partner { text-decoration: none; color: var(--eco-ink); background: var(--eco-bg); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.hm-partner:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,33,61,.1); }
.hm-partner-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; background: var(--eco-g-pale); }
.hm-partner-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hm-partner-img em { position: absolute; top: 10px; right: 10px; background: var(--eco-g); color: #fff; font: 800 14px var(--eco-head); font-style: normal; padding: 6px 10px; border-radius: 999px; }
.hm-partner strong { padding: 14px 16px 2px; font: 800 17px/1.25 var(--eco-head); }
.hm-partner small { padding: 0 16px 16px; color: var(--eco-muted); }
.hm-note { margin: 18px 0 0; color: var(--eco-muted); font-size: 14px; }
.hm-logos { padding: 44px 0; border-top: 1px solid var(--eco-line); border-bottom: 1px solid var(--eco-line); background: var(--eco-bg); text-align: center; }
.hm-logos ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; }
.hm-logos img { height: 44px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; mix-blend-mode: multiply; }
.hm-logos img:hover { filter: none; opacity: 1; }
.hm-faq-wrap { max-width: 860px; }
.hm-faq { display: grid; gap: 12px; }
.hm-faq details { background: #fff; border-radius: 16px; box-shadow: var(--eco-shadow); padding: 0 22px; }
.hm-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 800 18px/1.35 var(--eco-head); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--eco-g-pale); color: var(--eco-g-dark); display: grid; place-items: center; font-weight: 800; }
.hm-faq details[open] summary::after { content: "\2212"; }
.hm-faq details p { margin: 0 0 20px; color: #33405c; }
.hm-cta { background: linear-gradient(135deg, var(--eco-g-dark), var(--eco-g)); color: #fff; padding: 56px 0; }
.hm-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.eco-home .hm-cta h2 { color: #fff; margin: 0 0 6px; font-weight: 800; }
.hm-cta p { margin: 0; color: #e6f5e3; font-size: 17px; }

@media (max-width: 960px) {
  .hm-hero-in, .hm-split { grid-template-columns: 1fr; gap: 32px; }
  .hm-visual { min-height: 260px; }
  .hm-steps, .hm-audiences { grid-template-columns: 1fr; }
  .hm-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stats-in { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .hm-section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .hm-hero { padding: 32px 0 40px; }
  .hm-lead { font-size: 17px; }
  .hm-actions .ecs-btn { width: 100%; }
  .hm-card { padding: 18px; }
  .hm-card strong { font-size: 24px; }
  .hm-bubble { font-size: 16px; padding: 9px 12px; }
  .hm-stats strong { font-size: 32px; }
  .hm-partners { gap: 12px; }
  .hm-logos img { height: 34px; }
}

.hm-logos .hm-logos-title { font: 800 18px var(--eco-head); color: var(--eco-ink); margin: 0; }

/* ===== Carrousel « Partenaires à la une » ===== */
.hm-carousel { position: relative; }
.hm-partners { display: grid !important; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 14px; overscroll-behavior-x: contain; }
.hm-partners::-webkit-scrollbar { display: none; }
.hm-partner { scroll-snap-align: start; }
.hm-partners:focus-visible { outline: 3px solid var(--eco-g); outline-offset: 4px; border-radius: 18px; }
.hm-nav { position: absolute; top: calc(50% - 30px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--eco-line); background: #fff; color: var(--eco-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(20,33,61,.12); transition: background .15s, color .15s, opacity .2s, transform .15s; }
.hm-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hm-nav:hover { background: var(--eco-g); color: #fff; border-color: var(--eco-g); transform: scale(1.05); }
.hm-nav:disabled { opacity: 0; pointer-events: none; }
.hm-prev { left: -22px; } .hm-next { right: -22px; }

/* ===== Carte ECO CSE qui flotte et suit la souris ===== */
.hm-visual { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
@keyframes ecoFlotte { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hm-card { animation: ecoFlotte 6s ease-in-out 1s infinite; }
.hm-bubble { transition: translate .3s; }
.hm-b1 { animation: ecoFondu .5s ease .55s both, ecoFlotte 5s ease-in-out 1.5s infinite; }
.hm-b2 { animation: ecoFondu .5s ease .7s both, ecoFlotte 7s ease-in-out 2s infinite; }
.hm-b3 { animation: ecoFondu .5s ease .85s both, ecoFlotte 6s ease-in-out 2.5s infinite; }

@media (max-width: 960px) {
  .hm-partners { grid-auto-columns: calc((100% - 20px) / 2); }
  .hm-prev { left: -6px; } .hm-next { right: -6px; }
}
@media (max-width: 560px) {
  .hm-partners { grid-auto-columns: 78%; gap: 14px; }
  .hm-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-visual { transform: none; } }

/* ===== Améliorations d'ergonomie (16/11/2026) ===== */
.eco-home [id] { scroll-margin-top: 96px; }
.hm-ico-tel { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hm-lead { margin-bottom: 20px; }
.hm-promesses { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.hm-promesses li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.hm-promesses svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--eco-g); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Choix du profil : chacun trouve son chemin dès le haut de page */
.hm-profils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.hm-profils span { color: var(--eco-muted); font-size: 15px; margin-right: 4px; }
.hm-profils a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--eco-line); color: var(--eco-ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .15s, color .15s, background .15s; }
.hm-profils a:hover { border-color: var(--eco-g); color: var(--eco-g-dark); background: var(--eco-g-pale); }

/* Références */
.hm-refs { background: #fff; border-bottom: 1px solid var(--eco-line); }
.hm-refs-in { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.hm-refs p { margin: 0; color: var(--eco-muted); font-size: 15px; }
.hm-refs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.hm-refs li { font: 800 16px var(--eco-head); color: #5b6576; }

/* Étapes reliées : on lit un enchaînement, pas trois blocs isolés */
.hm-steps { position: relative; }
.hm-steps::before { content: ""; position: absolute; top: 51px; left: 16%; right: 16%; border-top: 2px dashed var(--eco-g-line); z-index: 0; }
.hm-steps li { position: relative; z-index: 1; }

/* Profils : un bouton clair par public, carte mise en évidence quand on la choisit */
.hm-aud-btn { margin-top: auto; align-self: flex-start; }
.hm-audiences ul { margin-bottom: 22px; }
.hm-audiences article { transition: border-color .3s, box-shadow .3s, background .3s; }
.hm-audiences article.is-cible, .hm-audiences article:target { border-color: var(--eco-g); background: #fff; box-shadow: 0 0 0 4px var(--eco-g-pale), 0 20px 40px rgba(46,125,50,.14); }

/* Hôpitaux : des noms rassurent plus qu'un chiffre */
.hm-split-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hm-split-card li { background: #fff; border: 1px solid var(--eco-g-line); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }

.hm-cta p a { color: #fff; font-weight: 700; }

/* Barre d'action mobile */
.hm-barre { display: none; }
@media (max-width: 960px) {
  .hm-steps::before { display: none; }
  .hm-barre { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; padding: 10px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--eco-line); border-radius: 18px; box-shadow: 0 14px 34px rgba(20,33,61,.18); translate: 0 140%; transition: translate .3s ease; }
  .hm-barre.is-on { translate: 0 0; }
  .hm-barre .ecs-btn-primary { flex: 1; }
  .hm-barre-tel { width: 52px; padding: 0; }
}
@media (max-width: 560px) {
  .hm-profils a { font-size: 14px; padding: 7px 12px; }
  .hm-refs-in { justify-content: flex-start; }
  .hm-refs ul { justify-content: flex-start; gap: 6px 16px; }
}
@media (prefers-reduced-motion: reduce) { .hm-barre { transition: none; } }

/* Titre d'accueil en phrase longue (17/11/2026) : taille réduite pour rester lisible */
.eco-home .hm-hero h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.1; text-wrap: balance; }
