body {
    font-family: 'Poppins', sans-serif;
    background: url("../images/bg.jpg") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Ajustement pour compenser le header fixe 'https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80' */
}

.top-bar {
    background: #f5a623;
    color: white;
    padding: 10px 0;
    font-size: 0.9em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.top-bar a:hover {
    text-decoration: underline;
}

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 40px; /* Juste en dessous de la top-bar */
    width: 100%;
    z-index: 1000;
}

.logo {
    height: 50px;
}

.navbar-brand {
    font-weight: 600;
    color: #f5a623 !important;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f5a623 !important;
}

.welcome-message {
    text-align: center;
    margin: 60px auto;
    max-width: 800px;
    padding: 20px;
	background: #EDECEC; /*534949*/
	border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.welcome-message h3 {
    color: #f5a623;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.welcome-message h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: #f5a623;
    bottom: -5px;
    left: 25%;
}

.welcome-message p {
    color: #28a745;
    font-weight: 500;
    font-size: 1.1em;
}

.entete {
    color: #28a745;
    font-weight: 500;
}

.contour {
	border:dashed 1px #28a745;
}

.contourPlus {
	border:dashed 2px #f5a623;
	padding: 5px;
	border-radius: 10px;
}

.contourPlus h5{
	color: #f5a623;
	text-decoration: underline;
	text-align: center;
	margin-top: 10px !important;
}

.entete-div {
    margin-top: 20px;
    border: 2px dashed #28a745;
    min-height: 100px; /* Hauteur minimale */
    max-width: 800px; /* Largeur maximale */
    position: relative;
    padding: 2px;
	padding-bottom: 10px !important;
    box-sizing: border-box;
	margin-bottom: 25px !important;
	border-radius: 10px;
}

.entete-div::before {
    position: absolute;
    top: -10px;
    left: 5px;
    background: white;
    padding: 0 5px;
}

.entete-titre {
    position: absolute;
    top: -10px; 
    left: 10px;
    background: white;
    padding: 0 5px;
    color: #28a745;
    font-size: 16px;
    margin: 0;
}


.form-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.form-label {
    font-weight: bold;
    color: #333;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #f5a623;
    box-shadow: 0 0 8px rgba(245,166,35,0.3);
}
.searchable-select {
    position: relative;
    /*width: 250px;*/
}
.searchable-select input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}
.options {
    position: absolute;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    background: white;
    display: none;
    z-index: 100;
}
.option {
    padding: 8px;
    cursor: pointer;
}
.option:hover {
    background: #f2f2f2;
}
optgroup[data-color="blue"] {
    background-color: #e6f0ff; /* bleu clair */
    color: #004085;
    font-weight: bold;
}

optgroup[data-color="green"] {
    background-color: #F5F5F5; /* vert clair */
    color: #000000;
    font-weight: bold;
}

.error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25em;
}

.is-invalid {
    border-color: #dc3545;
}

.btn-primary {
    background: #f5a623;
    border: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: #e69520;
    transform: translateY(-2px);
}

.form-check-label {
    cursor: pointer;
	vertical-align: middle;
}

.form-check-input {
    cursor: pointer;
	font-size: 20px;
	margin-bottom: 10px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/*.input-icon input, .input-icon select {
    padding-left: 35px;
}*/

.footer {
    background: #f8f9fa;
    padding: 20px 0;
    color: #333;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: #f5a623;
    text-decoration: none;
    margin: 0 10px;
}

a{
    color: #f5a623;
    text-decoration: none;
    margin: 0;
}

a:hover {
    text-decoration: underline;
}

.limit{	
	height: 200px;
	padding-left: 8px;
	overflow: auto;
}

.footer a:hover {
    text-decoration: underline;
}
/* Styles pour le sous-menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #fff;
    color: #f5a623;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* --- POPUP IMAGE --- */
.popup-container {
  display: none; /* caché par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* fond sombre */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  position: relative;
  animation: fadeIn 0.5s ease;
}

.popup-image {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Bouton de fermeture (croix) */
.close-popup {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  line-height: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.close-popup:hover {
  background: #ff4444;
  color: #fff;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

/* Styles pour le breadcrumbs avec overlay */
        .breadcrumb-section {
            position: relative;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 80px 0 40px;
            margin-top: 0;
            overflow: hidden;
        }
        
        .breadcrumb-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1;
        }
        
        .breadcrumb-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
        }
        
        .breadcrumb-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .breadcrumb {
            background: rgba(255, 255, 255, 0.1);
            padding: 0.75rem 1.5rem;
            border-radius: 25px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            display: inline-flex;
            margin: 0;
        }
        
        .breadcrumb-item {
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
        }
        
        .breadcrumb-item.active {
            color: white;
        }
        
        .breadcrumb-item + .breadcrumb-item::before {
            content: ">";
            color: rgba(255, 255, 255, 0.6);
            margin: 0 0.5rem;
        }
        
        .breadcrumb-item a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .breadcrumb-item a:hover {
            color: white;
        }
        
        /* Animation de particules en arrière-plan */
        .breadcrumb-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
                              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
                              radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
            background-size: 200px 200px, 150px 150px, 300px 300px;
            animation: float 20s ease-in-out infinite;
            z-index: 0;
        }
        
        @keyframes float {
            0%, 100% { transform: translate(0, 0); }
            50% { transform: translate(-10px, -10px); }
        }