    /* ===== RESET & BASE STYLES ===== */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        backface-visibility: hidden; 
    }

    body {
        font-family: 'Roboto', sans-serif;
        /* color: #004399; */
        font-size: 17px;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }


    .logo-carteGriseOrg {
        width: 73%;
    }

    /* ===== FORM COMPONENTS ===== */
    .form-details {
        display: none;
        gap: 20px;
        flex-wrap: wrap;
        will-change: opacity, max-height, transform;
        transform: translateZ(0); 
    }

    .form-title-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .form-title {
        color: #fff;
    }

    .form-content {
        width: 100%;
        font-family: 'Roboto', sans-serif;
    }


/* ===== CALCULATEUR CGO ===== */
.calculator-wrapper {
  display: flex;
  background-color: #004399;
  border-radius: 20px;
  padding: 40px;
  margin: 20px auto;     
  width: 100%;           
  gap: 40px;
  flex-wrap: wrap;
}


.calculator-left {
  flex: 1.2;
  background-color: transparent;   /* plus de bleu global */
  border-radius: 15px;
  padding: 40px;
  color: #004399;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-left: 50px;
}

/* Bloc bleu foncÃ© uniquement pour Infos vÃ©hicule + toggle */
.vehicle-info {
  background-color: #042C66;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  margin-top: 15px;
}

.calculator-left label {
  font-size: 14px;
  margin-bottom: 5px;
}

.calculator-left select {
  width: 100%;
  padding: 12px 20px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  margin-bottom: 15px;
}



.vehicle-info .toggle-container {
  margin: 15px 0;
}


.calculator-right {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  color: #fff;
  margin-left: 100px;
}

.calculator-right h1 {
  font-size: 39px;
  line-height: 1.2;
  margin: 0 0 30px 0; /* margin-bottom de 10px */
  font-weight: bold;
      /* font-family: Roboto; */

}

.calculator-right h2 {
  font-size: 39px !important;
  line-height: 1.2 !important;
  margin: 0 0 30px 0 !important;
  font-weight: bold !important;
  color: white;
}




.calculator-right p {
    font-family: Roboto;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 17px;
    line-height: 100%;
    letter-spacing: 0%;
    color:#004399;
}

.floa-block {
  background-color: #F4F4F4;
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 382px;
  margin-bottom: 101px; 
  height: 109px;
}

.floa-block img {
  width: 120px;
  height: auto;
}

.floa-block p {
  margin: 0;
  color: #004399;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
}

.floa-block p small {
  display: block;
  font-size: 10px;
  color: #004399;
  font-weight: 400;
}



    /* ===== SELECT STYLES ===== */
    select.form-content {
        color: #004399;
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #fff;
        padding: 17px 48px 17px 12px;
        appearance: none;
        background-image: url('data:image/svg+xml;utf8,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23004399" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\<polyline points="6 9 12 15 18 9"/>\</svg>');
        background-repeat: no-repeat;
        background-position: right 25px center;
        background-size: 24px;
        border-radius: 27px;
    }

    /* ===== INPUT STYLES ===== */
    .input-immatriculation {
        display: flex;
        justify-content: center;
        border: 3px solid #fff;
        height: auto;
        width: 350px; 
        margin: 0 auto;
    }

    .inputImmatriculation {
        width: 85%;
        font-family: 'Roboto', sans-serif;
        font-size: 20px;
        border: none;
        padding: 17px 10px;
        text-align: center;
        text-transform: uppercase;
        color:#004399;
        outline: none;
    }

    /* ===== LABEL STYLES ===== */
    label[for="immatriculation"] {
        color: #fff;
        text-align: left;
        font-weight: bold;
        font-size: 16px;
    }

    .width-mid {
        font-family: 'Roboto', sans-serif;
        width: 100%;
        font-size: 20px;
        font-weight: 600;
    }

    .label-immatriculation.width-mid {
        width: 50%;
    }

    .label-absolute {
        position: absolute;
        top: -45%;
        text-align: center;
        font-size: 16px;
    }

    .form-group .label-immatriculation {
        display: none;
    }

/* ===== BUTTON STYLES ===== */
.btn-green {
  background-color: #00B754;
  color: #fff;
  border: none;
  padding: 15px 0;
  width: 301px;
  border-radius: 30.5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  margin: 32px auto 0 auto;
  display: block;
  font-family: 'Roboto', sans-serif;
}


    /* === FIX TOGGLE DEFINITIF === */
    .toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    }

    /* on cache la checkbox native */
    .toggle-container input[type="checkbox"] {
    display: none;
    }

    /* le switch */
    .toggle-switch {
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 26px;
    position: relative;
    transition: background-color 0.3s;
    }

    /* le rond blanc */
    .toggle-switch::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    }

    /* quand la case est cochÃ©e â†’ vert */
    .toggle-container input[type="checkbox"]:checked + .toggle-switch {
    background-color: #28a745;
    }

    .toggle-container input[type="checkbox"]:checked + .toggle-switch::before {
    transform: translateX(24px);
    }


    /* ===== ETOILE WRAPPER ===== */
    .etoile-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .etoile-wrapper,
    .empty-div {
        width: 12%;
        background-color: #004399;
    }

    .etoile {
        color: red;
    }

    /* ===== DETAILS SECTION STYLES ===== */
    .detail-label {
        width: 50%;
        padding: 10px 0;
        color: #fff;
        font-weight: 600;
    }

    .form-title.width-mid.detail-label,
    label.form-title.width-mid.detail-label {
        font-size: 15px;
    }

    .indication {
        width: 50%;
        display: flex;
        justify-content: flex-end;
        color: #fff;
        align-items: center;
        font-size: 12px;
    }

    .form-details input[type="text"],
    .form-details input[type="time"],
    .form-details input[type="date"] {
        width: 100%;
        padding: 17px 12px;
        border: 1px solid #ccc;
        border-radius: 28px;
        font-family: 'Roboto', sans-serif;
        font-size: 16px;
        margin-bottom: 15px;
        transition: border-color 0.3s ease;
        height: 53px; 
        box-sizing: border-box;
        text-align: center;
        color: #004399;
    }

    .form-details input[type="text"]:focus,
    .form-details input[type="time"],
    .form-details input[type="date"]:focus {
        border-color: #004399;
        box-shadow: 0 0 0 2px rgba(0, 67, 153, 0.2);
    }

    .form-details select.form-content {
        height: 53px;
        box-sizing: border-box;
        padding: 17px 48px 17px 12px;
    }

    /* Form validation states */
    .immatriculation-wrapper.form-content {
        position: relative;
    }

    .form-details input:valid {
        border-color: #28a745;
    }

    /* Fieldset styling */
    .radio-fieldset {
        border: none;
        padding: 0;
        margin: 0;
    }

    .radio-group {
        display: flex;
        gap: 45px;
    }

    /* Radio button styling as buttons */
    .form-details input[type="radio"] {
        display: none;
    }

    .form-details label[for="occasion_fr"],
    .form-details label[for="occasion_importee"] {
        display: inline-block;
        padding: 15px 20px;
        background-color: #fff;
        color: #004399;
        border: 2px solid #004399;
        border-radius: 5px;
        cursor: pointer;
        font-weight: 600;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 150px;
        user-select: none;
        height: 53px; 
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .form-details input[type="radio"]:checked + label {
        background-color: #004399;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 67, 153, 0.3);
    }

    .form-details label[for="occasion_fr"]:hover,
    .form-details label[for="occasion_importee"]:hover {
        background-color: #0056b3;
        color: #fff;
        transform: translateY(-1px);
    }

    .form-details input[type="radio"]:focus + label {
        outline: 2px solid #004399;
        outline-offset: 2px;
    }

    .desktop-btn {
        display: block;
    }

    .mobile-btn {
        display: none;
    }

    .row-container {
        width: 100%;
    }


    /* ===== LOADER ===== */
    #loader {
    display: none; /* masquÃ© par dÃ©faut */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;

    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: #004399;
    gap: 15px;
    }


    #loader .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #004399;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    }

    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }


    .label-immatriculation.width-mid {
        display: none;
    }

    .label-immatriculation.width-mid .labelImmatriculation {
        font-size: 11px;
    }

    .inputImmatriculation::placeholder {
        text-align: center;
        font-weight: bold;
        color: #B9B9B9;
    }

    /* Ensure cross-browser placeholder centering */
    .inputImmatriculation::-webkit-input-placeholder {
        text-align: center;
    }

    .inputImmatriculation::-moz-placeholder {
        text-align: center;
    }

    .inputImmatriculation:-ms-input-placeholder {
        text-align: center;
    }


/* ===== ADDITIONAL UTILITY CLASSES ===== */
.label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;            /* espace entre label et indication */
  flex-wrap: nowrap;
}

.label-wrapper label {
  white-space: nowrap;
  flex: 1;              /* prend toute la place dispo */
  overflow: hidden;
  text-overflow: ellipsis; /* coupe si trop long */
}

.label-wrapper p.indication {
  white-space: nowrap;
  flex-shrink: 0;       /* ne se rÃ©duit pas */
  margin-left: 10px;    /* petit espace en plus */
}



.form-details .radio-group label {
display: inline-block;
padding: 15px 20px;
background-color: #fff;
color: #004399;
border: 2px solid #004399;
border-radius: 5px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
text-align: center;
min-width: 150px;
user-select: none;
height: 53px;
box-sizing: border-box;
display: inline-flex;
align-items: center;
justify-content: center;
}

#bloc_adr4 .checkbox-line {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: #fff;
border: 1px solid #ccc;
border-radius: 5px;
height: 53px;              
box-sizing: border-box;
color: #004399;
font-weight: 600;
margin-bottom: 10px;
}

#bloc_adr4 input[type="checkbox"] {
width: 20px;
height: 20px;
accent-color: #004399;
}

label.form-title.width-mid.detail-label[for="adr4"] {
width: 100%;
}


@media (max-width: 768px) {

        .form-details {
            flex-direction: column;
        }

        .row-container {
            width: 100%;
        }

        label.form-title.width-mid.detail-label {
            font-size: 13px;
        }

        button[type="submit"] {
            margin-top: 15px;
        }

        .immatriculation-wrapper.labelImmatriculation {
            font-size: 12px;
        }

        .form-group {
            flex-direction: column;
        }

        .info-footer p {
            text-align: center;
        }

        .form-group .label-immatriculation {
            display: flex;
            justify-content: center;
        }

        .inputImmatriculation {
            width: 76%;
        }

        .site-main {
            margin-top: -12px;
        }

        .radio-group {
            flex-direction: row;
        }

        .form-details label[for="occasion_fr"],
        .form-details label[for="occasion_importee"] {
            margin: 5px 0 10px 0;
            min-width: unset;
        }

        .radio-group {
        gap: 35px;
        }
        .toggle-label {
            margin-left: 10px;
        }
}

/* Version mobile */
@media (max-width: 768px) {
  .calculator-left {
    padding: 0;
    margin-left: 0;
  }
  .floa-block {
    display: none;
  }

  .calculator-right {
    display: none;
  }

    .site-h1 {
    display: block;
    font-size: 15px; 
    text-align: center;
  }

    .site-main .calculator-wrapper {
    position: relative;
    left: 50%;                 
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    margin: 0;
    padding: 20px;
  }

  .input-immatriculation {
    width: auto;
  }
  
}

@media (max-width: 1051px){
    .calculator-right{

        display: none;
    }
}