/* ---------------------------- */
/* Palette SOBASO */
:root {
    --orange: #FF6B00;
    --orange-dark: #e65c00;
    --blue: #0066CC;
    --gray-light: #f7f7f7;
    --gray-medium: #888888;
    --gray-dark: #333333;
    --white: #ffffff;
    --border-radius: 6px;
    --transition: 0.25s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

.container {
    max-width: 550px;
    margin: 50px auto;
    background: var(--white);
    padding: 30px 20px 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    border-top: 5px solid var(--orange);
}

h1 {
    margin: 0;
    font-size: 24px;
    color: var(--blue);
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--gray-dark);
}

form input {
    width: 96%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: border var(--transition);
}

form select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: border var(--transition);
}

form input:focus,
form select:focus {
    border-color: var(--blue);
    outline: none;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-dark);
  cursor: pointer;
  user-select: none;
}

/* Cache le checkbox natif */
.toggle input {
  display: none;
}

/* Interrupteur */
.slider {
  position: relative;
  width: 42px;
  height: 22px;
  background-color: #d1d5db; /* gris clair */
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

/* Bouton */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* État activé */
.toggle input:checked + .slider {
  background-color: Green; /* bleu SOBASO */
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

/* Hover */
.toggle:hover .slider {
  background-color: #bfc5cc;
}

/* Focus clavier */
.toggle input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(47, 79, 111, 0.25);
}

/* Texte */
.label-text {
  white-space: nowrap;
}


button {
    margin-top: 25px;
    width: 100%;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: background var(--transition);
}

button:hover {
    background: var(--orange-dark);
}

/* INPUT GROUP LAYOUT */
.row {
    display: flex;
    gap: 10px;
}

@media (max-width: 600px) {
    .row {
        flex-direction: column;
    }
}

/* HELPER TEXT */
.note {
    font-size: 14px;
    color: var(--gray-medium);
    margin-top: 4px;
}

/* ERROR STATES (optional) */
input.error, select.error {
    border-color: #dc3545;
}

.error-text {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}
.alert-banner {
    background: var(--blue);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}
