/* Études de cas Altitude Studio : modèle v1 (27/11/2026).
   S'appuie sur le système des pages du site (lp-card, lp-face, lp-body, lp-btn, lp-r, jetons --lp-*).
   Préfixe ec- : rien ici ne touche aux autres pages. */

.ec {
  --ec-ink: var(--lp-ink, #151718);
  --ec-paper: var(--lp-paper, #f4f2e9);
  --ec-bg: var(--lp-bg, #e4e1d3);
  --ec-blue: var(--lp-blue, #2247e5);
  --ec-lime: var(--lp-lime, #daf36a);
  --ec-pale: var(--lp-pale, #e3e9ff);
  --ec-serif: "Instrument Serif", Georgia, serif;
  --ec-mono: "Space Mono", monospace;
  --ec-ease: cubic-bezier(.16, 1, .3, 1);
}
.ec * { box-sizing: border-box; }
.ec img, .ec video { display: block; max-width: 100%; }
.ec .ec-k { font: 11px/1.5 var(--ec-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); margin: 0; }
.ec h2 { margin: 0; }
.ec .ec-num { font-variant-numeric: tabular-nums; }

/* ---------- cadre navigateur et téléphone ---------- */
.ec-browser { position: relative; border-radius: 18px; background: #fff; box-shadow: 0 40px 80px -30px rgba(21, 23, 24, .45), 0 0 0 1px rgba(21, 23, 24, .08); overflow: hidden; }
.ec-browser-top { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f1efe7; border-bottom: 1px solid rgba(21, 23, 24, .07); }
.ec-browser-top i { width: 9px; height: 9px; border-radius: 50%; background: #d3d0c4; }
.ec-browser-top small { margin-left: 12px; padding: 3px 12px; border-radius: 99px; background: #fff; font: 11px/1.4 var(--ec-mono); color: #6b6f68; }
.ec-browser-media { position: relative; aspect-ratio: 16 / 10; background: #ece9df; }
.ec-browser-media > img, .ec-browser-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ec-lt-encre .ec-browser { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }

.ec-phone { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: 40px; padding: 9px; background: #151718; box-shadow: 0 30px 60px -25px rgba(21, 23, 24, .55), inset 0 0 0 1.5px #2c2f31; }
.ec-phone::before { content: ""; position: absolute; top: 17px; left: 50%; width: 30%; height: 20px; translate: -50% 0; border-radius: 99px; background: #151718; z-index: 2; }
.ec-phone img, .ec-phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: #fff; }

/* ---------- 0. hero ---------- */
.ec-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; padding-top: 18px; }
.ec-hero-client { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; }
.ec-hero-client b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ec-ink); color: var(--ec-lime); font: 600 19px/1 var(--ec-serif); font-style: italic; }
.ec-hero-client span { display: flex; flex-direction: column; font: 700 15px/1.25 Manrope, sans-serif; letter-spacing: -.01em; }
.ec-hero-client small { font: 11px/1.5 var(--ec-mono); letter-spacing: .04em; color: var(--lp-muted); text-transform: uppercase; font-weight: 400; }
.ec-hero h1 { margin: 0; font-size: clamp(40px, 5.2vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.ec-hero h1 em { font-family: var(--ec-serif); font-weight: 400; font-style: italic; letter-spacing: -.02em; color: var(--ec-blue); }
.ec-hero-lead { margin: 24px 0 0; max-width: 33em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--lp-muted); text-wrap: pretty; }
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ec-hero-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ec-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(21, 23, 24, .06); font: 600 13px/1.2 Manrope, sans-serif; color: var(--ec-ink); text-decoration: none; }
.ec-chip svg { width: 15px; height: 15px; flex: none; }
a.ec-chip:hover { background: rgba(21, 23, 24, .1); }
.ec-hero-visual { position: relative; padding: 0 0 46px 26px; }
.ec-hero-visual .ec-browser { rotate: 0deg; }
.ec-float { position: absolute; z-index: 3; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -20px rgba(21, 23, 24, .4), 0 0 0 1px rgba(21, 23, 24, .06); }
.ec-float--stat { left: 0; bottom: 0; width: min(270px, 58%); padding: 16px 18px 14px; }
.ec-float--stat p { margin: 0; font: 11px/1.4 var(--ec-mono); letter-spacing: .04em; text-transform: uppercase; color: #6b6f68; }
.ec-float--stat strong { display: block; margin: 4px 0 6px; font: 600 34px/1 Manrope, sans-serif; letter-spacing: -.04em; }
.ec-float--stat strong em { font: italic 400 1.05em/1 var(--ec-serif); color: var(--ec-blue); letter-spacing: -.02em; }
.ec-float--stat svg { width: 100%; height: 44px; display: block; }
.ec-float--pill { top: -16px; right: -10px; padding: 10px 16px; border-radius: 99px; background: var(--ec-lime); font: 700 13px/1.2 Manrope, sans-serif; color: var(--ec-ink); box-shadow: 0 14px 30px -14px rgba(21, 23, 24, .5); }
.ec-float--rating { top: 22%; right: -22px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.ec-float--rating b { font: 600 24px/1 Manrope, sans-serif; letter-spacing: -.03em; }
.ec-float--rating small { display: block; font: 11px/1.35 var(--ec-mono); color: #6b6f68; text-transform: uppercase; letter-spacing: .03em; }
.ec-stars { color: #f5a623; letter-spacing: 1px; font-size: 13px; }

.ec-som { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(28px, 4vw, 48px); }
.ec-som .ec-k { margin-right: 6px; }
.ec-som a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid rgba(21, 23, 24, .14); font: 600 13px/1 Manrope, sans-serif; color: var(--ec-ink); text-decoration: none; transition: background .2s, border-color .2s; }
.ec-som a b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ec-pale); color: var(--ec-blue); font: 700 10px/1 var(--ec-mono); }
.ec-som a:hover { background: #fff; border-color: transparent; }

/* ---------- 1. en bref ---------- */
.ec-bref { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ec-fiche { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; }
.ec-fiche-card { border-radius: 24px; padding: 8px 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ec-fiche dl { margin: 0; }
.ec-fiche dl div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ec-fiche dl div:last-child { border-bottom: 0; }
.ec-fiche dt { font: 10.5px/1.4 var(--ec-mono); letter-spacing: .06em; text-transform: uppercase; color: #a9ada4; margin: 0 0 4px; }
.ec-fiche dd { margin: 0; font: 600 15px/1.4 Manrope, sans-serif; color: #fff; }
.ec-fiche dd a { color: var(--ec-lime); text-decoration: none; }
.ec-fiche dd a:hover { text-decoration: underline; }
.ec-fiche-cta { border-radius: 24px; padding: 20px 22px; background: var(--ec-lime); color: var(--ec-ink); }
.ec-fiche-cta p { margin: 0 0 14px; font: 600 15px/1.4 Manrope, sans-serif; }
.ec-fiche-cta .lp-btn { width: 100%; }
.ec-bref h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 600; color: #fff; text-wrap: balance; }
.ec-bref h2 em { font: italic 400 1.06em/0.9 var(--ec-serif); letter-spacing: -.02em; color: var(--ec-lime); }
.ec-retenir { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 2px; }
.ec-retenir li { position: relative; display: block; padding: 18px 0 18px 34px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: #e9ebe4; text-wrap: pretty; }
.ec-retenir li::before { content: ""; position: absolute; left: 2px; top: calc(18px + .5em); width: 10px; height: 10px; border-radius: 3px; background: var(--ec-lime); }
.ec-retenir li strong { color: #fff; }
.ec-client { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ec-client p { margin: 0; max-width: 40em; font-size: 16px; line-height: 1.65; color: #b9bdb4; }
.ec-client p.ec-k { color: #a9ada4; }

/* ---------- 2. point de départ ---------- */
.ec-depart { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.ec-depart h2, .ec-titre { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 600; text-wrap: balance; }
.ec-depart h2 em, .ec-titre em { font: italic 400 1.06em/0.9 var(--ec-serif); letter-spacing: -.02em; color: var(--ec-blue); }
.ec-texte p { margin: 18px 0 0; max-width: 36em; font-size: 16px; line-height: 1.65; color: var(--lp-muted); text-wrap: pretty; }
.ec-objectif { margin-top: 30px; padding: 20px 22px; border-radius: 20px; background: var(--ec-pale); border-left: 4px solid var(--ec-blue); }
.ec-objectif p { margin: 0; max-width: none; color: var(--ec-ink); font: 600 16px/1.5 Manrope, sans-serif; }
.ec-objectif .ec-k { margin-bottom: 6px; color: var(--ec-blue); font-weight: 400; }

.ec-compare { position: relative; --pos: 50%; border-radius: 18px; overflow: hidden; user-select: none; box-shadow: 0 40px 80px -30px rgba(21, 23, 24, .45), 0 0 0 1px rgba(21, 23, 24, .08); background: #fff; }
.ec-compare .ec-browser-media { aspect-ratio: 16 / 10; }
.ec-compare-avant { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ec-compare-avant img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); }
.ec-compare-ligne { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 0 1px rgba(21, 23, 24, .15); pointer-events: none; }
.ec-compare-ligne::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ec-ink); color: #fff; font: 700 17px/1 Manrope, sans-serif; letter-spacing: 2px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.ec-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ec-compare-tag { position: absolute; top: 48px; z-index: 2; padding: 6px 12px; border-radius: 99px; font: 700 11px/1 var(--ec-mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.ec-compare-tag--avant { left: 14px; background: var(--ec-ink); color: #fff; }
.ec-compare-tag--apres { right: 14px; background: var(--ec-lime); color: var(--ec-ink); }
.ec-compare-note { margin: 12px 4px 0; font: 11px/1.5 var(--ec-mono); color: var(--lp-muted); letter-spacing: .02em; }

/* ---------- 3. approche ---------- */
.ec-approche-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.ec-lt-encre .ec-titre { color: #fff; }
.ec-lt-encre .ec-titre em { color: var(--ec-lime); }
.ec-lt-encre .ec-texte p { color: #b9bdb4; }
.ec-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ec-etape { display: flex; flex-direction: column; border-radius: 26px; padding: 26px 26px 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); }
.ec-etape-n { font: italic 400 46px/1 var(--ec-serif); color: var(--ec-lime); }
.ec-etape h3 { margin: 18px 0 10px; font: 600 21px/1.2 Manrope, sans-serif; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.ec-etape p { margin: 0; font-size: 15px; line-height: 1.6; color: #b9bdb4; }
.ec-etape-kpi { margin-top: auto; padding-top: 22px; }
.ec-etape-kpi div { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; }
.ec-etape-kpi strong { display: block; font: 600 40px/1 Manrope, sans-serif; letter-spacing: -.045em; color: #fff; }
.ec-etape-kpi small { display: block; margin-top: 6px; font: 11px/1.45 var(--ec-mono); letter-spacing: .04em; text-transform: uppercase; color: #a9ada4; }

/* ---------- 4. le site en images ---------- */
.ec-galerie-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 50px); }
.ec-galerie { display: grid; grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, .5fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.ec-galerie .ec-phone:nth-of-type(1) { margin-top: 64px; }
.ec-galerie .ec-phone:nth-of-type(2) { margin-top: 0; }
.ec-galerie .ec-phone:nth-of-type(3) { margin-top: 36px; }
.ec-galerie-phones { display: contents; }
.ec-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(26px, 3vw, 40px); }
.ec-points span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 99px; background: #fff; font: 600 14px/1.2 Manrope, sans-serif; box-shadow: 0 0 0 1px rgba(21, 23, 24, .06); }
.ec-points span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ec-blue); }

/* ---------- 5. résultats ---------- */
.ec-res-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 40px; align-items: end; }
.ec-lt-bleu .ec-titre { color: #fff; }
.ec-lt-bleu .ec-titre em { color: var(--ec-lime); }
.ec-lt-bleu .ec-texte p { color: #dfe5ff; }
.ec-courbe { margin-top: clamp(28px, 4vw, 48px); border-radius: 28px; padding: clamp(18px, 2.4vw, 30px); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.ec-courbe-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ec-courbe-tete p { margin: 0; font: 600 15px/1.3 Manrope, sans-serif; color: #fff; }
.ec-courbe-tete small { font: 11px/1.5 var(--ec-mono); color: #c9d3ff; letter-spacing: .03em; text-transform: uppercase; }
.ec-courbe svg { display: block; width: 100%; height: auto; overflow: visible; }
.ec-courbe .c-grille { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.ec-courbe .c-axe { fill: #c9d3ff; font: 11px var(--ec-mono); }
.ec-courbe .c-aire { fill: url(#ec-grad); opacity: 0; transition: opacity 1.2s ease .5s; }
.ec-courbe .c-ligne { fill: none; stroke: var(--ec-lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ec-ease); }
.ec-courbe .c-avant { stroke: rgba(255, 255, 255, .55); }
.ec-courbe .c-pt { fill: var(--ec-blue); stroke: var(--ec-lime); stroke-width: 2.5; opacity: 0; transition: opacity .4s ease 1.6s; }
.ec-courbe .c-pt--vide { fill: var(--ec-blue); stroke-dasharray: 2 2; }
.ec-courbe .c-val { fill: #fff; font: 700 12px Manrope, sans-serif; opacity: 0; transition: opacity .4s ease 1.8s; }
.ec-courbe .c-repere { stroke: #fff; stroke-dasharray: 3 4; opacity: .7; }
.ec-courbe .c-repere-t { fill: var(--ec-ink); font: 700 11px Manrope, sans-serif; }
.ec-courbe .c-repere-bg { fill: var(--ec-lime); }
.ec-courbe.is-in .c-ligne { stroke-dashoffset: 0; }
.ec-courbe.is-in .c-aire { opacity: 1; }
.ec-courbe.is-in .c-pt, .ec-courbe.is-in .c-val { opacity: 1; }
.ec-courbe-note { margin: 12px 0 0; font: 11px/1.55 var(--ec-mono); color: #c9d3ff; letter-spacing: .02em; }
.ec-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ec-stat { border-radius: 22px; padding: 22px 22px 20px; background: #fff; color: var(--ec-ink); }
.ec-stat strong { display: block; font: 600 clamp(34px, 3.4vw, 50px)/1 Manrope, sans-serif; letter-spacing: -.05em; }
.ec-stat strong small { font-size: .45em; letter-spacing: -.02em; color: #8a8e86; font-weight: 600; margin-left: 4px; }
.ec-stat p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #4a4f4a; }
.ec-stat:first-child { background: var(--ec-lime); }

/* ---------- 6. avis client ---------- */
.ec-avis { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.ec-avis-src { display: flex; flex-direction: column; gap: 16px; }
.ec-avis-g { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px rgba(21, 23, 24, .07); font: 600 14px/1.2 Manrope, sans-serif; color: var(--ec-ink); text-decoration: none; align-self: flex-start; }
.ec-avis-g svg { width: 20px; height: 20px; }
.ec-avis blockquote { margin: 0; }
.ec-avis blockquote p { margin: 0; font: italic 400 clamp(28px, 3.1vw, 48px)/1.12 var(--ec-serif); letter-spacing: -.015em; color: var(--ec-ink); text-wrap: pretty; }
.ec-avis blockquote p::before { content: "« "; color: var(--ec-blue); }
.ec-avis blockquote p::after { content: " »"; color: var(--ec-blue); }
.ec-avis-plus { margin: 24px 0 0; max-width: 46em; font-size: 16px; line-height: 1.65; color: var(--lp-muted); }
.ec-avis figcaption { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.ec-avis-ini { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ec-blue); color: #fff; font: 600 20px/1 Manrope, sans-serif; }
.ec-avis figcaption b { display: block; font: 700 16px/1.3 Manrope, sans-serif; }
.ec-avis figcaption small { display: block; font: 11px/1.5 var(--ec-mono); color: var(--lp-muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- 7. autres études ---------- */
.ec-autres-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.ec-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 31%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.ec-carte { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); color: #fff; text-decoration: none; transition: background .25s, transform .4s var(--ec-ease); }
.ec-carte:hover { background: rgba(255, 255, 255, .1); transform: translateY(-4px); }
.ec-carte-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #222; }
.ec-carte-img img, .ec-carte-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ec-ease); }
.ec-carte:hover .ec-carte-img img { transform: scale(1.04); }
.ec-carte-t { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ec-carte-t small { font: 11px/1.4 var(--ec-mono); letter-spacing: .05em; text-transform: uppercase; color: #a9ada4; }
.ec-carte-t b { font: 600 20px/1.2 Manrope, sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.ec-carte-t span { margin-top: auto; padding-top: 10px; font: 700 14px/1 Manrope, sans-serif; color: var(--ec-lime); }

/* ---------- mobile ---------- */
@media (max-width: 1100px) {
  .ec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-float--rating { right: -6px; }
}
@media (max-width: 899px) {
  .ec-hero, .ec-bref, .ec-depart, .ec-approche-tete, .ec-res-tete, .ec-avis { grid-template-columns: minmax(0, 1fr); }
  .ec-hero-visual { padding: 0 0 54px 0; }
  .ec-float--stat { left: 12px; }
  .ec-float--pill { right: 8px; }
  .ec-float--rating { display: none; }
  .ec-fiche { position: static; }
  .ec-etapes { grid-template-columns: minmax(0, 1fr); }
  .ec-galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ec-galerie > .ec-browser-wrap { grid-column: 1 / -1; }
  .ec-galerie .ec-phone:nth-of-type(n) { margin-top: 0; }
  .ec-phone { border-radius: 26px; padding: 6px; }
  .ec-phone img { border-radius: 21px; }
  .ec-phone::before { top: 11px; height: 12px; }
  .ec-rail { grid-auto-columns: 84%; }
}
@media (max-width: 560px) {
  .ec-stats { grid-template-columns: minmax(0, 1fr); }
  .ec-hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .ec-compare-tag { top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-courbe .c-ligne { transition: none; stroke-dashoffset: 0; }
  .ec-courbe .c-aire, .ec-courbe .c-pt, .ec-courbe .c-val { transition: none; opacity: 1; }
}

/* écrans supplémentaires sous la galerie */
.ec-ecrans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(22px, 3vw, 40px); }
.ec-ecrans figure { margin: 0; }
.ec-ecrans figcaption { margin: 12px 4px 0; font: 600 14px/1.4 Manrope, sans-serif; color: var(--ec-ink); }

/* sections courtes : contenu centré dans la carte (comme .lp-sec--c du site) */
.lp-body.ec { justify-content: center; }
/* un seul écran supplémentaire : capture + légende côte à côte */
.ec-ecrans figure:only-child { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.ec-ecrans figure:only-child figcaption { margin: 0; font: 600 clamp(20px, 2vw, 30px)/1.2 Manrope, sans-serif; letter-spacing: -.03em; text-wrap: balance; }
@media (max-width: 899px) { .ec-ecrans figure:only-child { grid-template-columns: minmax(0, 1fr); } .ec-ecrans figure:only-child figcaption { font-size: 18px; } }

/* ---------- page index ---------- */
.ec-hero--index { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.ec-hero--index h1 { font-size: clamp(44px, 5.6vw, 80px); }
/* mur de réalisations (hero de l'index) */
.ec-mur { position: relative; height: clamp(560px, 80svh, 800px); margin: -40px calc(-1 * var(--lp-px, 84px)) -60px -10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, transparent 0, #000 13%, #000 87%, transparent 100%); mask-composite: intersect; }
.ec-mur-in { position: absolute; top: -18%; bottom: -18%; left: 2%; right: -6%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; transform: rotate(-8deg); transform-origin: 50% 50%; }
.ec-mur-col { overflow: visible; }
.ec-mur-col--1 { margin-top: -90px; }
.ec-mur-col--2 { margin-top: -40px; }
.ec-mur-piste { display: flex; flex-direction: column; gap: 18px; padding-bottom: 18px; animation: ec-defile 46s linear infinite; will-change: transform; }
.ec-mur-col--1 .ec-mur-piste { animation-duration: 58s; animation-direction: reverse; }
.ec-mur-col--2 .ec-mur-piste { animation-duration: 52s; }
@keyframes ec-defile { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
.ec-mur:hover .ec-mur-piste { animation-play-state: paused; }
.ec-mur-tuile { position: relative; display: block; flex: none; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 22px 44px -22px rgba(21, 23, 24, .45), 0 0 0 1px rgba(21, 23, 24, .07); text-decoration: none; transition: transform .5s var(--ec-ease), box-shadow .5s var(--ec-ease); }
.ec-mur-barre { display: flex; gap: 5px; align-items: center; height: 20px; padding: 0 10px; background: #f1efe7; border-bottom: 1px solid rgba(21, 23, 24, .06); }
.ec-mur-barre i { width: 6px; height: 6px; border-radius: 50%; background: #d3d0c4; }
.ec-mur-tuile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.ec-mur-nom { position: absolute; left: 10px; bottom: 10px; padding: 6px 11px; border-radius: 99px; background: var(--ec-lime); color: var(--ec-ink); font: 700 12px/1 Manrope, sans-serif; opacity: 0; translate: 0 6px; transition: opacity .3s ease, translate .3s ease; }
.ec-mur-tuile:hover { transform: scale(1.04); box-shadow: 0 34px 60px -24px rgba(21, 23, 24, .55), 0 0 0 1px rgba(21, 23, 24, .08); z-index: 2; }
.ec-mur-tuile:hover .ec-mur-nom, .ec-mur-tuile:focus-visible .ec-mur-nom { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .ec-mur-piste { animation: none; } }
.ec-grille-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(26px, 3vw, 44px); }
.ec-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-filtre { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(21, 23, 24, .16); background: transparent; color: var(--ec-ink); font: 600 14px/1 Manrope, sans-serif; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ec-filtre b { font: 700 11px/1 var(--ec-mono); opacity: .55; }
.ec-filtre:hover { background: #fff; border-color: transparent; }
.ec-filtre.is-on { background: var(--ec-blue); border-color: var(--ec-blue); color: #fff; }
.ec-filtre.is-on b { opacity: .8; }
.ec-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px) clamp(16px, 2vw, 28px); }
.ec-tuile { display: flex; flex-direction: column; gap: 18px; color: var(--ec-ink); text-decoration: none; }
.ec-tuile[hidden] { display: none; }
.ec-tuile .ec-browser { transition: transform .6s var(--ec-ease), box-shadow .6s var(--ec-ease); }
.ec-tuile:hover .ec-browser { transform: translateY(-6px); box-shadow: 0 50px 90px -30px rgba(21, 23, 24, .5), 0 0 0 1px rgba(21, 23, 24, .08); }
.ec-tuile .ec-browser-media video { opacity: 0; transition: opacity .4s ease; }
.ec-tuile .ec-browser-media video.is-on { opacity: 1; }
.ec-tuile-t { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.ec-tuile-t small { font: 11px/1.4 var(--ec-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--lp-muted); }
.ec-tuile-t > b { font: 600 clamp(20px, 1.9vw, 27px)/1.15 Manrope, sans-serif; letter-spacing: -.035em; text-wrap: balance; }
.ec-tuile-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ec-tuile-stat { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 14px; border-radius: 99px; background: var(--ec-lime); font: 600 12.5px/1.2 Manrope, sans-serif; }
.ec-tuile-stat b { font: 700 15px/1 Manrope, sans-serif; letter-spacing: -.02em; }
.ec-tuile-lien { font: 700 14px/1 Manrope, sans-serif; color: var(--ec-blue); }
@media (max-width: 899px) {
  .ec-hero--index { grid-template-columns: minmax(0, 1fr); }
  .ec-grille { grid-template-columns: minmax(0, 1fr); }
  .ec-mur { height: 440px; margin: 10px calc(-1 * var(--lp-px, 22px)) 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .ec-mur-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; left: -14%; right: -14%; }
  .ec-mur-piste { gap: 12px; padding-bottom: 12px; }
}

/* mur du hero de l'index : accroché à la carte (hors du corps limité à 1380 px) */
.ec-mur--face { order: 2; position: relative; height: 440px; margin: 0 0 22px; }
@media (min-width: 900px) {
  .ec-hero--index { min-height: clamp(520px, 68svh, 760px); }
  .ec-mur--face { order: 0; position: absolute; top: 0; right: 0; bottom: 0; width: 54%; height: auto; margin: 0; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-composite: intersect; }
  .ec-mur--face .ec-mur-in { top: -22%; bottom: -22%; left: 4%; right: -14%; }
  .lp-body.ec-body-index { pointer-events: none; }
  .ec-body-index a, .ec-body-index button, .ec-body-index .ec-hero-texte { pointer-events: auto; }
}
