/*
 * Global styles for Tambali application
 * Other stylesheets are loaded separately in the layout
 */

 @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');


 /* =========================== Styles globaux Tambali =========================== */

 /* Reset basique */
* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #22364D;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body{
    background-color: #F6F7F8;
}

/* Pour Chrome, Edge, Safari */

*::-webkit-scrollbar {
    display: none !important;
}


* {
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;     /* Firefox */
}

a, button{
    cursor: pointer;
    text-decoration: none;
}

button:disabled,
a:disabled,
input:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

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

input:focus,
select:focus{
    outline: none;
}

.web{
    display: block;
}

.mobile{
    display: none;
}

.password-input-group .field_with_errors{
    width: 90%;
}

.form-errors {
    background: #ffe6e6;
    border: 1px solid #ff4d4f;
    color: #a8071a;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  
  .form-errors h4 {
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    color: #a8071a;
  }
  
  .form-errors ul {
    margin: 0;
    padding-left: 1.2rem;
  }
  
  .form-errors li {
    list-style: disc;
  }
  

/* =========================== Mobile =========================== */

@media (max-width: 640px) {

    .web{
        display: none;
    }
    
    .mobile{
        display: block;
    }

    .form-container{
        width: 100%;
        padding-bottom: 2rem;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        max-width: 100%;
        background: #fff;
      
        transform: translateX(-100%); /* caché hors écran à gauche */
        opacity: 0;
        visibility: hidden;
      
        transition: transform 0.4s ease, 
                    opacity 0.4s ease, 
                    visibility 0.4s ease;
      
        z-index: 9999;
      }
      
      .mobile-menu.active {
        transform: translateX(0); /* revient à sa place */
        opacity: 1;
        visibility: visible;
        transition: transform 0.4s ease, 
                    opacity 0.4s ease, 
                    visibility 0.4s ease;
      }
      
      
    .sidebar, .sidebar * {
        pointer-events: auto;    /* garantit que tout est cliquable */
    }

    .mobile-menu.active .sidebar{
        opacity: 1;
        width: calc(100% - 40px);
        transform: translateX(0%);
        background-color: #fff;
        height: 100%;
        padding: 20px;
    }

    .head-flex{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
}

/* =========================== Tablette =========================== */

@media (min-width: 641px) and (max-width: 1024px) {
    
}
  
  

