
/* @import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cairo:wght@200..1000&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cairo:wght@200..1000&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* Style général */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Amiri', 'Roboto', sans-serif;
    background-color: #d7d5d5;

    
}

main {
    flex: 1;
}

/* Animations personnalisées */
.fade-in {
    animation: fadeIn 0.9s ease-in;
}
#actions{
    /* margin-top: 10px; */
    z-index: 9000 !important;
   
  
    
}
/* Styles des cartes */
.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Style du tableau de bord */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style de la barre de navigation */
.navbar {
    /* font-family: 'Amiri', 'Cairo', 'Roboto', sans-serif; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
}
.nav-link{
    
    font-size: 20px;
}
/* Style des formulaires */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Style des boutons */
.btn {
    border-radius: 5px;
   
    padding: 5px;
}

/* Style des tableaux */
.table {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style du footer */
.footer {
    font-family: 'Amiri', 'Arial', sans-serif;
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 1rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; 
        /* Ajoute un rembourrage horizontal de 15 pixels */
    }
    
    .card {
        margin-bottom: 15px; 
        /* Ajoute une marge inférieure de 15 pixels pour espacer les cartes */
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    z-index: 1051;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.calculator {
    width: 100%;
}

#display {
    width: 100%;
    padding: 10px;
    font-size: 20px;
    margin-bottom: 10px;
    /* font-family: 'Amiri', 'Noto Naskh Arabic', 'Cairo', 'Tajawal', Arial, sans-serif; */
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.buttons button {
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.1s;
}

.buttons button:active {
    transform: scale(0.95);
}

.buttons .number {
    background-color: #7b838a;
    color: white;
}

.buttons .number:hover {
    background-color: #5a6268;
}

.buttons .operator {
    background-color: #007bff;
    color: white;
}

.buttons .operator:hover {
    background-color: #0056b3;
}

#backspace {
    background-color: #dc3545;
    color: white;
}

#backspace:hover {
    background-color: #c82333;
}

#clear {
    background-color: #ffc107;
    color: #212529;
}

#clear:hover {
    background-color: #e0a800;
}

.memory-display {
    text-align: right;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}

.buttons .memory {
    background-color: #17a2b8;
    color: white;
}

.buttons .memory:hover {
    background-color: #138496;
}

/* Police spécifique pour l'arabe */
/* [lang="ar"], .ar, html[dir="rtl"] {
    font-family: 'Amiri', 'Noto Naskh Arabic', 'Cairo', 'Tajawal', Arial, sans-serif;
    font-size: 1.1em; 
    letter-spacing: 0.01em; 
} */



