/* Demande de rappel : le formulaire est le héros de l'en-tête (carte à bordure Prestige), jours en tuiles, grille de créneaux */
.rp-sec { padding: 26px 0 60px; }
.rp-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "intro carte" "plus carte"; column-gap: 48px; row-gap: 26px; align-items: start; grid-template-rows: auto 1fr; }
.rp-intro { grid-area: intro; }
.rp-carte { grid-area: carte; }
.rp-plus { grid-area: plus; }
.rp-intro .tt h1 { font-size: clamp(30px, 2.75vw, 40px); }
.rp-intro .pmb-puces { margin-top: 18px; }
.rp-intro .pmb-puces li { font-size: 13px; }

/* la carte : même bordure qui tourne que la garantie Prestige */
.rp-carte { position: relative; padding: 28px; border: 3px solid transparent; border-radius: 28px;
  background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--ang), var(--b2), var(--jaune), var(--g), var(--b2)) border-box;
  box-shadow: 0 2px 4px rgb(15 42 61 / .05), 0 40px 70px -38px rgb(15 42 61 / .6); animation: bt-tour 6s linear infinite; }
.rp-carte form { display: grid; gap: 14px; }
.rp-carte form[hidden], .ct-form form[hidden], .rp-merci[hidden], .rp-deja[hidden] { display: none; }
.ct-form .rp-err:empty { display: none; }
.rp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rp-h { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.rp-h:not(:first-of-type) { margin-top: 12px; padding-top: 22px; border-top: 1px solid #e8f0f5; }
.rp-h b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--b2), var(--b1)); box-shadow: 0 6px 12px -5px var(--b1); }

/* jours */
.rp-bande { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 6px; align-items: center; }
.rp-fl { display: grid; place-items: center; width: 28px; height: 52px; padding: 7px; border: 0; border-radius: 10px; cursor: pointer; color: var(--b1); background: #eef7fc; transition: background .2s; }
.rp-fl:hover:not(:disabled) { background: #dceffa; }
.rp-fl:disabled { opacity: .3; cursor: default; }
.rp-fl svg { display: block; width: 100%; height: 100%; stroke-width: 2.6; }
.rp-fl[data-bande="-1"] svg { transform: rotate(90deg); }
.rp-fl[data-bande="1"] svg { transform: rotate(-90deg); }
.rp-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rp-jour { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 8px 1px 7px; border: 1.5px solid #dbe7ef; border-radius: 15px; font: inherit; line-height: 1.15; cursor: pointer; color: var(--mute); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rp-jour small { font-size: 11.5px; font-weight: 600; text-transform: capitalize; }
.rp-jour b { font-size: 20px; font-weight: 800; color: var(--ink); }
.rp-jour:hover:not(:disabled):not(.on) { border-color: var(--b2); transform: translateY(-2px); box-shadow: 0 8px 14px -8px rgb(28 125 179 / .5); }
.rp-jour.on { border-color: transparent; color: #d9effb; background: linear-gradient(145deg, #1f5d97, #154a7d); box-shadow: 0 12px 18px -10px #154a7d; }
.rp-jour.on b { color: #fff; }
.rp-jour:disabled { cursor: not-allowed; border-style: dashed; opacity: .42; }

/* créneaux : libre = bleu franc ; réservé = gris barré avec cadenas ; passé = effacé */
.rp-creneaux { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; min-height: 148px; }
.rp-c { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 44px; padding: 0 2px; border: 1.5px solid #bfe0f4; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; color: #135c86; background: #e8f4fd; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.rp-c:hover:not(:disabled):not(.on) { border-color: var(--b1); background: #d6ecfb; transform: translateY(-2px); box-shadow: 0 8px 14px -8px rgb(28 125 179 / .55); }
.rp-c.on { border-color: transparent; color: #fff; background: linear-gradient(135deg, #1cb569, #159753); box-shadow: 0 10px 16px -8px #159753; }
.rp-c:disabled { cursor: not-allowed; font-weight: 600; }
.rp-c.pris { border-color: #e2e7eb; color: #9aa8b2; background: #f1f4f6; text-decoration: line-through; }
.rp-c.pris svg { flex: none; width: 13px; height: 13px; stroke-width: 2.2; }
.rp-c.passe { border-color: #eff3f5; color: #c7d1d8; background: #fafbfc; text-decoration: line-through; }
.rp-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.rp-legende span { display: inline-flex; align-items: center; gap: 6px; }
.rp-legende i { width: 13px; height: 13px; border: 1.5px solid; border-radius: 4px; }
.rp-legende .l { border-color: #bfe0f4; background: #e8f4fd; }
.rp-legende .r { border-color: #e2e7eb; background: #f1f4f6; }
.rp-legende small { margin-left: auto; font-size: 12px; font-weight: 500; }

/* champs */
.rp-champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.rp-champs label span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rp-champs input, .rp-champs select { display: block; width: 100%; height: 50px; padding: 0 15px; border: 1.5px solid #d5e2ec; border-radius: 13px; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
.rp-champs input::placeholder { color: #a5b4bf; }
.rp-champs select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7db3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.rp-champs input:focus, .rp-champs select:focus { outline: none; border-color: var(--b2); box-shadow: 0 0 0 4px rgb(40 163 230 / .15); }
.rp-champs label:has(.rp-err:not(:empty)) input { border-color: #b11c1d; }
.rp-err { display: block; margin-top: 5px; font-size: 13px; font-style: normal; font-weight: 600; color: #b11c1d; }
.rp-err:empty { display: none; }
.rp-err-serveur { margin: 0; }

/* récapitulatif et envoi */
.rp-recap { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 12px 15px; border-radius: 14px; font-size: 14.5px; color: var(--mute); background: #f4f8fb; transition: background .3s, color .3s; }
.rp-recap svg { flex: none; width: 20px; height: 20px; }
.rp-recap.plein { font-weight: 800; color: #0d6b3d; background: #e6f6ee; }
.rp-carte .bt-plein { justify-content: center; border: 0; cursor: pointer; }
.rp-ok { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.rp-ok li { display: inline-flex; align-items: center; gap: 4px; }
.rp-ok svg { width: 14px; height: 14px; stroke-width: 3; color: var(--g); }

/* demande récente */
.rp-deja { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: #78350f; background: #fef6d8; }
.rp-deja p { margin: 2px 0 0; }
.rp-deja button { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; color: #92400e; background: rgb(146 64 14 / .1); }

/* merci */
.rp-merci { padding: 34px 12px; text-align: center; }
.rp-trace { display: block; width: 84px; height: 84px; margin: 0 auto 18px; fill: none; stroke: var(--g); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rp-trace circle, .rp-trace path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rp-trace .7s ease-out forwards; }
.rp-trace path { animation-delay: .55s; animation-duration: .4s; }
@keyframes rp-trace { to { stroke-dashoffset: 0; } }
.rp-merci h2 { margin: 0 0 14px; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.25; color: var(--ink); }
.rp-quand { display: inline-block; margin: 0 0 14px; padding: 9px 18px; border-radius: 999px; font-weight: 800; color: #0d6b3d; background: #e6f6ee; }
.rp-merci p:last-child { max-width: 460px; margin: 0 auto; color: var(--txt, #44596a); }

/* colonne de gauche, sous le texte */
.rp-visuel { max-width: 400px; margin: 0 auto; }
.rp-direct { margin: 20px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--b1); }
.rp-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rp-tuiles .ct-tuile { padding: 11px 13px; border-radius: 15px; }
.rp-tuiles .ct-tuile b { font-size: 14px; white-space: nowrap; }
.rp-apres { padding: 58px 0 66px; }

/* dans la bulle de contact : le formulaire seul */
.cadre .hx, .cadre .pd, .cadre .rp-intro, .cadre .rp-plus, .cadre .rp-apres { display: none; }
.cadre .rp-sec { padding: 0; background: #fff; }
.cadre .rp-sec::before, .cadre .rp-sec::after { display: none; }
.cadre .conteneur { width: 100%; max-width: none; padding: 0; }
.cadre .rp-grille { display: block; }
.cadre .rp-carte { padding: 20px 22px; border: 0; border-radius: 0; background: #fff; box-shadow: none; animation: none; }

@media (max-width: 1040px) {
  .rp-grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "carte" "plus"; grid-template-rows: none; row-gap: 22px; }
  .rp-carte { max-width: 700px; width: 100%; margin: 0 auto; }
  .rp-plus { max-width: 700px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .rp-sec { padding: 16px 0 40px; }
  .rp-carte { padding: 18px 12px; border-radius: 22px; }
  .rp-h { font-size: 17px; }
  .rp-bande { grid-template-columns: 20px minmax(0, 1fr) 20px; gap: 3px; }
  .rp-fl { width: 20px; padding: 3px; }
  .rp-jours { gap: 3px; }
  .rp-jour { padding: 6px 0 5px; border-radius: 11px; }
  .rp-jour small { font-size: 10px; }
  .rp-jour b { font-size: 16px; }
  .rp-creneaux { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .rp-c { font-size: 14px; height: 42px; }
  .rp-c.pris svg { display: none; }
  .rp-legende small { flex-basis: 100%; margin-left: 0; }
  .rp-champs { grid-template-columns: minmax(0, 1fr); }
  .rp-carte .bt-plein { padding-left: 10px; padding-right: 10px; font-size: 15px; }
  .rp-apres { padding: 42px 0 48px; }
}
@media (prefers-reduced-motion: reduce) { .rp-carte { animation: none; } }
