/* ==========================================================================
   O'Dance Holiday — Crète 2027 · Tarifs & Réservations (tarifs.html). Scoped under .odtr.
   ========================================================================== */
@font-face { font-family: "ODTR Montserrat"; src: url("fonts/montserrat.woff") format("woff"); font-weight: 100 900; font-display: swap; }

.odtr {
  --odtr-navy: #0b2f7d;
  --odtr-navy-2: #0a44a8;
  --odtr-yellow: #fdd535;
  --odtr-pink: #ee2f9b;
  --odtr-text: #1a2f63;
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: 30px 30px;
  padding-inline: clamp(16px, 4vw, 48px);
  font-family: "ODTR Montserrat", system-ui, sans-serif;
  color: var(--odtr-text);
  background:
    radial-gradient(60% 40% at 85% 12%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(45% 30% at 10% 70%, rgba(255, 255, 255, .25), transparent 70%),
    radial-gradient(70% 45% at 70% 95%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(180deg, #1683e8 0%, #2b98ef 45%, #6dc0f6 100%);
}
.odtr *, .odtr *::before, .odtr *::after { box-sizing: border-box; }
.odtr :where(h1, h2, p, ul) { margin: 0; padding: 0; }
.odtr ul { list-style: none; }
.odtr__inner { max-width: 1180px; margin: 0 auto; }

.odtr__head { text-align: center; color: #fff; }
.odtr__title {
  font-weight: 900; font-size: clamp(32px, 5vw, 64px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 40, 120, .25); text-wrap: balance;
}
.odtr__title::after { content: ""; display: block; width: 120px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--odtr-pink); }
.odtr__subtitle { margin-top: 12px; font-weight: 500; font-size: clamp(16px, 1.9vw, 24px); line-height: 1.35; }

/* ---------- Cards ---------- */
.odtr-grid {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch;
}
.odtr-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f4f9ff 100%);
  box-shadow: 0 16px 36px rgba(4, 45, 120, .2);
}
.odtr-card--featured {
  background: linear-gradient(180deg, #fff3b0 0%, #fff8d9 26%, #fffdf3 100%);
  border: 4px solid var(--odtr-yellow);
  padding-top: 30px;
  box-shadow: 0 18px 40px rgba(4, 45, 120, .26), 0 0 0 1px rgba(255, 255, 255, .4);
}
.odtr-card__badge {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  padding: 8px 26px; border-radius: 999px;
  background: linear-gradient(180deg, #0e4fb8, var(--odtr-navy));
  border: 3px solid var(--odtr-pink);
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(4, 45, 120, .25);
}
.odtr-card__name { font-weight: 800; font-size: clamp(20px, 2vw, 27px); line-height: 1.1; text-transform: uppercase; color: var(--odtr-navy); }
.odtr-card__price { margin-top: 10px; color: var(--odtr-navy); line-height: 1; white-space: nowrap; }
.odtr-card__amount { font-weight: 900; font-size: clamp(56px, 6.4vw, 86px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.odtr-card__cur { font-weight: 900; font-size: clamp(44px, 5vw, 68px); }
.odtr-card__price::after { content: ""; display: block; width: 110px; height: 4px; margin: 12px auto 0; border-radius: 2px; background: var(--odtr-yellow); }
.odtr-card--featured .odtr-card__price::after { width: 80px; }
.odtr-card__room { margin-top: 12px; font-weight: 500; font-size: 18px; color: var(--odtr-text); }

.odtr-card__details {
  width: 100%; margin: 18px 0; padding: 16px 16px; border-radius: 12px;
  background: rgba(219, 234, 252, .55);
  display: grid; gap: 12px; text-align: left; flex: 1; align-content: center;
}
.odtr-card--featured .odtr-card__details { background: rgba(255, 236, 170, .45); }
.odtr-card__row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; font-size: 16px; line-height: 1.35; font-weight: 500; }
.odtr-card__row.is-strong { font-weight: 700; }
.odtr-card__ico { width: 30px; height: 30px; color: var(--odtr-navy); }
.odtr-card__ico svg { width: 100%; height: 100%; display: block; }

.odtr-card__btn {
  margin-top: auto; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 20px; border-radius: 12px;
  background: linear-gradient(180deg, #1152c4 0%, var(--odtr-navy) 100%);
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: 19px; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 5px 0 var(--odtr-pink), 0 12px 22px rgba(4, 45, 120, .25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.odtr-card__btn svg { width: 13px; height: 13px; flex: none; transition: transform .15s ease; }
.odtr-card__btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 7px 0 var(--odtr-pink), 0 16px 26px rgba(4, 45, 120, .3); }
.odtr-card__btn:hover svg { transform: translateX(3px); }
.odtr-card__btn:focus-visible { outline: 3px solid var(--odtr-yellow); outline-offset: 4px; }

/* ---------- Info strip ---------- */
.odtr-strip {
  margin-top: 22px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 10px; border-radius: 16px;
  background: rgba(235, 245, 255, .88);
  box-shadow: 0 10px 26px rgba(4, 45, 120, .14);
}
.odtr-strip__item { display: flex; align-items: center; gap: 14px; padding: 6px 16px; font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--odtr-navy); }
.odtr-strip__item + .odtr-strip__item { border-left: 1.5px solid rgba(11, 47, 125, .18); }
.odtr-strip__ico { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--odtr-yellow); color: var(--odtr-navy); box-shadow: 0 4px 10px rgba(180, 140, 0, .25); }
.odtr-strip__ico svg { width: 28px; height: 28px; }

.odtr__foot { margin-top: 16px; text-align: center; color: #fff; font-size: 14px; letter-spacing: .06em; opacity: .95; }

/* ---------- Room selector: CHAMBRE DOUBLE / CHAMBRE SINGLE ---------- */
.odtr-rooms {
  margin: 18px auto 0; width: max-content; max-width: 100%;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .28); border: 1.5px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 22px rgba(4, 45, 120, .16);
}
.odtr-rooms[hidden] { display: none; }
.odtr-rooms__tab {
  min-height: 48px; padding: 10px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--odtr-navy);
  font: 800 16px/1.1 "ODTR Montserrat", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.odtr-rooms__tab:hover { background: #eef4fc; }
.odtr-rooms__tab[aria-selected="true"] {
  background: linear-gradient(180deg, #1152c4 0%, var(--odtr-navy) 100%); color: #fff;
  box-shadow: 0 3px 0 var(--odtr-pink), 0 8px 16px rgba(4, 45, 120, .25);
}
.odtr-rooms__tab:focus-visible { outline: 3px solid var(--odtr-yellow); outline-offset: 3px; }
.odtr-rooms + #odtr-panel .odtr-grid { margin-top: 32px; }

/* ==========================================================================
   CHAMBRE SINGLE — colours of the single-room flyer (golden sky, cream strip,
   Early Bird with a yellow header band and a white arched body)
   ========================================================================== */
.odtr--single {
  background:
    radial-gradient(38% 22% at 12% 8%, rgba(255, 247, 228, .75), transparent 70%),
    radial-gradient(45% 26% at 88% 30%, rgba(255, 244, 222, .7), transparent 70%),
    radial-gradient(40% 25% at 20% 55%, rgba(255, 240, 210, .55), transparent 70%),
    radial-gradient(55% 30% at 75% 80%, rgba(255, 242, 216, .55), transparent 70%),
    radial-gradient(35% 20% at 45% 18%, rgba(236, 196, 140, .45), transparent 70%),
    linear-gradient(180deg, #fbe0b2 0%, #f6d5a5 40%, #f3cf9c 70%, #ebc895 100%);
}
.odtr--single .odtr__title { text-shadow: 0 2px 3px rgba(140, 85, 20, .35), 0 4px 18px rgba(140, 85, 20, .45); }
.odtr--single .odtr__title::after { background: #fd0bb4; }
.odtr--single .odtr__subtitle, .odtr--single .odtr__foot { text-shadow: 0 1px 2px rgba(120, 70, 10, .55), 0 2px 12px rgba(140, 85, 20, .55); }
.odtr--single .odtr__subtitle { font-weight: 600; }
.odtr--single .odtr-rooms { background: rgba(255, 250, 240, .45); border-color: rgba(255, 255, 255, .85); box-shadow: 0 8px 22px rgba(150, 100, 30, .18); }

.odtr--single .odtr-card { background: #fdfdfe; box-shadow: 0 16px 34px rgba(150, 100, 30, .2); }
.odtr--single .odtr-card__details { background: #e8f5fd; }
.odtr--single .odtr-card__room { color: #1d3f9a; }

.odtr--single .odtr-card--featured {
  --odtr-band: calc(38px + clamp(20px, 2vw, 27px) * 1.1);   /* yellow header band: ends just under the title */
  isolation: isolate;
  background: linear-gradient(180deg, #ffe45c 0%, #ffe86e 45%, #fff0a0 100%);
  border: 4px solid #fbd11a;
  box-shadow: 0 0 0 1px rgba(255, 233, 98, .9), 0 0 22px rgba(255, 214, 20, .55), 0 18px 38px rgba(150, 100, 30, .22);
}
.odtr--single .odtr-card--featured::before {           /* white arched body */
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 0; top: var(--odtr-band);
  background: #fffdf6;
  border-radius: 50% 50% 12px 12px / 24px 24px 12px 12px;
}
.odtr--single .odtr-card--featured .odtr-card__details { background: #fef1be; }
.odtr--single .odtr-card--featured .odtr-card__price { margin-top: 30px; }
.odtr--single .odtr-card__badge { border-color: #f03eb7; box-shadow: 0 0 0 2px rgba(255, 120, 210, .35), 0 0 16px rgba(240, 62, 183, .6), 0 6px 14px rgba(4, 45, 120, .25); }
.odtr--single .odtr-card__btn {
  background: linear-gradient(180deg, #0052bb 0%, #00317e 100%);
  box-shadow: 0 5px 0 #f03eb7, 0 8px 16px rgba(240, 62, 183, .35), 0 12px 22px rgba(4, 45, 120, .2);
}
.odtr--single .odtr-card__btn:hover { box-shadow: 0 7px 0 #f03eb7, 0 10px 20px rgba(240, 62, 183, .4), 0 16px 26px rgba(4, 45, 120, .25); }
.odtr--single .odtr-strip { background: rgba(253, 242, 222, .9); box-shadow: 0 10px 26px rgba(150, 100, 30, .16); }
.odtr--single .odtr-strip__item + .odtr-strip__item { border-left-color: rgba(10, 68, 168, .35); }
.odtr--single .odtr-strip__ico { background: radial-gradient(circle at 35% 30%, #ffee6b, #fdd535 70%); box-shadow: 0 4px 10px rgba(180, 120, 0, .28); }

@media (prefers-reduced-motion: reduce) { .odtr-card__btn, .odtr-card__btn svg { transition: none; } .odtr-card__btn:hover { transform: none; } .odtr-rooms__tab { transition: none; } }

/* Tablet: Early Bird full width on top, the two others side by side */
@media (max-width: 1120px) {
  .odtr-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
  .odtr-card--featured { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
  .odtr-strip { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .odtr-strip__item:nth-child(3) { border-left: 0; }
}
/* Mobile: one column */
@media (max-width: 620px) {
  .odtr { padding-block: 24px 24px; }
  .odtr-grid { grid-template-columns: 1fr; gap: 30px; }
  .odtr-card { padding: 24px 16px 20px; }
  .odtr-card__room { font-size: 17px; }
  .odtr-strip { grid-template-columns: 1fr; padding: 8px 6px; }
  .odtr-strip__item + .odtr-strip__item { border-left: 0; border-top: 1.5px solid rgba(11, 47, 125, .14); }
  .odtr-strip__item { padding: 10px 12px; }
  .odtr-strip__ico { width: 48px; height: 48px; }
  .odtr-strip__ico svg { width: 24px; height: 24px; }
}

/* Small phones: the two room tabs share the width */
@media (max-width: 520px) {
  .odtr-rooms { width: 100%; }
  .odtr-rooms__tab { padding: 10px 10px; font-size: 14px; letter-spacing: .05em; }
}
@media (max-width: 620px) { .odtr--single .odtr-card--featured { --odtr-band: calc(32px + clamp(20px, 2vw, 27px) * 1.1); } }

/* ---------- 4 tariffs: 4 in a row on wide screens, 2 + 2 below, 1 column on phones ---------- */
.odtr-card:not(:has(.odtr-card__details)) .odtr-card__room { margin-bottom: 18px; }
@media (min-width: 1240px) {
  .odtr:has(.odtr-grid--4) .odtr__inner { max-width: 1300px; }
  .odtr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .odtr-grid--4 .odtr-card { padding-inline: 16px; }
  .odtr-grid--4 .odtr-card__amount { font-size: clamp(50px, 4.3vw, 66px); }
  .odtr-grid--4 .odtr-card__cur { font-size: clamp(40px, 3.4vw, 52px); }
  .odtr-grid--4 .odtr-card__name { font-size: clamp(19px, 1.6vw, 23px); }
  .odtr-grid--4 .odtr-card--featured .odtr-card__name { font-size: clamp(16px, 1.35vw, 21px); white-space: nowrap; }
  .odtr--single .odtr-grid--4 .odtr-card--featured { --odtr-band: calc(38px + clamp(16px, 1.35vw, 21px) * 1.1); }
  .odtr-grid--4 .odtr-card__row { font-size: 15px; }
  .odtr-grid--4 .odtr-card__btn { font-size: 17px; letter-spacing: .06em; }
}
@media (min-width: 621px) and (max-width: 1239.98px) {
  .odtr-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 16px; }
  .odtr-grid--4 .odtr-card--featured { grid-column: auto; max-width: none; justify-self: stretch; }
}
