/* ==========================================
   PARCOURS « PARLONS DE VOTRE PROJET » (/demande)

   Sur ordinateur, chaque étape tient dans la hauteur de l'écran
   (en-tête + titre + contenu + navigation) sans défilement.
   Sur mobile, la page défile normalement.
========================================== */

.dm-page {
    position: relative;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fbfcff;
    color: var(--ink);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.dm-hp {
    position: absolute;
    left: -9999px;
}

/* Photo de bureau en haut à droite, fondue dans la page */
.dm-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 340px;
    z-index: 0;
    pointer-events: none;
}

.dm-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.dm-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #fbfcff 0%, rgba(251, 252, 255, 0.55) 30%, transparent 60%),
        linear-gradient(0deg, #fbfcff 0%, rgba(251, 252, 255, 0) 45%);
}


/* ==========================================
   EN-TÊTE + PROGRESSION
========================================== */

.dm-header {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin: 0 auto;
    padding: 16px 0 0;

    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.dm-stepper {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dm-stepper-item {
    position: relative;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Trait entre deux étapes */
.dm-stepper-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
    height: 2px;
    background: #e3e8f2;
    border-radius: 2px;
}

.dm-stepper-item.is-done:not(:last-child)::after {
    background: #3166f0;
}

.dm-stepper-dot {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    background: #eef2f8;
    border-radius: 50%;
}

.dm-stepper-dot svg {
    display: none;
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.dm-stepper-item.is-current,
.dm-stepper-item.is-done {
    color: var(--ink);
}

.dm-stepper-item.is-current {
    color: #3166f0;
    font-weight: 700;
}

.dm-stepper-item.is-current .dm-stepper-dot,
.dm-stepper-item.is-done .dm-stepper-dot {
    color: #ffffff;
    background: #3166f0;
    box-shadow: 0 4px 12px rgba(49, 102, 240, 0.3);
}

.dm-stepper-item.is-done .dm-stepper-num {
    display: none;
}

.dm-stepper-item.is-done .dm-stepper-dot svg {
    display: block;
}


/* ==========================================
   STRUCTURE
========================================== */

.dm-form {
    position: relative;
    z-index: 1;
    flex: 1;
    width: var(--container);
    margin: 0 auto;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.dm-step:not([hidden]) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dm-hero {
    position: relative;
    max-width: 760px;
    padding: 22px 0 18px;
}

.dm-hero .section-label {
    margin-bottom: 0.5rem;
}

.dm-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, min(3.3vw, 5vh), 46px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.dm-hero h1 strong {
    color: #3166f0;
    font-weight: 800;
}

.dm-hero > p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Note manuscrite en haut à droite de l'étape */
.dm-note {
    margin: 0;
    color: var(--ink);
    font-family: "Caveat", cursive;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.1;
    transform: rotate(-8deg);
}

.dm-hero .dm-note {
    position: absolute;
    top: -40px;
    left: calc(100% + 240px);
    white-space: nowrap;
}

.dm-note::after {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    margin-top: 6px;
    background: var(--ink);
    border-radius: 3px;
}

.dm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.dm-panel {
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #edf0f6;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(20, 44, 85, 0.05);
}

.dm-aside {
    display: grid;
    gap: 12px;
}

.dm-card {
    margin: 0;
    padding: 16px 18px;
    background: #f4f7ff;
    border: 1px solid #e8eefa;
    border-radius: 16px;
}

.dm-card--orange { background: #fff7f0; border-color: #fbebdd; }
.dm-card--green { background: #f0fbf7; border-color: #ddf3ea; }

.dm-card > p {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.5;
}

.dm-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.dm-card-head strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.dm-card-head p,
.dm-card-head span > span {
    display: block;
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.45;
}

.dm-card-head--lg strong {
    font-size: 1.15rem;
}

/* Icônes rondes */
.dm-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.dm-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.dm-icon--lg { width: 50px; height: 50px; border-radius: 14px; }
.dm-icon--lg svg { width: 24px; height: 24px; }
.dm-icon--sm { width: 34px; height: 34px; border-radius: 10px; }
.dm-icon--sm svg { width: 17px; height: 17px; }

.dm-icon--blue { color: #3166f0; background: #e8efff; }
.dm-icon--green { color: #0b9a76; background: #dcf6ec; }
.dm-icon--purple { color: #6657ff; background: #eeebff; }
.dm-icon--orange { color: #f07a2c; background: #ffeadb; }

.dm-error {
    margin: 6px 0 0;
    color: #d33a3a;
    font-size: 0.82rem;
    font-weight: 500;
}

.dm-error:empty {
    display: none;
}

.dm-muted { color: var(--muted); font-weight: 400; }
.dm-accent { color: #3166f0; font-weight: 500; }
.dm-small { display: flex; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.dm-small svg { flex: 0 0 auto; width: 15px; height: 15px; }


/* ==========================================
   ÉTAPE 1 — VOTRE BESOIN : une liste simple
========================================== */

.dm-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 880px;
}

/* Bloc : icône en haut, titre, une ligne, flèche en bas à droite */
.dm-choice {
    position: relative;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 24px;
    cursor: pointer;
    background: #ffffff;
    border: 1.5px solid #e9eef8;
    border-radius: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dm-choice:hover,
.dm-choice:has(input:focus-visible) {
    transform: translateY(-2px);
    border-color: #c9d6f5;
    box-shadow: 0 12px 28px rgba(20, 44, 85, 0.08);
}

.dm-choice:has(input:checked),
.dm-choice-alt:has(input:checked) {
    border-color: #3166f0;
    box-shadow: 0 0 0 3px rgba(49, 102, 240, 0.15);
}

.dm-choice .dm-choice-go {
    position: absolute;
    right: 22px;
    bottom: 22px;
}

.dm-choice input,
.dm-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dm-choice .dm-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    border-radius: 13px;
}

.dm-choice .dm-icon svg {
    width: 22px;
    height: 22px;
}

.dm-choice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dm-choice-text strong {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dm-choice-text span {
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.4;
}

.dm-choice-go {
    width: 18px;
    height: 18px;
    color: #9aa6bd;
    transition: color 0.2s ease, transform 0.2s ease;
}

.dm-choice-text { padding-right: 26px; }

/* « Je ne sais pas encore » : une ligne discrète sous les blocs */
.dm-choice-alt {
    position: relative;
    max-width: 880px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px dashed #d8e0ee;
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dm-choice-alt:hover { border-color: #b9c8e6; background: #ffffff; }
.dm-choice-alt input { position: absolute; opacity: 0; pointer-events: none; }
.dm-choice-alt > svg:first-of-type { width: 20px; height: 20px; color: #58677f; flex: none; }
.dm-choice-alt strong { color: var(--ink); }
.dm-choice-alt .dm-choice-go { margin-left: auto; }

.dm-choice:hover .dm-choice-go,
.dm-choice-alt:hover .dm-choice-go,
.dm-choice-alt:has(input:checked) .dm-choice-go,
.dm-choice:has(input:checked) .dm-choice-go {
    color: #3166f0;
    transform: translateX(3px);
}

@media (max-width: 650px) {
    .dm-choices { grid-template-columns: 1fr; gap: 10px; }
    .dm-choice { min-height: 0; padding: 16px 18px; }
    .dm-choice .dm-icon { width: 40px; height: 40px; margin-bottom: 4px; }
}

/* ==========================================
   ÉTAPE 2 — DÉTAILS
========================================== */

.dm-field-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.dm-field-head label {
    font-size: 0.98rem;
    font-weight: 700;
}

.dm-counter {
    color: var(--muted);
    font-size: 0.8rem;
}

.dm-form textarea,
.dm-form input[type="text"],
.dm-form input[type="email"],
.dm-form input[type="tel"],
.dm-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    background: #ffffff;
    border: 1.5px solid #dfe5ef;
    border-radius: 11px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dm-form textarea {
    resize: vertical;
    line-height: 1.5;
}

#dm-description {
    height: clamp(170px, 38vh, 340px);
}

.dm-form textarea:focus,
.dm-form input:focus,
.dm-form select:focus {
    outline: none;
    border-color: #3166f0;
    box-shadow: 0 0 0 3px rgba(49, 102, 240, 0.15);
}

.dm-example {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
    line-height: 1.4;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e3e9f5;
    border-radius: 12px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.dm-example:hover {
    border-color: #3166f0;
    transform: translateY(-1px);
}

.dm-example span {
    flex: 1;
}

.dm-example svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--ink-soft);
}


/* ==========================================
   ÉTAPE 3 — QUESTIONS
========================================== */

.dm-questions {
    display: grid;
    gap: 10px;
}

.dm-question {
    margin: 0;
    min-width: 0;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Les légendes de fieldset se placent sur la bordure par défaut : on les remet dans le flux. */
.dm-question-head,
.dm-subpanel > legend {
    float: left;
    width: 100%;
}

.dm-question > .dm-tiles,
.dm-subpanel > .dm-tiles {
    clear: both;
}

.dm-question-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 10px;
}

.dm-question-head .dm-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.dm-question-num {
    color: #3166f0;
    font-size: 1rem;
    font-weight: 800;
}

.dm-question-head strong {
    display: block;
    font-size: 0.98rem;
}

.dm-question-head span > span {
    display: block;
    margin-top: 1px;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.dm-tiles {
    display: grid;
    gap: 8px;
}

.dm-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dm-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dm-tile {
    position: relative;
    min-height: 38px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 0.85rem;
    cursor: pointer;
    background: #ffffff;
    border: 1.5px solid #e3e8f1;
    border-radius: 10px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dm-tile svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.dm-tile:hover {
    border-color: #b9c9ef;
}

.dm-tile:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgba(49, 102, 240, 0.2);
}

.dm-tile:has(input:checked) {
    color: #2551c9;
    font-weight: 600;
    background: #eef3ff;
    border-color: #3166f0;
}

.dm-tile:has(input:disabled) {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Coche dans le coin quand sélectionné */
.dm-tile:has(input:checked)::after {
    content: "";
    position: absolute;
    top: -7px;
    right: -7px;
    width: 18px;
    height: 18px;
    background: #3166f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.dm-tile--stack {
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-weight: 600;
}

.dm-tile--stack svg {
    width: 22px;
    height: 22px;
}


/* ==========================================
   ÉTAPE 4 — SYNTHÈSE
========================================== */

.dm-loading {
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--ink-soft);
}

.dm-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #dfe7fb;
    border-top-color: #3166f0;
    border-radius: 50%;
    animation: dm-spin 0.9s linear infinite;
}

@keyframes dm-spin {
    to { transform: rotate(360deg); }
}

.dm-synthese-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dm-synthese-error[hidden],
.dm-loading[hidden],
[data-synthese-content][hidden] {
    display: none;
}

.dm-summary {
    display: grid;
    gap: 10px;
}

.dm-summary-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
}

.dm-summary-item .dm-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.dm-summary-item .dm-icon svg {
    width: 24px;
    height: 24px;
}

.dm-summary-item h2 {
    margin: 0 0 4px;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dm-summary-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.dm-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--ink);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #e3e8f1;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(20, 44, 85, 0.06);
}

.dm-edit svg { width: 14px; height: 14px; }

.dm-keypoints {
    padding-top: 14px;
    padding-bottom: 14px;
}

.dm-keypoints .dm-icon {
    width: 34px;
    height: 34px;
}

.dm-keypoints-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.dm-keypoints-grid > div {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 3px;
    border: 1px solid #edf0f6;
    border-radius: 12px;
}

.dm-keypoints-grid svg {
    width: 18px;
    height: 18px;
    color: #3166f0;
}

.dm-keypoints-grid strong {
    font-size: 0.82rem;
}

.dm-keypoints-grid span {
    grid-column: 2;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.4;
}

.dm-example-solution img {
    width: 100%;
    max-height: clamp(110px, 18vh, 180px);
    margin-top: 10px;
    object-fit: cover;
    border-radius: 10px;
}

.dm-btn-green,
.dm-btn-outline {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 999px;
}

.dm-btn-green {
    color: #ffffff;
    background: #0e9a6d;
    border: 0;
    box-shadow: 0 6px 16px rgba(14, 154, 109, 0.25);
}

.dm-btn-outline {
    color: var(--ink);
    background: #ffffff;
    border: 1.5px solid #cfd8e8;
}

.dm-synthese-error .dm-btn-outline {
    width: auto;
    margin: 0;
}

.dm-btn-green svg,
.dm-btn-outline svg { width: 16px; height: 16px; }


/* ==========================================
   ÉTAPE 5 — CONTACT
========================================== */

.dm-contact {
    display: grid;
    gap: 12px;
}

.dm-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.dm-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.86rem;
    font-weight: 700;
}

.dm-phone {
    display: flex;
    border: 1.5px solid #dfe5ef;
    border-radius: 11px;
    overflow: hidden;
}

.dm-phone:focus-within {
    border-color: #3166f0;
    box-shadow: 0 0 0 3px rgba(49, 102, 240, 0.15);
}

.dm-form .dm-phone select,
.dm-form .dm-phone input {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.dm-form .dm-phone select {
    width: auto;
    padding-right: 6px;
    background: #f8faff;
    border-right: 1px solid #dfe5ef;
}

.dm-subpanel {
    margin: 0;
    padding: 12px 14px;
    min-width: 0;
    background: #f6f8fd;
    border: 0;
    border-radius: 14px;
}

.dm-subpanel--green {
    background: #effaf5;
}

.dm-subpanel .dm-card-head {
    margin-bottom: 10px;
}

.dm-subpanel .dm-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.dm-subpanel .dm-icon svg {
    width: 17px;
    height: 17px;
}

.dm-subpanel label strong {
    font-size: 0.92rem;
}

#dm-message {
    height: 58px;
}

.dm-tile--contact {
    align-items: center;
    padding: 9px 12px;
}

.dm-tile--contact strong {
    display: block;
    font-size: 0.88rem;
}

.dm-tile--contact span > span {
    display: block;
    margin-top: 1px;
    color: var(--ink-soft);
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.35;
}

.dm-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.45;
    cursor: pointer;
}

.dm-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #3166f0;
}

.dm-quote {
    position: relative;
    background: #ffffff;
}

.dm-quote > svg {
    width: 24px;
    height: 24px;
    color: #3166f0;
    fill: #3166f0;
}

.dm-quote p {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
}

.dm-quote footer {
    margin-top: 4px;
    text-align: right;
    font-family: "Caveat", cursive;
    font-size: 22px;
    font-weight: 600;
}


/* ==========================================
   NAVIGATION BAS DE PAGE
========================================== */

.dm-nav {
    margin-top: auto;
    padding-top: 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.dm-page.is-measuring {
    min-height: 0;
}

.dm-form.is-first-step .dm-nav {
    display: none;
}

.dm-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(20, 44, 85, 0.08);
}

.dm-back[hidden] { visibility: hidden; display: inline-flex; }

.dm-back svg,
.dm-next svg { width: 20px; height: 20px; }

.dm-dots {
    display: flex;
    gap: 12px;
}

.dm-dots span {
    width: 11px;
    height: 11px;
    background: #dfe5ef;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dm-dots span.is-current {
    background: #3166f0;
    transform: scale(1.25);
}

.dm-next-wrap {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dm-next {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 13px 32px;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: #061d43;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(7, 27, 66, 0.22);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dm-next:hover:not(:disabled) {
    transform: translateY(-2px);
}

.dm-next:disabled {
    opacity: 0.5;
    cursor: wait;
}

.dm-next[hidden],
.dm-next-note[hidden] {
    display: none;
}

.dm-next-note {
    order: -1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.dm-next-note svg { width: 16px; height: 16px; }


/* ==========================================
   CONFIRMATION — « C'EST PARTI. »
========================================== */

.dm-hero h1 + .dm-subtitle {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dm-success {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: linear-gradient(135deg, #effbf6 0%, #ffffff 80%);
}

.dm-success-badge {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #13a874;
    border: 7px solid #c9f1df;
    border-radius: 50%;
}

.dm-success-badge svg {
    width: 28px;
    height: 28px;
    stroke-width: 3;
}

.dm-success h2,
.dm-recap-head h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.dm-success p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.dm-recap {
    margin-top: 12px;
}

.dm-recap-head p {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.dm-recap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.dm-recap-grid > div {
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    border: 1px solid #edf0f6;
    border-radius: 14px;
}

.dm-recap-grid small {
    display: block;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.dm-recap-grid strong {
    display: block;
    margin: 2px 0 4px;
    font-size: 0.95rem;
}

.dm-recap-grid p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.dm-timeline {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.dm-timeline li {
    position: relative;
    padding: 0 0 14px 32px;
}

.dm-timeline li::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 14px;
    height: 14px;
    border: 2px solid #3166f0;
    border-radius: 50%;
    background: #ffffff;
}

.dm-timeline li:first-child::before {
    background: #3166f0;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.dm-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: #dfe7f7;
}

.dm-timeline strong {
    display: block;
    font-size: 0.88rem;
}

.dm-timeline span {
    display: block;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.dm-btn-outline--link {
    text-decoration: none;
}

.dm-assurances {
    margin-top: 14px;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #f1f5ff;
    border-radius: 18px;
}

.dm-assurances > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
}

.dm-assurances > div + div {
    border-left: 1px solid #d9e1f0;
}

.dm-assurances .dm-icon {
    width: 44px;
    height: 44px;
    color: #3166f0;
    background: #ffffff;
    border-radius: 50%;
}

.dm-assurances strong {
    display: block;
    font-size: 0.88rem;
}

.dm-assurances p {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.4;
}


/* ==========================================
   ÉCRANS PLUS HAUTS : un peu plus d'air
========================================== */

@media (min-width: 1001px) and (min-height: 900px) {
    .dm-header { padding-top: 22px; }
    .dm-hero { padding: 30px 0 24px; }
    .dm-questions, .dm-summary { gap: 14px; }
    .dm-question, .dm-summary-item { padding-top: 18px; padding-bottom: 18px; }
    .dm-tile { min-height: 42px; }
    .dm-tile--stack { min-height: 72px; }
    .dm-contact { gap: 16px; }
    .dm-aside { gap: 14px; }
    .dm-card { padding: 18px 20px; }
}

/* Écrans très bas (portable 768 px) : on retire le superflu */
@media (min-width: 1001px) and (max-height: 760px) {
    .dm-hero > p:not(.dm-note) br { display: none; }
    .dm-quote,
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1180px) {
    .dm-hero .dm-note {
        display: none;
    }

    .dm-stepper-item {
        width: 84px;
    }
}

@media (max-width: 1000px) {
    .dm-layout {
        grid-template-columns: 1fr;
    }

    .dm-keypoints-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }



    .dm-nav {
        margin-top: 22px;
    }
}

@media (max-width: 860px) {
    .dm-header {
        flex-direction: column;
        gap: 18px;
    }

    .dm-stepper {
        width: 100%;
    }

    .dm-stepper-item {
        flex: 1;
        width: auto;
    }

    .dm-bg {
        width: 100%;
        height: 300px;
        opacity: 0.5;
    }


    .dm-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .dm-recap-grid,
    .dm-assurances {
        grid-template-columns: 1fr;
    }

    .dm-assurances {
        gap: 14px;
    }

    .dm-assurances > div,
    .dm-assurances > div + div {
        padding: 0;
        border-left: 0;
    }
}

@media (max-width: 650px) {
    .dm-header,
    .dm-form {
        width: var(--container-sm);
    }

    .dm-stepper-label {
        display: none;
    }

    .dm-stepper-item.is-current .dm-stepper-label {
        display: block;
        position: absolute;
        top: 36px;
        white-space: nowrap;
    }

    .dm-hero {
        padding: 40px 0 22px;
    }

    .dm-hero > p br {
        display: none;
    }

    .dm-panel {
        padding: 18px 16px;
    }





    .dm-tiles--3,
    .dm-tiles--4,
    .dm-fields,
    .dm-keypoints-grid {
        grid-template-columns: 1fr;
    }

    .dm-summary-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dm-edit {
        justify-self: start;
    }

    .dm-success {
        flex-direction: column;
        align-items: flex-start;
    }

    .dm-nav {
        grid-template-columns: auto 1fr;
        row-gap: 14px;
    }

    .dm-dots {
        display: none;
    }

    .dm-next-wrap {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 8px;
    }

    .dm-back {
        padding: 12px 18px;
    }

    .dm-next {
        padding: 13px 22px;
    }
}

/* ==========================================
   MISE EN PAGE CENTRÉE
========================================== */

/* En-tête : logo à gauche, progression au centre */
@media (min-width: 861px) {
    .dm-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: start;
    }
}

/* Étapes 1 et 3 : le contenu au centre de l'écran */
.dm-step--center:not([hidden]) {
    justify-content: center;
    padding: 2vh 0 8vh;
}

.dm-step--center .dm-hero {
    max-width: 880px;
    margin: 0 auto;
    padding-top: 0;
    text-align: center;
}

.dm-step--center .dm-hero .section-label {
    justify-content: center;
}

.dm-step--center .dm-hero > p {
    margin-left: auto;
    margin-right: auto;
}

/* Étape 3 : trois questions simples, sans cadre */
.dm-qs {
    width: 100%;
    max-width: 880px;
    margin: 6px auto 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.dm-q {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.dm-q legend {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 0;
    font-size: 1.02rem;
}

.dm-q legend strong {
    color: var(--ink);
    font-weight: 800;
}

.dm-q legend > span:not(.dm-q-num) {
    margin-left: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.dm-step--center .dm-choices,
.dm-step--center .dm-choice-alt,
.dm-step--center .dm-error {
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.dm-step--center .dm-choice-alt {
    margin-top: 14px;
}

/* La photo d'ambiance reste dans le coin, loin du titre centré */
@media (min-width: 861px) {
    .dm-bg { width: 32%; }
}

@media (max-width: 650px) {
    /* Laisser la place au libellé de l'étape sous la progression */
    .dm-step--center:not([hidden]) {
        justify-content: flex-start;
        padding-top: 30px;
    }
}

@media (max-width: 650px) {
    .dm-qs { gap: 20px; }
    .dm-q legend > span:not(.dm-q-num) { display: block; width: 100%; margin: 0; }
}

@media (max-width: 650px) {
    .dm-qs .dm-tiles--3,
    .dm-qs .dm-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-qs .dm-tile { padding: 8px 10px; gap: 8px; font-size: 0.86rem; }
}


/* ==========================================
   PARCOURS EN 3 ÉTAPES — éléments communs
========================================== */
.dm-step--center .dm-hero { max-width: 880px; margin: 0 auto; padding-top: 0; text-align: center; }
.dm-step--center .dm-hero .section-label { justify-content: center; }
.dm-step--center .dm-hero > p { margin-left: auto; margin-right: auto; }
.dm-step[data-step="2"]:not([hidden]),
.dm-step[data-step="3"]:not([hidden]) { justify-content: flex-start; padding: 18px 0 3vh; }

.dm-center { text-align: center; }

.dm-column {
    width: 100%;
    max-width: 760px;
    margin: 4px auto 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Récit */
.dm-story textarea { height: 130px; min-height: 110px; }
.dm-story-foot {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dm-inspire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    color: #3166f0;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    background: none;
    border: 0;
    cursor: pointer;
}
.dm-inspire svg { width: 16px; height: 16px; }
.dm-examples .dm-example { margin-top: 8px; }

/* Réponses en pastilles */
.dm-qset { display: flex; flex-direction: column; gap: 22px; }
.dm-qset[hidden] { display: none; }
.dm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-pill { position: relative; cursor: pointer; }
.dm-pill input { position: absolute; opacity: 0; pointer-events: none; }
.dm-pill > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffff;
    border: 1.5px solid #e1e7f2;
    border-radius: 999px;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dm-pill > span svg { width: 16px; height: 16px; color: var(--ink-soft); }
.dm-pill:hover > span { border-color: #b9c8e6; }
.dm-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(49, 102, 240, 0.2); }
.dm-pill input:checked + span { color: #1f4fd6; background: #eef3ff; border-color: #3166f0; font-weight: 600; }
.dm-pill input:checked + span svg { color: #3166f0; }

.dm-form .dm-input { max-width: 420px; }

/* Coordonnées */
.dm-field--wide { grid-column: 1 / -1; }
.dm-mini-recap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1.5px solid #e9eef8;
    border-radius: 16px;
}
.dm-mini-recap .dm-icon { width: 40px; height: 40px; border-radius: 12px; }
.dm-mini-recap strong { display: block; color: var(--ink); font-size: 0.98rem; font-weight: 800; }
.dm-mini-recap p {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dm-mini-recap ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.dm-mini-recap li { padding: 3px 10px; color: #3b4a66; font-size: 0.76rem; font-weight: 600; background: #f1f4fa; border-radius: 999px; }

@media (max-width: 650px) {
    .dm-step[data-step="2"]:not([hidden]),
    .dm-step[data-step="3"]:not([hidden]) { padding-top: 30px; }
    .dm-column { gap: 18px; }
    .dm-fields { grid-template-columns: 1fr; }
    .dm-pill > span { padding: 8px 13px; font-size: 0.86rem; }
    .dm-mini-recap { grid-template-columns: auto minmax(0, 1fr); }
    .dm-mini-recap .dm-edit { grid-column: 1 / -1; justify-self: start; }
}

#dm-description { height: 130px; }
.dm-stepper-item { width: 118px; }
.dm-stepper-label { white-space: nowrap; }

/* ==========================================
   PAGE MERCI
========================================== */
.dm-thanks:not([hidden]) { align-items: center; justify-content: center; padding: 4vh 0 8vh; }
.dm-thanks-badge {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #0e9a6d;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(14, 154, 109, 0.3);
}
.dm-thanks-badge svg { width: 30px; height: 30px; }
.dm-thanks .dm-hero > p strong { color: var(--ink); }
.dm-next-steps {
    width: 100%;
    max-width: 760px;
    margin: 18px auto 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dm-next-steps li {
    display: flex;
    gap: 12px;
    padding: 16px;
    text-align: left;
    background: #ffffff;
    border: 1.5px solid #e9eef8;
    border-radius: 16px;
}
.dm-next-steps li > span {
    flex: none;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #3166f0;
    font-weight: 800;
    font-size: 0.85rem;
    background: #eef3ff;
    border-radius: 50%;
}
.dm-next-steps strong { display: block; color: var(--ink); font-size: 0.92rem; }
.dm-next-steps p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.84rem; line-height: 1.45; }
.dm-thanks-home { width: auto !important; margin-top: 24px !important; }

@media (max-width: 760px) {
    .dm-next-steps { grid-template-columns: 1fr; }
}

/* ==========================================
   COULEURS — inspirées de la charte du site
   (dégradés pastel des cartes de l'accueil, encre marine, accent bleu-violet)
========================================== */

/* Taches de couleur douces en fond */
.dm-blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dm-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.dm-blobs span:nth-child(1) { width: 520px; height: 520px; left: -160px; top: 140px; background: #dceeff; }
.dm-blobs span:nth-child(2) { width: 460px; height: 460px; right: -140px; top: 38%; background: #e8e5ff; }
.dm-blobs span:nth-child(3) { width: 420px; height: 420px; left: 30%; bottom: -220px; background: #fff0e4; }
.dm-header, .dm-form { position: relative; z-index: 1; }

/* Couleur suivant le choix de l'étape 1 */
body { --tone: #3166f0; --tone-dark: #1f4fd6; --tone-soft: #eaf1ff; --tone-line: #c9d8fb; --tone-grad: linear-gradient(135deg, #edf7ff 0%, #dceeff 100%); }
body[data-tone="green"] { --tone: #0b9a76; --tone-dark: #087a5d; --tone-soft: #e2f8f0; --tone-line: #b7ead9; --tone-grad: linear-gradient(135deg, #e4faf6 0%, #d1f5ee 100%); }
body[data-tone="purple"] { --tone: #6657ff; --tone-dark: #5040ea; --tone-soft: #efecff; --tone-line: #d6d0ff; --tone-grad: linear-gradient(135deg, #f1efff 0%, #e8e5ff 100%); }
body[data-tone="orange"] { --tone: #e8702a; --tone-dark: #c75a1a; --tone-soft: #fff0e4; --tone-line: #fbd3b6; --tone-grad: linear-gradient(135deg, #fff2e9 0%, #ffeadc 100%); }

/* Étape 1 : chaque bloc a sa couleur */
.dm-choice { background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 72%); }
.dm-choice--green { background: linear-gradient(135deg, #ecfbf6 0%, #ffffff 72%); }
.dm-choice--purple { background: linear-gradient(135deg, #f3f1ff 0%, #ffffff 72%); }
.dm-choice--orange { background: linear-gradient(135deg, #fff5ec 0%, #ffffff 72%); }
.dm-choice:hover { border-color: #b9cdf7; }
.dm-choice--green:hover { border-color: #a9e3cf; }
.dm-choice--purple:hover { border-color: #cbc4ff; }
.dm-choice--orange:hover { border-color: #f8cba8; }
.dm-choice--green:hover .dm-choice-go { color: #0b9a76; }
.dm-choice--purple:hover .dm-choice-go { color: #6657ff; }
.dm-choice--orange:hover .dm-choice-go { color: #e8702a; }
.dm-choice .dm-icon { box-shadow: 0 6px 16px rgba(7, 27, 66, 0.06); }

/* Étapes 2 et 3 : titres, réponses et rappel à la couleur du choix */
.dm-step:not([data-step="1"]) .dm-hero h1 strong { color: var(--tone); }
.dm-step:not([data-step="1"]) .dm-hero .section-label { color: var(--tone); }
.dm-step:not([data-step="1"]) .dm-hero .section-label span { background: var(--tone); }

.dm-q legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dm-q-num {
    width: 26px;
    height: 26px;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--tone);
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--tone-soft);
    border-radius: 8px;
}

.dm-story textarea {
    background: #ffffff;
    border-color: var(--tone-line);
    box-shadow: 0 10px 30px rgba(7, 27, 66, 0.05);
}
.dm-form .dm-story textarea:focus,
.dm-form .dm-input:focus,
.dm-form .dm-field input:focus {
    border-color: var(--tone);
    box-shadow: 0 0 0 3px var(--tone-soft);
}
.dm-inspire { color: var(--tone); }
.dm-examples .dm-example { background: var(--tone-soft); border-color: transparent; }
.dm-examples .dm-example:hover { border-color: var(--tone); }

.dm-pill > span { background: rgba(255, 255, 255, 0.9); }
.dm-pill:hover > span { border-color: var(--tone-line); }
.dm-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--tone-soft); }
.dm-pill input:checked + span {
    color: #ffffff;
    background: var(--tone);
    border-color: var(--tone);
    box-shadow: 0 6px 16px rgba(7, 27, 66, 0.12);
}
.dm-pill input:checked + span svg { color: #ffffff; }

.dm-mini-recap { background: var(--tone-grad); border-color: var(--tone-line); }
.dm-mini-recap li { color: var(--tone-dark); background: rgba(255, 255, 255, 0.75); }
.dm-mini-recap .dm-edit { background: #ffffff; }

.dm-consent input { accent-color: var(--tone); }

/* Progression et navigation */
.dm-stepper-item.is-current .dm-stepper-dot,
.dm-stepper-item.is-done .dm-stepper-dot { background: var(--tone); border-color: var(--tone); }
.dm-stepper-item.is-current .dm-stepper-label { color: var(--tone); }
.dm-stepper-item.is-done:not(:last-child)::after { background: var(--tone); }
.dm-dots span.is-current { background: var(--tone); }
.dm-next[data-submit] {
    background: linear-gradient(135deg, var(--tone) 0%, var(--tone-dark) 100%);
    box-shadow: 0 10px 26px rgba(7, 27, 66, 0.2);
}
.dm-next:hover { transform: translateY(-1px); }

/* Page merci */
.dm-next-steps li:nth-child(1) { background: linear-gradient(135deg, #edf7ff 0%, #ffffff 80%); }
.dm-next-steps li:nth-child(2) { background: linear-gradient(135deg, #f1efff 0%, #ffffff 80%); }
.dm-next-steps li:nth-child(3) { background: linear-gradient(135deg, #e4faf6 0%, #ffffff 80%); }
.dm-next-steps li:nth-child(2) > span { color: #6657ff; background: #e8e5ff; }
.dm-next-steps li:nth-child(3) > span { color: #0b9a76; background: #d1f5ee; }

/* Responsive : décor plus discret, rien ne déborde */
@media (max-width: 650px) {
    .dm-blobs span { filter: blur(50px); opacity: 0.45; }
    .dm-blobs span:nth-child(1) { width: 300px; height: 300px; left: -120px; top: 90px; }
    .dm-blobs span:nth-child(2) { width: 280px; height: 280px; right: -140px; top: 45%; }
    .dm-blobs span:nth-child(3) { width: 260px; height: 260px; left: 20%; bottom: -140px; }
    .dm-q-num { width: 24px; height: 24px; font-size: 0.78rem; }
}

.dm-q-num { margin: 0; letter-spacing: 0; }
.dm-next { white-space: nowrap; }
@media (max-width: 650px) {
    .dm-nav .dm-next { padding: 13px 22px; gap: 10px; font-size: 0.95rem; }
    .dm-nav .dm-back { padding-left: 16px; padding-right: 16px; }
}
