header .navbar {
    background-color: #284D9A !important;
}

.content-website{
    height: auto;
}

main {
    margin: 10vw 20vw 2vw 17vw;
    padding: 0;
}

.notification-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay noir à 50% */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.notification-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  max-width: 80%;
  transform: translateX(100%);
  animation: slideIn 0.5s forwards;
}
.notification-error {
  background-color: #FFEBEE;
  border-left: 5px solid #F44336;
  color: #B71C1C;
}

.notification-success {
  background-color: #E8F5E9;
  border-left: 5px solid #4CAF50;
  color: #1B5E20;
}

@keyframes slideIn {
  to { transform: translateX(0); }
} */

.close-notification {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* --- MODAL JOUR STYLE --- */
#modal-jour .modal-content {
    padding: 2.5vw;
    border-radius: 1.5vw;
    background: #fff;
    max-width: 70vw;
    width: 70vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-title {
    text-align: center;
    font-size: 2vw;
    font-weight: bold;
    margin-bottom: 2vw;
    color: #1f1f1f;
}

.horaire-list {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    max-height: 55vh;
    overflow-y: auto;
    margin-bottom: 1.5vw;
}

/* Option ligne */
.horaire-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #f5faff;
    border: 1.5px solid #3498bd;
    border-radius: 1vw;
    transition: background-color 0.2s ease;
    width: 100%;
}

.horaire-option:hover {
    background-color: #e6f4ff;
}

.horaire-option input[type="radio"] {
    display: none;
}

.horaire-option label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5vw 2vw;
    cursor: pointer;
    gap: 1vw;
}

.horaire-option input[type="radio"]:checked + label {
    background-color: #e6f4ff;
    border: 2vw solid #284D9A;
}

/* Contenu texte dans l’option */
label .jour {
    font-size: 1.2vw;
    font-weight: bold;
    color: #0a0a0a;
    flex: 1;
}

label .heure,
label .duree {
    font-size: 0.95vw;
    color: #0c4687;
    flex: 1;
}

label .heure strong,
label .duree strong {
    color: #1f1f1f;
}

label .type {
    font-size: 1.1vw;
    color: #1f4bd2;
    font-weight: bold;
    flex: 1;
    text-align: center;
}


.avatar {
    width: 3.69vw;
    height: 3.85vw;
    border-top-left-radius: 7.03vw;
    border-bottom-right-radius: 1.82vw;
    border-bottom-right-radius: 7.0vw;
    border-bottom-left-radius: 7.03vw;
    object-fit: cover;
}

.info-text {
    display: flex;
    align-items: center;
    font-size: 0.9vw;
    color: #333;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

.info-icon {
    width: 2.27vw;
    margin-right: 0.5vw;
}.info-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95vw;
    color: #333;
    gap: 0.5vw;
    margin-bottom: 2vw;
}

.info-icon {
    width: 1.5vw;
    height: 1.5vw;
}

/* Bouton VALIDER */
#modal-jour .btn-submit {
    background-color: #284D9A;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 0.8vw;
    padding: 0.8vw 2vw;
    font-size: 1.2vw;
    cursor: pointer;
    width: 30%;
    margin: 0 auto;
    display: block;
}

.modal .btn-submit {
    height: 2.91vw;
    width: 10.15vw;
    font-size: 1.3vw;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
}


body {
    font-family: 'Montserrat', sans-serif;
    background: #EAF1FF;
    display: flex;
    flex-direction: column;
}

.form-rdv {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 60px 20px; */
    padding: 7vw 8.928vw;
}

.intro-text {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

h1 {
    font-size: 5vw;
    color: #284D9A;
    font-weight: 900;
    margin-bottom: 10px;
}

p.subtext {
    color: #444444;
    font-weight: 500;
    font-size: 1.875vw;
    
}

.container {
    border-radius: 30px;
    position: relative;
    align-items: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.stepper {
    position: absolute;
    left: -4.945vw;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5.20vw;

}

.stepper::before {
    content: "";
    position: absolute;
    top: -0.5vw;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.23vw;
    height: 30.6;
    background-color: #284D9A;
    z-index: 0;
    border-radius: 20.83vw;
}

.stepper::after {
    content: "";
    position: absolute;
    top: -0.6vw;
    left: 37%;
    transform: translateX(-50%, -50%);
    width: 2.04vw;
    height: 2.04vw;
    background-color: #284D9A;
    border-radius: 50%;
    z-index: 1;
}

.step {
    width: 7.08vw;
    height: 7.08vw;
    border-radius: 50%;
    background: white;
    border: 3px solid #284D9A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #284D9A;
    font-size: 1.2rem;
    z-index: 2;
    text-decoration: underline;
}

.step.active {
    background: #284D9A;
    color: white;
}

form {

    display: flex;
    flex-direction: column;
    padding: 4.53vw;
    border-radius: 2.6vw;
    gap: 2vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
    margin-left: 10.88vw;
    max-width: 61.09vw;
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5vw;
    margin-bottom: 2vw;

}

.form-group label {
    font-weight: 700;
    color: #3498bd;
    font-size: 1.66vw;
    width: 35%;
    gap: 2.34vw;
}

.form-group select,
.form-group input {
    flex: 1;
    padding: 14px;
    border-bottom-left-radius: 0vw;
    border-bottom-right-radius: 2.6vw;
    border-top-right-radius: 2.6vw;
    border-top-left-radius: 1.82vw;
    border: 0.25vw solid #3498bd;
    font-size: 1.56vw;
}

.toggle-switch {
    margin-right: 5.5vw !important;
    display: flex;
    align-items: center;
    gap: 0.7vw;
    font-weight: 400;
    font-size: 1.56vw;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .slider {
    width: 13.12vw;
    height: 3.28vw;
    background-color: white;
    border: 0.15vw solid #3498bd;
    border-radius: 2vw;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
}

.toggle-switch .slider::before {
    content: "";
    position: absolute;
    width: 3.28vw;
    height: 3.28vw;
    top: 50%;
    left: 0.15vw;
    background-color: #284D9A;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    box-shadow: 0 0.2vw 0.4vw rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked+.slider::before {
    transform: translate(9.3vw, -50%);
}


.slider {
    position: relative;
    width: 80px;
    height: 35px;
    background-color: #fff;
    border: 2px solid #3BA9C3;
    border-radius: 50px;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    height: 27px;
    width: 27px;
    left: 4px;
    bottom: 3px;
    background-color: #284D9A;
    border-radius: 50%;
    transition: .4s;
}

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

.btn-submit {
    background: #284D9A;
    color: white;
    padding: 0.93vw 3.64vw;
    border: none;
    border-radius: 1.82vw 1.82vw 1.82vw 0;
    font-weight: 800;
    cursor: pointer;
    font-size: 1.67vw;
    text-transform: uppercase;
    align-self: flex-end;
}




.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 70vw;
    width: 70vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h3 {
    margin-top: 0;
    color: #284D9A;
}

.close-modal {
    float: right;
    cursor: pointer;
    font-weight: bold;
    color: red;
    font-size: 24px;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.option-grid label {
    border: 2px solid #ccc;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.option-grid label:hover {
    background-color: #f0f0f0;
}

#overlay-black {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: none;
}

.option-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1vw;
    margin-top: 2vw;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 0.5vw;
}

.option-radio-group::-webkit-scrollbar {
    width: 0.1vw;
}

.option-radio-group::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}


.option-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F0F8FF;
    border: 0.052vw solid #3498bd;
    border-radius: 0.52vw;
    padding: 1vw 1.5vw;
    font-size: 1.04vw;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 400;
}

.option-radio:hover,
.option-radio input:checked+span {
    background-color: #d2ecf8;
}

.option-radio img {
    width: 2.01 vw;
    height: auto;
    margin-right: 1vw;
}

.option-radio span {
    flex: 1;
    margin-left: 1vw;
}

.option-radio input[type="radio"] {
    accent-color: #3498bd;
    width: 1.3vw;
    height: 1.3vw;
}

.creneau-modal {
    background: #213B89;
    border-radius: 1.5vw;
    padding: 3vw;
    color: white;
    display: flex;
    flex-direction: row;
    gap: 2vw;
    width: 61.97vw;
}

.creneau-left {
    flex: 1;
}

.creneau-jour {
    font-size: 1.8vw;
    color: #E8E927;
    font-weight: 900;
    margin-bottom: 0.5vw;
}

.creneau-date {
    margin: 0;
    font-size: 1.1vw;
}

.creneau-title {
    font-size: 2vw;
    color: #E8E927;
    margin-top: 3vw;
}

.creneau-description {
    font-size: 1.05vw;
    color: white;
}

.creneau-right {
    flex: 1.2;
    background: white;
    border-radius: 0.7vw;
    padding: 1vw;
    display: flex;
    flex-direction: column;
    gap: 1vw;
    width: 28.64vw;
    overflow: auto;
    max-height: 60vh;
    color: black;
}

.horaire-option {
    width: 25.91;
    display: flex;
    align-items: center;
    background-color: #f5faff;
    border: 1.5px solid #3498bd;
    padding: 0.7vw 1.2vw;
    border-radius: 0.7vw;
    font-size: 1.1vw;
    color: #0a0a0a;
    cursor: pointer;
    transition: background-color 0.2s ease;
    justify-content: space-between;
}

.horaire-option:hover {
    background-color: #e6f4ff;
}

.horaire-option input[type="radio"] {
    accent-color: #284D9A;
    transform: scale(0.4);
    margin-left: auto;
}
.creneau-slot.disabled {
    background-color: #ddd;
    cursor: not-allowed;
}
.creneau-slot {
    cursor: pointer;
}


.creneau-btn {
    margin-top: 2vw;
    align-self: center;
}

.confirmation-content {
    max-width: 65vw;
}

.confirmation-box {
    background: white;
    padding: 0;
    border-radius: 1.5vw;
    margin-bottom: 3.5vw;
    /* margin-left: 6vw; */
    /* width: 66.25vw; */
}

.confirmation-box h3 {
    color: #213B89;
    font-size: 2.5vw;
    font-weight: 800;
    margin-bottom: 3vw;
    border-bottom: 0.2vw solid #D6E1FF;
    padding-bottom: 2vw;
}

.confirmation-box p {
    margin: 1.7vw 0;
    font-size: 1.875vw;
    display: flex;
    gap: 6vw;
    font-weight: 400;
}

.confirmation-box p strong {
    color: #3498BD;
    width: 21.25vw;
    font-weight: 700;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2vw;
}

#appointment-form {
    flex: 1;
}

@media (max-width: 768px) {

    .mobile-header.scrolled {
        background-color: #284D9A !important;
        /* background-color: #284D9A;  */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }
    
    .content-website {
        margin-top: 27vw;
    }

    .intro-text {
        padding: 0vw 5vw;
    }

    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        margin-left: 0vw;
        padding: 0vw 5vw 7vw 5vw;
    }

    .close-modal {
        font-size: 5vw !important;
    }

    .stepper {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        position: relative;
        left: 0;
        margin-bottom: 8vw;
    }

    .stepper::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 3px;
        /* ligne horizontale */
        width: 100%;
        background-color: #284D9A;
        transform: translateY(-50%);
        z-index: 0;
        border-radius: 10px;
    }

    .stepper::after {
        display: none;
    }

    .step {
        flex: 1;
        text-align: center;
        padding: 1rem;
    }

    .form-group label {
        font-size: 18px;
        width: 100%;
        font-weight: 600;
    }

    main {
        margin: 0;
        /* margin: 28vw 20vw 2vw 17vw; */
        padding: 0;
    }

    .form-group select,
    .form-group input,
    p.subtext,
    span {
        font-size: 4vw !important;
        width: 50%;
    }

    form {
        max-width: none;
        padding: 6vw 5vw;
        display: block;
        margin: 0;
    }

    h1 {
        font-size: 5.5vw !important;
    }

    .btn-submit {
        margin-top: 4vw;
        border-radius: 2.82vw 2.82vw 2.82vw 0;
        font-size: 5.3vw;
        margin-left: 6vw;
    }

    .btn-submit.submit {
        margin-left: -5vw;
        font-size: 4.5vw;
        font-weight: 500;
    }

    .btn-submit.btn-prev.submit {
        font-size: 4.5vw !important;
        margin-left: -6vw !important;
    }

    .button-group.submit {
        gap: 10vw;
    }

    .confirmation-box p strong {
        font-size: 3.5vw;
        width: 50%;
    }

    .confirmation-box h3 {
        font-size: 3.5vw
    }


    .horaires-modal {
        width: 90vw;
        max-width: 90vw;
        padding: 5vw;
        border-radius: 4vw;
    }

    .modal-title {
        font-size: 5vw;
        margin-bottom: 3vw;
        text-align: center;
    }

    .horaire-list {
        gap: 3vw;
        max-height: 50vh;
        overflow-y: auto;
        margin-bottom: 4vw;
    }

    .horaire-option {
        height: auto;
        padding: 4vw;
        gap: 2vw;
        border-radius: 2vw;
        font-size: 3.8vw;
        flex-direction: column;
        align-items: flex-start;
    }

    .horaire-option input[type="radio"] {
        margin-right: 2vw;
        transform: scale(0.8);
        display: none;
    }

    .jour {
        font-size: 4vw;
        font-weight: bold;
    }

    .heure,
    .duree,
    .type {
        font-size: 3.5vw;
        flex: 1;
    }

    .avatar {
        width: 12vw;
        height: 12vw;
        border-radius: 50%;
        object-fit: cover;
    }

    .info-text {
        font-size: 3.5vw;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2vw;
    }

    .info-icon {
        width: 6vw;
        margin-bottom: 1vw;
    }

    .modal .btn-submit {
        font-size: 4.5vw;
        width: 100%;
        padding: 4vw;
        border-radius: 2.5vw;
        margin-bottom: 4vw;
        text-align: center;
    }

    .info-text {
        font-size: 3.5vw;
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        width: 6vw;
        margin-right: 0;
        margin-bottom: 2vw;
    }

    .modal .btn-submit {
        height: auto;
        width: 30% !important;
        font-size: 3vw important;
        padding: 2vw;
        margin-bottom: 2vw !important;
    }

    h1 {
        font-size: 8vw;
    }

    p.subtext {
        font-size: 4vw;
    }

    .creneau-modal {
        display: flex;
        flex-direction: column;
        gap: 5vw;
        padding: 2vw 2vw;
        margin-bottom: 49vw;
        width: 85vw;
    }

    .creneau-left,
    .creneau-right {
        width: 100%;
    }

    .creneau-right {
        flex: 1;
        display: flex;
        flex-direction: column;
        max-height: 46vh;
        overflow-y: auto;

    }

    .creneau-left {
        text-align: center;
    }

    .creneau-title {
        font-size: 6vw;
    }

    .creneau-description {
        font-size: 3.5vw;
        text-align: center;

    }

    .creneau-date {
        font-size: 3.1vw;
    }

    .creneau-jour {
        font-size: 3.8vw;
        color: #E8E927 !important;
    }

    .horaire-option {
        font-size: 4vw;
        padding: 4vw;
        align-items: center;
        justify-content: center;
    }

    .btn-submit.creneau-btn {
        font-size: 4vw;
        padding: 3vw;
        width: 100%;
    }

    .btn-submit.btn-prev {
        font-size: 5vw !important;
        margin-left: 0vw !important;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.5vw;
        margin-bottom: 5vw;
    }

    .form-group input {
        width: 100%;
    }

    .toggle-switch .slider {
        width: 16.12vw;
        height: 7.28vw;
        border-radius: 4vw;
    }

    .slider::before {
        width: 6.28vw !important;
        height: 6.28vw !important;
    }

    .form-group.button-group {
        display: flex;
        flex-direction: row;
    }
    
}