:root {
    --primary-color: #faa61f;
    --primary-dark: #e8951c;
    --primary-light: #fbb44a;
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --success-color: #00d4aa;
    --warning-color: #ffd700;
    --danger-color: #ff6b6b;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Abel';
    src: url('../font/Abel.ttf');
}

@font-face {
    font-family: 'Cairo';
    src: url('../font/Cairo.ttf');
}

body {
    
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Abel', 'cairo';
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    position: relative;
    background-color: #f5f5f5;

}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(250, 166, 31, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(251, 180, 74, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(250, 166, 31, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.forms {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 50rem;
}

.form-control {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    height: auto;
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}

.logo-container {
    text-align: center;
}

/*Table de mes fichier*/
.container-fichier {
    padding: 20px;
}

/*Style forme*/
.container-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.form-container-login {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 23rem;
}

.form-control {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    height: auto;
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
}
/* Checkbox personnalisée stylisée */
.custom-checkbox {
    position: relative;
    display: inline-block;
    margin: 10px 15px;
    cursor: pointer;
}

/* Support pour les checkbox ET radio buttons */
.custom-checkbox input[type="checkbox"],
.custom-checkbox input[type="radio"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.checkmark {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    vertical-align: middle;
}

/* Style pour les radio buttons - cercle au lieu de carré */
.custom-checkbox input[type="radio"] + .checkmark {
    border-radius: 50%;
}

/* Checkmark pour checkbox */
.checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease-in-out;
}

/* Point pour radio button */
.custom-checkbox input[type="radio"] + .checkmark:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

/* État checked pour checkbox et radio */
.custom-checkbox input:checked + .checkmark {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

/* Animation pour checkbox (coche) */
.custom-checkbox input[type="checkbox"]:checked + .checkmark:after {
    transform: rotate(45deg) scale(1);
}

/* Animation pour radio (point) */
.custom-checkbox input[type="radio"]:checked + .checkmark:after {
    transform: translate(-50%, -50%) scale(1);
}

/* Hover effect */
.custom-checkbox:hover .checkmark {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Animation pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.custom-checkbox input:checked + .checkmark {
    animation: pulse 0.3s ease-in-out;
}

/* Style pour le texte du label */
.custom-checkbox span:last-child {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.custom-checkbox input:checked ~ span:last-child {
    color: #007bff;
    font-weight: 600;
}
/*NavBar*/
.navbar-nav .nav-link.active {
  color: #182848 !important;
  font-weight: bold;
}

/*Fin navbar*/
.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}