@charset "utf-8";

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

html,
body {
    height: 100%;
    touch-action: manipulation;
}

body,
td,
th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #000;
}

body {
    min-height: 100vh;
    background-color: #f5f7fa;
    color: #1f2937;
    display: flex;
    flex-direction: column;
}

.left  { float: left; }
.right { float: right; }

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

main.full_container {
    flex: 1;
    display: flex;
    margin-top: 140px;
    padding-bottom: 20px;
}

.main-content {
    flex: 1;
    padding: 0;
}

.top_contener_header {
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content_container {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
}

.class_barre_blanc .top_contener_header {
    width: 100%;
}

.class_barre_orange .top_contener_header {
    width: 100%;
}

.full_container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.contener_half {
    width: 50%;
    padding: 0;
    display: flex;
}

.logout_icon {
    height: 32px;
    margin-left: 10px;
    cursor: pointer;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.class_barre_green {
    width: 100%;
    height: 60px;
    background: #007461;
    display: flex;
    align-items: center;
    justify-content: center;
}

.barre_green {
    width: 100%;
    height: 30px;
    background: #004652;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class_barre_orange {
    width: 100%;
    min-height: 80px;
    background: #C85207;
    display: flex;
    align-items: center;
    justify-content: center;
}

.class_barre_blanc {
    width: 100%;
    height: 60px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo_header_left {
    border: 0;
    background: #FFF;
    padding: 0;
    height: 40px;
    width: auto;
}

.img_header_left {
    border: 0;
    background: #FFF;
    padding: 0;
    height: 40px;
    width: auto;
}

.img_header_right {
    border: 0;
    background: #FFF;
    padding: 0;
    height: 45px;
    width: auto;
}

.left_orange {
    border: 0;
    background: #C85207;
    padding: 0;
    height: 40px;
    width: auto;
}

.right_orange {
    border: 0;
    background: #C85207;
    padding: 0;
    height: 40px;
    width: auto;
}

.contener_main_inside {
    margin: 0;
}

.container_box_green,
.container_box_white {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

.container_box_darkgreen,
.container_box_white {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
}

.container_box_green {
    border-top: 1px solid #007461;
    border-bottom: 1px solid #007461;
    background: linear-gradient(to bottom, #007461, #007461);
}

.container_box_darkgreen {
    border-top: 1px solid #004652;
    border-bottom: 1px solid #004652;
    background: linear-gradient(to bottom, #004652, #004652);
}

.container_box_white {
    border: 1px solid #F5F7FA;
    background: #F5F7FA;
}

.home_images {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.home_images img {
    flex: 1;
    width: 100%;
    object-fit: cover;
}

.full_width {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.footer {
    margin-top: 0;
    padding: 10px 0;
    background: #F5F7FA;
    color: #f5f7fa;
    text-align: center;
}

.form_wrapper {
    width: 100%;
    max-width: 500px;
}

.box_blue_all {
    width: 100%;
    border: 1px solid #FFFFFF;
    background: #004652;
    vertical-align: middle;
    padding: 0;
    border-radius: 10px;
}

/* MENU */
.menu_titre_nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 22px 8px;
}

.menu_titre_link {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: opacity 0.2s ease;
}

.menu_titre_link:hover {
    opacity: 0.8;
}

.menu_titre_sep {
    flex: 0 0 1%;
    display: block;
    text-align: center;
    opacity: 0.7;
}
@media (max-width: 1095px) {
    .menu_titre_nav {
        padding: 18px 4px;
    }

    .menu_titre_link {
        text-align: center;
        line-height: 1.2;
    }

    .menu_titre_sep {
        flex-basis: 2%;
    }
}

/* ======================================================
   MENU FOOTER STICKY
====================================================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #F5F7FA;
    z-index: 1000;
    padding: 8px 0 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* Pour éviter que le contenu passe sous le menu */
body {
    padding-bottom: 110px;
}

/* Conteneur */
.footer_menu {
    display: flex;
    width: 100%;
}

/* Bloc */
.footer_item {
    width: 25%;
    text-align: center;
}

/* Lien */
.footer_item a {
    display: block;
    text-decoration: none;
}

/* Icône */
.footer_icon {
    display: block;
    width: 22px;
    height: auto;
    margin: 0 auto 5px;
}

/* Texte si besoin plus tard */
.footer_item span {
    display: block;
    font-size: 11px;
}

/* Petit espace entre ligne icônes et ligne textes */
.footer_menu + .footer_menu {
    margin-top: 5px;
}

/* Effet tactile */
.footer_item a:active {
    transform: scale(0.95);
}

/* Mobile */
@media (max-width: 1095px) {
    .footer {
        padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: 120px;
    }

    .footer_icon {
        width: 20px;
    }
}

/* ======================================================
   GROUPE DROITE HEADER
====================================================== */
.header_right_group {
    display: flex;
    align-items: center;
    margin-left: auto; /* pousse tout à droite */
    gap: 10px;
}

/* Icônes header */
.header_icon {
    height: 45px;
    width: auto;
    cursor: pointer;
    margin-left: 5px;
}

/* Ajustement logout */
.header_right_group .img_header_right {
    width: auto;
    margin-left: 5px; /* petit espace */
}


/* ======================================================
   BOX DES PAGES
====================================================== */
.box_light_up {
	border-right: 0px solid #007461;
	border-left: 0px solid #007461;
	border-top: 4px solid #007461;
	border-bottom: 0px solid #007461;
	background: #F9FCFB;
	vertical-align: middle;
	padding: 0px;
	border-radius: 10px 10px 0px 0px; /* optional rounded corners for browsers that support it */
}

.box_white_square {
	border-right: 0px solid #007461;
	border-left: 0px solid #007461;
	border-top: 0px solid #007461;
	border-bottom: 3px solid #F9FCFB;
	background: #FFFFFF;
	vertical-align: middle;
	padding: 0px;
}

.box_blue_up {
	border-right: 1px solid #007461;
	border-left: 1px solid #007461;
	border-top: 1px solid #007461;
	border-bottom: 0px solid #007461;
	background: #007461;
	vertical-align: middle;
	padding: 0px;
	border-radius: 10px 10px 0px 0px; /* optional rounded corners for browsers that support it */
}

.box_white_down {
	border: 1px solid #007461;
	background: #FFFFFF;
	vertical-align: middle;
	padding: 0px;
	border-radius: 0px 0px 10px 10px; /* optional rounded corners for browsers that support it */
}

.box_blue_left,
.box_white_right {
    padding: 0;
    border-style: solid;
    border-width: 1px 1px 0;
    min-width: 0;
}

.box_blue_left {
    border-color: #007461;
    background-color: #007461;
    border-radius: 10px 0 0 10px;
}

.box_white_right {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
    border-radius: 0 10px 10px 0;
}

.box_white_shadow {
    padding: 0;
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-bottom: 0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.barre_grey {
    width: 100%;
    height: 1px;
    background-color: #ECEDF0;
}

.contener_green_rib_txt,
.contener_green_rib_info {
    padding: 5px;
    min-width: 0;
}

.contener_green_rib_txt {
    flex: 0 0 30%;
}

.contener_green_rib_info {
    flex: 1;
    overflow-wrap: anywhere;
}

/* ======================================================
   INPUT COMPTE
====================================================== */
.champs_compte {
    border: 1px solid #007461;
    font-size: 18px;
    color: #1f2937;
    background-color: #ffffff;
    padding: 10px;
    width: 90%;
    max-width: 100%; 
    height: 45px;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
}

/* Focus propre (très important UX) */
.champs_compte:focus {
    border-color: #004652;
    box-shadow: 0 0 0 2px rgba(0, 116, 97, 0.2);
}

.champs_compte_disable {
    border: 1px solid #007461;
    font-size: 18px;
    color: #1f2937;
    background-color: #ffffff;
    padding: 10px;
    width: 100%;
    max-width: 100%; 
    height: 45px;
    border-radius: 12px;
    outline: none;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ======================================================
   INPUT DESACTIVE
====================================================== */
.champs_disable {
    border: 1px solid #EDEEF1;
    font-size: 14px;
    color: #C4C7D2;
    background-color: #EDEEF1;
    padding: 10px;
    width: 100%;
    max-width: 100%; 
    height: 45px;
    border-radius: 25px;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ======================================================
   BOUTON SUBMIT
====================================================== */
.champs_submit {
    border: 1px solid #007461;
    font-size: 14px;
    color: #ffffff;
    background-color: #007461;
    padding: 12px;
    width: 100%;
    max-width: 100%; 
    height: 45px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover bouton */
.champs_submit:hover {
    background-color: #004652;
    border-color: #075043;
}

/* Active (clic) */
.champs_submit:active {
    transform: scale(0.98);
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1095px) {
    .champs_compte,
    .champs_disable,
    .champs_submit {
        max-width: 100%;
    }
}
    
.pin-pad{
    width: 100%;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:10px;
    margin-top:20px;
}
.pin-pad button{
    width: 60px;
    height: 60px;
    font-size: 20px;
    flex: none;
    font-weight: bold;
    border-radius:6px;
    border:none;
    background: #F5F7FA;
    color: #212121;
    cursor:pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.pin-pad button:active {
    transform: none;
}

/* ======================================================
   BARRE ORANGE - CONTENU
====================================================== */
.orange_infos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    align-items: center;
    color: #ffffff;
    gap: 10px;
}

/* ======================================================
   DESKTOP
====================================================== */
@media (min-width: 1096px) {
    .orange_infos {
        justify-content: space-between;
    }

    main.full_container {
        margin-top: 200px;
    }
    .text_responsive {
        max-width: 600px;
    }
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 1095px) {
    .orange_infos {
        justify-content: space-between;
    }

    main.full_container {
        margin-top: 260px;
    }
    .text_responsive {
        max-width: 250px;
    }
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader img {
    width: 80px;
}