/* ==========================================================
   APP PHARMACIE - HARMONISATION VISUELLE
   Compatible Bootstrap existant - interface arabe RTL
   ========================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.mdn {
    direction: rtl;
    font-family: "Open Sans", Arial, sans-serif;
    background-color: #dbe7f7;
    background-attachment: fixed;
}

/* Conteneur principal */
#tabs {
    direction: rtl;
    width: 100%;
}

#tabs > .animatedParent > .container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

#tabs .tab-content {
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .10);
}

/* Navigation des rubriques */
#myTabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    direction: rtl;
    border-bottom: 3px solid #c8102e;
    margin-bottom: 0;
}

#myTabs > li {
    float: none;
    margin: 0 0 0 5px;
    background: #c8102e;
    border-radius: 9px 9px 0 0;
}

#myTabs > li > a {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 18px;
    border: 0;
    border-radius: 9px 9px 0 0;
    text-align: center;
}

#myTabs > li > a:hover,
#myTabs > li > a:focus {
    color: #c8102e;
    background: #fff;
}

#myTabs > li.active > a,
#myTabs > li.active > a:hover,
#myTabs > li.active > a:focus {
    color: #c8102e;
    background: #fff;
    border: 0;
    border-bottom: 3px solid #fff;
}

/* Contenu des onglets */
#tabs .tab-pane.bx-wrap {
    padding: 25px 30px;
    background: #fff;
    border-bottom: 3px solid #c8102e;
    border-radius: 0 0 10px 10px;
}

/* Titres des sections */
#tabs h3.title {
    color: #26364a;
    font-size: 19px;
    font-weight: 700;
    text-align: right;
    text-transform: none;
    border-bottom: 1px solid #e5eaf0;
    padding: 0 0 12px;
    margin: 22px 0 20px;
}

#tabs h3.title span {
    display: inline-block;
    color: #c8102e;
    border-bottom: 3px solid #c8102e;
    padding: 0 0 10px;
}

/* Formulaire d'inscription */
#home3 form#form {
    width: 100%;
    direction: rtl;
    text-align: right;
}

#home3 form#form > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 -8px 12px;
}

#home3 form#form .row > [class*="col-"] {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
}

#home3 form#form label {
    display: block;
    width: 100%;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8 !important;
    text-align: right;
    margin-bottom: 5px;
}

#home3 form#form .form-control {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 40px;
    height: auto;
    padding: 8px 11px;
    color: #26364a;
    background-color: #fff;
    border: 1px solid #ccd5df;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    text-align: right;
    direction: rtl;
    transition: border-color .2s, box-shadow .2s;
}

#home3 form#form .form-control:focus {
    border-color: #3983c8;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(57, 131, 200, .12);
}

#home3 form#form select.form-control {
    cursor: pointer;
}

#home3 form#form input[type="text"],
#home3 form#form input[type="email"] {
    direction: rtl;
}

#home3 form#form input#cin,
#home3 form#form input#tel,
#home3 form#form input#tel2,
#home3 form#form input#secure {
    direction: ltr;
    text-align: left;
}

/* CAPTCHA */
#home3 #captcha {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

#home3 form#form input#secure {
    display: inline-block;
    width: 140px !important;
    max-width: 45%;
}

/* Boutons */
#home3 .btn,
.modal .btn {
    min-height: 40px;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 700;
    transition: opacity .2s, transform .2s;
}

#home3 .btn-primary {
    background: #c8102e;
    border-color: #c8102e;
}

#home3 .btn-primary:hover {
    background: #a80d26;
    border-color: #a80d26;
}

#home3 .panel-heading {
    background: transparent;
    border: 0;
    padding: 18px 0;
}

/* Fenêtres modales */
.modal {
    direction: rtl;
}

.modal .modal-dialog {
    width: 850px !important;
    max-width: calc(100% - 30px);
    margin: 30px auto;
}

.modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

.modal .modal-header {
    padding: 16px 22px;
    background: #eaf2fa !important;
    border-bottom: 1px solid #dce5ef;
}

.modal .modal-title {
    color: #26364a;
    font-size: 19px;
    font-weight: 700;
}

.modal .modal-body {
    padding: 22px;
    max-height: 70vh;
    overflow-y: auto;
}

#DVerif .modal-body .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 -8px 12px;
}

#DVerif .modal-body .row > [class*="col-"] {
    min-width: 0;
    padding: 6px 8px;
    overflow-wrap: anywhere;
}

#DVerif .modal-body b {
    color: #344054;
    line-height: 1.8;
}

#DVerif .modal-body [style*="color:#0044cc"] {
    color: #1762a5 !important;
    line-height: 1.8;
}

.modal .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5eaf0;
}

.modal .modal-footer button {
    margin: 0;
}

#DVerif #clignotant {
    display: block;
    width: 100% !important;
    line-height: 1.8;
    margin-top: 8px;
}

/* Rubrique des conditions */
#home p,
#home {
    line-height: 1.9;
    overflow-wrap: anywhere;
}

#home h3.title {
    margin-top: 22px;
}

/* Rubrique impression */
#home4 {
    min-height: 250px;
}

#home4 form {
    width: 100%;
}

/* Tablettes */
@media (max-width: 991px) {
    #tabs > .animatedParent > .container {
        width: 100%;
    }

    #tabs .tab-pane.bx-wrap {
        padding: 20px;
    }

    #home3 form#form > .row > [class*="col-"] {
        margin-bottom: 8px;
    }

    #DVerif .modal-dialog {
        width: auto !important;
    }
}

/* Mobiles */
@media (max-width: 767px) {
    body.mdn {
        background-attachment: scroll;
    }

    #tabs > .animatedParent > .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    #myTabs {
        display: flex;
        flex-direction: column;
        border-bottom: 0;
        gap: 5px;
    }

    #myTabs > li {
        width: 100%;
        margin: 0;
        border-radius: 6px;
    }

    #myTabs > li > a {
        width: 100%;
        padding: 12px 10px;
        border-radius: 6px;
        text-align: center;
    }

    #myTabs > li.active > a {
        border-bottom: 0;
    }

    #tabs .tab-pane.bx-wrap {
        padding: 15px 12px;
    }

    #tabs h3.title {
        font-size: 17px;
        margin: 18px 0 14px;
    }

    #home3 form#form > .row {
        display: block;
        margin-left: -5px;
        margin-right: -5px;
        margin-bottom: 8px;
    }

    #home3 form#form > .row > [class*="col-"] {
        width: 100%;
        float: none;
        margin-bottom: 10px;
    }

    #home3 form#form .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }

    #home3 form#form .col-md-5,
    #home3 form#form .col-md-7,
    #home3 form#form .col-md-4,
    #home3 form#form .col-md-8,
    #home3 form#form .col-md-9,
    #home3 form#form .col-md-3,
    #home3 form#form .col-md-2,
    #home3 form#form .col-md-10 {
        width: 100%;
        float: none;
    }

    #home3 form#form label {
        margin-bottom: 4px;
    }

    #home3 form#form .form-control {
        min-height: 42px;
    }

    .modal .modal-dialog {
        width: auto !important;
        max-width: calc(100% - 16px);
        margin: 8px auto;
    }

    .modal .modal-body {
        padding: 14px 10px;
        max-height: 75vh;
    }

    #DVerif .modal-body .row {
        display: block;
        margin-bottom: 8px;
    }

    #DVerif .modal-body .row > [class*="col-"] {
        width: 100%;
        float: none;
        padding: 5px;
    }

    .modal .modal-footer {
        padding: 12px 8px;
    }

    #home4 .form-control {
        max-width: 100%;
    }
}

/* Très petits écrans */
@media (max-width: 380px) {
    #tabs .tab-pane.bx-wrap {
        padding: 12px 8px;
    }

    #home3 form#form input#secure {
        width: 110px !important;
    }

    .modal .modal-title {
        font-size: 16px;
    }
}
