.ct-redesign {
  --ct-navy: #082f60;
  --ct-text: #172c48;
  --ct-muted: #586c86;
  --ct-border: #d6e0ed;
  --ct-field: #b9c9de;
  --ct-bg: #f1f5f9;
  --ct-blue: #008ac2;
  --ct-pale: #e7f4f9;
  background: var(--ct-bg);
  color: var(--ct-text);
  font: 400 16px/1.5 "DM Sans", "Segoe UI", sans-serif;
}
.ct-redesign .mai-top-header {
  position: relative;
  background: white;
  border-bottom: 1px solid var(--ct-border);
  box-shadow: none;
}
.ct-redesign .mai-top-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(to right,#0085b8 33.33%,#009487 33.33% 66.66%,#e41836 66.66%);
}
.ct-redesign .mai-top-header .container-fluid {
  width: 100%;
  max-width: 1920px;
  padding: 20px clamp(16px,4.5vw,86px) 14px;
  gap: 16px;
}
.ct-redesign #Logo { width: clamp(120px,12vw,210px); max-height: 55px; object-fit: contain; }
.ct-redesign .mai-top-nav { gap: 5px; margin: 0; }
.ct-redesign .mai-top-header .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ct-navy);
  font-weight: 700;
  padding: 10px 15px;
  border-radius: 9px;
  line-height: 1.4;
}
.ct-redesign .mai-top-header .nav-link[aria-current="page"] { background: var(--ct-navy); color: white; }
.ct-redesign .mai-user-nav { margin-left: auto; }
.ct-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e4edf8; }
.ct-redesign .mai-wrapper { padding: 0; }
.ct-redesign .main-content {
  max-width: 1920px;
  padding: clamp(28px,3vw,60px) clamp(16px,4.5vw,86px) 64px;
}
.ct-intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.ct-intro h1 { font: 800 clamp(30px,3.1vw,54px)/1.12 "DM Sans","Segoe UI",sans-serif; color: var(--ct-navy); margin: 6px 0 12px; }
.ct-intro p { max-width: 75ch; color: var(--ct-muted); margin: 0; }
.ct-intro .ct-eyebrow { color: #d91532; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ct-redesign h2 { color: var(--ct-navy); font: 750 clamp(18px,1.55vw,28px)/1.25 "DM Sans","Segoe UI",sans-serif; margin: 0 0 8px; }
.ct-surface { background: white; border: 1px solid var(--ct-border); border-radius: 15px; }
.ct-filter { padding: clamp(16px,1.7vw,30px); }
.ct-filter h2 { margin-bottom: 22px; }
.ct-filter h2 i, .ct-actions i, .ct-intro button i { margin-right: 6px; }
.ct-label, .ct-filter legend, .ct-filter h5, .ct-ref-filters label {
  display: block;
  color: var(--ct-muted);
  font: 800 .76rem/1.4 "DM Sans","Segoe UI",sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ct-filter fieldset { margin: 0; min-width: 0; }
.ct-filter hr { margin: 20px 0; border-color: var(--ct-border); }
.ct-redesign .form-control, .ct-redesign .dataTables_wrapper input, .ct-redesign .dataTables_wrapper select {
  min-height: 43px;
  border: 1px solid var(--ct-field);
  border-radius: 9px;
  background-color: white;
  color: var(--ct-text);
  font-size: .95rem;
}
.ct-redesign :focus-visible { outline: 2px solid var(--ct-blue); outline-offset: 2px; }
.ct-segments { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ct-navy); border-radius: 10px; overflow: hidden; }
.ct-segments input { position: absolute; opacity: 0; }
.ct-segments label { margin: 0; cursor: pointer; padding: 12px 6px; text-align: center; color: var(--ct-navy); font-weight: 700; }
.ct-segments input:checked + label { background: var(--ct-navy); color: white; }
.ct-segments input:focus-visible + label { outline: 2px solid var(--ct-blue); outline-offset: -3px; }
.ct-redesign .btn-primary, .ct-redesign .btn-outline-primary { border: 1px solid var(--ct-navy); border-radius: 9px; font-weight: 700; padding: 9px 14px; }
.ct-redesign .btn-primary, .ct-redesign .btn-outline-primary:hover { background: var(--ct-navy); color: white; }
.ct-redesign .btn-outline-primary { background: white; color: var(--ct-navy); }
.ct-calculator, .ct-config-grid { display: grid; gap: clamp(16px,1.65vw,30px); align-items: start; }
.ct-calculator { grid-template-columns: minmax(240px,1fr) minmax(0,2.75fr); }
.ct-calculator .ct-number, .ct-config #rm { font-size: 1.25rem; font-weight: 800; color: var(--ct-navy); }
.ct-tractor { display: grid; place-items: center; background: #ebf1f8; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.ct-tractor img { width: 100%; height: auto; }
.ct-cdr { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: end; }
.ct-cdr button { min-height: 43px; }
.ct-cdr input.is-base { border: 2px solid var(--ct-blue); }
.ct-muted { color: var(--ct-muted); }
.ct-suggestions, .ct-summary { display: grid; gap: 9px; }
.ct-suggestions { grid-template-columns: repeat(6,minmax(0,1fr)); text-align: center; margin: 16px 0 30px; }
.ct-suggestions label { font-weight: 800; color: var(--ct-navy); }
.ct-suggestions button { width: 100%; min-height: 68px; background: white; border: 1px solid var(--ct-border); border-radius: 12px; font-size: clamp(16px,1.8vw,32px); font-weight: 800; color: var(--ct-text); cursor: pointer; }
.ct-suggestions button:disabled { cursor: default; }
.ct-suggestions button[aria-pressed="true"], .ct-suggestions button:not(:disabled):hover { border-color: var(--ct-blue); background: var(--ct-pale); color: var(--ct-navy); }
.ct-summary { grid-template-columns: repeat(4,minmax(0,1fr)); padding: 8px; background: var(--ct-navy); border-radius: 15px; }
.ct-summary > div { background: #1d426d; color: white; border-radius: 10px; padding: 13px; }
.ct-summary strong { font-size: clamp(19px,2vw,39px); line-height: 1.2; }
.ct-summary .ct-label { color: #c0d4ec; }
.ct-summary #clc_divresultppdc { background: white; color: var(--ct-navy); }
.ct-summary #clc_divresultppdc .ct-label { color: var(--ct-muted); }
.ct-status { display: inline-block; border-radius: 50px; padding: 3px 9px; background: #daf1e7; color: #086346; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.ct-status[hidden] { display: none; }
.ct-status.is-warning { color: #814800; background: #fff0d5; }
.ct-status.is-outside { color: #a21c30; background: #ffe5e9; }
.ct-config-grid { grid-template-columns: minmax(235px,3fr) repeat(2,minmax(0,4fr)); }
.ct-current h2:first-child::before, .ct-proposed h2:first-child::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; vertical-align: .1em; background: #e41836; border-radius: 50%;
}
.ct-proposed h2:first-child::before { border-radius: 2px; background: var(--ct-blue); }
.ct-fitment select { padding-left: 8px; padding-right: 5px; }
.ct-fitment .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
.ct-fitment .row { margin-left: -6px; margin-right: -6px; }
.ct-fitment [id^="div_bloc_PanelRoue"] { margin-top: 12px; }
.ct-config-result { margin-top: 20px; padding: 18px; background: var(--ct-navy); border-radius: 14px; }
.ct-config-result > h2 { color: white; }
.ct-config-result .card-group { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ct-config-result .card { background: white !important; border: 0 !important; border-radius: 10px !important; height: auto !important; padding: 10px; }
.ct-config-result .card-group .card { background: #1d426d !important; color: white; }
.ct-config-result .card-group .text-dark { color: white !important; }
.ct-config-result h3 { font-size: .8rem; font-weight: 750; }
.ct-tire.list-group-item {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center;
  background: white; color: var(--ct-text); border: 1px solid var(--ct-border); border-radius: 13px; padding: 14px;
}
.ct-tire.highlight, .ct-tire.highlight_blue { background: var(--ct-pale) !important; border-color: var(--ct-blue); box-shadow: inset 0 0 0 1px var(--ct-blue); }
.ct-tire img { width: clamp(42px,5vw,82px); height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: white; }
.ct-tire .ct-tire-name { display: block; color: var(--ct-navy); font-size: 1.06rem; font-weight: 800; }
.ct-tire small { display: block; color: var(--ct-muted); overflow-wrap: anywhere; }
.ct-tire .ct-label { margin-bottom: 3px; }
.ct-tire-result { text-align: right; color: #086346; font-size: 1.3rem; font-weight: 800; }
.ct-tire-result.is-warning { color: #814800; }
.ct-tire-result.is-outside { color: #a21c30; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.ct-ref-form { padding: 16px 20px; margin-bottom: 20px; }
.ct-ref-filters { display: grid; grid-template-columns: 1.3fr repeat(3,1fr) 1.2fr auto; gap: 12px; align-items: end; }
.ct-ref-table { overflow: hidden; padding: 0; }
.ct-ref-table .dataTables_length, .ct-ref-table .dataTables_filter,
.ct-ref-table .dataTables_info, .ct-ref-table .dataTables_paginate { padding: 14px; color: var(--ct-muted) !important; }
.ct-ref-table .dataTables_filter input { margin-left: 8px; width: min(200px,48vw); }
.ct-ref-table table.dataTable { width: 100%; margin-bottom: 0; }
.ct-ref-table thead th { background: #ebf1f8; color: var(--ct-navy); font-size: .75rem; text-transform: uppercase; border-bottom: 2px solid var(--ct-navy) !important; }
.ct-ref-table tbody td { padding: 14px 10px; white-space: nowrap; border-top: 1px solid var(--ct-border); }
.ct-ref-table .dataTables_paginate .paginate_button.current { background: var(--ct-navy) !important; border-radius: 8px; color: white !important; }
@media (max-width: 1080px) {
  .ct-config-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ct-config-grid > aside { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .ct-config-result { margin-top: 0; }
  .ct-ref-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .ct-redesign .mai-top-header .container-fluid { flex-wrap: wrap; gap: 8px; }
  .ct-redesign .mai-top-nav { order: 2; width: 100%; flex-wrap: wrap; }
  .ct-redesign .mai-top-header .navbar-nav .nav-link { padding: 8px; font-size: .85rem; }
  .ct-calculator, .ct-config-grid, .ct-config-grid > aside { grid-template-columns: minmax(0,1fr); }
  .ct-suggestions, .ct-ref-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ct-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.ct-gauge { margin-top: 12px; }
.ct-gauge-track { height: 9px; position: relative; border-radius: 6px; background: linear-gradient(to right,#009487 80%,#eea514 80%); }
.ct-gauge-track span { position: absolute; top: -4px; width: 8px; height: 17px; transform: translateX(-50%); background: var(--ct-navy); border: 2px solid white; border-radius: 5px; }
.ct-gauge-labels { display: flex; justify-content: space-between; color: var(--ct-muted); font-size: .75rem; margin-top: 5px; }
.ct-config-result #presultppdc { font-weight: 800; color: var(--ct-navy); }
.ct-config-result #config_status { margin-bottom: 3px; }
.ct-current .ct-tire .ct-label span { display: block; color: var(--ct-navy); font-size: 1.2rem; letter-spacing: 0; text-transform: none; }
.ct-ref-table { overflow-x: auto; }

.ct-fitment h2.text-uppercase { text-transform: none !important; }
.ct-fitment #bloc_usure { font-size: .9rem; }
.ct-fitment .ct-tire > div { min-width: 0; }
.ct-config .form-check input[type="checkbox"] { accent-color: var(--ct-navy); }
@media (max-width: 430px) {
  .ct-ref-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ct-tire-result { grid-column: 2; text-align: left; }
  .ct-redesign .mai-user-nav .user-name { display: none; }
}
.ct-summary strong { color: inherit; }
.ct-tractor img {
  max-width: 240px;
  filter: sepia(1) saturate(5) hue-rotate(168deg);
  mix-blend-mode: multiply;
}
.ct-redesign .ct-label, .ct-redesign .ct-filter legend,
.ct-redesign .ct-filter h5, .ct-redesign .ct-ref-filters label { font-size: 12px; }
.ct-config-result .card-group h3 { color: #c0d4ec; }
.ct-config-result .card-group p { color: white !important; font-size: clamp(21px,2vw,32px); }
.ct-config-result .card > .text-uppercase h3 { color: var(--ct-muted); }
.ct-fitment h2 { font-size: clamp(17px,1.4vw,25px); }
.ct-fitment h2 > i { display: none; }
.ct-ref-table thead th { font-size: 11px; }
.ct-login { min-height: 100vh; display: flex; flex-direction: column; }
.ct-login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(28px,6vw,90px) 16px;
}
.ct-login-card {
  width: min(100%, 460px);
  padding: clamp(24px,4vw,44px);
  box-shadow: 0 12px 34px rgba(8,47,96,.06);
}
.ct-login-card .ct-intro { margin-bottom: 26px; }
.ct-login-card .ct-intro h1 { font-size: clamp(32px,4vw,44px); }
.ct-login-field { margin-bottom: 18px; }
.ct-login-card .form-control { min-height: 48px; font-size: 16px; }
.ct-login-card .btn { width: 100%; min-height: 48px; margin-top: 6px; font-size: 16px; }
