/**
 * NOTICE OF LICENSE
 *
 * This source file is subject to a commercial license from Ether Création.
 * Use, copy, modification or distribution of this source file without
 * written license agreement from Ether Création is strictly forbidden.
 *
 * @author    Ether Création
 * @copyright 2026 Ether Création
 * @license   Commercial license
 */
/**
 * Ether Builder – rendu front des sections et des blocs.
 *
 * Tout s'appuie sur les tokens du thème Ether (--ether-*), avec une valeur de repli pour
 * fonctionner aussi sur un autre thème. Les fonds, espacements et dispositions sont des
 * choix fermés de l'éditeur : un nouveau choix = une classe ici.
 */

/* Sections ---------------------------------------------------------------- */

.ecb-section {
  --ecb-space: 4.5rem;
  padding-block: var(--ecb-space);
}

.ecb-section--space-none { --ecb-space: 0; }
.ecb-section--space-s { --ecb-space: 2rem; }
.ecb-section--space-l { --ecb-space: 7rem; }

@media (max-width: 767.98px) {
  .ecb-section { --ecb-space: 3rem; }
  .ecb-section--space-none { --ecb-space: 0; }
  .ecb-section--space-s { --ecb-space: 1.5rem; }
  .ecb-section--space-l { --ecb-space: 4.5rem; }
}

.ecb-section--bg-surface { background: var(--ether-color-surface, #f8f9fa); }
.ecb-section--bg-soft { background: color-mix(in srgb, var(--ether-color-primary, #0b69f6) 12%, var(--ether-color-bg, #fff)); }

.ecb-section--bg-primary,
.ecb-section--bg-dark {
  --bs-heading-color: currentColor;
  --bs-body-color: currentColor;
  --bs-link-color-rgb: var(--ether-color-on-primary-rgb, 255, 255, 255);
}

.ecb-section--bg-primary {
  color: var(--ether-color-on-primary, #fff);
  background: var(--ether-color-primary, #0b69f6);
}

.ecb-section--bg-dark {
  color: var(--ether-color-footer-text, #dee2e6);
  background: var(--ether-color-dark, #212529);
}

.ecb-section--bg-dark .ecb-heading { color: var(--ether-color-footer-heading, #fff); }

.ecb-container--narrow { max-width: 54rem; margin-inline: auto; }

/* Colonnes ---------------------------------------------------------------- */

.ecb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
}

.ecb-row--valign-center { align-items: center; }
.ecb-row--valign-end { align-items: end; }

@media (min-width: 768px) {
  .ecb-row--1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecb-row--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .ecb-row--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .ecb-row--1-1-1 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ecb-row--1-1-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .ecb-row--1-1-1-1 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sur mobile, ordre inversé des colonnes empilées (ex. image sous le texte) */
@media (max-width: 767.98px) {
  .ecb-row--stack-reverse > .ecb-col:first-child { order: 2; }
}

.ecb-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

/* Typographie commune ------------------------------------------------------ */

.ecb-heading {
  margin: 0;
  font-size: calc(var(--bs-body-font-size, 1rem) * 2 * var(--ether-heading-scale, 1));
  line-height: 1.1;
}

.ecb-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ether-color-muted, #6c757d);
}

.ecb-section--bg-primary .ecb-kicker,
.ecb-section--bg-dark .ecb-kicker { color: inherit; opacity: 0.8; }

.ecb-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.ecb-head__link {
  padding-bottom: 2px;
  color: inherit;
  border-bottom: 1px solid currentColor;
}

/* Texte -------------------------------------------------------------------- */

.ecb-richtext { display: flex; flex-direction: column; gap: 1.25rem; }
.ecb-richtext--center { align-items: center; text-align: center; }
.ecb-richtext__content > :last-child { margin-bottom: 0; }

/* Bannière ----------------------------------------------------------------- */

.ecb-hero {
  --ecb-hero-h: 34rem;
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--ether-radius, 0.5rem);
}

.ecb-hero--h-sm { --ecb-hero-h: 24rem; }
.ecb-hero--h-lg { --ecb-hero-h: 44rem; }

.ecb-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecb-hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 36rem;
}

.ecb-hero__title { margin: 0; font-size: clamp(2.5rem, 4.5vw, 4.25rem); line-height: 1.05; }
.ecb-hero__text { margin: 0; font-size: 1.125rem; white-space: pre-line; }
.ecb-hero__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Variante : texte par-dessus l'image */
.ecb-hero--overlay { min-height: var(--ecb-hero-h); }

.ecb-hero--overlay > .ecb-hero__media,
.ecb-hero--overlay > .ecb-hero__content { grid-area: 1 / 1; }

/* L'image remplit le bandeau sans en imposer la hauteur (sinon « Hauteur » n'agit pas : une photo
   3:2 en pleine largeur ferait 960 px de haut) : hauteur = réglage, ou celle du texte s'il est plus haut. */
.ecb-hero--overlay > .ecb-hero__media { position: relative; display: block; min-height: 0; }
.ecb-hero--overlay > .ecb-hero__media > .ecb-hero__img { position: absolute; inset: 0; }
.ecb-hero--overlay::after { position: relative; }

.ecb-hero--overlay > .ecb-hero__content {
  z-index: 1;
  align-self: center;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

.ecb-hero--overlay.ecb-hero--pos-center > .ecb-hero__content { justify-self: center; align-items: center; text-align: center; }
.ecb-hero--overlay.ecb-hero--pos-end > .ecb-hero__content { justify-self: end; }

.ecb-hero--overlay::after {
  content: "";
  grid-area: 1 / 1;
  pointer-events: none;
}

.ecb-hero--overlay.ecb-hero--overlay-dark { color: #fff; }
.ecb-hero--overlay.ecb-hero--overlay-dark::after { background: rgba(var(--ether-color-dark-rgb, 33, 37, 41), 0.45); }
.ecb-hero--overlay.ecb-hero--overlay-light::after { background: rgba(var(--ether-color-bg-rgb, 255, 255, 255), 0.6); }
.ecb-hero--overlay.ecb-hero--overlay-dark .ecb-hero__title,
.ecb-hero--overlay.ecb-hero--overlay-dark .ecb-kicker { color: inherit; }

/* Variante : texte à côté de l'image */
.ecb-hero--split { gap: 2rem 4rem; border-radius: 0; }
.ecb-hero--split .ecb-hero__img { min-height: calc(var(--ecb-hero-h) * 0.7); border-radius: var(--ether-radius, 0.5rem); }

@media (min-width: 768px) {
  .ecb-hero--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
  .ecb-hero--split .ecb-hero__media { order: 2; }
  .ecb-hero--split.ecb-hero--pos-end .ecb-hero__media { order: 0; }
  .ecb-hero--split .ecb-hero__img { min-height: var(--ecb-hero-h); }
}

/* Section pleine largeur (pas de conteneur) : le texte garde la marge du site, l'image va au bord */
.ecb-section > .ecb-row .ecb-hero--split > .ecb-hero__content { padding-inline: var(--bs-gutter-x, 1.5rem); }
.ecb-section > .ecb-row .ecb-hero--split .ecb-hero__img { border-radius: 0; }

@media (min-width: 768px) {
  .ecb-section > .ecb-row .ecb-hero--split > .ecb-hero__content { padding-inline: clamp(1.5rem, 5vw, 4rem) 0; }
  .ecb-section > .ecb-row .ecb-hero--split.ecb-hero--pos-end > .ecb-hero__content { padding-inline: 0 clamp(1.5rem, 5vw, 4rem); }
}

/* Réassurance -------------------------------------------------------------- */

.ecb-reassurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
}

@media (min-width: 992px) {
  .ecb-reassurance--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecb-reassurance--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ecb-reassurance--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ecb-reassurance__inner {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

a.ecb-reassurance__inner:hover .ecb-reassurance__title { text-decoration: underline; }

.ecb-reassurance__icon {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

/* Icône SVG du module teintée à la couleur principale du thème */
.ecb-reassurance__icon--mask {
  background: var(--ether-color-primary, #0b69f6);
  -webkit-mask: var(--ecb-icon) center / contain no-repeat;
  mask: var(--ecb-icon) center / contain no-repeat;
}

.ecb-reassurance__body { display: flex; flex-direction: column; gap: 0.125rem; }
.ecb-reassurance__title { font-size: 0.9375rem; font-weight: 500; }
.ecb-reassurance__desc { font-size: 0.875rem; color: var(--ether-color-muted, #6c757d); }

/* Lookbook ----------------------------------------------------------------- */

.ecb-lookbook {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ecb-lookbook { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .ecb-lookbook--img-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .ecb-lookbook--img-end .ecb-lookbook__media { order: 2; }
}

.ecb-lookbook__media { position: relative; }

.ecb-lookbook__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ether-radius, 0.5rem);
}

/* Point : un repère centré sur la position choisie */
.ecb-lookbook__point {
  position: absolute;
  width: 0;
  height: 0;
}

.ecb-lookbook__pin {
  position: absolute;
  top: -1.125rem;
  left: -1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ether-color-bg, #fff);
  color: var(--ether-color-dark, #212529);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.ecb-lookbook__pin .material-icons { font-size: 1.25rem; transition: transform 0.2s; }

.ecb-lookbook__pin:hover,
.ecb-lookbook__pin.is-active,
.ecb-lookbook__pin[aria-expanded="true"] {
  background: var(--ether-color-dark, #212529);
  color: var(--ether-color-bg, #fff);
  transform: scale(1.1);
}

.ecb-lookbook__pin[aria-expanded="true"] .material-icons { transform: rotate(45deg); }

/* Fiche produit qui s'ouvre à côté du point, vers l'intérieur de l'image */
.ecb-lookbook__card {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  width: max-content;
  max-width: 16rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: var(--ether-radius, 0.5rem);
  background: var(--ether-color-bg, #fff);
  color: var(--bs-body-color, #212529);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  font-size: 0.875rem;
  text-decoration: none;
}

.ecb-lookbook__card[hidden] { display: none; }
.ecb-lookbook__card--end { left: 1.75rem; }
.ecb-lookbook__card--start { right: 1.75rem; }
.ecb-lookbook__card--down { top: -1.5rem; }
.ecb-lookbook__card--up { bottom: -1.5rem; }

.ecb-lookbook__card img {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: calc(var(--ether-radius, 0.5rem) * 0.75);
}

.ecb-lookbook__card-body { display: flex; flex-direction: column; gap: 0.125rem; }
.ecb-lookbook__card:hover .ecb-lookbook__name { text-decoration: underline; }
.ecb-lookbook__price { color: var(--ether-color-muted, #6c757d); white-space: nowrap; }

.ecb-lookbook__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.ecb-lookbook__body .ecb-heading { margin: 0; }
.ecb-lookbook__text { margin: 0; font-size: 1.0625rem; white-space: pre-line; }

.ecb-lookbook__list {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--ether-color-border, #dee2e6);
}

.ecb-lookbook__row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--ether-color-border, #dee2e6);
  color: inherit;
  text-decoration: none;
}

.ecb-lookbook__row:hover,
.ecb-lookbook__row:focus-visible { text-decoration: underline; }

/* Accordéon (FAQ) ---------------------------------------------------------- */

.ecb-accordion .ecb-heading { margin-bottom: 1.5rem; }

.ecb-accordion__items { border-top: 1px solid var(--ether-color-border, #dee2e6); }

.ecb-accordion__item { border-bottom: 1px solid var(--ether-color-border, #dee2e6); }

.ecb-accordion__question {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 1rem 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.ecb-accordion__question::-webkit-details-marker { display: none; }

/* Signe + qui devient − à l'ouverture */
.ecb-accordion__question::after {
  content: "";
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
}

.ecb-accordion__item[open] > .ecb-accordion__question::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}

.ecb-accordion__question:focus-visible {
  outline: 2px solid var(--ether-color-primary, #0b69f6);
  outline-offset: 2px;
}

.ecb-accordion__answer { padding: 0 0 1.25rem; color: var(--ether-color-muted, #6c757d); }
.ecb-accordion__answer > :last-child { margin-bottom: 0; }

/* Image + texte ------------------------------------------------------------ */

.ecb-imagetext {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

.ecb-imagetext__img {
  width: 100%;
  height: auto;
  border-radius: var(--ether-radius, 0.5rem);
}

.ecb-imagetext__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.ecb-imagetext__text > :last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .ecb-imagetext--ratio-40 { grid-template-columns: 2fr 3fr; }
  .ecb-imagetext--ratio-50 { grid-template-columns: 1fr 1fr; }
  .ecb-imagetext--ratio-60 { grid-template-columns: 3fr 2fr; }
  .ecb-imagetext--img-end .ecb-imagetext__media { order: 2; }
  .ecb-imagetext--img-end.ecb-imagetext--ratio-40 { grid-template-columns: 3fr 2fr; }
  .ecb-imagetext--img-end.ecb-imagetext--ratio-60 { grid-template-columns: 2fr 3fr; }
}

/* Image -------------------------------------------------------------------- */

.ecb-image { margin: 0; }
.ecb-image__img { width: 100%; height: auto; border-radius: var(--ether-radius, 0.5rem); }
.ecb-image__caption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--ether-color-muted, #6c757d); }

/* Ratios d'images ---------------------------------------------------------- */

.ecb-ratio { position: relative; overflow: hidden; border-radius: var(--ether-radius, 0.5rem); }
.ecb-ratio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecb-ratio--1x1 { aspect-ratio: 1; }
.ecb-ratio--4x5 { aspect-ratio: 4 / 5; }
.ecb-ratio--4x3 { aspect-ratio: 4 / 3; }
.ecb-ratio--16x9 { aspect-ratio: 16 / 9; }

/* Cartes ------------------------------------------------------------------- */

.ecb-cards__list {
  display: grid;
  grid-template-columns: repeat(var(--ecb-cards-columns, 4), minmax(0, 1fr));
  gap: 1.25rem;
}

.ecb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  color: inherit;
}

.ecb-card__img { transition: transform 0.4s ease; }
a.ecb-card:hover .ecb-card__img { transform: scale(1.03); }
.ecb-card__body { display: flex; flex-direction: column; gap: 0.25rem; }
.ecb-card__title { margin: 0; font-size: 1.125rem; }
.ecb-card__text { margin: 0; font-size: 0.9375rem; color: var(--ether-color-muted, #6c757d); }

.ecb-cards--overlay .ecb-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(var(--ether-color-dark-rgb, 33, 37, 41), 0.6));
  border-radius: 0 0 var(--ether-radius, 0.5rem) var(--ether-radius, 0.5rem);
}

.ecb-cards--overlay .ecb-card__text { color: inherit; }

@media (max-width: 767.98px) {
  .ecb-cards--mobile-grid .ecb-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ecb-cards--mobile-scroll .ecb-cards__list {
    grid-template-columns: none;
    grid-auto-columns: 70%;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }

  .ecb-cards--mobile-scroll .ecb-card { scroll-snap-align: start; }
}

/* Produits ----------------------------------------------------------------- */

/* La grille vient du thème ; le défilement horizontal la transforme en une seule rangée */
.ecb-products--scroll .products {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.5rem) / 2.3);
  gap: 1.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ecb-products--scroll .products::-webkit-scrollbar { display: none; }
.ecb-products--scroll .products > * { scroll-snap-align: start; }

@media (min-width: 768px) {
  .ecb-products--scroll .products { grid-auto-columns: calc((100% - 2 * 1.5rem) / 3); }
}

@media (min-width: 992px) {
  .ecb-products--scroll .products { grid-auto-columns: calc((100% - 3 * 1.5rem) / 4); }
}

.ecb-head__end {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

/* Onglets (bloc Produits) : pastilles, celle choisie en couleur sombre */
.ecb-head__end { flex-wrap: wrap; }

.ecb-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Mobile : une seule ligne qui défile plutôt que des pastilles sur deux lignes */
@media (max-width: 767.98px) {
  .ecb-head__end:has(.ecb-tabs) { width: 100%; margin-left: 0; }
  .ecb-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ecb-tabs__tab { flex: none; }
}

.ecb-tabs__tab {
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid var(--ether-color-border, #dee2e6);
  border-radius: 999px;
  background: transparent;
  color: var(--bs-body-color, #212529);
  font-size: 0.875rem;
  font-weight: 500;
}

.ecb-tabs__tab:hover { border-color: var(--ether-color-dark, #212529); }

.ecb-tabs__tab[aria-selected="true"] {
  border-color: var(--ether-color-dark, #212529);
  background: var(--ether-color-dark, #212529);
  color: var(--ether-color-bg, #fff);
}

/* Flèches : sur mobile, on fait glisser du doigt */
.ecb-scroll-nav { display: none; gap: 0.5rem; }

@media (min-width: 768px) {
  .ecb-scroll-nav { display: flex; }
}

.ecb-scroll-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: opacity 0.2s;
}

.ecb-scroll-nav__btn:disabled { opacity: 0.3; }

/* Mosaïque ----------------------------------------------------------------- */

.ecb-mosaic {
  --ecb-mosaic-h: 28rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: var(--ecb-mosaic-h);
}
.ecb-mosaic--h-sm { --ecb-mosaic-h: 22rem; }
.ecb-mosaic--h-lg { --ecb-mosaic-h: 34rem; }
.ecb-mosaic--count-1 { grid-template-columns: minmax(0, 1fr); }
.ecb-mosaic--count-1,
.ecb-mosaic--count-2 { grid-template-rows: minmax(0, 1fr); }
.ecb-mosaic__tile--large { grid-row: 1 / -1; }
.ecb-mosaic--large-end { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.ecb-mosaic--large-end .ecb-mosaic__tile--large { grid-column: 2; }

.ecb-mosaic__tile {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 0;
  border-radius: var(--ether-radius, 0.5rem);
  background: var(--ether-color-surface, #f8f9fa);
}
.ecb-mosaic__tile--light { color: #fff; background-color: var(--ether-color-dark, #212529); }
.ecb-mosaic__tile--dark { color: var(--ether-color-text, #212529); }

.ecb-mosaic__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ecb-mosaic__tile:hover .ecb-mosaic__img { transform: scale(1.03); }

.ecb-mosaic__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 55%;
  padding: 1.5rem 2rem;
}
.ecb-mosaic__tile--large .ecb-mosaic__body { max-width: 46%; padding: 2rem 2.5rem; gap: 1rem; }
.ecb-mosaic__body > * { margin: 0; }
.ecb-mosaic__body .ecb-kicker,
.ecb-mosaic__title { color: inherit; }
.ecb-mosaic__tile--light .ecb-kicker { opacity: 0.8; }
.ecb-mosaic__tile--large .ecb-mosaic__title { font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; }
.ecb-mosaic__text { font-size: 1rem; opacity: 0.9; }
.ecb-mosaic__tile--large .ecb-mosaic__btn,
.ecb-mosaic__tile--large .btn { margin-top: 0.5rem; }
.ecb-mosaic__more { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; }

@media (max-width: 767.98px) {
  .ecb-mosaic,
  .ecb-mosaic--large-end { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .ecb-mosaic__tile--large,
  .ecb-mosaic--large-end .ecb-mosaic__tile--large { grid-row: auto; grid-column: auto; }
  .ecb-mosaic__tile { min-height: 11rem; }
  .ecb-mosaic__body,
  .ecb-mosaic__tile--large .ecb-mosaic__body { max-width: 62%; padding: 1.5rem; }
  .ecb-mosaic__img { object-position: right center; }
  /* Grande tuile : texte en haut, image en bande dessous (le texte ne passe plus sur l'illustration) */
  .ecb-mosaic__tile--large { flex-direction: column; align-items: stretch; }
  .ecb-mosaic__tile--large .ecb-mosaic__body { max-width: none; padding-bottom: 0.5rem; }
  .ecb-mosaic__tile--large .ecb-mosaic__img { position: relative; order: 2; height: 13rem; }
}

/* Diaporama ---------------------------------------------------------------- */

.ecb-slider { overflow: hidden; border-radius: var(--ether-radius, 0.5rem); }
.ecb-slider__img { display: block; width: 100%; height: 30rem; object-fit: cover; }
.ecb-slider--h-sm .ecb-slider__img { height: 22rem; }
.ecb-slider--h-lg .ecb-slider__img { height: 40rem; }

.ecb-slider__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  color: #fff;
  background: linear-gradient(transparent, rgba(var(--ether-color-dark-rgb, 33, 37, 41), 0.55));
}

.ecb-slider__caption .h2 { color: inherit; }
.ecb-slider__caption .ecb-kicker { color: inherit; opacity: 0.8; }

/* Texte à gauche, centré en hauteur, sans voile : pour des visuels prévus avec un aplat à gauche */
.ecb-slider--caption-side .ecb-slider__caption {
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  width: min(40rem, 48%);
  padding: 2rem 0 2rem clamp(4.5rem, 7vw, 6.5rem);
  background: none;
}
.ecb-slider--caption-side .ecb-slider__caption > * { margin: 0; }
.ecb-slider--caption-side .ecb-slider__caption .h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.08; }
.ecb-slider--caption-side .ecb-slider__caption p:not(.h2):not(.ecb-kicker) { font-size: 1.125rem; opacity: 0.9; }
.ecb-slider--caption-side .ecb-slider__caption .btn { margin-top: 0.75rem; }

/* Flèches : boutons ronds au bord du diaporama ; indicateurs en traits fins */
.ecb-slider .carousel-control-prev,
.ecb-slider .carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 2.875rem;
  height: 2.875rem;
  margin: 0 1rem;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
  transform: translateY(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.ecb-slider .carousel-control-prev:hover,
.ecb-slider .carousel-control-next:hover { opacity: 1; }
.ecb-slider .carousel-control-prev-icon,
.ecb-slider .carousel-control-next-icon { background-color: transparent; }

@media (max-width: 767.98px) {
  /* Mobile : texte en haut, le visuel mobile garde le bas libre pour l'illustration */
  .ecb-slider--caption-side .ecb-slider__caption { justify-content: flex-start; width: 100%; padding: 2rem 1.5rem; }
  .ecb-slider--caption-side .ecb-slider__caption p:not(.h2):not(.ecb-kicker) { display: none; }
  .ecb-slider .carousel-control-prev,
  .ecb-slider .carousel-control-next { display: none; }
}

/* Liens, bouton, bandeau, espacement --------------------------------------- */

.ecb-linklist__title { margin-bottom: 0.75rem; font-weight: 500; }
.ecb-linklist__list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.ecb-linklist--horizontal .ecb-linklist__list { flex-flow: row wrap; gap: 0.5rem 1.75rem; }
.ecb-linklist a { color: inherit; }

.ecb-button { display: flex; }
.ecb-button--center { justify-content: center; }
.ecb-button--end { justify-content: flex-end; }

.ecb-textbanner { padding: 0.625rem 1rem; font-size: 0.875rem; letter-spacing: 0.04em; text-align: center; }
.ecb-textbanner a { color: inherit; }
.ecb-textbanner--dark { color: var(--ether-color-footer-heading, #fff); background: var(--ether-color-dark, #212529); }
.ecb-textbanner--primary { color: var(--ether-color-on-primary, #fff); background: var(--ether-color-primary, #0b69f6); }
.ecb-textbanner--surface { background: var(--ether-color-surface, #f8f9fa); }

.ecb-spacer { height: 2rem; }
.ecb-spacer--sm { height: 1rem; }
.ecb-spacer--lg { height: 4rem; }
