/* Émotions Blocs — fiche projet, vidéo, témoignage
   Styles : is-style-theme (couleurs du thème, défaut), is-style-sombre, is-style-clair */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: italic; font-display: swap; src: url("fonts/barlow-condensed-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("fonts/barlow-condensed-800-italic.woff2") format("woff2"); }

.ebl {
	--ebl-ink: #333333;
	--ebl-cream: #F5ECE5;
	--ebl-pine: #3c4749;
	--ebl-a: var(--ebl-accent, var(--ebl-accent-g, #3C9AA8));
	--ebl-r: var(--ebl-radius, var(--ebl-radius-g, 2px));
	--ebl-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--ebl-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--ebl-bg: transparent;
	--ebl-fg: inherit;
	--ebl-line: color-mix(in srgb, currentColor 18%, transparent);
	box-sizing: border-box;
	background: var(--ebl-bg);
	color: var(--ebl-fg);
}
.ebl *, .ebl *::before, .ebl *::after { box-sizing: inherit; }
.ebl.is-style-sombre { --ebl-bg: var(--ebl-sombre-g, #333333); --ebl-fg: var(--ebl-cream); --ebl-line: rgba(245, 236, 229, .18); border-radius: var(--ebl-r); }
.ebl.is-style-clair { --ebl-bg: var(--ebl-clair-g, #FAF6F2); --ebl-fg: var(--ebl-ink); --ebl-line: rgba(51, 51, 51, .16); border-radius: var(--ebl-r); }
.ebl.is-style-sombre:not(.ebl-video), .ebl.is-style-clair:not(.ebl-video) { padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.ebl p, .ebl dt, .ebl dd, .ebl blockquote, .ebl figcaption { color: inherit; }
/* polices du thème : tout hérite du site */
.ebl.has-font-theme, .ebl.has-font-theme * { font-family: inherit !important; }

.ebl .ebl-marker {
	display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--ebl-a);
	font-family: var(--ebl-display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Fiche projet ---------- */
.ebl-fiche { container-type: inline-size; }
.ebl .ebl-fiche-dl { margin: 0; padding: 0; display: grid; }
.ebl-fiche-row { min-width: 0; display: flex; flex-direction: column; }
.ebl .ebl-fiche-row dt {
	display: block; margin: 0; opacity: .65;
	font-family: var(--ebl-display); font-weight: 600; font-size: var(--ebl-label-size, 13px); line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
}
.ebl .ebl-fiche-row dd {
	margin: 4px 0 0; overflow-wrap: break-word; hyphens: manual;
	font-family: var(--ebl-display); font-weight: 700; font-size: var(--ebl-value-size, clamp(20px, 2vw, 24px)); line-height: 1.15; letter-spacing: 0; text-transform: none;
}
.ebl .ebl-fiche-row dd a { color: inherit; text-decoration: underline; text-decoration-color: var(--ebl-a); text-underline-offset: 3px; }
.ebl .ebl-fiche-row.is-highlight dd { color: var(--ebl-a); }
/* intitulés */
.ebl-fiche.labels-normal .ebl-fiche-row dt { text-transform: none; letter-spacing: .02em; font-size: var(--ebl-label-size, 15px); }
.ebl-fiche.labels-accent .ebl-fiche-row dt { color: var(--ebl-a); opacity: 1; }
.ebl-fiche.labels-masques .ebl-fiche-row dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ebl-fiche.labels-masques .ebl-fiche-row dd { margin-top: 0; }
/* valeur au-dessus de l'intitulé */
.ebl-fiche.is-reversed .ebl-fiche-row { flex-direction: column-reverse; justify-content: flex-end; }
.ebl-fiche.is-reversed .ebl-fiche-row dd { margin: 0 0 4px; }
/* séparateurs */
.ebl-fiche.no-lines { --ebl-line: transparent; }
/* centré */
.ebl-fiche.is-center { text-align: center; }
.ebl-fiche.is-center .ebl-marker { justify-content: center; }

/* bandeau : toutes les infos sur une ligne ; passe en 2 colonnes quand la place manque */
.ebl-fiche.is-bande .ebl-fiche-dl { display: flex; flex-wrap: wrap; row-gap: 16px; }
.ebl-fiche.is-bande .ebl-fiche-row { flex: 1 1 0; min-width: min-content; }
.ebl-fiche.is-bande .ebl-fiche-row { padding: 2px clamp(12px, 1.6vw, 20px); border-left: 1px solid var(--ebl-line); }
.ebl-fiche.is-bande .ebl-fiche-row:first-child { border-left: 0; }
.ebl-fiche.is-bande:not(.is-center) .ebl-fiche-row:first-child { padding-left: 0; }
.ebl-fiche.is-bande .ebl-fiche-row dd { font-size: var(--ebl-value-size, clamp(18px, 1.8vw, 24px)); }
@container (max-width: 540px) {
	.ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
	.ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row { min-width: 0; }
	.ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row, .ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--ebl-line); }
	.ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row:first-child, .ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row:nth-child(2) { padding-top: 0; }
	.ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row:last-child, .ebl.ebl-fiche.is-bande.is-bande .ebl-fiche-row:nth-last-child(2):nth-child(odd) { padding-bottom: 0; border-bottom: 0; }
}
/* grille : 2 à 4 colonnes */
.ebl-fiche.is-grille .ebl-fiche-dl { grid-template-columns: repeat(var(--ebl-cols, 2), minmax(0, 1fr)); column-gap: 24px; }
.ebl-fiche.is-grille .ebl-fiche-row { padding: 16px 0; border-bottom: 1px solid var(--ebl-line); }
@container (max-width: 540px) {
	.ebl-fiche.is-grille .ebl-fiche-dl { grid-template-columns: repeat(min(var(--ebl-cols, 2), 2), minmax(0, 1fr)); }
}
/* liste : pour une colonne latérale */
.ebl-fiche.is-liste .ebl-fiche-dl { grid-template-columns: 1fr; }
.ebl-fiche.is-liste .ebl-fiche-row { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ebl-line); }
.ebl-fiche.is-liste.is-reversed .ebl-fiche-row { flex-direction: row-reverse; }
.ebl-fiche.is-liste .ebl-fiche-row dd { margin: 0; text-align: right; font-size: var(--ebl-value-size, 19px); }
.ebl-fiche.is-liste.is-reversed .ebl-fiche-row dd { text-align: left; }
.ebl-fiche.is-liste .ebl-fiche-row:first-child { padding-top: 0; }
.ebl-fiche.is-liste .ebl-fiche-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Vidéo ---------- */
.ebl-video { margin-left: 0; margin-right: 0; padding: 0; --ebl-b: 96px; }
.ebl-video.btn-s { --ebl-b: 64px; }
.ebl-video.btn-l { --ebl-b: 128px; }
.ebl-video.is-style-sombre, .ebl-video.is-style-clair { padding: clamp(16px, 3vw, 32px); }
.ebl-frame { position: relative; aspect-ratio: var(--ebl-ratio, 16 / 9); overflow: hidden; border-radius: var(--ebl-r); background: var(--ebl-pine); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.ebl-video.no-shadow .ebl-frame { box-shadow: none; }
.ebl-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ebl-frame .ebl-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; border-radius: 0; }
.ebl-ridge { position: absolute; inset: 0; background:
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'%3E%3Cpath fill='%2355828B' d='M0 300V170l140-60 120 70 160-120 130 90 170-50 120 80 180-130 140 100 130-40 150 60v130z'/%3E%3Cpath fill='%23333333' fill-opacity='.55' d='M0 300V230l180-40 150 50 200-70 160 60 210-50 170 40 190-30 180 50v60z'/%3E%3C/svg%3E") bottom / 100% 60% no-repeat,
	linear-gradient(180deg, #4b6e75, var(--ebl-pine)); }
.ebl-facade { cursor: pointer; }
.ebl-facade::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / calc(var(--ebl-veil, .35) * .35)), rgb(0 0 0 / var(--ebl-veil, .35))); }
.ebl .ebl-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
	width: var(--ebl-b); height: var(--ebl-b); font-size: var(--ebl-b); padding: 0; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--ebl-a); color: var(--ebl-ink);
	display: flex; align-items: center; justify-content: center; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ebl-play span { width: 0; height: 0; margin-left: .07em; border-left: .27em solid currentColor; border-top: .17em solid transparent; border-bottom: .17em solid transparent; }
.ebl-facade:hover .ebl-play, .ebl .ebl-play:focus-visible { transform: translate(-50%, -50%) scale(1.06); background: var(--ebl-cream); color: var(--ebl-ink); }
.ebl-video.btn-contour .ebl-play { background: transparent; color: var(--ebl-cream); box-shadow: inset 0 0 0 2px var(--ebl-cream); }
.ebl-video.btn-verre .ebl-play { background: rgb(255 255 255 / .2); color: var(--ebl-cream); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ebl-src { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--ebl-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ebl-cream); }
.ebl .ebl-caption { margin: 12px 0 0; font-family: var(--ebl-body); font-size: 15px; opacity: .75; }
/* verticales (Reels, Shorts) : lecteur 9/16 centré dans le cadre */
.ebl-frame.is-playing.is-vertical iframe { left: 50%; transform: translateX(-50%); width: auto; height: 100%; aspect-ratio: 9 / 16; min-width: min(326px, 100%); max-width: 100%; background: var(--ebl-pine); }
@media (max-width: 700px) {
	.ebl-video { --ebl-b: 72px; }
	.ebl-video.btn-s { --ebl-b: 56px; }
	.ebl-video.btn-l { --ebl-b: 88px; }
	.ebl-frame.is-vertical { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
	.ebl-frame.is-playing.is-vertical iframe { left: 0; transform: none; width: 100%; aspect-ratio: auto; }
}

/* ---------- Témoignage ---------- */
.ebl-temoignage { margin-left: 0; margin-right: 0; text-align: center; }
.ebl-temoignage.is-style-sombre, .ebl-temoignage.is-style-clair { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 80px); }
.ebl-qmark { display: block; height: 52px; font-family: var(--ebl-display); font-weight: 800; font-size: 120px; line-height: .6; color: var(--ebl-a); }
.ebl-temoignage blockquote {
	max-width: var(--ebl-quote-width, 26ch); margin: 0 auto; padding: 6px 0 8px; border: 0; quotes: none; background: none;
	font-family: var(--ebl-display); font-style: italic; font-weight: 600; font-size: var(--ebl-quote-size, clamp(28px, 3.6vw, 44px)); line-height: 1.1; letter-spacing: 0; text-transform: none;
}
.ebl-temoignage.no-italic blockquote { font-style: normal; }
.ebl-temoignage blockquote::before, .ebl-temoignage blockquote::after { content: none; }
.ebl-temoignage figcaption { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 14px; font-family: var(--ebl-body); font-size: 15px; font-style: normal; opacity: .8; }
.ebl-logo { max-height: 40px; width: auto; }
.ebl-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ebl-temoignage.is-left { text-align: left; }
.ebl-temoignage.is-left blockquote { margin-left: 0; }
.ebl-temoignage.is-left figcaption { justify-content: flex-start; }
.ebl-temoignage.quote-line blockquote, .ebl-temoignage.quote-line figcaption { border-left: 3px solid var(--ebl-a); padding-left: clamp(18px, 2.4vw, 28px); }
.ebl-temoignage.quote-line figcaption { margin-top: 0; padding-top: 10px; }

/* ---------- Éditeur ---------- */
.ebl-hint { padding: 16px; border: 1px dashed currentColor; opacity: .7; font-size: 14px; }
.ebl-editor-url { padding: 20px; border: 1px dashed #8a9a9c; background: rgba(60, 154, 168, .06); }
.ebl-editor-url .components-base-control { margin-bottom: 0; }
.ebl-ok { color: #2a7f8c; font-weight: 600; }
.ebl-err { color: #b42318; }

/* ---------- Le projet ---------- */
.ebl-projet { margin-left: 0; margin-right: 0; }
.ebl h2.ebl-projet-titre { margin: 0 0 14px; padding: 0; border: 0; background: none; color: inherit; line-height: 1.1; letter-spacing: 0; }
.ebl.titre-petit h2.ebl-projet-titre {
	font-family: var(--ebl-display); font-style: normal; font-weight: 600; font-size: var(--ebl-label-size, 13px);
	letter-spacing: .14em; text-transform: uppercase; opacity: .65;
}
.ebl.titre-grand h2.ebl-projet-titre {
	margin-bottom: 20px; font-family: var(--ebl-display); font-style: italic; font-weight: 800;
	font-size: clamp(30px, 4vw, 52px); line-height: 1; text-transform: uppercase;
}
.ebl.titre-grand h2.ebl-projet-titre::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; background: var(--ebl-a); }
.ebl-projet-texte { max-width: var(--ebl-read, none); font-family: var(--ebl-body); font-size: var(--ebl-text-size, inherit); line-height: 1.65; }
.ebl-projet-texte > :first-child { margin-top: 0; }
.ebl-projet-texte > :last-child { margin-bottom: 0; }
.ebl-projet-texte a { color: inherit; text-decoration-color: var(--ebl-a); text-underline-offset: 3px; }
.ebl-projet.has-chapo .ebl-projet-texte > p:first-child { font-size: 1.25em; line-height: 1.5; font-weight: 500; }
/* côte à côte : titre à gauche, texte à droite */
.ebl-projet.is-side { display: grid; grid-template-columns: minmax(140px, 1fr) 3fr; column-gap: clamp(24px, 4vw, 64px); align-items: start; }
.ebl-projet.is-side h2.ebl-projet-titre { margin: .35em 0 0; }
.ebl-projet.is-side.titre-grand h2.ebl-projet-titre { margin-top: 0; font-size: clamp(26px, 2.6vw, 40px); }
@media (max-width: 700px) {
	.ebl-projet.is-side { display: block; }
	.ebl-projet.is-side h2.ebl-projet-titre { margin: 0 0 14px; }
}

/* ---------- Vidéo hébergée (médiathèque ou APP) ---------- */
.ebl-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.ebl-frame > video.ebl-img, .ebl-frame.is-ambient > video { object-fit: cover; background: var(--ebl-pine); }
.ebl-frame.is-playing.is-vertical > video { object-fit: contain; }

/* ---------- Services en panneaux ---------- */
.ebl-services { display: flex; gap: var(--ebl-sv-gap, 14px); height: var(--ebl-sv-h, 500px); background: none !important; padding: 0; }
.ebl-sv-item { position: relative; isolation: isolate; display: block; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--ebl-sv-r, 6px); text-decoration: none !important; cursor: pointer; transition: flex var(--ebl-sv-speed, .55s) cubic-bezier(.2, .7, .2, 1), box-shadow .3s; outline-offset: 3px; }
.ebl-sv-item.is-open { flex: var(--ebl-sv-ratio, 3.4) 1 0; }
.trigger-hover:hover .ebl-sv-item:hover, .trigger-hover:focus-within .ebl-sv-item:focus { flex: var(--ebl-sv-ratio, 3.4) 1 0; }
.trigger-hover:hover .ebl-sv-item.is-open:not(:hover), .trigger-hover:focus-within .ebl-sv-item.is-open:not(:focus) { flex: 1 1 0; }
.has-shadow .ebl-sv-item:hover { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
/* fond image / vidéo */
.ebl-sv-media { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; z-index: -2; border-radius: 0; }
.ebl-sv-veil { position: absolute; inset: 0; z-index: -1; transition: opacity .4s; }
.ebl-sv-ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; pointer-events: none; fill: currentColor; }
.ebl-sv-ridge path { fill-opacity: var(--ebl-sv-ridge, .07); }
/* en-tête du panneau */
.ebl-sv-top { position: absolute; top: var(--ebl-sv-pad, 28px); left: var(--ebl-sv-pad, 28px); right: var(--ebl-sv-pad, 28px); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ebl-sv-num { display: flex; align-items: center; gap: 10px; font-family: var(--ebl-display); font-weight: 700; font-size: 14px; letter-spacing: .14em; }
.ebl-sv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 10px; color: #2f2f2f; font-size: 11px; letter-spacing: .14em; }
.ebl-sv-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ebl-sv-icon { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); display: flex; align-items: center; justify-content: center; }
.ebl-sv-icon img { width: 26px; height: 26px; object-fit: contain; margin: 0; }
.icon-simple .ebl-sv-icon { border: 0; width: auto; height: auto; }
.icon-simple .ebl-sv-icon svg, .icon-simple .ebl-sv-icon img { width: 34px; height: 34px; }
/* titres */
.ebl-sv-vert { position: absolute; left: 50%; bottom: calc(var(--ebl-sv-pad, 28px) + 4px); transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-family: var(--ebl-display); font-weight: 800; font-style: italic; font-size: var(--ebl-sv-vtitle, 44px); line-height: 1; text-transform: uppercase; transition: opacity .2s; }
.ebl-sv-full { position: absolute; left: var(--ebl-sv-pad, 28px); bottom: var(--ebl-sv-pad, 28px); width: min(480px, calc(100% - 2 * var(--ebl-sv-pad, 28px))); display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .35s; pointer-events: none; }
.align-centre .ebl-sv-full { bottom: auto; top: 50%; transform: translateY(-40%); }
.align-haut .ebl-sv-full { bottom: auto; top: calc(var(--ebl-sv-pad, 28px) + 76px); }
.ebl-sv-title { font-family: var(--ebl-display); font-weight: 800; font-style: italic; font-size: var(--ebl-sv-title, clamp(48px, 5.6vw, 84px)); line-height: .9; text-transform: uppercase; }
.no-caps .ebl-sv-title, .no-caps .ebl-sv-vert { text-transform: none; }
.no-italic .ebl-sv-title, .no-italic .ebl-sv-vert { font-style: normal; }
.ebl-sv-text { font-family: var(--ebl-body); font-size: var(--ebl-sv-text, 17px); line-height: 1.5; opacity: .92; }
.ebl-sv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ebl-sv-chip { font-family: var(--ebl-display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 14px; padding: 2px 10px; }
.chips-plein .ebl-sv-chip { border-color: transparent; background: color-mix(in srgb, currentColor 16%, transparent); }
.ebl-sv-go { font-family: var(--ebl-display); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
/* états ouvert / fermé */
.ebl-sv-item.is-open .ebl-sv-full { opacity: 1; transform: none; transition-delay: .18s; pointer-events: auto; }
.align-centre .ebl-sv-item.is-open .ebl-sv-full { transform: translateY(-50%); }
.trigger-hover:hover .ebl-sv-item:hover .ebl-sv-full, .trigger-hover .ebl-sv-item:focus .ebl-sv-full { opacity: 1; transform: none; transition-delay: .18s; }
.align-centre.trigger-hover:hover .ebl-sv-item:hover .ebl-sv-full { transform: translateY(-50%); }
.trigger-hover:hover .ebl-sv-item.is-open:not(:hover) .ebl-sv-full { opacity: 0; transition-delay: 0s; }
.ebl-sv-item.is-open .ebl-sv-vert, .trigger-hover:hover .ebl-sv-item:hover .ebl-sv-vert, .trigger-hover .ebl-sv-item:focus .ebl-sv-vert { opacity: 0; }
.trigger-hover:hover .ebl-sv-item.is-open:not(:hover) .ebl-sv-vert { opacity: 1; }
.ebl-services.has-font-theme .ebl-sv-item * { font-family: inherit !important; }
@media (prefers-reduced-motion: reduce) { .ebl-sv-item, .ebl-sv-full { transition: none !important; } }
/* mobile */
@media (max-width: 760px) {
	.ebl-services { flex-direction: column; height: auto; }
	.ebl-sv-item, .ebl-sv-item.is-open, .trigger-hover:hover .ebl-sv-item:hover, .trigger-hover:hover .ebl-sv-item.is-open:not(:hover) { flex: none; padding: calc(var(--ebl-sv-pad, 28px) + 76px) var(--ebl-sv-pad, 24px) var(--ebl-sv-pad, 28px); min-height: var(--ebl-sv-mh, 0); }
	.ebl-sv-top { top: var(--ebl-sv-pad, 24px); }
	.ebl-sv-full, .align-centre .ebl-sv-full, .align-haut .ebl-sv-full, .trigger-hover:hover .ebl-sv-item.is-open:not(:hover) .ebl-sv-full { position: static; width: auto; opacity: 1; transform: none !important; pointer-events: auto; }
	.ebl-sv-vert { display: none; }
	/* accordéon : seuls le titre et l'en-tête restent visibles sur les panneaux fermés */
	.m-accordion .ebl-sv-item:not(.is-open) { padding-bottom: var(--ebl-sv-pad, 24px); }
	.m-accordion .ebl-sv-item:not(.is-open) .ebl-sv-full > :not(.ebl-sv-title) { display: none; }
	.m-accordion .ebl-sv-item:not(.is-open) .ebl-sv-title { font-size: 40px; }
}

/* ---------- Services : cartes qui se retournent ---------- */
.ebl-sv-cards { display: grid; grid-template-columns: repeat(var(--ebl-sv-n, 3), minmax(0, 1fr)); gap: var(--ebl-sv-gap, 20px); height: auto; }
.ebl-fc { display: block; height: var(--ebl-sv-h, 500px); perspective: 1400px; text-decoration: none !important; outline-offset: 4px; }
.ebl-fc-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform var(--ebl-sv-speed, .7s) cubic-bezier(.2, .7, .2, 1); }
.trigger-hover .ebl-fc:hover .ebl-fc-in, .ebl-fc:focus-visible .ebl-fc-in, .ebl-fc.is-flipped .ebl-fc-in { transform: rotateY(180deg); }
.flip-v.trigger-hover .ebl-fc:hover .ebl-fc-in, .flip-v .ebl-fc:focus-visible .ebl-fc-in, .flip-v .ebl-fc.is-flipped .ebl-fc-in { transform: rotateX(180deg); }
.ebl-fc-f, .ebl-fc-b { position: absolute; inset: 0; overflow: hidden; isolation: isolate; border-radius: var(--ebl-sv-r, 6px); -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; padding: var(--ebl-sv-pad, 28px); box-sizing: border-box; }
.ebl-fc-f { justify-content: flex-end; }
.ebl-fc-b { transform: rotateY(180deg); justify-content: flex-end; gap: 14px; }
.flip-v .ebl-fc-b { transform: rotateX(180deg); }
.ebl-fc-b::before { content: ""; position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: calc(var(--ebl-sv-r, 6px) - 2px); pointer-events: none; }
.ebl-fc .ebl-sv-top { top: var(--ebl-sv-pad, 28px); }
.ebl-fc-title { position: relative; font-family: var(--ebl-display); font-weight: 800; font-style: italic; font-size: var(--ebl-sv-title, clamp(44px, 4.6vw, 76px)); line-height: .9; text-transform: uppercase; }
.ebl-fc-title.is-small { font-size: clamp(30px, 2.6vw, 40px); }
.no-caps .ebl-fc-title { text-transform: none; }
.no-italic .ebl-fc-title { font-style: normal; }
.ebl-fc-b .ebl-sv-text, .ebl-fc-b .ebl-sv-chips, .ebl-fc-b .ebl-sv-go { position: relative; }
.has-shadow .ebl-fc:hover .ebl-fc-f, .has-shadow .ebl-fc:hover .ebl-fc-b { box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
@media (max-width: 900px) { .ebl-sv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.ebl-sv-cards { grid-template-columns: 1fr; }
	.ebl-fc { height: auto; perspective: none; }
	.ebl-fc-in, .ebl-fc.is-flipped .ebl-fc-in, .trigger-hover .ebl-fc:hover .ebl-fc-in { transform: none !important; }
	.ebl-fc-f { position: relative; min-height: 220px; border-radius: var(--ebl-sv-r, 6px) var(--ebl-sv-r, 6px) 0 0; }
	.ebl-fc-b { position: relative; transform: none !important; border-radius: 0 0 var(--ebl-sv-r, 6px) var(--ebl-sv-r, 6px); padding-top: 4px; }
	.ebl-fc-b::before, .ebl-fc-b .ebl-fc-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ebl-fc-in { transition: none; } }

/* ---------- Services : diaporama ---------- */
.ebl-sv-slider { display: block; height: auto; }
.ebl-ds-track { position: relative; height: var(--ebl-sv-h, 500px); }
.ebl-ds-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; isolation: isolate; border-radius: var(--ebl-sv-r, 6px); opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity var(--ebl-sv-speed, .55s) ease, transform var(--ebl-sv-speed, .55s) cubic-bezier(.2, .7, .2, 1), visibility 0s linear var(--ebl-sv-speed, .55s); }
.ebl-ds-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }
.ebl-ds-slide.is-leaving { transform: translateX(-24px); }
.ebl-ds-text .ebl-sv-top { right: auto; gap: 20px; }
.ebl-ds-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: var(--ebl-sv-pad, 40px); }
.ebl-ds-text .ebl-sv-title { font-size: var(--ebl-sv-title, clamp(56px, 7vw, 120px)); }
.ebl-ds-text .ebl-sv-text { max-width: 36ch; }
.ebl-ds-text .ebl-sv-go { color: inherit; text-decoration: none; }
.ebl-ds-art { position: static; }
.ebl-ds-art .ebl-sv-ridge { height: 60%; }
.ebl-ds-art .ebl-sv-media { z-index: 0; }
.ebl-ds-art .ebl-sv-veil { z-index: 0; }
.ebl-ds-num { position: absolute; right: var(--ebl-sv-pad, 36px); top: 12px; font-family: var(--ebl-display); font-weight: 800; font-style: italic; font-size: clamp(120px, 16vw, 230px); line-height: 1; opacity: .12; }
.ebl-ds-nav { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.ebl-ds-pos { font-family: var(--ebl-display); font-weight: 600; font-size: 15px; letter-spacing: .14em; white-space: nowrap; }
.ebl-ds-pos b { font-weight: 800; }
.ebl-ds-dots { display: flex; gap: 8px; flex: 1; }
.ebl .ebl-ds-dot { width: 24px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer; background: color-mix(in srgb, currentColor 28%, transparent); transition: width .3s, background .3s; }
.ebl .ebl-ds-dot.is-active { width: 56px; background: var(--ebl-a); }
.ebl .ebl-ds-arrow { width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); background: transparent; color: inherit; font-size: 20px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ebl .ebl-ds-arrow:hover, .ebl .ebl-ds-arrow:focus-visible { background: var(--ebl-a); border-color: var(--ebl-a); color: #2f2f2f; }
@media (max-width: 760px) {
	.ebl-ds-track { height: auto; display: grid; }
	.ebl-ds-slide { position: relative; grid-area: 1 / 1; grid-template-columns: 1fr; min-height: var(--ebl-sv-mh, 440px); }
	.ebl-ds-text { padding-top: calc(var(--ebl-sv-pad, 24px) + 72px); }
	.ebl-ds-art { position: absolute; inset: 0; z-index: -1; }
	.ebl-ds-num { display: none; }
	.ebl .ebl-ds-arrow { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .ebl-ds-slide { transition: none; } }
