/**
 * DossierEnseigne Public Styles - Version 2.1.0
 * Matching design mockups exactly - Screen 1 (Identité)
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --de-blue: #1e3a8a;
    --de-blue-light: #3b82f6;
    --de-red: #dc2626;
    --de-green: #22c55e;
    --de-green-dark: #16a34a;
    --de-orange: #f97316;
    --de-gray: #4b5563;
    --de-gray-dark: #5a5f66;
    --de-gray-darker: #4a4f55;
    --de-gray-light: #f1f5f9;
    --de-gray-border: #e2e8f0;
    --de-input-bg: #d1d5db;
    --de-section-dark: #5a5f66;
    --de-section-medium: #6b7280;
}

/* ========================================
   BASE CONTAINER - NO BACKGROUND
   ======================================== */
.de-form-container *, .de-client-area * {
    box-sizing: border-box;
}

/* Remove any background from page/body when form is present */
body:has(.de-form-container),
.page-template-default:has(.de-form-container),
.entry-content:has(.de-form-container),
.site-content:has(.de-form-container),
article:has(.de-form-container) {
    background: white !important;
    background-image: none !important;
}

.de-form-container {
    width: 65%;
    max-width: 1400px;
    min-width: 900px;
    margin: 0 auto;
    padding: 30px 40px;
    padding-right: 240px; /* Space for tip boxes on the right */
    font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
    color: #1e293b;
    background: white;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   STEPS NAVIGATION
   ======================================== */
.de-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    flex-wrap: nowrap; /* Keep all steps on one line */
}

.de-step {
    padding: 12px 22px;
    background: #4b5563;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: lowercase;
}

.de-step:first-child {
    border-radius: 22px 0 0 22px;
}

.de-step:last-child {
    border-radius: 0 22px 22px 0;
}

/* Step colors based on data-step */
.de-step[data-step="1"].active { background: #4b5563; }
.de-step[data-step="2"].active { background: var(--de-red); }
.de-step[data-step="3"].active { background: var(--de-blue); }
.de-step[data-step="4"].active { background: #6b7280; }
.de-step[data-step="5"].active, .de-step-final.active { background: var(--de-green); }
.de-step.completed { background: var(--de-green); }
.de-step:hover:not(.active) { background: #6b7280; }

/* ========================================
   SECTION TITLE WITH NUMBER
   ======================================== */
.de-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #19191a;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
}

.de-section-number {
    background: var(--de-red);
    color: white;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    font-style: normal;
}

.de-number-red { background: var(--de-red); }
.de-number-blue { background: var(--de-blue); }
.de-number-gray { background: #6b7280; }
.de-number-green { background: var(--de-green); }

/* ========================================
   STEP HEADER (Title + Image)
   ======================================== */
.de-step-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.de-step-image {
    max-width: 140px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
    margin-top: -10px;
}

/* ========================================
   MAIN SECTIONS (Gray blocks)
   ======================================== */
.de-section-gray-dark {
    background: #5a5f66;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    position: relative;
    color: white;
}

.de-section-gray, .de-block-gray {
    background: #6b7280;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    position: relative;
    color: white;
}

/* ========================================
   DEMANDEUR CHOICE (Particulier / Société)
   ======================================== */
.de-demandeur-choice {
    margin-bottom: 15px;
    position: relative;
}

/* Green arrow indicator (triangle) */
.de-arrow-indicator {
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid var(--de-green);
    margin-right: 10px;
    vertical-align: middle;
}

/* Radio card styling */
.de-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 0;
}

.de-radio-card input[type="radio"] {
    display: none;
}

.de-radio-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.de-radio-label strong {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.de-radio-label small {
    font-size: 13px;
    color: #d1d5db;
    font-style: italic;
}

/* OU separator */
.de-ou {
    text-align: center;
    margin: 18px 0;
    color: var(--de-green);
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
}

/* ========================================
   PARTICULIER / SOCIETE FIELDS
   ======================================== */
.de-particulier-fields,
.de-societe-fields {
    margin-top: 15px;
    margin-left: 28px;
}

.de-subsection-title {
    color: white;
    font-size: 14px;
    font-weight: 400;
    margin: 20px 0 12px 0;
}

/* ========================================
   FORM LAYOUT (Rows and Fields)
   ======================================== */
.de-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.de-row > .de-field {
    flex: 1;
}

.de-field {
    margin-bottom: 0;
}

.de-field-small {
    flex: 0 0 120px !important;
}

.de-field-medium {
    flex: 0 0 50% !important;
}

.de-field-large {
    flex: 2 !important;
}

.de-field-full {
    flex: 0 0 100% !important;
}

.de-field-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.de-field-half {
    flex: 1;
}

.de-field-third {
    flex: 0 0 33%;
}

.de-field-two-third {
    flex: 1;
}

/* ========================================
   INPUT FIELDS
   ======================================== */

/* Inputs in dark gray sections */
.de-section-gray-dark input[type="text"],
.de-section-gray-dark input[type="email"],
.de-section-gray-dark input[type="tel"],
.de-section-gray-dark input[type="number"],
.de-section-gray-dark textarea,
.de-section-gray-dark select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #c5c9ce;
    color: #374151;
    outline: none;
}

.de-section-gray-dark input::placeholder,
.de-section-gray-dark textarea::placeholder {
    color: #5a5f66;
    opacity: 1;
    font-size: 14px;
}

/* Inputs in medium gray sections (Coordonnées) */
.de-section-gray input[type="text"],
.de-section-gray input[type="email"],
.de-section-gray input[type="tel"],
.de-section-gray input[type="number"],
.de-section-gray textarea,
.de-section-gray select,
.de-block-gray input[type="text"],
.de-block-gray input[type="email"],
.de-block-gray input[type="tel"],
.de-block-gray input[type="number"],
.de-block-gray textarea,
.de-block-gray select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #c5c9ce;
    color: #374151;
    outline: none;
}

.de-section-gray input::placeholder,
.de-section-gray textarea::placeholder,
.de-block-gray input::placeholder,
.de-block-gray textarea::placeholder {
    color: #5a5f66;
    opacity: 1;
    font-size: 14px;
}

/* Focus state */
.de-section-gray-dark input:focus,
.de-section-gray input:focus,
.de-block-gray input:focus {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

/* ========================================
   HINTS (Small text under inputs)
   ======================================== */
.de-hint {
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

.de-hint-dark {
    color: #9ca3af;
}

.de-hint-light {
    color: rgba(255, 255, 255, 0.7);
}

/* Orange hint (as in mockup) */
.de-input-hint {
    color: var(--de-orange);
    font-size: 11px;
    margin: 4px 0 0 5px;
    font-style: italic;
    display: block;
}

/* ========================================
   SECTION SUBTITLE
   ======================================== */
.de-section-subtitle {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: white;
}

/* ========================================
   TIP BOX - FIXED POSITION IN RIGHT MARGIN
   Position absolue par rapport au form-step,
   ne bouge PAS quand le bloc société apparaît
   ======================================== */

/* Base tip box style */
.de-tip-box {
    position: absolute;
    right: -220px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 10;
}

/* Form step needs relative positioning for tip boxes */
.de-form-step[data-step="1"] {
    position: relative;
}

/* Tip box "société" - FIXED position relative to form-step (not gray section)
   This ensures it doesn't move when société fields appear/disappear */
.de-tip-box-societe-fixed {
    position: absolute;
    top: 280px;  /* Aligned with "en tant que société" section */
    right: -210px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 10;
}

/* Tip box "Coordonnées" - FIXED position relative to form-step */
.de-tip-box-coordonnees-fixed {
    position: absolute;
    top: 520px;  /* Aligned with "Coordonnées" section */
    right: -210px;
    width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 10;
}

/* Hide old tip boxes inside sections */
.de-section-gray-dark .de-tip-box,
.de-section-coordonnees .de-tip-box {
    display: none;
}

/* Legacy classes - keep for backwards compatibility */
.de-tip-box-societe {
    display: none;
}

.de-tip-box-coordonnees,
.de-tip-right {
    display: none;
}

.de-tip-icon {
    font-size: 50px;
    display: block;
}

/* Custom lightbulb SVG icon */
.de-tip-icon-svg {
    width: 50px;
    height: 50px;
}

.de-tip-text {
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}

.de-tip-arrow {
    margin-top: 5px;
}

/* ========================================
   COORDONNEES SECTION SPECIFIC
   ======================================== */
.de-section-coordonnees {
    position: relative;
}

/* ========================================
   FORM ACTIONS (Navigation buttons)
   ======================================== */
.de-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 10px;
    gap: 15px;
}

/* ========================================
   BUTTONS
   ======================================== */
.de-btn {
    padding: 14px 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: lowercase;
}

.de-btn-next, .de-btn-primary {
    background: var(--de-green);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.de-btn-next:hover, .de-btn-primary:hover {
    background: var(--de-green-dark);
    transform: translateY(-2px);
}

.de-btn-prev, .de-btn-secondary {
    background: #bababa;
    color: #374151;
}

.de-btn-prev:hover, .de-btn-secondary:hover {
    background: #a3a3a3;
}

.de-btn-submit {
    background: var(--de-red);
    color: white;
    font-size: 16px;
    padding: 16px 60px;
}

.de-btn-submit:hover {
    background: #b91c1c;
}

.de-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* ========================================
   RED SECTION (Step 2 - Localisation)
   ======================================== */
.de-section-red, .de-block-red {
    background: var(--de-red);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    color: white;
}

.de-section-red input[type="text"],
.de-section-red input[type="email"],
.de-section-red input[type="tel"],
.de-section-red input[type="number"],
.de-section-red textarea,
.de-section-red select,
.de-block-red input[type="text"],
.de-block-red input[type="email"],
.de-block-red input[type="tel"],
.de-block-red input[type="number"],
.de-block-red textarea,
.de-block-red select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    outline: none;
}

.de-section-red input::placeholder,
.de-section-red textarea::placeholder,
.de-block-red input::placeholder,
.de-block-red textarea::placeholder {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
    font-size: 14px;
}

/* ========================================
   BLUE SECTION (Step 3 - L'enseigne)
   ======================================== */
.de-section-blue, .de-block-blue {
    background: var(--de-blue);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    color: white;
}

.de-section-blue input[type="text"],
.de-section-blue input[type="email"],
.de-section-blue input[type="tel"],
.de-section-blue input[type="number"],
.de-section-blue textarea,
.de-section-blue select,
.de-block-blue input[type="text"],
.de-block-blue input[type="email"],
.de-block-blue input[type="tel"],
.de-block-blue input[type="number"],
.de-block-blue textarea,
.de-block-blue select {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    outline: none;
}

.de-section-blue input::placeholder,
.de-section-blue textarea::placeholder,
.de-block-blue input::placeholder,
.de-block-blue textarea::placeholder {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
    font-size: 14px;
}

/* ========================================
   WHITE SECTION (Step 4 - Complément)
   ======================================== */
.de-section-white, .de-block-white {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.de-section-white input[type="text"],
.de-section-white input[type="email"],
.de-section-white input[type="tel"],
.de-section-white input[type="number"],
.de-section-white textarea,
.de-section-white select,
.de-block-white input[type="text"],
.de-block-white input[type="email"],
.de-block-white input[type="tel"],
.de-block-white input[type="number"],
.de-block-white textarea,
.de-block-white select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f3f4f6;
    color: #374151;
    outline: none;
}

.de-section-white input::placeholder,
.de-section-white textarea::placeholder,
.de-block-white input::placeholder,
.de-block-white textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
    font-size: 14px;
}

.de-subtitle-green {
    color: var(--de-blue);
}

/* ========================================
   GREEN SECTION (Step 5 - Finalisation)
   ======================================== */
.de-section-green, .de-block-green, .de-section-finalisation {
    background: var(--de-green-dark);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 15px;
    color: white;
}

/* ========================================
   CHECKBOX GRID
   ======================================== */
.de-checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.de-checkbox-item,
.de-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--de-green);
    cursor: pointer;
}

/* ========================================
   TYPE CARDS (Enseigne types)
   ======================================== */
.de-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.de-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.de-type-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.de-type-card:has(input:checked) {
    border-color: var(--de-green);
    background: rgba(255, 255, 255, 0.25);
}

.de-type-card input[type="checkbox"] {
    margin-bottom: 8px;
}

.de-type-image {
    width: 100%;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 8px;
    border-radius: 6px;
}

.de-type-label {
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.de-type-card small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.de-type-autre input[type="text"] {
    margin-top: 8px;
    width: 100%;
}

/* ========================================
   STEP 3 - L'ENSEIGNE (Matching mockup exactly)
   ======================================== */
.de-form-step-3 {
    position: relative;
}

.de-form-step-3 .de-section-title {
    margin-bottom: 15px;
}

/* Main blue block containing everything */
.de-enseigne-main-block {
    background: var(--de-blue) !important;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}

/* Quantité row */
.de-row-nature {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.de-field-quantite {
    flex: 0 0 auto;
    width: 280px;
}

.de-field-quantite input {
    background: #c5c9ce !important;
    border: none !important;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 13px;
    color: #374151 !important;
    width: 100%;
}

.de-field-quantite input::placeholder {
    color: #5a5f66 !important;
}

.de-hint-orange {
    color: #fbbf24 !important;
    font-size: 11px;
    font-style: italic;
}

/* Tip box for step 3 - positioned in right margin OUTSIDE the blue block */
.de-tip-box-step3 {
    position: absolute;
    top: 20px;
    right: -200px;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 100;
}

.de-tip-box-step3 .de-tip-icon-svg {
    width: 40px;
    height: 50px;
}

.de-tip-text-white {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.de-tip-arrow-white {
    margin-top: 5px;
}

.de-tip-arrow-white path {
    stroke: #6b7280;
}

/* Two-column checkbox grid */
.de-checkbox-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    margin-bottom: 25px;
}

.de-checkbox-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.de-checkbox-item-step3 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: white !important;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    background: none !important;
}

.de-checkbox-item-step3 input[type="checkbox"],
.de-checkbox-item-step3 input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: white;
}

.de-checkbox-item-step3 small {
    display: block;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 10px;
    margin-top: 2px;
}

/* Section subtitles in step 3 */
.de-enseigne-main-block .de-section-subtitle {
    color: white !important;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 15px;
}

.de-section-subtitle-type,
.de-section-subtitle-lum {
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    padding-top: 20px;
    border-top: none;
}

/* Type d'enseigne - horizontal layout with images */
.de-type-grid-step3 {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.de-type-card-step3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

.de-type-image-step3 {
    width: 100%;
    height: 100px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.de-type-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    width: 100%;
}

.de-type-label-step3 {
    font-size: 11px;
    font-weight: bold;
    color: white !important;
    text-transform: uppercase;
}

.de-type-card-step3 small {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7) !important;
    font-style: italic;
}

.de-type-card-step3 input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
}

/* Autre row for types */
.de-type-autre-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.de-input-autre-type {
    flex: 1;
    background: #c5c9ce !important;
    border: none !important;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 13px;
    color: #374151 !important;
}

/* Luminosité section - side by side layout */
.de-luminosite-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.de-luminosite-left {
    flex: 1;
}

.de-luminosite-toggles {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.de-toggle-lum {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.de-toggle-lum input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: white;
}

.de-luminosite-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.de-lum-autre-row {
    margin-top: 15px;
}

/* Luminosité images - RIGHT side */
.de-luminosite-images-step3 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    align-items: center;
}

.de-lum-img {
    width: 180px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: transparent;
}

/* Add enseigne button - Step 3 style (blue background with green icon) */
.de-btn-add-enseigne-step3 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 25px;
    border-radius: 12px;
    margin: 20px 0;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
    background: var(--de-blue) !important;
    color: white !important;
}

.de-btn-add-enseigne-step3:hover {
    background: #1e3a8a !important;
}

.de-btn-add-enseigne-step3 .de-add-icon {
    background: var(--de-green) !important;
    color: white !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Form actions for step 3 - centered buttons */
.de-form-actions-step3 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

/* Responsive for Step 3 */
@media (max-width: 1200px) {
    .de-tip-box-step3 {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        margin: 15px 0;
    }
}

@media (max-width: 900px) {
    .de-type-grid-step3 {
        flex-direction: column;
    }

    .de-type-card-step3 {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
    }

    .de-type-image-step3 {
        width: 80px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .de-luminosite-section {
        flex-direction: column;
    }

    .de-luminosite-images-step3 {
        flex-direction: row;
        justify-content: center;
    }

    .de-lum-img {
        width: 150px;
    }

    .de-checkbox-grid-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .de-row-nature {
        flex-direction: column;
        align-items: flex-start;
    }

    .de-field-quantite {
        width: 100%;
    }
}

/* ========================================
   TOGGLE BUTTONS
   ======================================== */
.de-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.de-toggle-large {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
}

/* ========================================
   ETAGE ROW SPECIFIC
   ======================================== */
.de-row-etage {
    align-items: center;
    flex-wrap: wrap;
}

.de-etou {
    color: white;
    font-size: 13px;
}

.de-etage-input {
    width: 80px !important;
    flex: 0 0 auto !important;
}

.de-hint-inline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

/* ========================================
   AUTRE ROW
   ======================================== */
.de-autre-row,
.de-autre-row-lum {
    margin-top: 8px;
}

/* ========================================
   LUMINOSITE
   ======================================== */
.de-luminosite-container {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.de-luminosite-images {
    display: flex;
    gap: 10px;
}

.de-luminosite-img {
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
}

.de-luminosite-choice {
    align-items: center;
}

.de-luminosite-details {
    margin-top: 12px;
}

/* ========================================
   ADD BUTTONS (Enseigne, Face)
   ======================================== */
.de-btn-add-enseigne, .de-btn-add-face {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
}

.de-btn-add-enseigne {
    background: #93c5fd;
    color: var(--de-blue);
}

.de-btn-add-face {
    background: var(--de-orange);
    color: white;
}

.de-btn-add-enseigne span, .de-btn-add-face span {
    background: var(--de-green);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
    text-decoration: none;
}

/* ========================================
   UPLOAD ZONES
   ======================================== */
.de-upload-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.de-upload-zone span {
    flex: 1;
    padding: 12px 15px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 14px;
}

.de-upload-btn {
    background: var(--de-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-upload-btn:hover {
    background: var(--de-green-dark);
}

.de-file-input {
    display: none;
}

.de-uploaded-files {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.de-uploaded-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: 13px;
}

.de-remove-file {
    background: none;
    border: none;
    color: var(--de-red);
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

/* ========================================
   DIMENSIONS
   ======================================== */
.de-dimensions-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.de-dimensions-image {
    width: 350px;
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;
}

.de-dimensions-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.de-dimensions-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.de-dimension {
    display: flex;
    align-items: center;
    gap: 10px;
}

.de-dimension label {
    color: var(--de-green);
    font-weight: bold;
    font-size: 20px;
    width: 30px;
}

.de-dimension input {
    width: 80px !important;
    flex: none !important;
}

.de-dimension span {
    color: #374151;
    font-weight: bold;
}

.de-dimension-checkbox {
    flex-direction: column;
    align-items: flex-start;
}

.de-dimension-checkbox label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #374151;
    width: auto;
}

.de-question-mark {
    color: var(--de-orange);
    font-weight: bold;
    font-size: 20px;
}

/* ========================================
   STORE SCHEMA
   ======================================== */
.de-store-schema {
    text-align: center;
    margin: 20px 0;
}

.de-store-schema img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========================================
   FACE BLOCK
   ======================================== */
.de-face-block {
    margin-bottom: 20px;
}

/* ========================================
   ENSEIGNE BLOCK
   ======================================== */
.de-enseigne-block {
    margin-bottom: 20px;
}

/* ========================================
   CGV / FINALISATION
   ======================================== */
.de-cgv-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.de-cgv-item label {
    display: flex;
    gap: 15px;
    cursor: pointer;
    line-height: 1.5;
    align-items: flex-start;
    color: white;
    font-size: 12px;
}

.de-cgv-item input {
    flex-shrink: 0;
    margin-top: 3px;
    transform: scale(1.4);
    accent-color: white;
}

.de-cgv-highlight {
    background: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    font-weight: 600;
}

.de-cgv-item a {
    color: #bef264;
    text-decoration: underline;
}

.de-required-star {
    color: var(--de-red);
    font-weight: bold;
    font-size: 16px;
}

/* ========================================
   LEGAL CONTEXT
   ======================================== */
.de-section-legal-context {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.de-section-legal-context h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
}

.de-info-legal {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    border-radius: 8px;
}

.de-info-legal p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #374151;
    font-size: 14px;
}

.de-info-legal ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.de-info-legal li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #374151;
    font-size: 14px;
}

/* ========================================
   SIGNATURE SECTION
   ======================================== */
.de-section-signature {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.de-section-signature h3 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 18px;
}

.de-signature-label {
    color: #6b7280;
    font-style: italic;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.de-signature-pad-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

.de-signature-pad {
    width: 100%;
    height: 200px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    display: block;
}

.de-signature-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 2px solid #fca5a5;
    color: #dc2626;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.de-signature-clear:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

/* Upload signature zone */
.de-upload-signature-zone {
    border: 3px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    max-width: 500px;
    position: relative;
}

.de-upload-signature-zone:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.de-upload-signature-zone.dragover {
    border-color: #22c55e;
    background: #dcfce7;
    border-style: solid;
}

.de-upload-signature-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.de-upload-signature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    pointer-events: none;
}

.de-upload-icon {
    font-size: 48px;
}

.de-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

.de-signature-preview-box {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 3px solid #22c55e;
    border-radius: 12px;
}

.de-signature-preview-box img {
    max-width: 300px;
    max-height: 150px;
    display: block;
}

.de-remove-signature {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.de-remove-signature:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* ========================================
   STATUS CHOICE (Owner/Tenant)
   ======================================== */
.de-status-choice {
    margin-bottom: 25px;
}

.de-status-question {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
}

.de-status-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.de-status-option {
    flex: 1;
    min-width: 250px;
    cursor: pointer;
}

.de-status-option input {
    display: none;
}

.de-status-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s;
    text-align: center;
}

.de-status-option input:checked + .de-status-card {
    border-color: #22c55e;
    background: #f0fdf4;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.de-status-card:hover {
    border-color: #22c55e;
    transform: translateY(-2px);
}

.de-status-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.de-status-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.de-status-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Info boxes */
.de-info-box {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.de-info-box p {
    margin: 0;
    font-size: 14px;
}

.de-info-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.de-info-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Owner info fields */
.de-owner-info-fields {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.de-owner-info-fields h4 {
    margin: 0 0 20px 0;
    color: #374151;
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.de-owner-info-fields label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.de-owner-info-fields input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.de-owner-info-fields input:focus {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Landlord signature section */
.de-landlord-signature {
    background: #fffbeb;
    border: 2px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
}

.de-landlord-signature h4 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 16px;
}

/* Owner/Tenant sections */
.de-owner-section,
.de-tenant-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

/* ========================================
   PAYMENT SECTION
   ======================================== */
.de-section-payment {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--de-gray-border);
    margin-bottom: 20px;
}

.de-section-payment h3 {
    margin: 0 0 15px 0;
    color: var(--de-blue);
    font-size: 16px;
}

.de-price-summary {
    margin: 20px 0;
}

.de-price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--de-gray-border);
    font-size: 14px;
}

.de-price-tva {
    color: #6b7280;
}

.de-price-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--de-red);
    border-bottom: none;
    border-top: 2px solid var(--de-blue);
    margin-top: 10px;
    padding-top: 15px;
}

.de-payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.de-payment-option {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    border: 2px solid var(--de-gray-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    background: white;
}

.de-payment-option:has(input:checked) {
    border-color: var(--de-blue);
    background: rgba(30, 58, 138, 0.05);
}

.de-payment-option input {
    transform: scale(1.3);
    accent-color: var(--de-blue);
}

.de-payment-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}

.de-payment-label svg {
    flex-shrink: 0;
}

/* Bank Transfer Info */
.de-bank-transfer-info {
    margin-top: 25px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.de-bank-info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.de-bank-info-box h4 {
    color: #1e40af;
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.de-bank-info-box h4::before {
    content: "🏦";
    font-size: 24px;
}

.de-bank-details {
    width: 100%;
    margin: 20px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.de-bank-details th {
    text-align: left;
    padding: 12px 15px;
    background: #1e40af;
    color: white;
    font-weight: 600;
    font-size: 13px;
    width: 140px;
}

.de-bank-details td {
    padding: 12px 15px;
    background: white;
    font-size: 14px;
    font-weight: 500;
}

.de-bank-details tr:not(:last-child) td,
.de-bank-details tr:not(:last-child) th {
    border-bottom: 1px solid #e5e7eb;
}

.de-bank-details code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #1e40af;
    background: #eff6ff;
    padding: 3px 8px;
    border-radius: 4px;
}

.de-bank-reference {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.de-bank-reference p {
    margin: 0;
    font-weight: 600;
    color: #92400e;
}

.de-bank-ref-value {
    font-size: 24px;
    font-weight: bold;
    color: #1e40af;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    border: 2px dashed #1e40af;
}

.de-bank-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: none;
    border-left: 5px solid #dc2626;
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #991b1b;
    border-radius: 0 12px 12px 0;
    font-weight: 500;
}

.de-bank-warning::before {
    content: "⚠️ ";
}

/* Test mode section */
.de-section-test-mode {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

/* ========================================
   FORM FOOTER - HIDDEN (No French flag, no mention)
   ======================================== */
.de-form-footer {
    display: none !important;
}

.de-secure-badge,
.de-payment-icons {
    display: none !important;
}

/* ========================================
   RESUME BANNER
   ======================================== */
.de-resume-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #1e40af;
}

.de-resume-banner strong {
    font-weight: 700;
}

/* ========================================
   LOADING OVERLAY
   ======================================== */
.de-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.de-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--de-blue);
    border-radius: 50%;
    animation: de-spin 1s linear infinite;
}

@keyframes de-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   ALERTS / ERROR MESSAGES
   ======================================== */
.de-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--de-red);
    color: #991b1b;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.de-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.de-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.de-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.de-alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* Status Messages */
.de-status-message {
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.de-status-message.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #86efac;
    color: #166534;
}

.de-status-message.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    color: #1e40af;
}

.de-status-message h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.de-status-message p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

/* Notification Cards */
.de-notification-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px 0;
    border-left: 5px solid var(--de-blue);
}

.de-notification-card.success {
    border-left-color: var(--de-green);
}

.de-notification-card.warning {
    border-left-color: var(--de-orange);
}

.de-notification-card h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1e293b;
}

.de-notification-card p {
    margin: 0 0 10px 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.de-notification-card .de-team-signature {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-weight: 600;
    color: var(--de-blue);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1600px) {
    .de-form-container {
        width: 70%;
    }
}

@media (max-width: 1400px) {
    .de-form-container {
        width: 75%;
        min-width: auto;
    }

    .de-step {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .de-form-container {
        width: 90%;
        padding-right: 40px;
    }

    .de-tip-box,
    .de-tip-box-societe-fixed,
    .de-tip-box-coordonnees-fixed {
        position: static;
        width: 100%;
        margin: 15px 0;
        flex-direction: row;
        justify-content: flex-end;
        gap: 15px;
    }

    .de-steps {
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .de-form-container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .de-form-container {
        padding: 15px;
    }

    .de-step {
        padding: 8px 12px;
        font-size: 11px;
        border-radius: 0 !important;
    }

    .de-step:first-child {
        border-radius: 15px 0 0 15px !important;
    }

    .de-step:last-child {
        border-radius: 0 15px 15px 0 !important;
    }

    .de-row, .de-input-row, .de-field-row {
        flex-direction: column;
    }

    .de-row > .de-field {
        flex: 1 0 100%;
    }

    .de-field-small, .de-field-medium, .de-field-large, .de-field-full {
        flex: 1 0 100% !important;
    }

    .de-step-header {
        flex-direction: column;
    }

    .de-step-image {
        max-width: 100%;
    }

    .de-type-grid {
        grid-template-columns: 1fr;
    }

    .de-signature-area {
        flex-direction: column;
    }

    .de-signature-preview, .de-signature-pad-container, .de-owner-signature-upload {
        min-width: 100%;
    }

    .de-payment-methods {
        flex-direction: column;
    }

    .de-payment-option {
        min-width: 100%;
    }

    .de-form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .de-form-actions .de-btn {
        width: 100%;
    }

    .de-dimensions-container {
        flex-direction: column;
    }

    .de-dimensions-image {
        width: 100%;
        height: auto;
    }

    .de-status-options {
        flex-direction: column;
    }

    .de-status-option {
        min-width: 100%;
    }
}

/* ========================================
   CLIENT AREA
   ======================================== */
.de-client-area {
    max-width: 950px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #1e293b;
    background: #f8fafc;
}

.de-client-login {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.de-client-login h2 {
    color: var(--de-blue);
    margin-bottom: 10px;
}

.de-login-form {
    margin: 25px 0;
}

.de-login-form .de-field {
    margin-bottom: 15px;
    text-align: left;
}

.de-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.de-login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.de-separator {
    color: #9ca3af;
    margin: 20px 0;
}

.de-dossiers-list {
    display: grid;
    gap: 20px;
}

.de-dossier-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--de-gray-border);
}

.de-dossier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.de-dossier-ref {
    font-weight: bold;
    font-size: 18px;
    color: var(--de-blue);
}

.de-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.de-status-badge.status-payment_pending { background: #f59e0b; }
.de-status-badge.status-processing { background: #3b82f6; }
.de-status-badge.status-missing_pieces { background: #ef4444; }
.de-status-badge.status-pieces_added { background: #f97316; }
.de-status-badge.status-submitted { background: #8b5cf6; }
.de-status-badge.status-completed { background: #10b981; }
.de-status-badge.status-cancelled { background: #6b7280; }

.de-dossier-card-body {
    font-size: 14px;
    color: #64748b;
}

.de-dossier-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--de-gray-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.de-paid {
    color: var(--de-green);
    font-weight: 600;
}

.de-breadcrumb {
    margin-bottom: 20px;
}

.de-breadcrumb a {
    color: var(--de-blue);
    text-decoration: none;
}

.de-dossier-detail {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.de-dossier-header-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--de-gray-border);
    flex-wrap: wrap;
    gap: 15px;
}

.de-dossier-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.de-dossier-title h2 {
    margin: 0;
    color: var(--de-blue);
}

.de-dossier-meta {
    color: #64748b;
    font-size: 13px;
}

.de-dossier-meta span {
    margin-left: 15px;
}

.de-downloads-section {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.de-downloads-section h3 {
    margin: 0 0 15px 0;
    color: var(--de-blue);
}

.de-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--de-gray-border);
}

.de-download-item a {
    color: var(--de-blue);
    font-weight: 500;
    text-decoration: none;
}

.de-download-item a:hover {
    text-decoration: underline;
}

.de-missing-alert {
    border-left: 4px solid var(--de-red);
}

.de-missing-alert .de-btn-warning {
    background: var(--de-orange);
    color: white;
    margin-top: 10px;
}

.de-edit-form {
    background: #fffbeb;
    border: 2px solid #fcd34d;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.de-edit-section {
    margin-bottom: 20px;
}

.de-edit-section h3 {
    margin: 0 0 10px 0;
    color: #92400e;
}

.de-upload-zone-client {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.de-upload-zone-client:hover {
    border-color: var(--de-green);
    background: #f0fdf4;
}

.de-edit-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.de-history-section {
    margin-top: 30px;
}

.de-history-section h3 {
    margin: 0 0 15px 0;
    color: var(--de-blue);
}

.de-history-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--de-gray-border);
}

.de-history-date {
    color: #9ca3af;
    font-size: 12px;
    min-width: 100px;
}

.de-history-content {
    flex: 1;
}

/* ========================================
   STEP 3 - NEW STRUCTURE (de-step3-*)
   Complete rewrite for L'enseigne page
   ======================================== */

/* Step 3 container */
.de-step3 {
    position: relative;
}

/* Main blue block containing all sections */
.de-step3-blue-block {
    background: var(--de-blue);
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    color: white;
}

/* Sections inside blue block */
.de-step3-section {
    margin-bottom: 25px;
    position: relative;
}

.de-step3-section:last-child {
    margin-bottom: 0;
}

/* Section titles */
.de-step3-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin: 0 0 15px 0;
    text-transform: none;
}

/* Quantité row */
.de-step3-quantite-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.de-step3-input-quantite {
    width: 280px;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    background: #c5c9ce;
    color: #374151;
}

.de-step3-input-quantite::placeholder {
    color: #5a5f66;
}

.de-step3-hint-orange {
    color: #fbbf24;
    font-size: 11px;
    font-style: italic;
}

/* Tip box - positioned in right margin outside blue block */
.de-step3-tipbox {
    position: absolute;
    top: 60px;
    right: -200px;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 100;
}

.de-step3-tiptext {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.de-step3-tiptext em {
    font-style: italic;
}

.de-step3-tiparrow {
    margin-top: 5px;
}

/* Two-column checkboxes */
.de-step3-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 40px;
    margin-top: 15px;
}

.de-step3-checkbox-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.de-step3-checkbox-col label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.de-step3-checkbox-col label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: white;
}

/* Type d'enseigne - horizontal layout with images */
.de-step3-types {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.de-step3-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    flex: 1;
    min-width: 140px;
    max-width: 180px;
}

.de-step3-type-item img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.de-step3-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    width: 100%;
}

.de-step3-type-label span {
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.de-step3-type-label small {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.de-step3-type-item input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    accent-color: white;
}

/* Autre row for types and luminosité */
.de-step3-autre-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.de-step3-autre-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
}

.de-step3-input-autre {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    background: #c5c9ce;
    color: #374151;
}

.de-step3-input-autre::placeholder {
    color: #5a5f66;
}

/* Luminosité section */
.de-step3-luminosite {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.de-step3-lum-toggles {
    display: flex;
    gap: 15px;
}

.de-step3-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: background 0.2s;
}

.de-step3-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.de-step3-toggle:has(input:checked) {
    background: rgba(255, 255, 255, 0.3);
}

.de-step3-toggle input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: white;
}

/* Options lumineuses wrapper (hidden by default) */
.de-step3-lum-options-wrapper {
    margin-top: 20px;
}

/* Grid pour les types lumineux avec images (même style que Type d'enseigne) */
.de-step3-lum-grid {
    margin-bottom: 20px;
}

/* Options sans image (projection/transparence) */
.de-step3-lum-no-image {
    margin-bottom: 15px;
}

.de-step3-lum-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.de-step3-lum-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: white;
}

.de-step3-lum-option span {
    font-weight: bold;
}

.de-step3-lum-option small {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
    font-style: italic;
    margin-top: 4px;
    margin-left: 28px;
}

/* Add enseigne button wrapper */
.de-step3-add-btn-wrapper {
    margin: 20px 0;
}

/* Add enseigne button - blue background with green outlined icon */
.de-step3-add-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    background: var(--de-blue);
    color: white;
    transition: background 0.2s;
}

.de-step3-add-btn:hover {
    background: #1e3a8a;
}

.de-step3-add-icon {
    background: transparent;
    border: 3px solid var(--de-green);
    color: var(--de-green);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.de-step3-add-icon svg {
    width: 20px;
    height: 20px;
}

.de-step3-add-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive for Step 3 */
@media (max-width: 1200px) {
    .de-step3-tipbox {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        margin: 15px 0;
        padding: 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }
}

@media (max-width: 900px) {
    .de-step3-types {
        flex-direction: column;
    }

    .de-step3-type-item {
        max-width: 100%;
        flex-direction: row;
        text-align: left;
    }

    .de-step3-type-item img {
        width: 80px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .de-step3-type-label {
        align-items: flex-start;
        text-align: left;
    }

    .de-step3-luminosite {
        flex-direction: column;
    }

    .de-step3-lum-images {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
    }

    .de-step3-lum-images img {
        width: 120px;
    }

    .de-step3-checkboxes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .de-step3-quantite-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .de-step3-input-quantite {
        width: 100%;
    }

    .de-step3-lum-toggles {
        flex-wrap: wrap;
    }

    .de-step3-autre-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .de-step3-input-autre {
        width: 100%;
    }
}

/* ========================================
   STEP 4 - COMPLÉMENT (de-step4-*)
   ======================================== */

.de-step4 {
    position: relative;
}

/* Section container - NO flex, tip boxes are absolute */
.de-step4-section {
    position: relative;
    margin-bottom: 25px;
}

.de-step4-section-content {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 25px;
}

/* Section titles */
.de-step4-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--de-green);
    margin: 0 0 8px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.de-step4-hint {
    display: block;
    font-size: 11px;
    color: var(--de-orange);
    font-style: italic;
    margin-bottom: 15px;
}

/* Upload zone */
.de-step4-upload-zone {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 15px;
}

.de-step4-upload-zone span {
    flex: 1;
    color: #9ca3af;
    font-size: 14px;
}

.de-step4-upload-btn {
    background: transparent;
    border: 2px solid var(--de-green);
    color: var(--de-green);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.de-step4-upload-btn:hover {
    background: var(--de-green);
    color: white;
}

/* Tip box for step 4 - ABSOLUTE positioning in right margin */
.de-step4-tipbox {
    position: absolute;
    right: -200px;
    top: 20px;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 10;
}

.de-step4-tip-icon {
    width: 50px;
    height: 60px;
}

.de-step4-tip-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.de-step4-tip-text em {
    font-style: italic;
}

/* Tip box for dimensions - positioned relative to dimensions section */
.de-step4-tipbox-dimensions {
    position: absolute;
    right: -200px;
    top: 80px;
}

/* Dimensions section - 2 columns layout */
.de-step4-dimensions {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 15px;
}

.de-step4-dimensions-image {
    flex: 0 0 auto;
    max-width: 350px;
}

.de-step4-dimensions-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.de-step4-dimensions-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.de-step4-dimensions-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.de-step4-dimension {
    display: flex;
    align-items: center;
    gap: 10px;
}

.de-step4-dimension label {
    color: var(--de-green);
    font-weight: bold;
    font-size: 18px;
    width: 25px;
}

.de-step4-dimension input[type="number"] {
    width: 70px;
    padding: 10px 12px;
    border: 2px solid var(--de-green);
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #374151;
}

.de-step4-dimension input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.de-step4-dimension span {
    color: #374151;
    font-weight: 500;
}

/* Checkbox "Je ne peux pas mesurer" */
.de-step4-dimension-checkbox {
    margin-top: 10px;
    align-items: flex-start;
}

.de-step4-dimension-checkbox label {
    display: flex;
    align-items: center;
    gap: 5px;
    width: auto;
    cursor: pointer;
}

.de-step4-dimension-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--de-green);
}

.de-step4-question-mark {
    color: var(--de-orange);
    font-weight: bold;
    font-size: 20px;
}

.de-step4-cant-measure-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.de-step4-cant-measure-text span {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    line-height: 1.3;
}

.de-step4-cant-measure-text small {
    font-size: 10px;
    color: var(--de-orange);
    font-style: italic;
    line-height: 1.3;
}


/* Bouton Ajouter une face */
.de-step4-add-btn-wrapper {
    margin: 25px 0;
}

.de-step4-add-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    background: #6b7280;
    color: white;
    transition: background 0.2s;
}

.de-step4-add-btn:hover {
    background: #5a5f66;
}

.de-step4-add-icon {
    background: transparent;
    border: 3px solid var(--de-green);
    color: var(--de-green);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.de-step4-add-icon svg {
    width: 20px;
    height: 20px;
}

.de-step4-add-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Responsive Step 4 */
@media (max-width: 1200px) {
    /* Hide tip boxes on smaller screens where they don't fit in margin */
    .de-step4-tipbox {
        display: none;
    }
}

@media (max-width: 900px) {
    .de-step4-dimensions {
        flex-direction: column;
    }

    .de-step4-dimensions-image {
        max-width: 100%;
    }

    .de-step4-dimensions-right {
        flex-direction: column;
        width: 100%;
    }

    .de-step4-tipbox-dimensions {
        flex-direction: row;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .de-step4-dimensions-inputs {
        width: 100%;
    }

    .de-step4-dimension {
        flex-wrap: wrap;
    }
}
