/* ============================================================
   Fully's Lake — Page « Réservation »
   Système de disponibilité (postes × semaines)
   ============================================================ */

.resa-band { padding: 60px 0 96px; background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%); }
.resa-grid {
  max-width: 1216px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 372px; gap: 32px; align-items: start;
}

/* ---------- Colonne principale ---------- */
.resa-main { display: flex; flex-direction: column; gap: 28px; }
.resa-step {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 24px;
  box-shadow: var(--shadow-card); padding: 32px 34px;
}
.resa-step .step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.resa-step .step-num {
  width: 34px; height: 34px; border-radius: 9999px; flex: none;
  background: var(--lake); color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.resa-step h3 { font-size: 22px; font-weight: 700; color: var(--ink); }
.resa-step .step-sub { font-size: 14px; color: var(--gray-600); margin: 4px 0 24px 48px; }
.resa-step .step-sub a { color: var(--lake); font-weight: 600; text-decoration: underline; }

/* étape 1 : type de séjour */
.stay-types { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stay-type {
  border: 2px solid var(--gray-100); border-radius: 16px; padding: 20px 22px;
  cursor: pointer; transition: border-color .15s, background .15s;
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
}
.stay-type:hover { border-color: var(--sky-400); }
.stay-type.active { border-color: var(--lake); background: var(--sky-100); }
.stay-type .st-ic { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--sky-100); color: var(--lake); display: flex; align-items: center; justify-content: center; }
.stay-type.active .st-ic { background: var(--lake); color: #fff; }
.stay-type h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.stay-type p { font-size: 13px; color: var(--gray-600); }

/* ---------- Grille de disponibilité ---------- */
.avail-head { text-align: center; margin-bottom: 18px; }
.avail-head .pref { font-size: 14px; color: var(--gray-600); }
.avail-head .pref b { color: var(--ink); }
.week-nav {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  margin-top: 14px;
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 9999px;
  padding: 8px 10px; width: fit-content; margin-left: auto; margin-right: auto;
}
.week-nav .yr { font-weight: 700; color: var(--ink); font-size: 15px; padding: 0 12px; }
.week-nav button {
  width: 32px; height: 32px; border-radius: 9999px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); background: #fff; border: 1px solid var(--gray-100);
}
.week-nav button:hover { background: var(--gold); color: #fff; }
.week-nav .weeks { display: flex; gap: 0; }
.week-nav .weeks span { width: 84px; text-align: center; font-weight: 600; font-size: 14px; color: var(--ink-700); }

.avail-table { margin-top: 8px; }
.avail-section-label { font-size: 18px; font-weight: 700; color: var(--ink); margin: 22px 0 12px; }
.avail-row {
  display: grid; grid-template-columns: 168px repeat(5, 1fr); gap: 0;
  align-items: center; border-top: 1px solid var(--gray-100);
}
.avail-row:last-child { border-bottom: 1px solid var(--gray-100); }
.avail-row .poste-label { padding: 12px 14px 12px 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.avail-row .poste-label .pl-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.avail-row .poste-label .pl-name .copy { color: var(--gray-400); width: 14px; height: 14px; }
.avail-row .poste-label .pl-cap { font-size: 12px; color: var(--gray-600); }
.avail-row .poste-label .lake-ico { width: 40px; height: 26px; color: var(--lake); }

.cell-wrap { padding: 6px; display: flex; align-items: center; justify-content: center; }
.cell {
  width: 100%; max-width: 70px; aspect-ratio: 1; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: transform .12s, box-shadow .12s;
}
.cell.unavail { background: #fde3e3; color: #e06464; cursor: not-allowed; }
.cell.unavail .svg-icon { width: 16px; height: 16px; }
.cell.avail {
  background: #eaf3f4; color: var(--lake); cursor: pointer;
  box-shadow: inset 0 0 0 1px #cfe3e6;
}
.cell.avail:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--lake); }
.cell.avail .box { width: 18px; height: 18px; border: 2px solid var(--lake); border-radius: 5px; background: #fff; }
.cell.avail.selected { background: var(--lake); box-shadow: 0 8px 16px -6px rgba(25,87,115,.6); }
.cell.avail.selected .box { background: var(--lake); border-color: #fff; position: relative; }
.cell.avail.selected .box::after { content: ""; position: absolute; inset: 2px; border-radius: 2px; background: #fff; clip-path: polygon(14% 47%, 0 61%, 40% 100%, 100% 22%, 86% 9%, 39% 70%); }

/* ---------- Panneau récap ---------- */
.resa-aside { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 18px; }
.resa-summary {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 24px;
  box-shadow: var(--shadow-soft); padding: 30px 28px; text-align: center;
}
.resa-summary h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 22px; }
.summary-box {
  background: var(--sky-100); border-radius: 14px; padding: 22px 20px;
  font-size: 15px; line-height: 23px; color: var(--ink-800); text-align: left;
}
.summary-box.empty { background: #eef6ee; color: var(--gray-600); }
.summary-box .sb-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary-box .sb-line b { color: var(--ink); font-weight: 700; }
.summary-box .sb-line + .sb-line { border-top: 1px dashed rgba(0,0,0,.08); }
.resa-summary .btn-lake { width: 100%; margin-top: 22px; }
.resa-summary .btn-lake[disabled] { opacity: .5; pointer-events: none; }
.resa-summary .secure { margin-top: 14px; font-size: 12px; color: var(--gray-600); display: flex; align-items: center; gap: 7px; justify-content: center; }
.resa-summary .secure .svg-icon { width: 13px; height: 13px; color: var(--green); }

.help-card {
  background: var(--lake-700); color: #fff; border-radius: 20px; padding: 24px 26px;
}
.help-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.help-card p { font-size: 13px; line-height: 20px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
.help-card a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #fff; }
.help-card a .svg-icon { width: 14px; height: 14px; color: var(--sky-400); }

/* légende */
.legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; justify-content: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); }
.legend .sw { width: 18px; height: 18px; border-radius: 5px; }
.legend .sw.av { background: #eaf3f4; box-shadow: inset 0 0 0 1px #cfe3e6; }
.legend .sw.un { background: #fde3e3; }
.legend .sw.se { background: var(--lake); }

/* ---------- Étape options ---------- */
.resa-options { display: flex; flex-direction: column; gap: 10px; }
.opt-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--gray-100); border-radius: 12px; padding: 12px 16px; cursor: pointer;
}
.opt-row:hover { border-color: var(--sky-400); }
.opt-row input { width: 18px; height: 18px; accent-color: var(--lake); }
.opt-row .opt-name { flex: 1; font-size: 15px; color: var(--ink); }
.opt-row .opt-name small { color: var(--gray-600); font-weight: 400; }
.opt-row .opt-price { font-weight: 700; color: var(--lake); font-size: 14px; }

/* ---------- Étape coordonnées ---------- */
.resa-fields { display: flex; flex-direction: column; gap: 14px; }
.resa-fields label { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.resa-fields input, .resa-fields textarea {
  font: inherit; font-weight: 400; padding: 11px 14px;
  border: 1px solid var(--gray-100); border-radius: 10px; background: #fff; color: var(--ink);
}
.resa-fields input:focus, .resa-fields textarea:focus { outline: none; border-color: var(--lake); }
.resa-fields .req { color: #e06464; }
.resa-fields input.field-invalid, .resa-fields textarea.field-invalid {
  border-color: #e06464;
  box-shadow: 0 0 0 3px rgba(224,100,100,.14);
}
.fields-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .fields-duo { grid-template-columns: 1fr; } }

/* ---------- Bloc « deuxième pêcheur » ---------- */
.p2-block { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--gray-100); }
.p2-block .p2-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.p2-block .p2-title .svg-icon, .p2-block .p2-title i { color: var(--lake); }
.p2-block .step-sub { margin-bottom: 12px; }

/* ---------- Choix de paiement (récap) ---------- */
.resa-pay { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; text-align: left; }
.pay-opt {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink);
  border: 1px solid var(--gray-100); border-radius: 10px; padding: 10px 14px; cursor: pointer;
}
.pay-opt input { accent-color: var(--lake); }
.pay-opt b { margin-left: auto; color: var(--lake); }
.summary-box .sb-total { margin-top: 6px; border-top: 1px solid rgba(0,0,0,.12) !important; font-size: 16px; }
.summary-box .sb-opt b { color: var(--gold); }
.resa-error { margin-top: 12px; font-size: 13px; color: #c0392b; font-weight: 600; }

/* ---------- Écran de confirmation (retour de paiement) ---------- */
.resa-grid.is-confirm { display: block; }
.resa-confirm {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 24px;
  box-shadow: var(--shadow-card); padding: 44px 40px;
  max-width: 560px; margin: 10px auto; text-align: center;
}
.resa-confirm .rc-ic { font-size: 54px; line-height: 1; margin-bottom: 18px; }
.resa-confirm .rc-ic .svg-icon { width: 54px; height: 54px; }
.resa-confirm.ok .rc-ic { color: var(--green); }
.resa-confirm.cancel .rc-ic { color: #e06464; }
.resa-confirm h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.resa-confirm.ok h3 { color: var(--green); }
.resa-confirm p { color: var(--gray-600); margin-bottom: 14px; }
.resa-confirm .rc-sub { font-size: 14px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .04em; margin: 26px 0 12px; }
.resa-confirm .summary-box.recap { text-align: left; background: var(--sky-100); }
.resa-confirm .rc-actions { margin-top: 26px; margin-bottom: 0; }
.resa-confirm .rc-actions .btn-lake { display: inline-flex; }

/* ---------- Mode « dernière minute » (dates libres + postes) ---------- */
.lm-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 4px; }
.lm-dates .field { display: flex; flex-direction: column; gap: 8px; }
.lm-dates label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--lake); }
.lm-dates .control { height: 50px; border-radius: 10px; border: 1px solid var(--gray-200); background: #fff; padding: 0 16px; font-size: 15px; color: var(--ink-700); font-family: inherit; display: flex; align-items: center; width: 100%; }
.lm-msg { margin: 10px 0 0; font-size: 14px; color: #c0392b; font-weight: 600; }
#lmPostes { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lm-poste { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--gray-100); border-radius: 12px; padding: 14px 16px; background: #fff; cursor: pointer; font-family: inherit; }
.lm-poste:hover:not(.unavail) { border-color: var(--sky-400); }
.lm-poste.selected { border-color: var(--lake); background: var(--sky-100); }
.lm-poste .lm-p-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.lm-poste .lm-p-cap { font-size: 13px; color: var(--gray-600); }
.lm-poste .lm-p-state { font-size: 13px; font-weight: 600; color: var(--lake); display: inline-flex; align-items: center; gap: 6px; }
.lm-poste.unavail { opacity: .55; cursor: not-allowed; }
.lm-poste.unavail .lm-p-state { color: #c0392b; }

/* ---------- Intro centrée (locale, car pages.css non chargé ici) ---------- */
.lead-band { padding: 56px var(--pad) 26px; text-align: center; }
.lead-band .eyebrow { display: block; margin-bottom: 14px; }
.lead-band h2 { font-size: 40px; font-weight: 700; color: var(--ink); margin-bottom: 16px; line-height: 1.1; }
.lead-band p { font-size: 18px; line-height: 29px; color: var(--gray-600); max-width: 760px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .resa-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .resa-main { min-width: 0; }              /* autorise la colonne à rétrécir */
  .resa-aside { position: static; }
  .stay-types { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lead-band { padding: 44px 20px 18px; }
  .lead-band h2 { font-size: 28px; }
  .lead-band p { font-size: 16px; line-height: 25px; }
  .resa-band { padding: 40px 0 64px; }
  .resa-grid { gap: 20px; padding: 0 14px; }
  .resa-main { gap: 18px; }
  .resa-step { padding: 22px 16px; border-radius: 20px; }
  .resa-step h3 { font-size: 18px; line-height: 1.25; }
  .resa-step .step-head { gap: 10px; }
  .resa-step .step-sub { margin-left: 0; }
  .stay-type { padding: 16px; }

  /* Nav semaines : pleine largeur, répartie, jamais plus large que l'écran */
  .week-nav { width: auto; gap: 6px; padding: 7px 8px; justify-content: space-between; }
  .week-nav .yr { padding: 0 6px; font-size: 14px; }
  .week-nav button { width: 30px; height: 30px; }
  .week-nav .weeks { flex: 1; gap: 2px; justify-content: space-around; }
  .week-nav .weeks span { flex: 1; width: auto; font-size: 12px; }

  /* Grille : label compact + colonnes qui rétrécissent (minmax 0) */
  .avail-row { grid-template-columns: 84px repeat(5, minmax(0, 1fr)); }
  .avail-row .poste-label { padding: 10px 8px 10px 0; }
  .avail-row .poste-label .pl-name { font-size: 12.5px; gap: 6px; }
  .avail-row .poste-label .pl-name .copy { display: none; }
  .avail-row .poste-label .pl-cap { font-size: 11px; }
  .avail-row .poste-label .lake-ico { width: 30px; height: 20px; }
  .cell-wrap { padding: 4px; }
  .cell { max-width: 46px; border-radius: 8px; font-size: 15px; }
  .cell.avail .box { width: 15px; height: 15px; }
  .avail-section-label { font-size: 16px; margin: 16px 0 8px; }
  .legend { gap: 14px; }
  .resa-summary { padding: 26px 20px; }
  .help-card { padding: 22px; }
}
@media (max-width: 400px) {
  .resa-grid { padding: 0 10px; }
  .avail-row { grid-template-columns: 62px repeat(5, minmax(0, 1fr)); }
  .avail-row .poste-label .pl-name { font-size: 11.5px; }
  .week-nav .weeks span { font-size: 11px; }
  .cell { max-width: 40px; }
}

/* ---------- FAQ (accordéon natif <details>, sans JS) ---------- */
.faq-band { padding: 76px var(--pad) 96px; background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%); }
.faq-head { text-align: center; max-width: 820px; margin: 0 auto 42px; }
.faq-head .eyebrow { display: block; margin-bottom: 14px; }
.faq-head h2 { font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.1; margin-bottom: 16px; }
.faq-head p { font-size: 17px; line-height: 28px; color: var(--gray-600); }

.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1.5px solid var(--gray-100); border-radius: 18px;
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--sky-400); }
.faq-item[open] { border-color: var(--lake); box-shadow: var(--shadow-soft); }

.faq-item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  transition: background .18s ease;
}
.faq-item:not([open]) summary:hover { background: var(--sky-100); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--lake); outline-offset: -2px; border-radius: 18px; }
.faq-item h3 { font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--ink); }
.faq-item[open] h3 { color: var(--lake); }

/* Signe +/− dessiné en CSS (aucune icône à charger) */
.faq-sign { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-100); margin-top: 1px; }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  background: var(--lake); border-radius: 2px;
}
.faq-sign::before { width: 12px; height: 2px; }
.faq-sign::after { width: 2px; height: 12px; transition: transform .2s ease, opacity .2s ease; }
.faq-item[open] .faq-sign { background: var(--lake); }
.faq-item[open] .faq-sign::before { background: #fff; }
.faq-item[open] .faq-sign::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }

.faq-a { margin: 0 24px; padding: 16px 0 22px; border-top: 1px dashed var(--gray-100); animation: faq-reveal .22s ease both; }
.faq-a p { font-size: 15px; line-height: 26px; color: var(--gray-600); max-width: 68ch; }
.faq-a p + p { margin-top: 12px; }
.faq-a b { color: var(--ink); font-weight: 700; }
.faq-a a { color: var(--lake); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@keyframes faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-a { animation: none; } }

.faq-more {
  display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap;
  max-width: 900px; margin: 30px auto 0; font-size: 15px; color: var(--gray-600);
}
.faq-more .svg-icon { width: 15px; height: 15px; color: var(--lake); }
.faq-more a { color: var(--lake); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 760px) {
  .faq-band { padding: 48px 20px 62px; }
  .faq-head { margin-bottom: 28px; }
  .faq-head h2 { font-size: 28px; }
  .faq-head p { font-size: 15px; line-height: 25px; }
  .faq-item summary { padding: 16px 18px; gap: 12px; }
  .faq-item h3 { font-size: 15.5px; }
  .faq-a { margin: 0 18px; padding: 14px 0 18px; }
  .faq-a p { font-size: 14.5px; line-height: 24px; }
  .faq-more { font-size: 14px; }
}
