/* ==========================================================================
   O'Dance Holiday — Crète 2027 · "Bienvenue en Crète" (section#sejour)
   Every rule is scoped under .odb: the hero, navbar, other sections and
   global styles are untouched. Fonts self-hosted (./fonts, SIL OFL).
   ========================================================================== */

@font-face { font-family: "ODB Barlow"; src: url("fonts/barlow-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "ODB Barlow"; src: url("fonts/barlow-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "ODB Barlow Semi"; src: url("fonts/barlow-semi-condensed-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "ODB Barlow Semi"; src: url("fonts/barlow-semi-condensed-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "ODB Marck"; src: url("fonts/marck-script.woff") format("woff"); font-weight: 400; font-display: swap; }

.odb {
  --odb-blue: #0a4fa6;
  --odb-blue-deep: #0b3c8c;
  --odb-text: #25529c;
  --odb-yellow: #fed93c;
  --odb-yellow-hover: #ffe261;
  --odb-line: #e1eaf6;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 42%, #ffffff 100%);
  color: var(--odb-text);
  font-family: "ODB Barlow", system-ui, sans-serif;
  padding: 0 0 56px;
}
.odb *, .odb *::before, .odb *::after { box-sizing: border-box; }
.odb :where(h2, h3, p, ul, figure) { margin: 0; padding: 0; }
.odb ul { list-style: none; }

.odb__inner {
  --odb-gutter: clamp(16px, 4vw, 48px);   /* same as the top menu */
  position: relative;
  max-width: 1500px;                        /* same width as the top menu */
  margin: 0 auto;
  padding: 0 var(--odb-gutter);
}

/* Palm fronds peeking in from the left edge */
.odb__palm {
  position: absolute; left: -14px; top: 16px;
  width: 92px; height: auto;
  pointer-events: none; user-select: none;
  z-index: 2;
}

/* ---------- Intro + coastal image ---------- */
.odb__top {
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: stretch;
  min-height: 300px;
}
.odb__intro {
  position: relative; z-index: 1;
  padding: 34px 0 24px 40px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.odb__eyebrow {
  font-family: "ODB Barlow Semi", sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--odb-blue);
}
.odb__title {
  margin-top: 8px;
  font-family: "ODB Barlow Semi", sans-serif; font-weight: 800;
  font-size: clamp(34px, 4.2vw, 56px); line-height: 1;
  white-space: nowrap;
  letter-spacing: -.005em; text-transform: uppercase;
  color: var(--odb-blue);
  text-wrap: balance;
}
.odb__script {
  margin-top: 6px;
  font-family: "ODB Marck", cursive;
  font-size: clamp(26px, 2.6vw, 33px); line-height: 1.1;
  color: var(--odb-blue);
  transform: rotate(-2deg); transform-origin: 0 50%;
}
.odb__text {
  margin-top: 16px;
  max-width: 37em;
  font-size: 15.5px; line-height: 1.5; font-weight: 500;
  color: var(--odb-text);
}
.odb__btn {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 18px;
  min-height: 44px; padding: 10px 20px 10px 22px;
  border-radius: 7px;
  background: var(--odb-yellow);
  color: var(--odb-blue-deep);
  font-family: "ODB Barlow Semi", sans-serif; font-weight: 800;
  font-size: 17px; letter-spacing: .01em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 6px 16px rgba(10, 60, 140, .14);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.odb__btn svg { width: 14px; height: 14px; flex: none; transition: transform .18s ease; }
.odb__btn:hover { background: var(--odb-yellow-hover); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10, 60, 140, .18); }
.odb__btn:hover svg { transform: translateX(3px); }
.odb__btn:focus-visible { outline: 3px solid var(--odb-blue); outline-offset: 3px; }

.odb__visual {
  position: relative;
  margin-left: -5%;
  margin-right: 14px;   /* right edge lines up with the cards row (.odb__cards padding), so the block reads centred */
  min-height: 300px;
}
.odb__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  display: block;
  /* soft brushed fade into the white on the left */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%);
}

/* ---------- The 5 cards ---------- */
.odb__cards {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
  padding: 0 14px;
}
.odb-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--odb-line);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(11, 60, 140, .08), 0 1px 2px rgba(11, 60, 140, .06);
}
.odb-card__media { aspect-ratio: 172 / 124; overflow: hidden; background: #cfe6f7; }
.odb-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.odb-card:hover .odb-card__media img { transform: scale(1.04); }
.odb-card__body {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 10px 16px;
  text-align: center;
}
.odb-card__icon {
  width: 70px; height: 70px;
  margin-top: -40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--odb-blue);
  box-shadow: 0 -3px 10px rgba(11, 60, 140, .06);
}
.odb-card__icon svg { width: 42px; height: 42px; display: block; }
.odb-card__title {
  margin-top: 4px;
  font-family: "ODB Barlow Semi", sans-serif; font-weight: 800;
  font-size: 19px; line-height: 1.1; letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--odb-blue);
}
.odb-card__text {
  margin-top: 5px;
  font-size: 15.5px; line-height: 1.38; font-weight: 500;
  color: var(--odb-text);
}
/* "40h de cours" highlight (Cours de danse card) — compact so the row keeps its height */
.odb-card__hours {
  margin-top: 4px; padding: 0 4px;
  font-family: "ODB Barlow Semi", sans-serif; font-weight: 800;
  font-size: 16.5px; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: var(--odb-blue);
  background: linear-gradient(transparent 58%, var(--odb-yellow) 58%, var(--odb-yellow) 92%, transparent 92%);
}
.odb-card__hours + .odb-card__text--tight { margin-top: 2px; line-height: 1.24; }
.odb-card:has(.odb-card__hours) .odb-card__title { margin-top: 0; }

/* Blue brush stroke along the bottom */
.odb__brush {
  position: absolute; left: 0; bottom: 0;
  display: block; width: 100%; height: 24px;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .odb__btn, .odb__btn svg, .odb-card__media img { transition: none; }
  .odb__btn:hover, .odb__btn:hover svg, .odb-card:hover .odb-card__media img { transform: none; }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1180px) {
  .odb__cards { padding: 0; gap: 10px; }
  .odb__visual { margin-right: 0; }
  .odb-card__title { font-size: 17px; }
  .odb-card__text { font-size: 14.5px; }
}

/* ---------- Tablet: intro over image, cards 3 + 2 ---------- */
@media (max-width: 960px) {
  .odb { padding-bottom: 48px; }
  .odb__title { white-space: normal; }
  .odb__palm { width: 96px; left: -30px; }
  .odb__top { grid-template-columns: 1fr; min-height: 0; }
  .odb__intro { padding: 36px 8px 24px 40px; }
  .odb__visual {
    margin: 0 calc(-1 * var(--odb-gutter));
    min-height: 0;
    aspect-ratio: 16 / 7.4;
  }
  .odb__visual img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%);
            mask-image: linear-gradient(180deg, transparent 0, #000 14%);
  }
  .odb__cards {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 14px; margin-top: -26px;
  }
  .odb-card { flex: 0 1 calc((100% - 28px) / 3); }
}

/* ---------- Mobile: 2 per row, last card centred ---------- */
@media (max-width: 640px) {
  .odb__inner { --odb-gutter: 16px; }
  .odb__palm { display: none; }
  .odb__intro { padding: 30px 0 22px; }
  .odb__eyebrow { font-size: 13px; }
  .odb__text { font-size: 15.5px; }
  .odb__text br { display: none; }
  .odb__btn { font-size: 16px; }
  .odb__visual { aspect-ratio: 4 / 3; }
  .odb__visual img { object-position: 72% 50%; }
  .odb__cards { gap: 10px; margin-top: -20px; }
  .odb-card { flex-basis: calc((100% - 10px) / 2); }
  .odb-card__icon { width: 58px; height: 58px; margin-top: -32px; }
  .odb-card__icon svg { width: 34px; height: 34px; }
  .odb-card__body { padding: 0 8px 16px; }
  .odb-card__title { font-size: 16px; }
  .odb-card__text { font-size: 13.5px; }
}
