.cesahome-hero {
  align-items: center;
  background: #fff;
  display: grid;
  gap: clamp(28px, 4vw, 54px);
  grid-template-columns: minmax(320px, 0.88fr) minmax(560px, 1.12fr);
  margin: 28px auto 0;
  max-width: 1320px;
  min-height: 360px;
  padding: 12px 0 0;
  width: 100%;
}

.cesahome-hero__content {
  min-width: 0;
}

.cesahome-hero__eyebrow {
  color: #007c92;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.cesahome-hero h1 {
  color: #0b1f33;
  font-size: clamp(2.65rem, 4.1vw, 3.9rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 620px;
}

.cesahome-hero p {
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.62;
  margin: 0;
  max-width: 610px;
}

.cesahome-hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cesahome-hero-facets {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  min-height: 320px;
  width: 100%;
}

.cesahome-card {
  background: #f1fafb;
  border: 1px solid #dde7ee;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 35, 55, 0.12);
  color: #fff;
  display: block;
  min-height: 0;
  overflow: hidden;
  perspective: 1200px;
  position: relative;
  text-decoration: none;
}

.cesahome-card--1 {
  grid-row: span 2;
}

.cesahome-card__inner {
  border-radius: inherit;
  display: block;
  height: 100%;
  min-height: inherit;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.24, 1);
  width: 100%;
}

.cesahome-card__face {
  align-items: center;
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  transform-style: preserve-3d;
}

.cesahome-card__face--front {
  background: #f1fafb;
  transform: rotateY(0deg);
}

.cesahome-card__face--back {
  align-items: flex-start;
  background: linear-gradient(135deg, #07243a 0%, #006f82 55%, #0093a9 100%);
  color: #fff;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(18px, 2.4vw, 28px);
  transform: rotateY(180deg);
}

.cesahome-card__media {
  inset: 0;
  position: absolute;
}

.cesahome-card__image {
  filter: saturate(0.92) contrast(0.96);
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.04);
  transition: opacity 220ms ease, transform 220ms ease;
  width: 100%;
}

.cesahome-card__face--front::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(6, 21, 34, 0.12));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.cesahome-card--3 .cesahome-card__face--front::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(6, 21, 34, 0.12));
}

.cesahome-card--icon-only .cesahome-card__face--front::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9) 0 0, rgba(255, 255, 255, 0.9) 35%, transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(230, 246, 248, 0.76));
}

.cesahome-card--3.cesahome-card--icon-only .cesahome-card__face--front::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.13) 0 0, rgba(255, 255, 255, 0.13) 35%, transparent 36%),
    linear-gradient(135deg, rgba(7, 28, 45, 0.98), rgba(0, 124, 146, 0.94));
}

.cesahome-card__shade {
  background: linear-gradient(180deg, transparent 50%, rgba(6, 21, 34, 0.72) 100%);
  inset: 0;
  position: absolute;
  z-index: 2;
}

.cesahome-card__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 124, 146, 0.1);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 35, 55, 0.12);
  color: #007c92;
  display: inline-flex;
  height: clamp(96px, 13vw, 180px);
  justify-content: center;
  position: relative;
  width: clamp(96px, 13vw, 180px);
  z-index: 3;
}

.cesahome-card__icon .material-icons {
  color: currentColor;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 1;
  margin: 0;
}

.cesahome-card--3 .cesahome-card__icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cesahome-card__title {
  bottom: 18px;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  left: 18px;
  line-height: 1.15;
  position: absolute;
  right: 18px;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  z-index: 4;
}

.cesahome-card__back-title {
  color: #fff;
  display: block;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 850;
  line-height: 1.12;
  margin-bottom: 10px;
}

.cesahome-card__back-text {
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.42;
  margin-bottom: 18px;
  max-width: 38ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.cesahome-card__back-link {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  gap: 6px;
  line-height: 1;
}

.cesahome-card__back-link .material-icons {
  font-size: 17px;
  line-height: 1;
}

.cesahome-card:hover .cesahome-card__inner,
.cesahome-card:focus .cesahome-card__inner,
.cesahome-card:focus-within .cesahome-card__inner {
  transform: rotateY(180deg);
}

.cesahome-card:hover .cesahome-card__image,
.cesahome-card:focus .cesahome-card__image {
  transform: scale(1.08);
}

.cesahome-card:focus-visible {
  outline: 3px solid rgba(0, 124, 146, 0.26);
  outline-offset: 3px;
}

/* ── Bouton Rendez-vous (hero) ── */
.cesa-btn-rdv {
  align-items: center;
  background: #18b4be;
  border: 2px solid #18b4be;
  border-radius: 10px;
  box-shadow: 0 6px 22px rgba(24, 180, 190, 0.32);
  color: #fff;
  display: inline-flex;
  font-size: 1.02rem;
  font-weight: 800;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.cesa-btn-rdv:hover,
.cesa-btn-rdv:focus {
  background: #14a2ab;
  border-color: #14a2ab;
  box-shadow: 0 10px 30px rgba(24, 180, 190, 0.42);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.cesa-btn-rdv .material-icons {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .cesahome-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cesahome-hero-facets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767.98px) {
  .cesahome-hero {
    gap: 22px;
    margin-top: 16px;
    padding: 0;
  }

  .cesahome-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .cesahome-hero p {
    font-size: 1rem;
  }

  .cesahome-hero__actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 22px;
  }

  .cesahome-hero__actions .cesa-btn-primary,
  .cesahome-hero__actions .cesa-btn-rdv {
    justify-content: center;
    width: 100%;
  }

  .cesahome-hero-facets {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cesahome-card,
  .cesahome-card--1 {
    aspect-ratio: 16 / 9;
    grid-row: span 1;
  }
}
