  /* ---------- hero ---------- */
.manage-hero {
  position: relative;
  min-height: clamp(380px, 48vw, 460px);
  overflow: hidden;
}

.manage-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reservation-manage__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.reservation-manage__hero-content {
    flex: 1;
}

.reservation-manage__back {
    flex-shrink: 0;
    margin-left: auto;
}

.reservation-manage__back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e6d9c6;
    color: #5f4828;
    font-weight: 600;
    transition: all 0.2s ease;
}

.reservation-manage__back a:hover {
    background: #f8f2e8;
}

@media (max-width: 768px) {
    .reservation-manage__hero {
        flex-direction: column;
    }

    .reservation-manage__back {
        width: 100%;
    }

    .reservation-manage__back a {
        width: 100%;
        justify-content: center;
    }
}
.manage-hero__content {
  position: relative; /* ⚠️ plus absolute */
  min-height: inherit;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 80px 20px;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.35) 40%,
      rgba(0,0,0,0.55) 100%
    );
}

/* Bloc texte */
.manage-hero__inner {
  text-align: center;
  max-width: 720px;
  padding: 0 20px;
}

/* Titre */
.manage-hero__inner h1 {
  color: white;
  font-size: var(--hero-title-size);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* Texte */
.manage-hero__inner p {
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  max-width: 46ch;
  margin: 0 auto;
}
/*----------------------------------------*/
  .reservation-manage {
      padding: 40px 16px 72px;
      background: #f4f7fb;
  }

  .reservation-manage__container {
      max-width: 1280px;
      margin: 0 auto;
  }

  .reservation-manage__hero {
      margin-bottom: 28px;
  }

  .reservation-manage__eyebrow {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #0A6365;
      margin-bottom: 10px;
  }

  .reservation-manage__title {
      margin: 0 0 10px;
      font-size: 34px;
      line-height: 1.1;
      color: #111827;
  }

  .reservation-manage__subtitle {
      margin: 0;
      max-width: 760px;
      font-size: 15px;
      line-height: 1.7;
      color: #4b5563;
  }
.reservation-manage__options-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
}

.reservation-manage__options-subtitle {
  margin-top: .15rem;
  font-size: .85rem;
  color: #777;
}

.reservation-manage__options-total {
  font-weight: 700;
  color: #2f3b1f;
  white-space: nowrap;
}
.reservation-manage__stay-index {
  font-size: .9rem;
  font-weight: 500;
  color: #8a8a8a;
}
  .reservation-manage__layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 24px;
      align-items: start;
  }

  .reservation-manage__main {
      display: grid;
      gap: 24px;
  }

  .reservation-manage__side {
      display: grid;
      gap: 24px;
  }

  .reservation-manage__card {
      position: relative;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 20px;
      padding: 24px;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  }

  .reservation-manage__card--sticky {
      position: sticky;
      top: 24px;
       z-index: 20;
  }

  .reservation-manage__card-header {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 16px;
      margin-bottom: 18px;
  }
.reservation-manage__card-heading {
    display: flex;
    flex-direction: column;
}
.reservation-manage__card-subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: #9ca3af;
}
  .reservation-manage__card-title {
      font-size: 22px;
      font-weight: 700;
      color: #111827;
      line-height: 1.2;
  }

  .reservation-manage__card-subtitle {
      margin-top: 6px;
      font-size: 14px;
      color: #6b7280;
  }

  .reservation-badge {
      display: inline-block;
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
  }

  .reservation-badge--success {
      background: #dcfce7;
      color: #166534;
  }

  .reservation-badge--warning {
      background: #fef3c7;
      color: #92400e;
  }

  .reservation-badge--muted {
      background: #eef2f7;
      color: #475569;
  }

  .reservation-manage__trip-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
  }

  .reservation-manage__info-box,
  .reservation-manage__customer-box {
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      padding: 18px;
      background: #fafcff;
  }

  .reservation-manage__info-label {
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #64748b;
      margin-bottom: 8px;
  }

  .reservation-manage__info-value {
      font-size: 20px;
      font-weight: 700;
      color: #111827;
      line-height: 1.2;
  }

  .reservation-manage__info-note {
      margin-top: 6px;
      font-size: 13px;
      color: #6b7280;
  }

  .reservation-manage__stay-list {
      display: grid;
      gap: 16px;
  }

  .reservation-manage__stay-item {
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      overflow: hidden;
      background: #ffffff;
  }

  .reservation-manage__stay-main {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: start;
      padding: 18px;
  }

  .reservation-manage__stay-name {
      font-size: 18px;
      font-weight: 700;
      color: #111827;
  }

  .reservation-manage__stay-meta {
      margin-top: 6px;
      font-size: 14px;
      color: #6b7280;
  }

  .reservation-manage__stay-price {
      font-size: 18px;
      font-weight: 700;
      color: #111827;
      white-space: nowrap;
  }

  .reservation-manage__options-box {
      border-top: 1px solid #eef2f7;
      background: #f9fafb;
      padding: 16px 18px;
  }

  .reservation-manage__options-title {
      font-size: 13px;
      font-weight: 700;
      color: #374151;
      margin-bottom: 10px;
  }

  .reservation-manage__option-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      gap: 12px;
      padding: 6px 0;
      align-items: start;
  }

  .reservation-manage__option-name {
      font-size: 14px;
      color: #374151;
  }

  .reservation-manage__option-meta {
      font-size: 13px;
      color: #6b7280;
      white-space: nowrap;
  }

  .reservation-manage__option-price {
      font-size: 13px;
      font-weight: 700;
      color: #374151;
      white-space: nowrap;
  }

  .reservation-manage__customer-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
  }

  .reservation-manage__customer-content {
      font-size: 15px;
      line-height: 1.7;
      color: #374151;
  }

  .reservation-manage__missing-address {
      font-size: 15px;
      line-height: 1.7;
      color: #92400e;
  }

  .reservation-manage__action-line {
      margin-top: 14px;
  }

  .reservation-manage__ghost-button {
      display: inline-block;
      text-decoration: none;
      font-weight: 700;
      border-radius: 12px;
      transition: opacity 0.2s ease;
  }

  .reservation-manage__ghost-button:hover,
  .reservation-manage__cta:hover {
      opacity: 0.94;
  }

  .reservation-manage__summary-line {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 0;
      font-size: 15px;
      color: #374151;
  }

  .reservation-manage__summary-line strong {
      color: #111827;
      white-space: nowrap;
  }

  .reservation-manage__summary-line--total {
      font-size: 17px;
      font-weight: 700;
      color: #111827;
  }

  .reservation-manage__summary-line--due strong {
      color: #92400e;
  }

  .reservation-manage__divider {
      height: 1px;
      background: #e5e7eb;
      margin: 10px 0;
  }

  .reservation-manage__payment-box {
      margin-top: 20px;
      border-radius: 16px;
      padding: 18px;
  }

  .reservation-manage__payment-box--warning {
      border: 1px solid #fde68a;
      background: #fffbeb;
  }

  .reservation-manage__payment-box--success {
      border: 1px solid #bbf7d0;
      background: #f0fdf4;
  }

  .reservation-manage__payment-title {
      font-size: 16px;
      font-weight: 700;
      color: #111827;
  }

  .reservation-manage__payment-text {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1.6;
      color: #374151;
  }

  .reservation-manage__cta {
      display: inline-block;
      margin-top: 14px;
      padding: 12px 18px;
      background: #0A6365;
      color: #ffffff;
      border-radius: 12px;
      text-decoration: none;
      font-weight: 700;
  }

  .reservation-manage__ghost-button {
      margin-top: 16px;
      width: 100%;
      padding: 11px 16px;
      border: 1px solid #dbeafe;
      background: #f0f7ff;
      color: #003b95;
  }

  .reservation-manage__note {
      margin-top: 16px;
      font-size: 13px;
      line-height: 1.6;
      color: #6b7280;
  }

  .reservation-manage__property {
      font-size: 15px;
      line-height: 1.7;
      color: #374151;
  }

  .reservation-manage__empty {
      font-size: 14px;
      color: #6b7280;
  }

 

  /*---------- Partie Formulaire ---------*/

  [hidden] {
      display: none !important;
  }

  .reservation-manage__card--customer {
      border: 1px solid #e7eaf0;
      border-radius: 22px;
      background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
      overflow: hidden;
  }

  .reservation-manage__card-header--with-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.25rem 1.5rem 3rem 1.5rem;
      margin-bottom: 30px;
      border-bottom: 1px solid #eef2f7;
      background: #ffffff;
  }

  .reservation-manage__card-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: #0f172a;
  }

  .reservation-manage__header-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
  }

  .reservation-manage__customer-panel {
      padding: 1.5rem;
      background: #f8fafc;
  }

  .reservation-manage__customer-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.25rem;
      align-items: start;
  }

  .reservation-manage__customer-box {
      background: #ffffff;
      border: 1px solid #e6ebf2;
      border-radius: 18px;
      padding: 1.25rem;
      min-height: 210px;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  }

  .reservation-manage__info-label {
      margin-bottom: 1rem;
      font-size: 0.78rem;
      line-height: 1;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #64748b;
  }

  .reservation-manage__customer-content {
      color: #0f172a;
      line-height: 1.7;
      font-size: 0.98rem;
  }

  .reservation-manage__customer-content strong {
      display: inline-block;
      margin-bottom: 0.15rem;
      font-weight: 700;
      color: #020617;
  }

  .reservation-manage__missing-address {
      padding: 1rem;
      border: 1px dashed #cbd5e1;
      border-radius: 14px;
      background: #f8fafc;
      color: #475569;
      line-height: 1.6;
  }

  .reservation-manage__form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
  }

  .reservation-manage__field {
      min-width: 0;
  }

  .reservation-manage__field--full {
      grid-column: 1 / -1;
  }

  .reservation-manage__field label {
      display: block;
      margin-bottom: 0.45rem;
      font-size: 0.9rem;
      font-weight: 600;
      color: #334155;
  }

  .reservation-manage__field input,
  .reservation-manage__field select {
      width: 100%;
      height: 46px;
      padding: 0 0.95rem;
      border: 1px solid #d8e0ea;
      border-radius: 12px;
      background: #ffffff;
      color: #0f172a;
      font-size: 0.96rem;
      box-sizing: border-box;
      transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          background-color 0.2s ease,
          transform 0.2s ease;
  }

  .reservation-manage__field input:hover,
  .reservation-manage__field select:hover {
      border-color: #c2ccd8;
  }

  .reservation-manage__field input:focus,
  .reservation-manage__field select:focus {
      outline: none;
      border-color: #94a3b8;
      box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
      background: #ffffff;
  }

  .reservation-manage__field input::placeholder {
      color: #94a3b8;
  }

  .reservation-manage__primary-link,
  .reservation-manage__secondary-link {
      appearance: none;
      border: none;
      cursor: pointer;
      font: inherit;
      text-decoration: none;
  }

  .reservation-manage__primary-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0.7rem 1rem;
      border-radius: 999px;
      background: #0f172a;
      color: #ffffff;
      font-weight: 600;
      transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  .reservation-manage__primary-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  }

  .reservation-manage__secondary-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0.7rem 1rem;
      border-radius: 999px;
      background: #eef2f7;
      color: #0f172a;
      font-weight: 600;
      transition: background-color 0.2s ease, transform 0.2s ease;
  }

  .reservation-manage__secondary-link:hover {
      background: #e2e8f0;
      transform: translateY(-1px);
  }

  .reservation-manage__primary-link:disabled,
  .reservation-manage__secondary-link:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
  }


/* Desktop > 900px */
.reservation-manage__flash {
    position: absolute;
    top: 23%;
    left: 0;
    right: 0;

    width: auto;

    margin: 0 1rem; /* espace sur les côtés */

    padding: 0.85rem 1rem;
    border-radius: 14px;

    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    pointer-events: none;

    z-index: 10;

    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
}

/* visible */
.reservation-manage__flash:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* sortie */
.reservation-manage__flash.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}
/* couleurs */
.reservation-manage__flash.is-success {
    background: #ecfdf3;
    border: 1px solid #b7ebc6;
    color: #166534;
}

.reservation-manage__flash.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

 @media (max-width: 1024px) {
     .reservation-manage__flash {
        top: 23%;}
      .reservation-manage__layout {
          grid-template-columns: 1fr;
      }

      .reservation-manage__card--sticky {
          position: static;
      }
  
  }
   @media (max-width: 900px) {
 
      .reservation-manage__customer-grid,
      .reservation-manage__form-grid {
          grid-template-columns: 1fr;
      }

      .reservation-manage__customer-box {
          min-height: auto;
      }
       .reservation-manage__flash {
        top: 18%;}
  }
  @media (max-width: 720px) {
      .reservation-manage {
          padding: 28px 12px 48px;
      }

      .reservation-manage__card {
          padding: 18px;
          border-radius: 16px;
      }

      .reservation-manage__trip-grid,
      .reservation-manage__customer-grid {
          grid-template-columns: 1fr;
      }

      .reservation-manage__option-row {
          grid-template-columns: 1fr;
      }

      .reservation-manage__stay-main {
          flex-direction: column;
      }
        .reservation-manage__flash {
        top: 18%;}
  }
 

  @media (max-width: 640px) {
    .reservation-manage__card-header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
    }
      .reservation-manage__card-header--with-actions {
          flex-direction: column;
        
      }

      .reservation-manage__header-actions {
          justify-content: stretch;
      }

      .reservation-manage__header-actions .reservation-manage__primary-link,
      .reservation-manage__header-actions .reservation-manage__secondary-link {
          width: 100%;
      }

      .reservation-manage__customer-panel {
          padding: 1rem;
      }

      .reservation-manage__customer-box {
          padding: 1rem;
      }

      .reservation-manage__flash {
        top: 24%;
    }

  }
  @media (max-width: 640px) {
.reservation-manage__flash {
        top: 22%;
    }
  }
  @media (max-width: 370px) {
  .reservation-manage__card-header--with-actions {
     
      padding: 1.25rem 0rem 3rem 0rem;
  }
  .reservation-manage__card {
    padding: 18px 10px 18px 10px;
  }
}
@media (max-width: 768px) {
 
  .manage-hero {
    min-height: 380px;
  }
}

@media (max-width: 480px) {


  .manage-hero {
    min-height: 380px;
  }
}
/*---------- Gestion de la facture ----------*/
.total-label-strong {
    padding: 10px 0 6px 0;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: #111827;
}

.balance-text {
    padding: 10px 0 6px 0;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
}

.balance-text--positive {
    color: #166534;
}

.balance-text--warning {
    color: #92400e;
}
.text-right {
    text-align: right;
}
/*---------- Gestion de l'annulation ----------*/
.reservation-manage__cancel-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 16px;
  border-radius: 8px;

  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);

  cursor: pointer;
  transition: all 0.2s ease;
}

.reservation-manage__cancel-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.reservation-manage__cancel-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.reservation-manage__cancel-subtext {
  font-size: 0.8rem;
  color: #777;
  margin-left: auto;
}

.reservation-manage__collapse-icon {
  width: 16px;
  height: 16px;
  position: relative;
  transition: transform 0.25s ease;
}

.reservation-manage__collapse-icon::before,
.reservation-manage__collapse-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.reservation-manage__collapse-icon::before {
  width: 10px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.reservation-manage__collapse-icon::after {
  width: 2px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.reservation-manage__card--collapsible.is-open .reservation-manage__collapse-icon {
  transform: rotate(180deg);
}

.reservation-manage__card--collapsible.is-open .reservation-manage__collapse-icon::after {
  opacity: 0;
}


.reservation-manage__missing-address {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: background-color 0.2s ease, text-decoration-color 0.2s ease;
}

.reservation-manage__missing-address:hover {
    background-color: #e4f1ff;
    text-decoration-color: currentColor;
}