/* Thème « Destination Démo ».
 * Dérivé de la mise en page du thème rddm. Deux écarts volontaires :
 *   - aucun @font-face : ni polices sous licence, ni appel à rddm.ch ;
 *   - les couleurs en dur pointent sur la palette du thème. */

body {
  background-color: #E4ECEE;
  color: #263238;
  font-family: 'TradeGothic', 'Roboto', sans-serif;
}

.main-panel,
.main-panel .content,
.main-panel .content * {
  color: #263238;
}

/* ══════════════════════════════════════════
   Header - aligné sur ticket-management RDDM
   ══════════════════════════════════════════ */
#header-logo {
  position: relative;
  background-color: #ffffff;
  background-image:
    linear-gradient(to bottom, transparent 30%, #ffffff),
    url('/images/demo/bg-entete.svg');
  background-size: 100% 100%, 400px auto;
  background-position: center, center;
  background-repeat: no-repeat, repeat;
  border-bottom: 3px solid #1C6E7A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
}

.header-logo-img {
  height: 130px;
  width: auto;
}

.header-subtitle {
  font-family: 'TradeGothic', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a8a8c;
}

.header-body {
  max-width: 1140px;
  width: 100%;
  margin: 20px auto 8px;
  padding: 0 24px;
  box-sizing: border-box;
  min-width: 0;
}

.header-body h2 {
  margin: 0;
  color: #263238;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  font-family: 'Euclid Flex', 'TradeGothic Bold', sans-serif;
}

/* ══════════════════════════════════════════
   Typography
   ══════════════════════════════════════════ */
h1 {
  font-size: 24px;
  color: #263238;
  font-family: 'Euclid Flex', 'TradeGothic Bold', sans-serif;
}

h2 {
  font-size: 20px;
  color: #263238;
}

h3 {
  font-size: 18px;
  color: #263238;
}

.left-body-panel-desc {
  color: #263238;
}

/* ══════════════════════════════════════════
   Lang selector
   ══════════════════════════════════════════ */
.menu-lang-button {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #fefefe;
  margin-top: 0;
}

.menu-lang-button .bi-chevron-down,
.menu-lang-button .bi-globe {
  -webkit-text-stroke: 2px;
}

.menu-lang-button .bi-globe {
  margin-right: 2px;
}

.menu-lang-button .menu-lang-content {
  box-shadow: 0 5px 10px #8080804f;
}

.menu-lang-content {
  border: 0;
  background-color: #fefefe;
}

#current-lang {
  color: var(--color-button-secondary);
  font-family: 'TradeGothic Bold', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  margin-right: 2px;
}

.lang-card-element {
  min-width: 0;
  width: fit-content;
  height: fit-content;
  min-height: 13px;
  align-self: flex-start;
}

/* ══════════════════════════════════════════
   Content colors
   ══════════════════════════════════════════ */
.single-icon,
#translation_adult_management,
#translation_children_management,
#translation_start_comment,
#translation_title_order_card,
#translation_title_payment_page,
#translation_all_infos_correct,
.content-create-card-info-amount {
  color: var(--color-main);
}

/* ══════════════════════════════════════════
   Footer - aligné sur ticket-management RDDM
   ══════════════════════════════════════════ */
#footer {
  background: #fff;
  border-top: 1px solid #dde0e6;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
}

#footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#footer img {
  height: 48px;
  width: auto;
  opacity: .85;
  margin-bottom: 0;
}

#footer p,
#footer .footer_contact,
#footer #translation_copyright {
  font-size: 0.75rem;
  color: #7a8a8c;
  letter-spacing: 0.4px;
  margin: 0;
}

#footer a {
  font-size: 0.75rem;
  color: #7a8a8c;
  text-decoration: underline;
}

#footer-note {
  margin: 0;
}

#footer-links {
  margin: 0;
  align-items: center;
  justify-content: center;
}

#footer-first-block,
#footer-second-block,
#footer-copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 0 !important;
}

/* ══════════════════════════════════════════
   Cards & buttons
   ══════════════════════════════════════════ */
#available-card-management {
  border-bottom-color: var(--color-main);
}

.action-button {
  border: 0;
}

.enabled-action-button,
.disabled-action-button {
  width: 100%;
  color: #fff !important;
  background-color: var(--color-button-primary);
  transition: box-shadow .15s ease, transform .15s ease, filter .15s ease;
}

.disabled-action-button {
  opacity: .55;
  cursor: not-allowed;
}

.action-button:hover,
.enabled-action-button:hover {
  color: #fff;
  background-color: var(--color-button-primary);
  box-shadow: 0 4px 12px rgba(167, 31, 45, .35);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════ */
@media (max-width: 1200px) {
  #header-logo {
    height: 180px;
  }

  .header-logo-img {
    height: 100px;
  }
}

@media (max-width: 800px) {
  #header-logo {
    height: 120px;
    background-size: 100% 100%, 200px auto;
  }

  .header-logo-img {
    height: 70px;
  }

  .header-body {
    padding: 0 16px;
    margin: 8px auto 0;
  }

  .header-body h2 {
    font-size: 1.15rem;
  }

  h1 {
    font-size: 22px;
  }

  #footer img {
    max-width: 225px !important;
  }
}
