/*
 * Point de rendez-vous par Plus Code (US-RDV-01) — page créateur seulement.
 * Chargée après rendezvous.css (jetons, base, boutons, barres fixes, droite à gauche)
 * par app/views/rendezvous/new.html.erb (content_for :rdv_stylesheets) : la fiche ne
 * télécharge pas ces règles. Valeurs : docs/ux/maquettes/rdv/canevas/Createur*.dc.html.
 */

/* --- Créateur : introduction et formulaire ------------------------------------------------ */

.rdv-intro { display: flex; flex-direction: column; gap: 12px; }
.rdv-lead { font-size: 1.0625rem; line-height: 1.45; }
.rdv-small { font-size: 0.875rem; line-height: 1.45; }

.rdv-noscript {
  padding: 16px;
  border: var(--rdv-rule) solid var(--rdv-fg);
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 700;
}

.rdv-form { display: flex; flex-direction: column; gap: 28px; }

.rdv-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rdv-fieldset--place { gap: 10px; }

.rdv-warning {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 700;
}

.rdv-field { display: flex; flex-direction: column; gap: 6px; }
.rdv-field--code { margin-top: 6px; }

.rdv-page .rdv-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 14px;
  border: var(--rdv-rule) solid var(--rdv-fg);
  border-radius: 0;
  background-color: var(--rdv-ground);
  color: var(--rdv-fg);
  box-shadow: none;
}

.rdv-page .rdv-input--code { font-size: 1.125rem; letter-spacing: 0.04em; }

.rdv-page .rdv-input[aria-invalid='true'] { border-color: var(--rdv-error); }

.rdv-page .rdv-select {
  padding-block: 0;
  padding-inline: 12px 40px; /* lot 9 (A11y M5) : flèche du côté de fin, aussi en arabe */
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
}

.rdv-page .rdv-input--time,
.rdv-page .rdv-input--date { min-height: 56px; padding: 0 12px; font-size: 1.375rem; }

.rdv-page .rdv-input--date { font-family: var(--rdv-font-mono-latin); font-size: 1.125rem; font-weight: 700; }

.rdv-hint { font-size: 0.875rem; line-height: 1.45; color: var(--rdv-muted); }

.rdv-field-error {
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--rdv-error);
}

.rdv-error {
  padding: 12px 14px;
  border: var(--rdv-rule) solid var(--rdv-error);
  color: var(--rdv-error);
  font-weight: 700;
}

/* Jour et durée en un appui (D23) */
.rdv-choices { display: grid; gap: 8px; }
/* D23 : cinq jours + « Autre » = six boutons sur deux rangées de trois. */
.rdv-choices--days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rdv-choices--durations { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }

/* Lot 9 (A11y I4) : vrais boutons radio habillés en boutons, même rendu qu'avant.
   <label class="rdv-choice"> porte le cadre ; le champ radio est visuellement masqué mais
   focalisable ; la face (span) prend le fond inversé quand le choix est coché, et
   l'anneau de focus du champ, reporté autour du cadre. */
.rdv-choice {
  position: relative;
  box-sizing: border-box;
  display: flex;
  min-height: 48px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: var(--rdv-rule) solid var(--rdv-fg);
  border-radius: 0;
  background: var(--rdv-ground);
  color: var(--rdv-fg);
  font-size: 0.8125rem;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.rdv-choice-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rdv-choice-face {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 4px;
}

.rdv-choices--durations .rdv-choice { font-size: 0.875rem; }
.rdv-choices--durations .rdv-choice-face { padding: 0; }
.rdv-choices--durations .rdv-choice--none { font-size: 0.75rem; }

.rdv-choice:hover .rdv-choice-face { box-shadow: inset 0 0 0 2px var(--rdv-fg); }

.rdv-choice-input:checked + .rdv-choice-face { background: var(--rdv-fg); color: var(--rdv-ground); }

.rdv-doc .rdv-choice-input:focus-visible { outline: none; }
/* WebKit (Safari) : après une flèche dans le groupe, le choix focalisé ne répond pas toujours
   à :focus-visible ; pendant une saisie clavier (data-rdv-keys, posé par le contrôleur),
   l'anneau suit :focus. Au pointeur, rien ne change. */
.rdv-choice-input:focus-visible + .rdv-choice-face,
[data-rdv-keys] .rdv-choice-input:focus + .rdv-choice-face {
  outline: 3px solid var(--rdv-accent);
  outline-offset: 6px; /* 3 px de cadre + 3 px d'écart, comme les autres contrôles */
}

.rdv-choice:active { transform: translate(1px, 1px); }

/* --- États du lieu (D21) ------------------------------------------------------------------- */

.rdv-state { display: flex; flex-direction: column; gap: 10px; }

.rdv-state--precise {
  margin-inline-end: var(--rdv-shadow);
  padding: 18px;
  gap: 14px;
  box-shadow: var(--rdv-shadow) var(--rdv-shadow) 0 var(--rdv-accent);
}

.rdv-state-text { display: flex; flex-direction: column; gap: 4px; }
.rdv-code--state { font-size: 2.125rem; }
.rdv-state-meta { font-size: 0.875rem; letter-spacing: 0.06em; }

.rdv-state--alert { padding: 16px; border: var(--rdv-rule) solid var(--rdv-fg); }

.rdv-state-title { font-size: 1.375rem; line-height: 1; letter-spacing: -0.02em; }

.rdv-state-body { font-size: 0.9375rem; line-height: 1.45; }

/* --- Lien prêt et ENSUITE (D24, D25) ------------------------------------------------------------ */

.rdv-result { display: flex; flex-direction: column; gap: 24px; }
.rdv-result .rdv-title { font-size: clamp(2.25rem, 10.5vw, 2.75rem); }

.rdv-summary-block { display: flex; flex-direction: column; }
.rdv-summary { display: flex; flex-direction: column; }

.rdv-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-top: 2px solid var(--rdv-fg);
}

.rdv-summary-row:last-child { border-bottom: 2px solid var(--rdv-fg); }

.rdv-summary-row dt { letter-spacing: 0.1em; }
.rdv-summary-value { font-size: 1rem; font-weight: 700; text-align: end; }

.rdv-summary-value--mono { font-family: var(--rdv-font-mono-latin); font-size: 0.9375rem; text-transform: uppercase; }

.rdv-share { display: flex; flex-direction: column; gap: 10px; }

.rdv-link-box {
  padding: 12px 14px;
  border: var(--rdv-rule) solid var(--rdv-fg);
  font-size: 0.8125rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rdv-inline-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rdv-next {
  margin-inline-end: var(--rdv-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--rdv-shadow) var(--rdv-shadow) 0 var(--rdv-accent);
}

.rdv-heading--next { margin-top: 0; }
.rdv-next-text { font-size: 0.9375rem; line-height: 1.45; }
.rdv-code--next { font-size: 1.375rem; line-height: 1.3; }

