/* La prise de rendez-vous : ecran partage, le ciel a gauche, la colonne a droite. */
.rv { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.rv-ciel { position: relative; overflow: hidden; color: #fff; background: var(--ciel, linear-gradient(180deg,#1b2d6b 0%,#5870c7 40%,#eeaa82 70%,#e07a4f 88%)); transition: background 1s var(--ease); }
.rv-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; mix-blend-mode: overlay; pointer-events: none; }
.rv-soleil { position: absolute; width: 46px; height: 46px; border-radius: 999px; left: var(--sx, 72%); top: var(--sy, 60%); background: var(--astre, #fde2c8); box-shadow: 0 0 70px 24px color-mix(in srgb, var(--astre, #fde2c8) 60%, transparent); transition: left 1s var(--ease), top 1s var(--ease), background 1s var(--ease); }
.rv-collines { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44%; }
.rv-texte { position: relative; z-index: 2; padding: 34px clamp(24px, 5vw, 64px); max-width: 560px; }
.rv-logo { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.rv-kick { margin: clamp(48px, 16vh, 150px) 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-weight: 500; }
.rv-texte h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.04em; font-weight: 650; margin: 16px 0 0; }
.rv-intro { font-size: 16px; line-height: 1.55; opacity: .92; max-width: 420px; margin-top: 18px; }
.rv-date { font-size: clamp(48px, 5.4vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 700; margin: 14px 0 0; }
.rv-date .rv-sous { display: block; font-size: .4em; letter-spacing: -.02em; font-weight: 500; margin-top: 12px; opacity: .95; }
.rv-date .rv-mot { display: inline-block; white-space: nowrap; }
.rv-date .rv-l { display: inline-block; opacity: 0; transform: translateY(.3em); animation: rv-l .5s var(--ease) forwards; }
@keyframes rv-l { to { opacity: 1; transform: none; } }
.rv-quand { position: absolute; left: clamp(24px, 5vw, 64px); bottom: 32px; z-index: 3; margin: 0; font-size: 14px; background: rgba(11,18,32,.3); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; }
.rv-panneau { display: grid; place-items: center; padding: 48px 24px; }
.rv-colonne { width: 100%; max-width: 476px; }
.rv-colonne h2 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 8px; }
.rv-doux { color: var(--muted); font-size: 15px; line-height: 1.55; }
.rv-centre { text-align: center; font-size: 12.5px; }
.rv-alerte { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.rv-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rv-tete b { font-size: 16px; text-transform: capitalize; }
.rv-fleches { display: flex; gap: 6px; }
.rv-fleches button, .rv-rappel button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; transition: border-color var(--fast) var(--ease); }
.rv-fleches button:hover { border-color: var(--accent); color: var(--accent); }
.rv-fleches button { display: grid; place-items: center; padding: 0; }
.rv-fleches svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rv-fleches button:disabled { opacity: .4; cursor: default; }
.rv-corps { display: flex; gap: 28px; align-items: flex-start; }
.rv-cal { display: grid; grid-template-columns: repeat(7, 40px); align-content: start; gap: 6px; text-align: center; }
.rv-cal i { font-style: normal; font-size: 11px; color: var(--faint); padding-bottom: 6px; }
.rv-cal button, .rv-cal span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 0; background: none; font: inherit; font-size: 14px; color: #c7ced7; }
.rv-cal button { color: #1d4ed8; font-weight: 600; background: var(--accent-subtle); cursor: pointer; transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
.rv-cal button:hover { background: #dbeafe; }
.rv-cal button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(37,99,235,.8); }
.rv-heures { width: 128px; max-height: 330px; overflow-y: auto; scrollbar-width: thin; padding: 2px 6px 2px 2px; display: flex; flex-direction: column; gap: 8px; }
.rv-heures p { margin: 0 0 4px; }
.rv-heures button { flex: none; height: 42px; border: 1px solid #dbe3ee; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: #1d4ed8; cursor: pointer; transition: all var(--fast) var(--ease); animation: rv-l var(--base) var(--ease) backwards; }
.rv-heures button:hover { border-color: var(--accent); }
.rv-heures button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rv-pied { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.rv-rappel { display: flex; align-items: center; justify-content: space-between; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 22px; }
.rv-rappel button { width: auto; padding: 0 10px; color: var(--accent); border: 0; background: none; font-weight: 500; }
.rv form label, .rv-puces legend { display: block; font-size: 12.5px; color: var(--text); font-weight: 500; margin-bottom: 12px; }
.rv form label em { color: var(--accent); font-style: normal; }
.rv input:not([type="radio"]), .rv textarea { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; height: 42px; border: 1px solid #dbe1e8; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--ink); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.rv textarea { height: auto; padding: 10px 12px; resize: vertical; }
.rv input:focus, .rv textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-20); }
.rv input[aria-invalid="true"] { border-color: #f04438; }
.rv-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rv-sep { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font-size: 12px; color: var(--muted); }
.rv-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rv-puces { border: 0; padding: 0; margin: 0 0 12px; }
.rv .rv-puces label { display: inline-block; margin: 0 6px 6px 0; }
.rv-puces input { position: absolute; opacity: 0; }
.rv-puces span { display: inline-block; border: 1px solid #dbe1e8; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all var(--fast) var(--ease); }
.rv-puces input:checked + span { background: var(--accent-subtle); border-color: #bfdbfe; color: #1d4ed8; }
.rv-puces input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-20); }
.rv-piege { position: absolute !important; left: -9999px; }
.rv-plein { width: 100%; justify-content: center; margin-top: 8px; }
.rv-coche { width: 56px; height: 56px; border-radius: 999px; background: var(--ok-subtle); color: var(--ok); display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; animation: rv-pop .5s var(--ease); }
@keyframes rv-pop { from { transform: scale(.4); opacity: 0; } }
.rv-agenda { display: flex; gap: 8px; margin: 22px 0 26px; }
.rv-agenda a { flex: 1; border: 1px solid #dbe1e8; border-radius: 10px; padding: 10px 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color var(--fast) var(--ease); }
.rv-agenda a:hover { border-color: var(--accent); }
.rv-etapes { padding: 0; list-style: none; counter-reset: e; margin: 0; }
.rv-etapes li { counter-increment: e; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f3f6; font-size: 14px; color: var(--text); }
.rv-etapes li::before { content: counter(e); width: 28px; height: 28px; border-radius: 999px; background: var(--accent-subtle); color: #1d4ed8; display: grid; place-items: center; font-size: 13px; }
.rv-actions { display: flex; gap: 8px; margin: 22px 0; }
[data-etape] { animation: rv-l var(--base) var(--ease); }
@media (max-width: 820px) {
  .rv { grid-template-columns: 1fr; }
  .rv-ciel { min-height: 180px; }
  .rv-kick { margin-top: 18px; }
  .rv-texte h1, .rv-intro { display: none; }
  .rv-date { font-size: 34px; }
  .rv-panneau { padding: 28px 16px 48px; align-items: start; }
  .rv-corps { flex-direction: column; align-items: stretch; }
  /* Le bouton reste sous le pouce : pas besoin de defiler pour continuer. */
  .rv-pied { position: sticky; bottom: 0; z-index: 2; margin: 22px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 20px -12px rgba(11,18,32,.18); }
  /* Le soleil reste a droite, loin du texte. */
  .rv-soleil { width: 30px; height: 30px; left: calc(58% + var(--sx, 72%) * .4); }
  .rv-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .rv-cal button, .rv-cal span { width: 100%; aspect-ratio: 1; height: auto; }
  .rv-heures { width: auto; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); }
  .rv-heures p { grid-column: 1 / -1; }
  .rv-ligne { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-ciel, .rv-soleil, [data-etape], .rv-heures button, .rv-date .rv-l, .rv-coche { transition: none !important; animation: none !important; }
  .rv-date .rv-l { opacity: 1; transform: none; }
}
