/* PALETTE SOBASO */
:root {
	--orange: #FF6B00;
	--orange-dark: #e65c00;
	--orange-col: #FF6B001C;
	--blue: #0066CC;
	--blue-dark: #004d99;
	--gray-light: #f7f7f7;
	--gray-medium: #888888;
	--gray-dark: #333333;
	--white: #ffffff;
	--success: #28a745;
	--border-radius: 8px; /* Unifié à 8px pour un look plus moderne */
	--transition: 0.25s ease;
}

/* BASE DESIGN */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: #f5f5f5;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 600px;
	margin: 30px auto;
	background: var(--white);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
	border-top: 5px solid var(--orange);
}

/* EN-TÊTE AVEC ROND ORANGE & TEXTE 2 LIGNES */
.gap1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 25px;
}

.icon-circle {
    background-color: var(--orange);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    color: white;
}

.label-group {
    display: flex;
    flex-direction: column;
}

h1 {
  color: var(--blue);
  text-align: center;
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.subtitle {
  text-align: center;
  color: var(--gray-medium);
  margin-bottom: 25px;
  font-size: 14px;
}

/* FORMULAIRE & INPUTS */
.form-group label {
	display: block;
	margin-top: 18px;
	font-weight: bold;
	color: var(--gray-dark);
	font-size: 14px;
}

/* SWITCH PRO (INTERVENTION URGENTE / ACTIF) */
.urgent-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #feb2b2;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.urgent-wrapper:has(input:checked) {
    background: #f7fff5;
    border-color: #b2feb7;
}

.urgent-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.urgent-texts {
    display: flex;
    flex-direction: column;
}

.urgent-title {
    font-weight: bold;
    font-size: 14px;
    color: var(--gray-dark);
}

.urgent-subtitle {
    font-size: 11px;
    color: var(--gray-medium);
}

.pro-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.pro-switch input {
    opacity: 0; width: 0; height: 0;
}

.pro-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e53e3e;
    transition: .4s;
    border-radius: 34px;
}

.pro-slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .pro-slider { background-color: var(--success); }
input:checked + .pro-slider:before { transform: translateX(24px); }

/* État PAR DÉFAUT (Non coché = Rouge / Indisponible) */
.urgent-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff5f5; /* Rouge clair */
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid #feb2b2;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.pro-slider {
    background-color: #e53e3e; /* Rouge */
}

/* État COCHÉ (Coché = Vert / Disponible) */
.urgent-wrapper:has(input:checked) {
    background: #f7fff5; /* Vert clair */
    border-color: #b2feb7;
}

input:checked + .pro-slider { 
    background-color: #48bb78; /* Vert succès */
}

/* Animation douce pour la disparition du bouton */
#submit-wrapper {
    transition: opacity 0.3s ease;
}





.note {
  margin: 0 !important;
  font-size: 12px;
  color: var(--gray-medium);
}

.main-label {
  margin: 0 !important;
  font-weight: bold;
  font-size: 15px;
  color: var(--gray-dark);
}


/* Cible TOUS les types d'inputs utilisés dans ton formulaire */
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.choix_statut {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: border var(--transition);
    box-sizing: border-box; /* INDISPENSABLE pour que le 100% ne dépasse pas */
    display: block;
}

/* Style spécifique pour les champs en ligne (CP / VILLE) */
.form-group.row {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.form-group.row .col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Focus harmonisé pour tous */
.form-group input:focus, 
.choix_statut:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}









/* BOUTONS */
.actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-primary, .btn-secondary, .btn-planning {
	cursor: pointer;
	text-decoration: none;
	border: none;
	padding: 14px;
	font-size: 17px;
	border-radius: var(--border-radius);
	font-weight: bold;
	text-align: center;
	flex: 1;
	transition: opacity var(--transition);
}

.btn-primary { background-color: var(--orange); color: #fff; }
.btn-primary:hover { background-color: var(--orange-dark); }

.btn-secondary { background-color: #6c757d; color: #fff; display: none; }
.btn-secondary:hover { background-color: #5a6268; }

.btn-planning { background: var(--orange); color: #fff; }
.btn-planning:hover { background: var(--orange-dark); }

/* ALERTES */
.alert {
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	border: 1px solid transparent;
}

.alert.success { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.alert.error { background-color: #f8d7da; color: #842029; border-color: #f5c2c7; }

/* RESPONSIVE */
.form-group.row { display: flex; gap: 10px; }
.col { flex: 1; }

@media (max-width: 600px) {
    .container {padding: 10px; }
	.form-group.row, .actions { flex-direction: column; }
    .btn-secondary { margin-left: 0; margin-top: 10px; }
}

/* HUB CARDS */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.hub-card {
	background: var(--gray-light);
	border-radius: var(--border-radius);
	padding: 25px 20px;
	text-align: center;
	transition: all var(--transition);
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.12); }