:root {
  --main-color: #be0e14;
  --secondary-color: #000000;
}

.full-height-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-height-background-footer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../images/main-bg.webp");
}
.app-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  background-image: url("../images/app-bg.webp");
}

.form-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
}

.form-container h2 {
  color: #000;
  text-align: center;
  margin-bottom: 20px;
}

.form-container .form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 0px !important;
  border: none;
}

.form-container .btn-submit {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--main-color);
  color: white;
  border: none;
  cursor: pointer;
}

.form-container .btn-submit:hover {
  background-color: var(--secondary-color);
}

.button-style {
  background-color: var(--main-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

/* Customize btn-outline-primary to use --main-color */
.btn-outline-primary {
  color: var(--main-color); /* Text color */
  border-color: var(--main-color); /* Border color */
}

.btn-outline-primary:hover {
  background-color: var(--main-color); /* Fill background on hover */
  color: white; /* Text color on hover */
  border-color: var(--main-color); /* Keep border color on hover */
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--main-color); /* Active state */
  color: white; /* Active state text color */
  border-color: var(--main-color); /* Active state border */
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: var(--main-color); /* Disabled color */
  background-color: transparent; /* No background for disabled */
  border-color: var(--main-color); /* Keep border color */
  opacity: 0.65; /* Lower opacity for disabled */
}

.pagination .page-item .page-link {
  background-color: transparent; /* Transparent background */
  border: none; /* No border */
  color: var(--secondary-color); /* Default icon color */
  padding: 0.5rem 1rem; /* Spacing for the button */
  outline: thin solid var(--secondary-color); /* Thin outline */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
  display: flex; /* Align icons properly */
  justify-content: center;
  align-items: center;
}

.pagination .page-item.active .page-link {
  background-color: rgba(0, 0, 0, 0.1); /* 10% black background for active */
  color: #000; /* Black color for active state */
}

.pagination .page-item .page-link:hover {
  background-color: rgba(0, 0, 0, 0.1); /* 10% black on hover */
  color: #000; /* Change color to black on hover */
}

.pagination .page-item .fa {
  color: var(--secondary-color); /* Icon color */
  transition: color 0.3s ease;
}

.pagination .page-item.active .fa,
.pagination .page-item .page-link:hover .fa {
  color: #000; /* Black color for active and hover */
}

.pagination .page-item.disabled .page-link {
  color: var(--secondary-color); /* Disabled state color */
  opacity: 0.5;
  pointer-events: none; /* Prevent interaction with disabled items */
}

.pagination .page-item.disabled .fa {
  opacity: 0.5; /* Disabled icon opacity */
}

/* Global style for all input fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea,
select {
  background-color: transparent !important; /* No background */
  border: none !important; /* Remove all borders */
  border-bottom: 2px solid #ced4da !important; /* Bottom border (underline) */
  color: #212529 !important; /* Dark text color */
  outline: none; /* Remove default focus outline */
  width: 100%; /* Full width */
  padding: 10px 5px; /* Padding for some spacing */
  font-size: 16px; /* Adjust font size */
  transition: border-color 0.3s ease, color 0.3s ease; /* Smooth transition */
  border-radius: 0px !important;
}

/* Focus state - change the underline to the main color and keep the same visual */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-bottom-color: var(--main-color) !important; /* Change the underline to main color on focus */
  color: #212529 !important; /* Keep dark text color */
}

/* When text is entered, keep the same visual but the bottom border colored */
input:not(:placeholder-shown):not(:focus),
textarea:not(:placeholder-shown):not(:focus),
select:not(:focus) {
  background-color: transparent !important; /* Ensure no background color */
  border-bottom: 2px solid var(--main-color) !important; /* Bottom border remains colored */
  color: #212529 !important; /* Keep dark text color */
}

/* Optional: Customize placeholder text color */
::placeholder {
  color: #6c757d !important; /* Placeholder text color */
  opacity: 1; /* Ensure it's not faded */
}

.bg1 {
  background-color: var(--main-color) !important;
}

.bg2 {
  background-color: var(--secondary-color) !important;
}

.bg-3 {
  background-color: var(--tertiary-color) !important;
}

.bg-4 {
  background-color: var(--quaternary-color) !important;
}

.button-style:hover {
  background-color: var(--tertiary-color);
  color: white;
}

.btn-services {
  background-color: var(--main-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.head-spacer {
  height: 110px;
  background-color: var(--main-color);
}

.full-height-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* This creates the parallax effect */
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-height-background-footer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("../images/main-bg.webp");
}
.app-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* This creates the parallax effect */
  height: 100vh;
  width: 100%;
  background-image: url("../images/app-bg.webp");
}

.form-container {
  padding: 20px;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
}

.form-container h2 {
  color: #000;
  text-align: center;
  margin-bottom: 20px;
}

.form-container .form-control {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}

.form-container .btn-submit {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--main-color);
  color: white;
  border: none;
  cursor: pointer;
}

.form-container .btn-submit:hover {
  background-color: var(--secondary-color);
}

/* Style for the radio buttons */
input[type="radio"] {
  appearance: none; /* Remove default radio button styling */
  opacity: 0; /* Make the radio input invisible but functional */
  position: relative;
  cursor: pointer;
  width: 20px; /* Width of the clickable area */
  height: 20px; /* Height of the clickable area */
  margin-right: 25px; /* Space between radio and label */
}

input[type="radio"] + label {
  position: relative;
  padding-left: 30px; /* Space for the custom radio button */
  cursor: pointer;
  vertical-align: middle; /* Align label text with the custom radio button */
  font-size: 12px !important;
}

input[type="radio"] + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: transparent; /* Transparent background */
  border: 2px solid #ccc; /* Light grey border */
  border-radius: 50%; /* Make it circular */
  transition: border-color 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

/* Style when the radio button is selected */
input[type="radio"]:checked + label:before {
  background-color: var(--main-color); /* Fill background with main color when selected */
  border-color: var(--main-color); /* Change border color when selected */
}

/* Label style to align with radio button */
.mb-3 label {
  font-size: 18px;
  font-weight: normal;
  color: #000; /* Adjust color based on your theme */
  display: inline-block;
  vertical-align: middle; /* Ensure the label is vertically aligned with custom radio button */
}

/* Hover effect for custom radio buttons */
input[type="radio"] + label:before:hover {
  border-color: var(--main-color); /* Change border color on hover */
}

/* Adjust spacing between questions */
.mb-3 div {
  margin-bottom: 15px; /* Spacing between each radio button and label group */
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--main-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Optional: adds shadows to the slider */
.slider:active:before {
  width: 30px;
}

.custom-file-input {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

/* Style the custom file input label */
.custom-file-label {
  display: inline-block;
  background-color: transparent;
  color: var(--main-color);
  /* Define your main color here */
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  border: 2px dashed var(--main-color);
  border-radius: 5px;
  text-align: center;
}

/* Icon styling */
.custom-file-label i.fa-download {
  margin-right: 5px;
}

/* Preview styling */
#photosPreview img {
  width: 30%;
  margin: 5px;
}

/* Dropdown Menu Styling */
select.form-select {
  background-color: #ffffff;
  color: #212529;
  border: 1px solid var(--main-color);
  padding: 12px 15px;
  font-size: 18px; /* Slightly larger font for readability */
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  line-height: 2.5; /* Increased line height for extra spacing */
}

select.form-select option {
  background-color: #ffffff;
  color: #212529;
  font-size: 18px; /* Match dropdown font size */
  line-height: 2.5 !important; /* Simulate extra spacing */
}

/* Optional Scrollbar Styling for Webkit Browsers */
select.form-select::-webkit-scrollbar {
  width: 12px;
}

select.form-select::-webkit-scrollbar-track {
  background: #f1f1f1;
}

select.form-select::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 6px;
  border: 3px solid #ffffff;
}

select.form-select::-webkit-scrollbar-thumb:hover {
  background-color: #e6a923;
}

/* style i, add margin right 10px */
i {
  margin-right: 10px !important;
  font-size: inherit; /* Matches the font size of the parent for better scaling */
  color: inherit; /* Ensures icons match the text color unless overridden */
  vertical-align: middle; /* Aligns icons with text for better aesthetics */
}

/* Entire dropdown (select element) */
select {
  background-color: #ffffff !important; /* Dropdown background */
  color: #212529; /* Text color */
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
  appearance: none; /* Removes default browser arrow styling */
  -webkit-appearance: none; /* Safari compatibility */
  -moz-appearance: none; /* Firefox compatibility */
  text-align: left; /* Center the text */
}

/* Dropdown options */
select option {
  background-color: #ffffff !important; /* Options background */
  color: #212529; /* Options text color */
  font-size: 16px;
  padding: 10px;
  border: none;
}

/* Highlight the selected option */
select option:checked {
  background-color: var(--main-color) !important; /* Highlight background */
  color: white; /* Ensure white text on selected option */
}

thead {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

/* Style for the checkboxes */
input[type="checkbox"] {
  appearance: none; /* Remove default checkbox styling */
  opacity: 0; /* Make the checkbox input invisible but functional */
  position: relative;
  cursor: pointer;
  width: 20px; /* Width of the clickable area */
  height: 20px; /* Height of the clickable area */
  margin-right: 25px; /* Space between checkbox and label */
}

input[type="checkbox"] + label {
  position: relative;
  padding-left: 30px; /* Space for the custom checkbox */
  cursor: pointer;
  vertical-align: middle; /* Align label text with the custom checkbox */
}

/* Unchecked checkbox appearance */
input[type="checkbox"] + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: transparent; /* Transparent background */
  border: 2px solid #ccc; /* Light grey border */
  border-radius: 4px; /* Slightly rounded corners */
  transition: border-color 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

/* Checked checkbox appearance */
input[type="checkbox"]:checked + label:before {
  background-color: var(--main-color); /* Fill background with main color when checked */
  border-color: var(--main-color); /* Change border color when checked */
}

/* Checkmark for checked state */
input[type="checkbox"]:checked + label:after {
  content: "✔"; /* Checkmark symbol */
  position: absolute;
  left: 4px; /* Position the checkmark inside the box */
  top: 50%;
  transform: translateY(-50%);
  color: white; /* White checkmark */
  font-size: 14px; /* Adjust size as needed */
}

/* Label style to align with checkbox */
input[type="checkbox"] + label {
  font-size: 18px;
  font-weight: normal;
  color: #000; /* Adjust color based on your theme */
  display: inline-block;
  vertical-align: middle; /* Ensure the label is vertically aligned with the custom checkbox */
}

/* Hover effect for custom checkboxes */
input[type="checkbox"] + label:before:hover {
  border-color: var(--main-color); /* Change border color on hover */
}

/* Adjust spacing between checkboxes */
.mb-3 div {
  margin-bottom: 15px; /* Spacing between each checkbox and label group */
}

.form-group {
  padding-left: 25px !important;
  padding-right: 25px !important;
}

input[type="number"][readonly]::-webkit-inner-spin-button,
input[type="number"][readonly]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"][readonly] {
  -moz-appearance: textfield; /* Firefox */
  appearance: none; /* Modern browsers */
}

.fichier-section {
  background-color: rgba(0, 0, 0, 0.04);
  padding: 20px;
}

/* Layout: boutons 15-20 empilés à gauche, auto verticale à droite */
.car-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
}
.car-buttons-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}
.car-buttons-col .dot-button {
  margin-right: 0;
  width: 100%;
}

#graphics_car {
  position: relative;
  margin: 0 auto;
  min-height: 729px;
  width: 351px;
  background: none;
}
#graphics_car::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 729px;
  height: 351px;
  background: url("../images/graphics01.png") no-repeat;
  transform: translate(351px, 0) rotate(90deg);
  transform-origin: top left;
  pointer-events: none;
  z-index: 0;
}
.dot {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  outline: var(--main-color) solid 2px;
  position: absolute;
  border-radius: 20px;
  font-size: 20px;
  font-weight: bolder;
  color: #ffffff;
  line-height: 40px;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  z-index: 1;
}
.dot:hover {
  background-color: var(--main-color);
}
.dot.active {
  background-color: var(--main-color);
}

.dot-button {
  padding: 17px;
  background-color: var(--secondary-color);
  outline: var(--main-color) solid 2px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bolder;
  color: #ffffff;
  line-height: 10px;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  margin-right: 10px;
}
.dot-button:focus {
  outline: var(--main-color) solid 2px !important;
}
.dot-button:hover {
  background-color: var(--main-color);
}
.dot-button.active {
  background-color: var(--main-color);
  border: none !important;
}

/* Positions recalculées pour rotation 90° horaire :
   new_top = old_left ; new_left = 311 - old_top
   (auto originale 729×351 → verticale 351×729) */
.dot-1 {
  top: 100px;
  left: 161px;
}

.dot-2 {
  top: 325px;
  left: 161px;
}

.dot-3 {
  top: 550px;
  left: 161px;
}

.dot-4 {
  top: 650px;
  left: 161px;
}

.dot-5 {
  top: 590px;
  left: 31px;
}

.dot-6 {
  top: 450px;
  left: 31px;
}

.dot-7 {
  top: 300px;
  left: 31px;
}

.dot-8 {
  top: 400px;
  left: 56px;
}

.dot-9 {
  top: 150px;
  left: 31px;
}

.dot-10 {
  top: 149px;
  left: 286px;
}

.dot-11 {
  top: 289px;
  left: 286px;
}

.dot-12 {
  top: 449px;
  left: 286px;
}

.dot-13 {
  top: 589px;
  left: 286px;
}

.dot-14 {
  top: 399px;
  left: 256px;
}

.dot-15 {
  top: 15px;
  right: 0;
  display: none;
}

/* Unchecked checkbox appearance */
input[type="checkbox"] + label:before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  background-color: transparent !important; /* Transparent background */
  border: 2px solid #ccc !important; /* Light grey border */
  border-radius: 4px !important; /* Slightly rounded corners */
  transition: border-color 0.3s ease, background-color 0.3s ease !important; /* Smooth transition */
}

/* Checked checkbox appearance */
input[type="checkbox"]:checked + label:before {
  background-color: var(--main-color) !important; /* Fill background with main color when checked */
  border-color: var(--main-color) !important; /* Change border color when checked */
}

/* Checkmark for checked state */
input[type="checkbox"]:checked + label:after {
  content: "✔" !important; /* Checkmark symbol */
  position: absolute !important;
  left: 4px !important; /* Position the checkmark inside the box */
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: white !important; /* White checkmark */
  font-size: 14px !important; /* Adjust size as needed */
}

/* Smaller table text to keep rows on a single line */
.table {
  font-size: 13px;
}
.table th,
.table td {
  white-space: nowrap;
  vertical-align: middle;
}
