/* Total Refresh V2 — module de réservation (surcouche Amelia). */
/* --- PARTIE 1 : STYLES --- */
  @import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@500;600;700;800;900&display=swap');

  #tr-main-container { --tr-navy: #081C4F; --tr-ink: #0A1A3F; --tr-blue: #2463EB; --tr-cyan: #22D3EE; --tr-cyan-text: #0B8DB0; --tr-sky: #EEF5FF; --tr-line: #DCE6F5; --tr-slate: #526081; }
  #tr-main-container, #tr-main-container * { box-sizing: border-box; }
  .tr-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }

  .tr-responsive-container { display: flex; flex-direction: row; max-width: 1100px; margin: 40px auto; background: #fff; border-radius: 22px; overflow: visible; box-shadow: 0 30px 60px -30px rgba(8, 28, 79, .35); font-family: 'Urbanist', system-ui, sans-serif; color: var(--tr-ink); font-weight: 500; }
  .tr-sidebar-responsive { width: 320px; padding: 36px 28px; background: linear-gradient(160deg, #0D2A70 0%, #081C4F 75%); color: #fff; display: flex; flex-direction: column; border-radius: 22px 0 0 22px; }
  .tr-content-responsive { padding: 40px; display: flex; flex-direction: column; flex: 1; min-height: 650px; }
  .tr-grid-responsive { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
  .tr-title { margin: 0 0 6px; font-size: 30px; line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: -.02em; color: var(--tr-ink); }
  .tr-sub { color: var(--tr-slate); margin: 0 0 24px; }

  /* Étapes (barre latérale) */
  .tr-steps { margin-bottom: 22px; }
  .tr-sidebar-step { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; cursor: pointer; opacity: .5; transition: opacity .2s, transform .2s; }
  .tr-sidebar-step:hover { transform: translateX(4px); }
  .tr-sidebar-step.is-done, .tr-sidebar-step.is-current { opacity: 1; }
  .tr-dot-circle { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1px solid rgba(255,255,255,.6); }
  .tr-sidebar-step.is-current .tr-dot-circle { background: var(--tr-cyan); color: #05263A; border-color: var(--tr-cyan); }
  .tr-sidebar-step.is-done .tr-dot-circle { background: rgba(34, 211, 238, .18); color: var(--tr-cyan); border-color: transparent; }

  /* Récapitulatif */
  .tr-recap { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 16px; border-radius: 14px; flex-grow: 1; display: flex; flex-direction: column; }
  .tr-recap h4 { margin: 0 0 10px; color: #C6D4F3; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; }
  #tr-list-items { font-size: 14px; color: #A9BBE5; margin-bottom: 10px; line-height: 1.6; flex-grow: 1; }
  .tr-recap-line { display: flex; justify-content: space-between; gap: 10px; }
  .tr-recap-disc { color: var(--tr-cyan); font-size: 12px; margin-left: 12px; }
  .tr-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; color: #C6D4F3; }
  .tr-row.is-discount { color: var(--tr-cyan); }
  .tr-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); font-size: 24px; font-weight: 900; color: var(--tr-cyan); }

  /* Boutons */
  .tr-btn-next { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; padding: 15px 34px; margin-top: 36px; margin-left: auto; width: fit-content; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
  .tr-btn-disabled { background: #E3E9F4; color: #8A97B5; cursor: not-allowed; }
  .tr-btn-active { background: var(--tr-blue); color: #fff; }
  .tr-btn-active:hover { background: #1A4FCC; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(36, 99, 235, .6); }
  .tr-back-btn { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 20px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--tr-line); background: #fff; color: var(--tr-slate); font: inherit; font-weight: 700; cursor: pointer; }
  .tr-back-btn:hover { border-color: var(--tr-ink); color: var(--tr-ink); }
  #tr-main-container button:focus-visible, .tr-sidebar-step:focus-visible { outline: 3px solid var(--tr-cyan); outline-offset: 3px; }

  /* Catégories (accordéon) */
  .tr-cat { margin-bottom: 14px; }
  .tr-cat-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--tr-line); background: #fff; font: inherit; font-weight: 800; font-size: 18px; color: var(--tr-ink); cursor: pointer; transition: border-color .2s; }
  .tr-cat-head:hover, .tr-cat-head[aria-expanded="true"] { border-color: var(--tr-blue); }
  .tr-cat-label { display: flex; align-items: center; gap: 12px; }
  .tr-cat-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tr-sky); color: var(--tr-blue); }
  .tr-cat-icon .tr-ico { width: 22px; height: 22px; }
  .tr-cat-body { padding: 14px 0; }

  /* Carte service */
  .tr-service-item-card { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--tr-line); border-radius: 14px; background: #fff; }
  .tr-service-item-card.is-in-cart { border-color: var(--tr-cyan); background: rgba(34, 211, 238, .06); }
  .tr-service-item-card img { width: 63px; height: 63px; object-fit: contain; flex-shrink: 0; }
  .tr-svc-text { flex: 1; min-width: 0; }
  .tr-svc-name { font-weight: 800; font-size: 15px; line-height: 1.3; margin-bottom: 2px; }
  .tr-svc-price { color: var(--tr-blue); font-weight: 900; }
  .tr-qty { display: flex; align-items: center; background: var(--tr-sky); border-radius: 999px; padding: 3px; }
  .tr-qty button { width: 32px; height: 32px; border: none; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--tr-blue); }
  .tr-qty button:hover { background: #fff; }
  .tr-qty .tr-ico { width: 16px; height: 16px; stroke-width: 2.5; }
  .tr-qty span { font-weight: 900; min-width: 22px; text-align: center; }

  /* Options (extras) */
  .tr-option-card { position: relative; padding: 20px; border: 1px solid var(--tr-line); border-radius: 16px; background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
  .tr-option-card:hover { border-color: var(--tr-blue); }
  .tr-option-card.selected { border: 2px solid var(--tr-cyan); background: rgba(34, 211, 238, .07); }
  .tr-option-card img { width: 85px; height: 85px; margin-bottom: 10px; object-fit: contain; }
  .tr-opt-name { font-weight: 800; font-size: 18px; }
  .check-mark { display: none; position: absolute; bottom: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; place-items: center; background: var(--tr-cyan); color: #05263A; }
  .check-mark .tr-ico { width: 16px; height: 16px; stroke-width: 3; }
  .tr-option-card.selected .check-mark { display: grid; }
  .tr-old-price { text-decoration: line-through; color: #8A97B5; font-size: 14px; margin-right: 8px; }
  .tr-new-price { color: var(--tr-blue); font-weight: 900; font-size: 22px; }

  /* Info-bulles */
  .tr-info-wrapper { position: absolute; top: 10px; right: 10px; z-index: 10; cursor: pointer; }
  .tr-info-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--tr-slate); }
  .tr-info-icon .tr-ico { width: 18px; height: 18px; }
  .tr-tooltip { display: none; position: absolute; top: 130%; right: 0; width: 250px; padding: 14px; border-radius: 12px; background: var(--tr-navy); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; z-index: 9999; box-shadow: 0 16px 30px -12px rgba(8, 28, 79, .55); }
  .tr-tooltip::after { content: ""; position: absolute; bottom: 100%; right: 6px; border: 6px solid transparent; border-bottom-color: var(--tr-navy); }
  .tr-close-tooltip { display: none; }
  .tr-info-wrapper:hover { z-index: 99999 !important; }
  .tr-info-wrapper:hover .tr-tooltip, .tr-info-wrapper:focus-within .tr-tooltip { display: block; }
  .tr-service-item-card .tr-info-wrapper { position: relative; top: -1px; right: auto; display: inline-block; vertical-align: middle; margin-left: 6px; }
  .tr-service-item-card .tr-tooltip { left: -10px; right: auto; }
  .tr-service-item-card .tr-tooltip::after { left: 12px; right: auto; }

  /* Suggestions d'adresse */
  #tr-address-suggestions { font-family: 'Urbanist', system-ui, sans-serif; }
  .tr-addr-item { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; font-size: 14px; color: var(--tr-ink, #0A1A3F); border-bottom: 1px solid #EEF2F8; }
  .tr-addr-item:hover { background: #EEF5FF; }
  .tr-addr-item .tr-ico { width: 18px; height: 18px; color: #2463EB; }

  /* Amelia : prix masqués (gérés par notre récap) + mode compact */
  #am-cf-3, #am-cf-4, #am-cf-5, #am-cf-6, div#amelia-app .am-service-price, div#amelia-app .am-confirm-booking-price { display: none !important; }
  .amelia-mode .tr-sidebar-responsive { margin-top: 0 !important; }
  .amelia-mode .tr-content-responsive { padding-bottom: 0 !important; }
  .amelia-mode .tr-back-btn { margin-bottom: 0 !important; }
  .amelia-mode #amelia-inject-zone { margin-top: -45px !important; margin-bottom: -50px !important; }
  .amelia-mode div#amelia-app { padding-top: 0 !important; padding-bottom: 0 !important; }

  /* Bouton d'envoi de photos Amelia : icône appareil photo (Lucide) au lieu de l'emoji */
  .amelia-v2-booking .am-attachment__btn { background: #EEF5FF !important; border: 2px dashed #2463EB !important; border-radius: 12px !important; padding: 15px 10px !important; width: 100% !important; max-width: 100% !important; height: auto !important; display: flex !important; justify-content: center !important; align-items: center !important; box-shadow: none !important; cursor: pointer !important; transition: background .2s !important; }
  .amelia-v2-booking .am-attachment__btn:hover { background: #DCEBFF !important; }
  .amelia-v2-booking .am-attachment__btn .am-button__inner img { display: none !important; }
  .amelia-v2-booking .am-attachment__btn .am-button__inner { font-size: 0 !important; display: flex !important; align-items: center !important; gap: 8px !important; }
  .amelia-v2-booking .am-attachment__btn .am-button__inner::before { content: "" !important; width: 20px; height: 20px; background-color: #2463EB; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
  .amelia-v2-booking .am-attachment__btn .am-button__inner::after { content: "Ajouter vos photos" !important; font-size: 15px !important; font-weight: 700 !important; color: #2463EB !important; font-family: 'Urbanist', system-ui, sans-serif !important; }

  /* Mobile */
  @media (max-width: 768px) {
    .tr-responsive-container { flex-direction: column-reverse !important; margin: 0 !important; width: 100% !important; border-radius: 0 !important; }
    .tr-sidebar-responsive { width: 100% !important; padding: 18px !important; margin-top: 25px !important; border-radius: 0 !important; }
    .tr-content-responsive { padding: 12px !important; min-height: auto !important; }
    .tr-grid-responsive { grid-template-columns: 1fr !important; gap: 10px !important; }
    .tr-title { font-size: 25px; }
    #tr-step-2-ui { padding: 0 !important; }
    #amelia-inject-zone { margin-top: -20px !important; padding: 0 !important; }
    div#amelia-app .am-button { margin: 10px auto !important; width: 100% !important; }
    .tr-btn-next { width: 100% !important; margin-top: 28px !important; }
    .tr-service-item-card { padding: 10px !important; gap: 8px !important; }
    .tr-service-item-card img { width: 45px !important; height: 45px !important; }
    .tr-svc-name { font-size: 14px !important; }
    div#amelia-app .am-confirm-booking-data-col { padding-left: 5px !important; padding-right: 5px !important; max-width: 100% !important; }
    /* Info-bulle au centre de l'écran, fond assombri, croix de fermeture */
    .tr-tooltip { position: fixed !important; top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%) !important; width: 85% !important; max-width: 320px !important; padding-top: 46px !important; box-shadow: 0 0 0 9999px rgba(8, 28, 79, .6), 0 15px 35px rgba(0,0,0,.3) !important; z-index: 999999 !important; }
    .tr-tooltip::after { display: none !important; }
    .tr-close-tooltip { display: grid !important; place-items: center; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
    .tr-close-tooltip .tr-ico { width: 16px; height: 16px; }
  }
.section_booking{background:#EEF5FF}

  .tr-svc-ico { display: grid; place-items: center; width: 63px; height: 63px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(135deg, #2463EB, #22D3EE); }
  .tr-svc-ico .tr-ico { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.8; }
  .tr-cat-note { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 700; color: #526081; }
