.tg-logo {
  width: 32px;
  height: 32px;
  max-width: 32px;
  object-fit: contain;
  flex: none;
}
.tg-logo-footer { width: 28px; height: 28px; max-width: 28px; }

.tg-partners { position: relative; }
.tg-partners-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e4edf3;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(12, 53, 89, 0.12);
  z-index: 30;
}
.tg-partners.tg-open .tg-partners-menu { display: block; }
.tg-partners-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0c3559;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.tg-partners-menu a:hover { background: #f4f7fb; }

.tg-mobile { display: none; border-top: 1px solid #e6eef3; padding: 8px 4px 14px; }
.tg-mobile.tg-open { display: flex; flex-direction: column; }
.tg-mobile a {
  padding: 11px 8px;
  color: #0c3559;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}
.tg-mobile .tg-mobile-phones { display: flex; gap: 8px; padding: 8px; }
.tg-mobile .tg-mobile-phones a {
  flex: 1;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #0c3559;
}
.tg-mobile .tg-mobile-phones a:last-child {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #fff;
}
@media (min-width: 1024px) {
  .tg-mobile { display: none !important; }
}

#tg-devis-app {
  --ink: #0c3559;
  --muted: #5d7283;
  --line: #e2eaf0;
  --navy: #0c3559;
  --orange: #ff7a00;
  background: transparent;
  color: var(--ink);
  padding: 0 0 72px;
}
#tg-devis-app * { box-sizing: border-box; }
#tg-devis-app h1, #tg-devis-app h2, #tg-devis-app h3, #tg-devis-app p { margin: 0; }

.tg-banner {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(7, 22, 40, 0.28) 0%, rgba(7, 22, 40, 0.62) 100%),
    url("/tarifs/hero-port.jpg") center 42% / cover no-repeat;
  padding: 72px 20px 108px;
}
.tg-banner h1 {
  font-size: clamp(46px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.tg-crumb {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #d5e7f8;
}
.tg-crumb a { color: #fff; text-decoration: none; }
.tg-crumb span { margin: 0 8px; opacity: 0.8; }

.tg-sheet {
  width: min(720px, calc(100% - 28px));
  margin: -72px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.tg-mode, .tg-card, .tg-intro {
  background: #fff;
  border: 1px solid #e2eaf0;
  border-radius: 12px;
  box-shadow: 0 10px 30px #0206170f;
}
.tg-mode { padding: 12px; }
.tg-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}
.tg-mode-btn svg { width: 28px; height: 28px; }
.tg-mode-btn strong { display: block; font-size: 18px; font-weight: 800; }
.tg-mode-btn small { display: block; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }

.tg-intro { padding: 28px 22px 18px; text-align: center; position: relative; overflow: hidden; }
.tg-watermark {
  position: absolute;
  top: 8px;
  left: 18px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(16, 40, 63, 0.06);
}
.tg-bar {
  display: block;
  width: 46px;
  height: 4px;
  margin: 8px auto 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--navy));
}
.tg-intro h2 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.tg-checks {
  list-style: none;
  margin: 18px auto 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  text-align: left;
}
.tg-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 15px;
}
.tg-checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f8ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  flex: none;
}
.tg-boxart { margin: 18px auto 0; width: min(280px, 100%); }
.tg-boxart svg { width: 100%; height: auto; display: block; }
.tg-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.tg-pills span {
  background: #f4f7fb;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
.tg-pills b { color: var(--navy); margin-right: 4px; }

.tg-card { padding: 20px; }
.tg-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.tg-card .tg-bar { margin: 10px 0 8px; }
.tg-req { color: #8aa0b5; font-style: italic; font-size: 14px; text-align: right; margin-bottom: 16px; }
.tg-cap {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.tg-input, .tg-area {
  width: 100%;
  border: 1.5px solid #c9d6e4;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}
select.tg-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230c3559' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
.tg-input:focus, .tg-area:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(12, 53, 89, 0.08);
}
.tg-panel { display: grid; gap: 12px; margin-top: 4px; }
.tg-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tg-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-chip {
  border: 0;
  background: #f3f6fa;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.tg-chip:hover { background: #fff1e4; }
.tg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tg-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.tg-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.tg-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f4f7fb;
  color: var(--navy);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.tg-qty strong { min-width: 28px; text-align: center; font-size: 14px; }
.tg-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7fafc;
  border-radius: 16px;
  padding: 12px 14px;
}
.tg-live p { color: var(--muted); font-size: 13px; font-weight: 600; }
.tg-live strong { font-size: 28px; letter-spacing: -0.04em; color: var(--navy); white-space: nowrap; }
.tg-warn { color: #9a3b12; font-size: 13px; font-weight: 700; }

.tg-btn, .tg-btn-ghost {
  appearance: none;
  width: 100%;
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tg-btn { border: 0; background: var(--orange); color: #fff; }
.tg-btn:hover { background: #ef7000; }
.tg-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.tg-btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid #c9d6e4; }
.tg-btn-ghost:hover { border-color: var(--navy); background: #f7fafc; }

.tg-lines { display: grid; gap: 8px; margin-top: 8px; }
.tg-empty { color: var(--muted); font-size: 14px; padding: 8px 2px 0; }
.tg-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eef2f6;
}
.tg-line h3 { margin: 0; font-size: 15px; font-weight: 800; }
.tg-line p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.tg-line-price { font-weight: 800; font-size: 16px; text-align: right; }
.tg-tag {
  display: inline-block;
  margin-left: 6px;
  background: #fff1e6;
  color: #c65a00;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}
.tg-line-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.tg-link {
  border: 0;
  background: transparent;
  color: #8b3a2f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.tg-extras { display: grid; gap: 12px; margin-top: 8px; }
.tg-totals { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.tg-totals div { display: flex; justify-content: space-between; gap: 12px; color: #4d6278; }
.tg-total {
  margin-top: 6px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tg-total span { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.tg-total strong { font-size: 34px; letter-spacing: -0.04em; }
.tg-fine { color: var(--muted); font-size: 12px; line-height: 1.5; }

.tg-details {
  background: #fff;
  border: 1px solid #e2eaf0;
  border-radius: 12px;
  box-shadow: 0 10px 30px #0206170f;
  padding: 6px 18px;
}
.tg-details summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
}
.tg-details summary::-webkit-details-marker { display: none; }
.tg-table-wrap { overflow-x: auto; padding-bottom: 14px; }
.tg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tg-table th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 8px; }
.tg-table td { padding: 10px 8px; border-top: 1px solid #eef2f6; }
.tg-table td:last-child { font-weight: 800; color: var(--orange); white-space: nowrap; }

.tg-form { display: grid; gap: 12px; }
.tg-grid { display: grid; gap: 12px; }
.tg-label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--navy); }
.tg-success {
  background: #eefbf3;
  border-radius: 18px;
  padding: 8px 4px 4px;
}
.tg-success h2 { margin: 0 0 6px; font-size: 26px; }
.tg-error {
  background: #fff4f2;
  color: #8b3a2f;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.tg-hp { position: absolute; left: -9999px; height: 0; opacity: 0; }

.tg-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(16, 40, 63, 0.16);
}
.tg-dock.is-on { display: flex; }
.tg-dock strong { display: block; font-size: 20px; color: var(--navy); }
.tg-dock span { color: var(--muted); font-size: 12px; }
.tg-dock .tg-btn { width: auto; padding: 12px 16px; }

@media (min-width: 760px) {
  .tg-banner { min-height: 380px; padding-bottom: 130px; }
  .tg-grid { grid-template-columns: 1fr 1fr; }
  .tg-span-2 { grid-column: 1 / -1; }
  .tg-dock, .tg-dock.is-on { display: none; }
  #tg-devis-app { padding-bottom: 48px; }
}
@media (max-width: 700px) {
  .tg-table thead { display: none; }
  .tg-table tr { display: block; border: 1px solid #eef2f6; border-radius: 12px; margin-bottom: 8px; padding: 6px; }
  .tg-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; }
  .tg-table td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
}
