/* Hunawé — demande de réservation.
   Le bouton « Réserver » et la fenêtre de demande, dans le vocabulaire du
   site : bleu « eau » des boutons primaires, papier, encre nuit, kicker à
   pastille « feu », note manuscrite. Les teintes, polices et rayons sont
   lus dans les variables du site (--eau, --papier, --serif, --r-md…) ; les
   valeurs écrites ici ne servent que de repli, sur une page qui ne charge
   pas la feuille de base.

   La couleur du bouton se change dans Réservations → Réglages, ou ici :
     .hw-resa-btn, .hw-resa { --hw-resa-accent: #5D92B3; } */

.hw-resa-btn,
.hw-resa {
  --hw-resa-accent: var(--eau, #5D92B3);
  --hw-resa-accent-texte: var(--eau-texte, #3E6E8C);
  --hw-resa-encre: var(--encre, #14242B);
  --hw-resa-papier: var(--papier, #FBFAF6);
  --hw-resa-pierre: var(--pierre, #F2F1EA);
  --hw-resa-glace: var(--glace, #DCEAF0);
  --hw-resa-feu: var(--feu, #D18D60);
  --hw-resa-alerte: #A23F33;
  --hw-resa-trait: rgba(20, 36, 43, .18);
  --hw-resa-titres: var(--serif, "Fraunces", Georgia, serif);
  --hw-resa-sans: var(--sans, "Space Grotesk", Arial, sans-serif);
  --hw-resa-main: var(--main, "Caveat", cursive);
}

/* ---- le bouton : le bouton primaire du site ----------------------------- */

a.hw-resa-btn,
button.hw-resa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 46px;
  margin: 4px 0 2px;
  padding: 12px 22px;
  border: 1px solid rgba(4, 14, 20, .2);
  border-radius: var(--r-md, 12px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hw-resa-accent) 88%, #fff) 0%, var(--hw-resa-accent) 52%, color-mix(in srgb, var(--hw-resa-accent) 86%, #04202e) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 2px 4px rgba(4, 14, 20, .2), 0 10px 22px rgba(4, 14, 20, .14);
  color: #fff;
  font-family: var(--hw-resa-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .012em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
a.hw-resa-btn:hover,
button.hw-resa-btn:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 6px rgba(4, 14, 20, .24), 0 16px 30px rgba(4, 14, 20, .2);
}
a.hw-resa-btn:active,
button.hw-resa-btn:active { transform: translateY(1px); }
.hw-resa-btn > span { display: inline-block; transition: transform .28s cubic-bezier(.22, .7, .25, 1); }
.hw-resa-btn:hover > span { transform: translateX(3px); }
.hw-resa-btn:focus-visible { outline: 3px solid rgba(142, 184, 206, .65); outline-offset: 3px; }
.hw-resa-btn--large { min-height: 52px; padding: 15px 28px; }
.hw-resa-btn--plein { display: flex; width: 100%; align-self: stretch; }

/* ---- la fenêtre : la même feuille que « Petit détour avant le départ » -- */

html.hw-resa-ouverte { overflow: hidden; }

dialog.hw-resa--fenetre {
  width: min(640px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-xl, 24px);
  background: transparent;
  color: var(--hw-resa-encre);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: var(--ombre-3, 0 4px 8px rgba(6, 18, 24, .16), 0 34px 80px rgba(6, 18, 24, .28));
}
dialog.hw-resa--fenetre::backdrop { background: rgba(9, 24, 31, .76); backdrop-filter: blur(10px); }
dialog.hw-resa--fenetre[open] { animation: hw-resa-entree .25s ease-out; }
@keyframes hw-resa-entree { from { opacity: 0; transform: translateY(14px) scale(.985); } }

.hw-resa--page { max-width: 680px; margin: 2rem auto; color: var(--hw-resa-encre); }

.hw-resa .hw-resa-feuille {
  position: relative;
  box-sizing: border-box;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(20, 36, 43, .12);
  border-radius: var(--r-xl, 24px);
  background: radial-gradient(circle at 94% 5%, rgba(93, 146, 179, .12), transparent 34%), var(--hw-resa-papier);
  font-family: var(--hw-resa-sans);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
.hw-resa *, .hw-resa *::before, .hw-resa *::after { box-sizing: border-box; }
.hw-resa [hidden] { display: none !important; }

.hw-resa .hw-resa-fermer {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(20, 36, 43, .14);
  border-radius: var(--r-sm, 10px);
  background: rgba(20, 36, 43, .02);
  color: var(--hw-resa-encre);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .22s ease;
}
.hw-resa .hw-resa-fermer:hover { background: rgba(20, 36, 43, .07); }

.hw-resa .hw-resa-tete { margin: 0 52px 24px 0; }
.hw-resa .hw-resa-sur {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 0;
  color: var(--hw-resa-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hw-resa .hw-resa-sur::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hw-resa-feu);
  box-shadow: 0 0 0 5px rgba(209, 141, 96, .14);
}
.hw-resa .hw-resa-titre {
  margin: 0;
  padding: 0;
  color: var(--hw-resa-encre);
  font-family: var(--hw-resa-titres);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.018em;
  text-transform: none;
  text-wrap: balance;
}
.hw-resa .hw-resa-faits { margin: 10px 0 0; padding: 0; color: rgba(20, 36, 43, .72); font-size: 14px; }
.hw-resa .hw-resa-faits:empty { display: none; }

/* ---- les champs : ceux du formulaire « Parler d'un projet » ------------- */

.hw-resa .hw-resa-form { margin: 0; padding: 0; }
/* Six colonnes : un champ en occupe trois (deux par ligne), le départ quatre et les participants deux. */
.hw-resa .hw-resa-champs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; margin: 0; }
.hw-resa .hw-resa-champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; grid-column: span 3; }
.hw-resa .hw-resa-champ[data-hw-resa-zone="depart"] { grid-column: span 4; }
.hw-resa .hw-resa-champ--court { grid-column: span 2; }
.hw-resa .hw-resa-champ--large,
.hw-resa .hw-resa-accord,
.hw-resa .hw-resa-note { grid-column: 1 / -1; }

.hw-resa label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--hw-resa-encre);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
}
.hw-resa label em { color: rgba(20, 36, 43, .55); font-style: normal; font-weight: 400; }
.hw-resa label em::before { content: "· "; }

.hw-resa input[type="text"],
.hw-resa input[type="email"],
.hw-resa input[type="tel"],
.hw-resa input[type="number"],
.hw-resa select,
.hw-resa textarea {
  display: block;
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--hw-resa-trait);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  color: var(--hw-resa-encre);
  font: inherit;
  font-size: 16px;      /* 16 px au moins : pas de zoom forcé sur iPhone */
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hw-resa textarea { min-height: 96px; resize: vertical; }
.hw-resa select { padding-right: 30px; cursor: pointer; }
.hw-resa input::placeholder,
.hw-resa textarea::placeholder { color: rgba(20, 36, 43, .45); }
.hw-resa input:focus,
.hw-resa select:focus,
.hw-resa textarea:focus { outline: none; border-color: var(--hw-resa-accent); box-shadow: 0 0 0 3px rgba(142, 184, 206, .45); }
.hw-resa button:focus-visible,
.hw-resa a:focus-visible { outline: 3px solid rgba(142, 184, 206, .65); outline-offset: 3px; }
.hw-resa select:disabled { opacity: .6; cursor: default; }

.hw-resa .hw-resa-note {
  margin: -4px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(93, 146, 179, .22);
  border-radius: var(--r-sm, 10px);
  background: rgba(220, 234, 240, .42);
  color: var(--hw-resa-encre);
  font-size: 14px;
  line-height: 1.55;
}

/* Le champ piège : hors écran, jamais visible, jamais au clavier. */
.hw-resa .hw-resa-piege { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hw-resa .hw-resa-accord { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 0; padding: 0; flex-wrap: wrap; }
.hw-resa .hw-resa-accord input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hw-resa-accent); }
.hw-resa .hw-resa-accord label { flex: 1; min-width: 0; color: rgba(20, 36, 43, .78); font-size: 13px; font-weight: 400; line-height: 1.55; }
.hw-resa .hw-resa-accord a { color: var(--hw-resa-accent-texte); text-decoration: underline; text-underline-offset: 3px; }

/* ---- le trajet d'une demande : vous → Hunawé → VoyageFrance ------------- */

.hw-resa .hw-resa-trajet {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(93, 146, 179, .2);
  border-radius: var(--r-sm, 10px);
  background: rgba(220, 234, 240, .42);
  list-style: none;
}
.hw-resa .hw-resa-trajet li { display: grid; gap: 3px; margin: 0; padding: 0; text-align: center; }
.hw-resa .hw-resa-trajet strong { font-family: var(--hw-resa-titres); font-size: 16px; font-weight: 600; line-height: 1.15; }
.hw-resa .hw-resa-trajet small { color: rgba(20, 36, 43, .64); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.hw-resa .hw-resa-trajet .hw-resa-fleche { color: var(--hw-resa-feu); font-size: 18px; }

/* Qui porte le séjour : l'opérateur immatriculé, comme une garantie cochée. */
.hw-resa .hw-resa-porteur { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 12px 0 0; padding: 12px 14px; border: 1px solid rgba(20, 36, 43, .11); border-radius: var(--r-sm, 10px); background: rgba(243, 241, 234, .68); color: var(--hw-resa-encre); font-size: 13.5px; line-height: 1.55; }
.hw-resa .hw-resa-coche { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(93, 146, 179, .4); border-radius: 50%; color: var(--hw-resa-accent-texte); font-size: 13px; font-weight: 800; line-height: 1; }

.hw-resa .hw-resa-mention { margin: 14px 0 0; padding: 0; color: rgba(20, 36, 43, .66); font-size: 13px; line-height: 1.6; }

.hw-resa .est-faux input,
.hw-resa .est-faux select,
.hw-resa .est-faux textarea { border-color: var(--hw-resa-alerte); }
.hw-resa .hw-resa-aide { flex-basis: 100%; color: var(--hw-resa-alerte); font-size: 13px; font-weight: 600; }
.hw-resa .hw-resa-erreur {
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(162, 63, 51, .28);
  border-radius: var(--r-sm, 10px);
  background: rgba(241, 229, 222, .82);
  color: var(--hw-resa-alerte);
  font-size: 14px;
  font-weight: 600;
}

.hw-resa .hw-resa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 0; padding: 0; }
.hw-resa .hw-resa-envoyer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 28px;
  border: 1px solid rgba(4, 14, 20, .2);
  border-radius: var(--r-md, 12px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hw-resa-accent) 88%, #fff) 0%, var(--hw-resa-accent) 52%, color-mix(in srgb, var(--hw-resa-accent) 86%, #04202e) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 2px 4px rgba(4, 14, 20, .22), 0 10px 22px rgba(4, 14, 20, .16);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .012em;
  text-transform: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hw-resa .hw-resa-envoyer:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 6px rgba(4, 14, 20, .24), 0 16px 30px rgba(4, 14, 20, .22); }
.hw-resa .hw-resa-envoyer:active { transform: translateY(1px); }
.hw-resa .hw-resa-envoyer:disabled { opacity: .65; cursor: progress; transform: none; }
.hw-resa .hw-resa-sans-paiement { color: var(--hw-resa-accent-texte); font-family: var(--hw-resa-main); font-size: 21px; line-height: 1.1; transform: rotate(-1deg); }

/* ---- le remerciement ----------------------------------------------------- */

.hw-resa .hw-resa-merci { outline: none; }
.hw-resa .hw-resa-merci p { margin: 14px 0 0; padding: 0; }
.hw-resa .hw-resa-merci .hw-resa-sur { margin: 0 0 12px; }
.hw-resa .hw-resa-signature {
  display: inline-block;
  color: var(--hw-resa-accent-texte);
  font-family: var(--hw-resa-main);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  transform: rotate(-1deg);
  transform-origin: left center;
}

/* ---- petit écran : une colonne, la fenêtre monte du bas ------------------ */

@media (max-width: 560px) {
  .hw-resa .hw-resa-champs { grid-template-columns: minmax(0, 1fr); }
  .hw-resa .hw-resa-champs > * { grid-column: 1 / -1 !important; }
  dialog.hw-resa--fenetre { width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .hw-resa--fenetre .hw-resa-feuille { padding: 30px 20px 24px; border-radius: 18px 18px 0 0; }
  .hw-resa .hw-resa-fermer { top: 12px; right: 12px; }
  .hw-resa .hw-resa-trajet { grid-template-columns: 1fr; gap: 4px; }
  .hw-resa .hw-resa-trajet .hw-resa-fleche { transform: rotate(90deg); }
  .hw-resa .hw-resa-envoyer { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  dialog.hw-resa--fenetre[open] { animation: none; }
  .hw-resa-btn, .hw-resa-btn > span, .hw-resa .hw-resa-envoyer, .hw-resa input, .hw-resa select, .hw-resa textarea { transition: none; }
}
