/* P, réserver : le vieux gréement collé en plein écran, le carré blanc du module monte par-dessus. */
.reserver { position: relative; background: var(--vert); padding-bottom: 40px; }
.reserver__photo { height: 40svh; min-height: 260px; }
.reserver__photo picture, .reserver__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.carre {
  position: relative;
  z-index: 2;
  margin: -48px 12px 0;
  padding: 24px 20px 28px;
  background: #fff;
  color: var(--encre);
}
.carre__titre { font-size: min(52px, 12.4vw); }
.carre__p { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--sur-blanc); }
.carre__p b { color: var(--encre); }
.carre__pav { width: 40px; flex: none; margin-top: 3px; overflow: visible; --lisere: rgb(12 27 34 / .3); }

.resa { margin-top: 8px; }
.resa__bloc { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.resa__lib { display: block; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.case {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  min-height: 56px;
  padding: 8px 12px;
  border: 2px solid rgb(12 27 34 / .16);
  background: #fff;
  color: var(--encre);
  text-align: left;
  line-height: 1.2;
  transition: background-color .15s, border-color .15s;
}
.case b { font-weight: 700; font-size: 16px; }
.case small { font-weight: 600; font-size: 14px; }
.case[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); }
.case[aria-disabled="true"] { cursor: not-allowed; border-color: rgb(12 27 34 / .07); }
.case[aria-disabled="true"] b { opacity: .4; }
@media (hover: hover) { .case:not([aria-pressed="true"]):not([aria-disabled="true"]):hover { border-color: var(--encre); } }
.case__reste { font-weight: 700 !important; }
.case__reste:empty { display: none; }

.resa__bateaux { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.resa__bateaux .case { min-height: 72px; }
.resa__nombre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.resa__nombre .resa__lib { margin: 0; }
.pas { display: flex; align-items: center; gap: 0; }
.pas button, .resa__heure button {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--encre);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.pas button:disabled, .resa__heure button:disabled { background: var(--vert-pale); color: var(--sur-vert); cursor: not-allowed; }
.pas output { min-width: 48px; text-align: center; font-weight: 700; font-size: 20px; }

.resa__jours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.case--jour { padding: 6px 8px; min-height: 56px; }
.case--autre select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.case--autre:focus-within { outline: 3px solid var(--encre); outline-offset: 3px; }

.resa__heure { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; }
.resa__heure select {
  height: 44px;
  border: 2px solid rgb(12 27 34 / .16);
  background: #fff;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  text-align-last: center;
}

.resa__durees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.resa__durees button { min-height: 60px; }

.resa__bilan { display: grid; gap: 6px; margin-top: 28px; }
.resa__retour { font-weight: 700; font-size: 17px; }
.resa__total strong {
  display: block;
  width: 5.2em;
  font: 900 52px/1 var(--titre);
  letter-spacing: -.01em;
}
.resa__detail, .resa__eco, .resa__caution { font-size: 15px; line-height: 1.4; }
.resa__eco:empty { display: none; }
.resa__bilan .guidon { margin-top: 14px; }
.resa__statut { font-weight: 600; font-size: 15px; }
.resa__statut:empty { display: none; }

.maree { margin-top: 36px; }
.maree__titre { font-weight: 700; font-size: 15px; }
.maree__trace { margin-top: 10px; }
.maree__trace svg { width: 100%; height: auto; overflow: visible; }
.m-eau { fill: var(--vert-pale); }
.m-creneau { fill: var(--vert); }
.m-courbe { fill: none; stroke: var(--encre); stroke-width: 2.5; }
.m-lbl { font: 700 13px var(--texte); fill: var(--encre); }
.m-axe, .m-pm { font: 600 12px var(--texte); fill: var(--encre); }
.maree__phrase { margin-top: 10px; font-weight: 600; font-size: 15px; }
.maree__source { margin-top: 6px; font-size: 14px; line-height: 1.4; max-width: 32em; }

@media (min-width: 700px) and (max-width: 1099px) {
  .carre { margin-inline: auto; max-width: 560px; }
}
@media (min-width: 1100px) {
  .reserver {
    display: grid;
    grid-template-columns: calc(var(--marge) - var(--gout)) repeat(12, minmax(0, 1fr)) calc(var(--marge) - var(--gout));
    column-gap: var(--gout);
    padding: 0;
    background: var(--encre);
  }
  .reserver__photo {
    grid-column: 1 / -1;
    grid-row: 1;
    position: sticky;
    top: 0;
    height: 100svh;
    align-self: start;
  }
  .reserver__photo img { object-position: 46% 70%; }
  .carre {
    grid-column: 10 / 14;
    grid-row: 1;
    margin: 140svh 0 18svh;
    padding: 24px;
    box-shadow: 0 30px 60px -30px rgb(12 27 34 / .55);
  }
  .carre__titre { font-size: clamp(40px, 3.6vw, 72px); }
  .resa__total strong { font-size: clamp(48px, 4.4vw, 84px); }
}
@media (min-width: 1440px) { .carre { padding: 32px; } }
