/* =====================================================
   SERVYLO — PUBLIER UNE DEMANDE
   Variant de servylo-login.css avec form multi-step
   ===================================================== */

/* Le left panel est plus large pour la timeline */
.sv-login--demande .sv-login__left-inner {
    gap: 36px;
    align-items: flex-start;
    text-align: left;
}
.sv-login--demande .sv-login__brand-logo {
    align-self: flex-start;
}
.sv-login--demande .sv-login__brand-subtitle {
    text-align: left;
    max-width: 100%;
}

.dmd-left__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin: 0;
}
.dmd-left__highlight {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 2px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* ============== TIMELINE (left panel) ============== */
.dmd-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    position: relative;
}
.dmd-timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 23px;
    width: 2px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.dmd-timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
    opacity: 0.55;
    transition: opacity 0.35s ease;
}
.dmd-timeline__item.active,
.dmd-timeline__item.done { opacity: 1; }
.dmd-timeline__dot {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.dmd-timeline__item.active .dmd-timeline__dot {
    background: #ffffff;
    border-color: #ffffff;
    color: #0243f1;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,255,255,0.15);
    transform: scale(1.05);
}
.dmd-timeline__item.done .dmd-timeline__dot {
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.9);
    color: #0243f1;
}
.dmd-timeline__item.done .dmd-timeline__dot i { display: none; }
.dmd-timeline__item.done .dmd-timeline__dot::after {
    content: '\f00c';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    font-size: 18px;
}
.dmd-timeline__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
}
.dmd-timeline__text strong {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: -0.2px;
}
.dmd-timeline__text span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.4;
}

/* ============== BADGES (left panel bottom) ============== */
.dmd-left__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.dmd-left__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}
.dmd-left__badge i { font-size: 13px; color: #86efac; }

/* ============== RIGHT PANEL (form container) ============== */
.sv-login__right.dmd-right {
    padding: 60px 40px;
    align-items: flex-start;
    overflow-y: auto;
}
.dmd-form-wrap {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: svFormFadeIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

/* ============== PROGRESS BAR (horizontal top) ============== */
.dmd-progress {
    position: relative;
    width: 100%;
}
.dmd-progress__track {
    position: absolute;
    top: 18px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: #e2e8f0;
    border-radius: 99px;
    z-index: 0;
}
.dmd-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0243f1, #2563eb);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.dmd-progress__steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}
.dmd-progress__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.dmd-progress__step-num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.dmd-progress__step-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    transition: color 0.35s ease;
}
.dmd-progress__step-item.active .dmd-progress__step-num {
    background: linear-gradient(135deg, #0243f1, #2563eb);
    border-color: #0243f1;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 8px 20px -6px rgba(2,67,241,0.4);
}
.dmd-progress__step-item.active .dmd-progress__step-label {
    color: #0243f1;
}
.dmd-progress__step-item.done .dmd-progress__step-num {
    background: linear-gradient(135deg, #0243f1, #2563eb);
    border-color: #0243f1;
    color: #ffffff;
}
.dmd-progress__step-item.done .dmd-progress__step-num::before {
    content: '\f00c';
    font-family: 'Line Awesome Free';
    font-weight: 900;
}
.dmd-progress__step-item.done .dmd-progress__step-num {
    font-size: 0;
}
.dmd-progress__step-item.done .dmd-progress__step-num::before {
    font-size: 14px;
}
.dmd-progress__step-item.done .dmd-progress__step-label {
    color: #0f172a;
}

/* ============== FORM ============== */
.dmd-form {
    width: 100%;
}
.dmd-step {
    display: none;
    flex-direction: column;
    gap: 24px;
}
.dmd-step.active {
    display: flex;
    animation: dmdStepIn 0.45s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dmdStepIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.dmd-step__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dmd-step__title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin: 0;
}
.dmd-step__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ============== CATEGORIES GRID ============== */
.dmd-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.dmd-category {
    position: relative;
    background: #ffffff;
    border: 1.5px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.35s ease, background 0.35s ease;
    text-align: center;
    box-shadow: 0 2px 8px -4px rgba(15,23,42,0.06);
}
.dmd-category:hover {
    border-color: rgba(2,67,241,0.4);
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -10px rgba(2,67,241,0.2);
}
.dmd-category:focus-visible {
    outline: none;
    border-color: #0243f1;
    box-shadow: 0 0 0 4px rgba(2,67,241,0.1);
}
.dmd-category.selected {
    border-color: #0243f1;
    background: linear-gradient(180deg, #eef2ff 0%, #dbeafe 100%);
    box-shadow: 0 10px 24px -10px rgba(2,67,241,0.3), inset 0 0 0 1px #0243f1;
}
.dmd-category__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}
.dmd-category__icon i {
    font-size: 24px;
    color: #0243f1;
    transition: color 0.35s ease;
}
.dmd-category.selected .dmd-category__icon {
    background: linear-gradient(135deg, #0243f1, #2563eb);
    box-shadow: 0 6px 16px -4px rgba(2,67,241,0.5);
}
.dmd-category.selected .dmd-category__icon i { color: #ffffff; }
.dmd-category__name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.dmd-error {
    display: block;
    min-height: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626;
}
.dmd-error:empty { min-height: 0; }

/* Check badge sur catégorie sélectionnée */
.dmd-category__check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px -2px rgba(2,67,241,0.5);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1), transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.dmd-category.selected .dmd-category__check {
    opacity: 1;
    transform: scale(1);
}

/* ============== TIP CARDS ============== */
.dmd-tip {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #eff6ff 0%, #f5f8ff 100%);
    border: 1px solid rgba(2,67,241,0.15);
    border-radius: 14px;
    position: relative;
}
.dmd-tip::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg, #0243f1, #2563eb);
    border-radius: 0 99px 99px 0;
}
.dmd-tip__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px -4px rgba(2,67,241,0.5);
}
.dmd-tip__icon i { font-size: 18px; }
.dmd-tip__content {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
}
.dmd-tip__content strong {
    display: block;
    font-weight: 800;
    color: #0243f1;
    font-size: 13px;
    margin-bottom: 2px;
}

/* ============== FORM FIELDS ============== */
.dmd-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.dmd-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #171717;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}
.dmd-required { color: #ed1515; font-weight: 700; }
.dmd-optional {
    margin-left: 6px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 12px;
    font-style: italic;
}
.dmd-hidden-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.dmd-help {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
    margin-top: 2px;
}

.dmd-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 52px;
    background: #f8fafc;
    border: 1.5px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    padding: 0 16px;
    gap: 10px;
    transition: all 0.25s ease;
}
.dmd-input-wrap:focus-within {
    background: #ffffff;
    border-color: #0243f1;
    box-shadow: 0 0 0 4px rgba(2,67,241,0.1);
}

/* Validation states */
.dmd-field.is-valid .dmd-input-wrap {
    border-color: #0243f1;
}
.dmd-field.is-valid .dmd-textarea {
    border-color: #0243f1;
}
.dmd-field.is-invalid .dmd-input-wrap {
    border-color: #ef4444;
    background: #fef2f2;
}
.dmd-field.is-invalid .dmd-textarea {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Inline field error message */
.dmd-field__error {
    display: none;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #dc2626;
    line-height: 1.4;
    margin-top: 2px;
}
.dmd-field__error::before {
    content: '\f06a';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    font-size: 13px;
}
.dmd-field.is-invalid .dmd-field__error {
    display: inline-flex;
    animation: dmdErrorMsgIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dmdErrorMsgIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Champ readonly auto-rempli (ex: ville) */
.dmd-input-wrap--readonly {
    background: #f8fafc !important;
    border-color: rgba(15,23,42,0.08) !important;
    cursor: default;
}
.dmd-input-wrap--readonly:focus-within {
    box-shadow: none !important;
    border-color: rgba(15,23,42,0.08) !important;
}
.dmd-input-wrap--readonly .dmd-input {
    color: #0f172a !important;
    font-weight: 500 !important;
    cursor: default !important;
}
.dmd-input-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    color: #ffffff;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px -4px rgba(2,67,241,0.4);
    flex-shrink: 0;
}
.dmd-input-badge i { font-size: 10px; }
@keyframes dmdCheckPop {
    from { opacity: 0; transform: translateY(-50%) scale(0.5); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}
.dmd-input-icon {
    font-size: 18px;
    color: #888888;
    flex-shrink: 0;
}
.dmd-input,
.dmd-select {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #0f172a;
    font-size: 14.5px;
    line-height: 1.4;
    min-width: 0;
    height: 100%;
}
.dmd-input::placeholder { color: #94a3b8; font-weight: 400; }
.dmd-select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 20px;
}

.dmd-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    border: 1.5px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #0f172a;
    font-size: 14.5px;
    line-height: 1.55;
    resize: vertical;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}
.dmd-textarea::placeholder { color: #94a3b8; font-weight: 400; }
.dmd-textarea:focus {
    background: #ffffff;
    border-color: #0243f1;
    box-shadow: 0 0 0 4px rgba(2,67,241,0.1);
}

.dmd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ============== ADDRESS AUTOCOMPLETE ============== */
#addressField { position: relative; }

.dmd-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 32px -8px rgba(15,23,42,0.15), 0 24px 48px -20px rgba(15,23,42,0.2);
    padding: 6px;
    z-index: 100;
    animation: dmdStepIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
.dmd-autocomplete.open { display: block; }
.dmd-autocomplete::-webkit-scrollbar { width: 6px; }
.dmd-autocomplete::-webkit-scrollbar-track { background: transparent; }
.dmd-autocomplete::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); border-radius: 99px; }

.dmd-autocomplete__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.dmd-autocomplete__item:hover,
.dmd-autocomplete__item.is-active {
    background: #f1f5f9;
}
.dmd-autocomplete__item i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    color: #0243f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
}
.dmd-autocomplete__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dmd-autocomplete__label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dmd-autocomplete__text small {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.3;
}
.dmd-autocomplete__loading,
.dmd-autocomplete__empty {
    padding: 16px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
}
.dmd-autocomplete__loading i { color: #0243f1; margin-right: 6px; }

/* ============== DATE TYPE SELECTOR (pill radio) ============== */
.dmd-date-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.dmd-date-type__option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    background: #f8fafc;
    border: 1.5px solid rgba(15,23,42,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    text-align: center;
}
.dmd-date-type__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dmd-date-type__option i {
    font-size: 22px;
    color: #64748b;
    transition: color 0.3s ease;
}
.dmd-date-type__option span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.dmd-date-type__option:hover {
    border-color: rgba(2,67,241,0.35);
    background: #f1f5f9;
    transform: translateY(-2px);
}
.dmd-date-type__option.active {
    border-color: #0243f1;
    background: linear-gradient(180deg, #eef2ff 0%, #dbeafe 100%);
    box-shadow: 0 8px 20px -8px rgba(2,67,241,0.3), inset 0 0 0 1px #0243f1;
}
.dmd-date-type__option.active i,
.dmd-date-type__option.active span {
    color: #0243f1;
}
.dmd-date-type__option::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    transition: all 0.3s ease;
}
.dmd-date-type__option.active::after {
    background: linear-gradient(135deg, #0243f1, #2563eb);
    border-color: #0243f1;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.dmd-date-picker {
    animation: dmdStepIn 0.3s cubic-bezier(0.16,1,0.3,1);
}

.dmd-asap-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%);
    border: 1px solid rgba(234,88,12,0.3);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #7c2d12;
}
.dmd-asap-info i {
    font-size: 20px;
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 1px;
}
.dmd-asap-info strong { color: #ea580c; font-weight: 800; }

@media (max-width: 600px) {
    .dmd-date-type { grid-template-columns: 1fr; }
    .dmd-date-type__option { flex-direction: row; justify-content: flex-start; padding: 14px 16px; }
    .dmd-date-type__option::after { top: 50%; transform: translateY(-50%); }
}

/* ============== UPLOAD ZONE (photos) ============== */
.dmd-help-top {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-top: -2px;
    margin-bottom: 2px;
}
.dmd-upload {
    width: 100%;
}
.dmd-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}
.dmd-upload__zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 24px;
    background: #f8fafc;
    border: 2px dashed rgba(2,67,241,0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    text-align: center;
}
.dmd-upload__zone:hover {
    background: #eff6ff;
    border-color: #0243f1;
    transform: translateY(-2px);
}
.dmd-upload__zone.is-dragging {
    background: #dbeafe;
    border-color: #0243f1;
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(2,67,241,0.15);
    transform: scale(1.01);
}
.dmd-upload__zone.has-files {
    padding: 20px;
}
.dmd-upload__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -6px rgba(2,67,241,0.3);
    transition: all 0.35s ease;
}
.dmd-upload__zone:hover .dmd-upload__icon,
.dmd-upload__zone.is-dragging .dmd-upload__icon {
    background: linear-gradient(135deg, #0243f1 0%, #2563eb 100%);
    transform: scale(1.05) rotate(-4deg);
}
.dmd-upload__zone:hover .dmd-upload__icon i,
.dmd-upload__zone.is-dragging .dmd-upload__icon i {
    color: #ffffff;
}
.dmd-upload__icon i {
    font-size: 26px;
    color: #0243f1;
    transition: color 0.35s ease;
}
.dmd-upload__text {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.5;
}
.dmd-upload__text strong {
    color: #0243f1;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(2,67,241,0.3);
    text-underline-offset: 3px;
}
.dmd-upload__hint {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Preview grid */
.dmd-upload__preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.dmd-upload__preview:empty { display: none; }
.dmd-upload__item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.08);
    background: #f8fafc;
    box-shadow: 0 4px 12px -6px rgba(15,23,42,0.12);
    animation: dmdPhotoIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dmdPhotoIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.dmd-upload__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dmd-upload__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(15,23,42,0.85);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    z-index: 2;
}
.dmd-upload__remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}
.dmd-upload__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 8px 6px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* Photos dans récap */
.dmd-summary__photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 0;
    align-items: center;
}
.dmd-summary__photos img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(15,23,42,0.1);
}
.dmd-summary__photos-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #0243f1;
    background: rgba(2,67,241,0.1);
    padding: 5px 10px;
    border-radius: 99px;
    margin-left: 4px;
}

@media (max-width: 480px) {
    .dmd-upload__zone { padding: 24px 16px; gap: 8px; }
    .dmd-upload__icon { width: 46px; height: 46px; border-radius: 14px; }
    .dmd-upload__icon i { font-size: 22px; }
    .dmd-upload__text { font-size: 13.5px; }
    .dmd-upload__preview { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ============== AUTH HERO + BENEFITS ============== */
.dmd-auth-hero {
    text-align: center;
    padding: 24px 20px 20px;
    background: linear-gradient(180deg, #eff6ff 0%, #f5f8ff 100%);
    border: 1px solid rgba(2,67,241,0.15);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.dmd-auth-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(2,67,241,0.12) 0%, transparent 65%);
    pointer-events: none;
}
.dmd-auth-hero__icon {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(2,67,241,0.5);
}
.dmd-auth-hero__icon i { font-size: 26px; }
.dmd-auth-hero__title {
    margin: 0 0 6px;
    text-align: center;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
}
.dmd-auth-hero__subtitle {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Bénéfices */
.dmd-auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.dmd-auth-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 10px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.dmd-auth-benefit:hover {
    border-color: rgba(2,67,241,0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -8px rgba(2,67,241,0.18);
}
.dmd-auth-benefit i {
    font-size: 22px;
    color: #0243f1;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dmd-auth-benefit span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .dmd-auth-benefits { grid-template-columns: 1fr; }
    .dmd-auth-benefit { flex-direction: row; text-align: left; padding: 12px 14px; }
    .dmd-auth-benefit i { flex-shrink: 0; width: 34px; height: 34px; font-size: 18px; }
}

/* ============== PASSWORD STRENGTH ============== */
.dmd-pw-strength {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.dmd-pw-strength.is-visible { display: flex; }
.dmd-pw-strength__bars {
    display: flex;
    gap: 4px;
    flex: 1;
}
.dmd-pw-strength__bars span {
    flex: 1;
    height: 4px;
    background: rgba(15,23,42,0.08);
    border-radius: 99px;
    transition: background 0.25s ease;
}
.dmd-pw-strength__bars span.weak { background: #ef4444; }
.dmd-pw-strength__bars span.medium { background: #f59e0b; }
.dmd-pw-strength__bars span.good { background: #3b82f6; }
.dmd-pw-strength__bars span.strong { background: #16a34a; }
.dmd-pw-strength__label {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.dmd-pw-strength__label.weak { color: #ef4444; }
.dmd-pw-strength__label.medium { color: #f59e0b; }
.dmd-pw-strength__label.good { color: #3b82f6; }
.dmd-pw-strength__label.strong { color: #16a34a; }

/* ============== SOCIAL AUTH BUTTONS ============== */
.dmd-social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dmd-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    background: #ffffff;
    border: 1.5px solid rgba(15,23,42,0.1);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    cursor: pointer;
}
.dmd-social-btn:hover {
    border-color: #0243f1;
    background: rgba(2,67,241,0.04);
    color: #0243f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(2,67,241,0.25);
}
.dmd-social-btn img {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    display: block;
}

.dmd-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0;
}
.dmd-divider::before,
.dmd-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15,23,42,0.1);
}
.dmd-divider span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .dmd-social-auth { grid-template-columns: 1fr; }
}

/* ============== AUTH TABS (login / register) ============== */
.dmd-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 4px;
}
.dmd-auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.dmd-auth-tab i { font-size: 16px; }
.dmd-auth-tab:hover { color: #0f172a; }
.dmd-auth-tab.active {
    background: #ffffff;
    color: #0243f1;
    box-shadow: 0 4px 12px -4px rgba(2,67,241,0.2), 0 1px 2px rgba(15,23,42,0.06);
}
.dmd-auth-panel {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: dmdStepIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
.dmd-auth-panel.active { display: flex; }
.dmd-auth-forgot {
    align-self: flex-end;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0243f1;
    text-decoration: none;
}
.dmd-auth-forgot:hover { text-decoration: underline; }

/* Password toggle button */
.dmd-pw-toggle {
    background: none;
    border: none;
    padding: 4px 6px;
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.dmd-pw-toggle:hover { color: #0243f1; }
.dmd-pw-toggle i { font-size: 18px; }

/* ============== LOGGED-IN CARD ============== */
.dmd-logged-in {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #eff6ff 0%, #f5f8ff 100%);
    border: 1px solid rgba(2,67,241,0.18);
    border-radius: 16px;
}
.dmd-logged-in__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -4px rgba(2,67,241,0.4);
}
.dmd-logged-in__icon i { font-size: 24px; }
.dmd-logged-in__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.dmd-logged-in__info strong {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}
.dmd-logged-in__info span {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dmd-logged-in__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .dmd-auth-tabs { grid-template-columns: 1fr; }
    .dmd-logged-in { flex-direction: column; align-items: flex-start; }
    .dmd-logged-in__badge { align-self: flex-start; }
}

/* ============== PRIVACY NOTICE ============== */
.dmd-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(2,67,241,0.05);
    border: 1px solid rgba(2,67,241,0.18);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}
.dmd-privacy i {
    font-size: 18px;
    color: #0243f1;
    flex-shrink: 0;
    margin-top: 1px;
}
.dmd-privacy strong { color: #0243f1; font-weight: 700; }

/* ============== SUMMARY CARDS ============== */
.dmd-summary-card {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 14px -8px rgba(15,23,42,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dmd-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(15,23,42,0.12);
}
.dmd-summary-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(15,23,42,0.06);
}
.dmd-summary-card__title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
    letter-spacing: -0.2px;
}
.dmd-summary-card__title i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    color: #0243f1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.dmd-summary-card__edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(2,67,241,0.06);
    border: 1px solid rgba(2,67,241,0.18);
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #0243f1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.dmd-summary-card__edit:hover {
    background: #0243f1;
    border-color: #0243f1;
    color: #ffffff;
}
.dmd-summary-card__edit i { font-size: 11px; }
.dmd-summary-card__body {
    padding: 16px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.dmd-summary__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(15,23,42,0.08);
}
.dmd-summary__row:last-child { border-bottom: none; padding-bottom: 0; }
.dmd-summary__row:first-child { padding-top: 0; }
.dmd-summary__row-label {
    flex-shrink: 0;
    width: 110px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
}
.dmd-summary__row-value {
    flex: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* Contact list (vertical with icons) */
.dmd-summary-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dmd-summary-contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}
.dmd-summary-contact__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2,67,241,0.10) 0%, rgba(37,99,235,0.10) 100%);
    color: #0243f1;
    font-size: 16px;
}
.dmd-summary-contact__text {
    flex: 1;
    min-width: 0;
}

/* ============== ERROR BANNER (backend errors) ============== */
.dmd-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px 18px 20px;
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 16px;
    box-shadow: 0 8px 24px -10px rgba(239,68,68,0.25);
    margin-bottom: 12px;
    position: relative;
    animation: dmdErrorIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dmdErrorIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dmd-error-banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -4px rgba(239,68,68,0.45);
}
.dmd-error-banner__icon i { font-size: 22px; }
.dmd-error-banner__content {
    flex: 1;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}
.dmd-error-banner__content strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #991b1b;
    margin-bottom: 6px;
}
.dmd-error-banner__content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.dmd-error-banner__content li {
    position: relative;
    padding-left: 18px;
    font-size: 13.5px;
    color: #991b1b;
    line-height: 1.5;
    margin-bottom: 4px;
}
.dmd-error-banner__content li::before {
    content: '•';
    position: absolute;
    left: 6px;
    top: 0;
    color: #ef4444;
    font-weight: 800;
}
.dmd-error-banner__content li:last-child { margin-bottom: 0; }
.dmd-error-banner__close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(239,68,68,0.1);
    color: #991b1b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease;
    align-self: flex-start;
}
.dmd-error-banner__close:hover {
    background: rgba(239,68,68,0.2);
}
.dmd-error-banner__close i { font-size: 14px; }

/* ============== SUCCESS BANNER (after submission) ============== */
.dmd-success-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 16px;
    box-shadow: 0 8px 24px -10px rgba(34,197,94,0.3);
    margin-bottom: 12px;
    animation: dmdSuccessIn 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes dmdSuccessIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.dmd-success-banner__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(22,163,74,0.5);
}
.dmd-success-banner__icon i { font-size: 26px; }
.dmd-success-banner__content {
    flex: 1;
    font-family: 'Inter', sans-serif;
}
.dmd-success-banner__content strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #166534;
    margin-bottom: 4px;
}
.dmd-success-banner__content p {
    margin: 0;
    font-size: 14px;
    color: #166534;
    line-height: 1.5;
}

/* ============== AUTOSAVE NOTIFICATION ============== */
.dmd-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border-radius: 99px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 12px 32px -8px rgba(15,23,42,0.4);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.dmd-toast.is-visible {
    transform: translateX(-50%) translateY(0);
}
.dmd-toast i { color: #4ade80; font-size: 16px; }

/* ============== STEP 4 — FINAL HERO ============== */
.dmd-final-hero {
    text-align: center;
    padding: 32px 20px 24px;
    background: linear-gradient(180deg, #eef2ff 0%, #f5f8ff 100%);
    border: 1px solid rgba(2,67,241,0.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.dmd-final-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(2,67,241,0.1) 0%, transparent 65%);
    pointer-events: none;
}
.dmd-final-hero__icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 12px 28px -10px rgba(2,67,241,0.5);
    animation: dmdRocketBounce 3s ease-in-out infinite;
}
.dmd-final-hero__icon i { font-size: 30px; }
@keyframes dmdRocketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.dmd-final-hero__title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 26px;
    position: relative;
}
.dmd-final-hero__subtitle {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.dmd-final-hero__subtitle strong { color: #0243f1; font-weight: 700; }

/* CTA finale */
.dmd-final-cta {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 4px 14px -8px rgba(15,23,42,0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.dmd-nav--final {
    margin-top: 0;
}
.dmd-nav--final .dmd-btn--submit {
    flex: 1;
    padding: 18px 28px;
    font-size: 16px;
}
.dmd-final-fineprint {
    margin: 0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
}
.dmd-final-fineprint a {
    color: #0243f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.dmd-final-fineprint a:hover { color: #0235c9; }

/* Date section error styling */
.dmd-date-section.is-invalid .dmd-date-type__option {
    border-color: rgba(239,68,68,0.4);
}
.dmd-date-section.is-invalid .dmd-input-wrap {
    border-color: #ef4444;
    background: #fef2f2;
}

/* ============== "ET APRÈS ?" ============== */
.dmd-next {
    background: linear-gradient(180deg, #eef2ff 0%, #f5f8ff 100%);
    border: 1px solid rgba(2,67,241,0.18);
    border-radius: 18px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.dmd-next::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(2,67,241,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.dmd-next__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #0243f1;
    font-size: 16px;
    margin: 0 0 16px;
    position: relative;
}
.dmd-next__title i {
    font-size: 20px;
}
.dmd-next__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.dmd-next__steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.dmd-next__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0243f1, #2563eb);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 10px -2px rgba(2,67,241,0.4);
}
.dmd-next__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}
.dmd-next__text strong {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

/* ============== TRUST ROW ============== */
.dmd-trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 14px 16px;
    background: rgba(34,197,94,0.05);
    border: 1px solid rgba(34,197,94,0.18);
    border-radius: 12px;
    flex-wrap: wrap;
}
.dmd-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}
.dmd-trust-item i { font-size: 15px; color: #16a34a; }

/* ============== NAV BUTTONS ============== */
.dmd-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.dmd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    border: none;
    text-decoration: none;
    line-height: 1.4;
}
.dmd-btn--ghost {
    background: #f1f5f9;
    color: #475569;
}
.dmd-btn--ghost:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.dmd-btn--primary {
    background: linear-gradient(135deg, #0243f1 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(2,67,241,0.5), 0 4px 8px -4px rgba(2,67,241,0.3);
    position: relative;
    overflow: hidden;
}
.dmd-btn--primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}
.dmd-btn--primary:hover::before { left: 100%; }
.dmd-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(2,67,241,0.55), 0 6px 12px -4px rgba(2,67,241,0.35);
}
.dmd-btn--submit {
    background: linear-gradient(135deg, #0243f1 0%, #2563eb 100%);
    color: #ffffff;
    padding: 16px 32px;
    font-size: 16px;
    box-shadow: 0 10px 24px -8px rgba(2,67,241,0.5), 0 4px 8px -4px rgba(2,67,241,0.3);
}
.dmd-btn--submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -8px rgba(2,67,241,0.55), 0 6px 12px -4px rgba(2,67,241,0.35);
}
.dmd-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
    .dmd-left__title { font-size: 30px; }
    .dmd-timeline__dot { width: 42px; height: 42px; font-size: 18px; }
    .dmd-categories { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 900px) {
    .sv-login__right.dmd-right { padding: 80px 20px 40px; }
    .dmd-form-wrap { max-width: 540px; gap: 24px; }
    .dmd-progress__step-label { display: none; }
    .dmd-step__title { font-size: 24px; letter-spacing: -0.5px; }
    .dmd-step__subtitle { font-size: 14px; }
    .dmd-categories { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .dmd-summary__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .dmd-row { grid-template-columns: 1fr; }
    .dmd-summary__grid { grid-template-columns: 1fr; }
    .dmd-categories { grid-template-columns: 1fr 1fr; gap: 10px; }
    .dmd-category { padding: 18px 12px; }
    .dmd-category__icon { width: 44px; height: 44px; border-radius: 12px; }
    .dmd-category__icon i { font-size: 20px; }
    .dmd-category__name { font-size: 13px; }
    .dmd-btn { padding: 12px 20px; font-size: 14px; }
    .dmd-btn--submit { padding: 14px 24px; font-size: 15px; }
    .dmd-progress__step-num { width: 32px; height: 32px; font-size: 12px; }
    .dmd-progress__track { top: 15px; }
}

@media (max-width: 480px) {
    .sv-login__right.dmd-right { padding: 70px 16px 30px; }
    .dmd-step__title { font-size: 22px; }
    .dmd-trust-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; }
    .dmd-trust-item { font-size: 12px; }
    .dmd-nav { gap: 8px; }
    .dmd-btn { padding: 12px 16px; font-size: 13px; }
    .dmd-btn--submit { padding: 14px 20px; font-size: 14px; }
    /* Summary cards mobile */
    .dmd-summary-card__header { padding: 14px 18px; }
    .dmd-summary-card__title { font-size: 13px; }
    .dmd-summary-card__title i { width: 28px; height: 28px; font-size: 14px; }
    .dmd-summary-card__edit { padding: 5px 10px; font-size: 11px; }
    .dmd-summary-card__body { padding: 14px 18px 16px; }
    .dmd-summary__row { flex-direction: column; gap: 4px; padding: 8px 0; }
    .dmd-summary__row-label { width: auto; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
    .dmd-summary__row-value { font-size: 13.5px; }
    /* Et après ? */
    .dmd-next { padding: 18px 20px; }
    .dmd-next__title { font-size: 15px; margin-bottom: 14px; }
    .dmd-next__num { width: 28px; height: 28px; font-size: 12px; }
    .dmd-next__text { font-size: 12.5px; }
    .dmd-next__text strong { font-size: 13px; }
}
