/* ========================================
     BUFFET CRAMPON - Formulaire Réclamation Qualité
     HEAD CONTENT - Styles CSS
     ======================================== */
  :root {
    --bc-green: #007A3D;
    --bc-green-light: #E8F5E9;
    --bc-green-dark: #005A2B;
    --bc-dark: #1A1A19;
    --bc-blue: #1A237E;
    --bc-blue-light: #E3F2FD;
    --bc-orange: #F57C00;
    --bc-orange-light: #FFF3E0;
    --bc-red: #D32F2F;
    --bc-red-light: #FFEBEE;
    --bc-gray-50: #FAFAFA;
    --bc-gray-100: #F5F5F5;
    --bc-gray-200: #EEEEEE;
    --bc-gray-300: #E0E0E0;
    --bc-gray-400: #BDBDBD;
    --bc-gray-500: #9E9E9E;
    --bc-gray-600: #757575;
    --bc-gray-700: #616161;
    --bc-white: #FFFFFF;
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  /* Reset & Base */
  .bc-form-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }
  .bc-form-wrapper {
    font-family: var(--font-main);
    color: var(--bc-dark);
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    -webkit-font-smoothing: antialiased;
  }
  /* ---- HEADER ---- */
  .bc-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--bc-gray-200);
  }
  .bc-form-header__logo {
    width: 64px;
    height: auto;
    margin-bottom: 20px;
  }
  .bc-form-header__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--bc-dark);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
  }
  .bc-form-header__subtitle {
    font-size: 15px;
    color: var(--bc-gray-600);
    font-weight: 400;
    line-height: 1.5;
  }
  /* ---- DEALER INFO BANNER ---- */
  .bc-dealer-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bc-gray-50);
    border: 1px solid var(--bc-gray-200);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 32px;
  }
  .bc-dealer-banner__icon {
    width: 40px;
    height: 40px;
    background: var(--bc-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 18px;
  }
  .bc-dealer-banner__info { flex: 1; }
  .bc-dealer-banner__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--bc-dark);
  }
  .bc-dealer-banner__email {
    font-size: 13px;
    color: var(--bc-gray-600);
    margin-top: 2px;
  }
  .bc-dealer-banner__badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bc-green);
    background: var(--bc-green-light);
    padding: 4px 10px;
    border-radius: 20px;
  }
  /* ---- STEPPER ---- */
  .bc-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
  }
  .bc-stepper__step {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .bc-stepper__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--bc-gray-200);
    color: var(--bc-gray-500);
    transition: var(--transition);
  }
  .bc-stepper__step.active .bc-stepper__number {
    background: var(--bc-green);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 61, 0.3);
  }
  .bc-stepper__step.completed .bc-stepper__number {
    background: var(--bc-green-light);
    color: var(--bc-green);
  }
  .bc-stepper__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--bc-gray-500);
    transition: var(--transition);
  }
  .bc-stepper__step.active .bc-stepper__label { color: var(--bc-dark); font-weight: 600; }
  .bc-stepper__step.completed .bc-stepper__label { color: var(--bc-green); }
  .bc-stepper__connector {
    width: 40px;
    height: 2px;
    background: var(--bc-gray-300);
    margin: 0 12px;
    transition: var(--transition);
  }
  .bc-stepper__connector.completed { background: var(--bc-green); }
  /* ---- SECTIONS ---- */
  .bc-form-section {
    display: none;
    animation: fadeIn 0.3s ease;
  }
  .bc-form-section.active { display: block; }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .bc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bc-dark);
    margin-bottom: 6px;
  }
  .bc-section-desc {
    font-size: 14px;
    color: var(--bc-gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
  }
  /* ---- FORM FIELDS ---- */
  .bc-field {
    margin-bottom: 20px;
  }
  .bc-field__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--bc-dark);
    margin-bottom: 6px;
  }
  .bc-field__label--required::after {
    content: ' *';
    color: var(--bc-red);
  }
  .bc-field__hint {
    font-size: 12px;
    color: var(--bc-gray-500);
    margin-bottom: 6px;
    font-weight: 400;
  }
  .bc-field__input,
  .bc-field__select,
  .bc-field__textarea {
    width: 100%;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--bc-dark);
    background: var(--bc-white);
    border: 1.5px solid var(--bc-gray-300);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: var(--transition);
    outline: none;
  }
  .bc-field__input:focus,
  .bc-field__select:focus,
  .bc-field__textarea:focus {
    border-color: var(--bc-green);
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.1);
  }
  .bc-field__input::placeholder,
  .bc-field__textarea::placeholder {
    color: var(--bc-gray-400);
  }
  .bc-field__input.error,
  .bc-field__select.error,
  .bc-field__textarea.error {
    border-color: var(--bc-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
  }
  .bc-field__error {
    font-size: 12px;
    color: var(--bc-red);
    margin-top: 4px;
    display: none;
  }
  .bc-field__error.visible { display: block; }
  .bc-field__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
  }
  .bc-field__select:disabled {
    background-color: var(--bc-gray-100);
    color: var(--bc-gray-400);
    cursor: not-allowed;
  }
  .bc-field__textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
  }
  /* ---- ROW LAYOUT ---- */
  .bc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  @media (max-width: 600px) {
    .bc-field-row { grid-template-columns: 1fr; }
  }
  /* ---- FILE UPLOAD ---- */
  .bc-upload {
    margin-bottom: 20px;
  }
  .bc-upload__dropzone {
    border: 2px dashed var(--bc-gray-300);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bc-gray-50);
  }
  .bc-upload__dropzone:hover,
  .bc-upload__dropzone.dragover {
    border-color: var(--bc-green);
    background: var(--bc-green-light);
  }
  .bc-upload__dropzone.error {
    border-color: var(--bc-red);
    background: var(--bc-red-light);
  }
  .bc-upload__icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
  }
  .bc-upload__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--bc-dark);
    margin-bottom: 4px;
  }
  .bc-upload__subtext {
    font-size: 12px;
    color: var(--bc-gray-500);
  }
  .bc-upload__input { display: none; }
  .bc-upload__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }
  .bc-upload__thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--bc-gray-200);
    background: var(--bc-gray-100);
  }
  .bc-upload__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .bc-upload__thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bc-gray-200);
  }
  .bc-upload__thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  /* ---- BUTTONS ---- */
  .bc-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--bc-gray-200);
  }
  .bc-btn {
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .bc-btn--primary {
    background: var(--bc-green);
    color: white;
  }
  .bc-btn--primary:hover { background: var(--bc-green-dark); }
  .bc-btn--primary:disabled {
    background: var(--bc-gray-300);
    color: var(--bc-gray-500);
    cursor: not-allowed;
  }
  .bc-btn--secondary {
    background: transparent;
    color: var(--bc-gray-600);
    border: 1.5px solid var(--bc-gray-300);
  }
  .bc-btn--secondary:hover {
    background: var(--bc-gray-100);
    border-color: var(--bc-gray-400);
  }
  /* ---- LOADING ---- */
  .bc-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }
  .bc-loading-overlay.active { display: flex; }
  .bc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bc-gray-200);
    border-top-color: var(--bc-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .bc-loading-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--bc-gray-700);
  }
  /* ---- SUCCESS ---- */
  .bc-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.4s ease;
  }
  .bc-success.active { display: block; }
  .bc-success__icon {
    width: 64px;
    height: 64px;
    background: var(--bc-green-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
  }
  .bc-success__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--bc-dark);
    margin-bottom: 8px;
  }
  .bc-success__ticket {
    font-size: 18px;
    font-weight: 700;
    color: var(--bc-green);
    background: var(--bc-green-light);
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    margin: 12px 0 20px;
  }
  .bc-success__message {
    font-size: 15px;
    color: var(--bc-gray-600);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
  }
  /* ---- DEALER AUTOCOMPLETE / COMBOBOX ---- */
  .bc-combobox {
    position: relative;
  }
  .bc-combobox__input {
    width: 100%;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--bc-dark);
    background: var(--bc-white);
    border: 1.5px solid var(--bc-gray-300);
    border-radius: var(--radius-sm);
    padding: 10px 36px 10px 14px;
    transition: var(--transition);
    outline: none;
  }
  .bc-combobox__input:focus {
    border-color: var(--bc-green);
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.1);
  }
  .bc-combobox__input::placeholder { color: var(--bc-gray-400); }
  .bc-combobox__input.error {
    border-color: var(--bc-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
  }
  .bc-combobox__input.has-value {
    border-color: var(--bc-green);
    background: var(--bc-green-light);
  }
  .bc-combobox__clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: var(--bc-gray-300);
    border-radius: 50%;
    color: var(--bc-gray-700);
    font-size: 13px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition);
  }
  .bc-combobox__clear:hover { background: var(--bc-gray-400); }
  .bc-combobox__input.has-value ~ .bc-combobox__clear { display: flex; }
  .bc-combobox__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bc-white);
    border: 1.5px solid var(--bc-gray-300);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
  }
  .bc-combobox__dropdown.open { display: block; }
  .bc-combobox__option {
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--bc-dark);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--bc-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .bc-combobox__option:last-child { border-bottom: none; }
  .bc-combobox__option:hover,
  .bc-combobox__option.highlighted {
    background: var(--bc-green-light);
  }
  .bc-combobox__option-name { font-weight: 500; flex: 1; }
  .bc-combobox__option-zone {
    font-size: 11px;
    color: var(--bc-gray-500);
    margin-left: 12px;
    flex-shrink: 0;
  }
  .bc-combobox__option mark {
    background: rgba(0, 122, 61, 0.15);
    color: inherit;
    padding: 0;
    border-radius: 2px;
  }
  .bc-combobox__no-results {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--bc-gray-500);
    text-align: center;
    font-style: italic;
  }
  .bc-combobox__count {
    padding: 6px 14px;
    font-size: 11px;
    color: var(--bc-gray-400);
    text-align: right;
    background: var(--bc-gray-50);
    border-top: 1px solid var(--bc-gray-100);
  }
  /* ---- AX ACCOUNT ID DISPLAY ---- */
  .bc-ax-display {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bc-blue-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
  }
  .bc-ax-display.visible { display: flex; }
  .bc-ax-display__label {
    color: var(--bc-gray-600);
    font-weight: 500;
  }
  .bc-ax-display__value {
    color: var(--bc-blue);
    font-weight: 700;
    font-family: monospace;
    font-size: 13px;
  }
  /* ---- ZONE AUTO-FILL BADGE ---- */
  .bc-zone-auto {
    display: none;
    font-size: 11px;
    color: var(--bc-green);
    margin-top: 4px;
    font-weight: 500;
  }
  .bc-zone-auto.visible { display: block; }
  /* ---- RESPONSIVE ---- */
  @media (max-width: 600px) {
    .bc-form-wrapper { padding: 24px 16px 40px; }
    .bc-form-header__title { font-size: 22px; }
    .bc-stepper__label { display: none; }
    .bc-stepper__connector { width: 24px; }
    .bc-dealer-banner { flex-wrap: wrap; }
  }
/* === Warning banner - Photos defaut conditionnel === */
.bc-photo-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 16px;
  background-color: #FFF3E0;
  border: 1px solid #FF9800;
  border-left: 4px solid #FF9800;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #4E342E;
}
.bc-photo-warning__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.bc-photo-warning__text em {
  color: #6D4C41;
  font-size: 12px;
}
