/* Demande de devis en quatre étapes, avec photos. */
.dp { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding: 12px 0 32px; min-height: calc(100svh - 66px); }
.dp__fond { position: absolute; inset: 0; z-index: -1; }
.dp__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform: scale(1.06); filter: saturate(1.1); }
.dp__fond::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 70% at 85% 0%, rgba(27, 79, 214, .55), transparent 60%),
  linear-gradient(180deg, rgba(11, 23, 51, .55) 0%, rgba(11, 23, 51, .78) 45%, rgba(11, 23, 51, .92) 100%); }
.dp .wrap { width: min(1240px, 100% - 32px); }
.dp__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.dp.is-engage .dp__texte { display: none; }

.dp__pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 4px 10px 4px 8px; border-radius: 99px; font: 700 .74rem var(--f-t); letter-spacing: .02em; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dp__pill i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .22); }
.dp h1 { color: #fff; font-size: clamp(1.32rem, 5.8vw, 3.1rem); letter-spacing: -.03em; }
.dp h1 em { font-style: normal; color: var(--sun); }
.dp__lead { display: none; margin: 16px 0 0; color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 46ch; }
.dp__plus { display: none; list-style: none; margin: 22px 0 0; padding: 0; gap: 10px; }
.dp__appel { display: none; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: 26px 0 0; color: rgba(255, 255, 255, .82); }
.dp__plus li { display: flex; align-items: center; gap: 10px; font: 600 1rem var(--f-t); }
.dp__plus .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--sun); color: var(--ink); stroke-width: 2.6; }

/* Carte en verre */
.dp__carte { position: relative; padding: 14px 14px 16px; border-radius: 26px; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .45), 0 30px 60px -30px rgba(0, 0, 0, .6); }
.dp__tete { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.dp__retour { display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px 6px 4px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font: 700 .85rem var(--f-t); cursor: pointer; }
.dp__retour .ico { width: 18px; height: 18px; transform: rotate(90deg); }
.dp__retour[hidden] { display: none; }
.dp__barre { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.dp__barre span { display: block; height: 100%; width: var(--p, 25%); border-radius: inherit; background: linear-gradient(90deg, var(--sun), #ffe28a); transition: width .5s var(--ease); }
.dp__compte { margin: 0; font: 600 .82rem var(--f-t); color: rgba(255, 255, 255, .75); white-space: nowrap; }
.dp__compte b { color: #fff; }
.dp__resume { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.dp__tete[hidden], .dp__resume[hidden] { display: none; }
.dp__resume span { padding: 4px 10px; border-radius: 99px; font: 600 .8rem var(--f-t); background: rgba(255, 200, 58, .16); color: #ffe28a; box-shadow: inset 0 0 0 1px rgba(255, 200, 58, .35); }

.dp__etape { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.dp__etape.is-on { display: block; animation: dp-entre .45s var(--ease); }
@keyframes dp-entre { from { opacity: 0; transform: translateX(18px); } }
.dp__etape.is-retour { animation-name: dp-revient; }
@keyframes dp-revient { from { opacity: 0; transform: translateX(-18px); } }
.dp__q { display: block; float: left; width: 100%; margin: 14px 0 12px; padding: 0; font: 800 1.25rem/1.2 var(--f-t); letter-spacing: -.02em; color: #fff; outline: none; }
.dp__etape > :not(legend) { clear: both; }
.dp__aide { margin: -4px 0 10px; color: rgba(255, 255, 255, .78); font-size: .95rem; }

/* Tuiles de choix */
.dp__choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp__c { position: relative; cursor: pointer; }
.dp__c input { position: absolute; opacity: 0; pointer-events: none; }
.dp__c span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 30px 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background .25s, box-shadow .25s, transform .25s var(--ease); }
.dp__c .ico { width: 22px; height: 22px; color: var(--sun); }
.dp__c b { font: 700 .92rem/1.15 var(--f-t); color: #fff; }
.dp__c:hover span { background: rgba(255, 255, 255, .16); }
.dp__c:active span { transform: scale(.97); }
.dp__c input:focus-visible + span { box-shadow: inset 0 0 0 2px #fff; }
.dp__c input:checked + span { background: rgba(255, 200, 58, .2); box-shadow: inset 0 0 0 2px var(--sun); }
.dp__c input:checked + span::after { content: ""; position: absolute; top: 50%; right: 8px; margin-top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1733' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Type de bien : pastilles sur une ligne, sous les expertises */
.dp__sq { clear: both; margin: 16px 0 10px; font: 800 1.25rem/1.2 var(--f-t); letter-spacing: -.02em; color: #fff; }
.dp__biens { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dp__b { position: relative; cursor: pointer; }
.dp__b input { position: absolute; opacity: 0; pointer-events: none; }
.dp__b span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 99px; font: 700 .9rem var(--f-t); color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background .25s, box-shadow .25s; }
.dp__b:hover span { background: rgba(255, 255, 255, .16); }
.dp__b input:focus-visible + span { box-shadow: inset 0 0 0 2px #fff; }
.dp__b input:checked + span { background: rgba(255, 200, 58, .2); box-shadow: inset 0 0 0 2px var(--sun); }

/* Un seul des deux choix de l'étape 1 est fait : l'autre question le signale. */
.dp__reste { display: none; margin-left: 10px; padding: 3px 10px; border-radius: 99px; background: var(--sun); color: var(--ink); font: 800 .74rem/1.4 var(--f-t); font-style: normal; letter-spacing: 0; white-space: nowrap; vertical-align: .2em; }
.is-relance .dp__reste { display: inline-block; animation: dp-relance .5s var(--ease) 2; }
.is-relance { color: var(--sun); }
.dp__sq.is-relance + .dp__biens .dp__b span, .dp__q.is-relance + .dp__choix .dp__c span { animation: dp-lueur 1.1s ease-in-out 3; }
@keyframes dp-relance { 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }
@keyframes dp-lueur { 50% { background: rgba(255, 200, 58, .22); box-shadow: inset 0 0 0 2px rgba(255, 200, 58, .8); } }

/* Photos */
.dp__depot { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; cursor: pointer; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); border: 0; outline: 1.5px dashed rgba(255, 255, 255, .45); outline-offset: -7px; transition: background .25s; }
.dp__depot:hover, .dp__depot.is-survol { background: rgba(255, 255, 255, .16); }
.dp__depot input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dp__depot:focus-within { box-shadow: inset 0 0 0 2px #fff; }
.dp__depot > .ico { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: var(--sun); color: var(--ink); stroke-width: 1.8; }
.dp__depot b { display: block; font: 700 1.02rem var(--f-t); color: #fff; }
.dp__depot small { display: block; color: rgba(255, 255, 255, .72); font-size: .86rem; }
.dp__vignettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.dp__vignettes:empty { display: none; }
.dp__vignettes li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.dp__vignettes img { width: 100%; height: 100%; object-fit: cover; }
.dp__vignettes li.is-charge::after { content: ""; position: absolute; inset: 0; background: rgba(11, 23, 51, .45) linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent) 0 0 / 200% 100%; animation: dp-charge 1s linear infinite; }
@keyframes dp-charge { to { background-position: -200% 0; } }
.dp__vignettes button { position: absolute; top: 5px; right: 5px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 23, 51, .7); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.dp__vignettes button .ico { width: 14px; height: 14px; stroke-width: 2.4; }

/* Champs */
.dp__champ { display: block; margin: 8px 0 0; }
.dp__champ > span { display: block; margin: 0 0 4px; font: 700 .82rem var(--f-t); color: rgba(255, 255, 255, .9); }
.dp__champ em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .6); }
.dp__champ input, .dp__champ textarea { width: 100%; min-height: 46px; padding: 11px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 500 1rem var(--f-x); box-shadow: 0 0 0 0 transparent; transition: box-shadow .2s; }
.dp__champ textarea { min-height: 60px; resize: vertical; }
.dp__champ input::placeholder, .dp__champ textarea::placeholder { color: #8a93a8; }
.dp__champ input:focus, .dp__champ textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--sun); }
.dp__champ.is-err input { box-shadow: 0 0 0 3px #ff6b6b; }

.dp__suite { width: 100%; margin-top: 12px; min-height: 52px; font-size: 1.05rem; white-space: normal; text-align: center; }
.dp__suite[disabled] { opacity: .75; cursor: progress; }
.dp__erreur { margin: 10px 0 0; color: #ffb4b4; font: 600 .92rem var(--f-t); }
.dp__erreur:empty { display: none; }
.dp__note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: rgba(255, 255, 255, .7); font-size: .78rem; line-height: 1.4; }
.dp__note .ico { width: 14px; height: 14px; margin-top: 1px; }

.dp__ok { text-align: center; padding: 18px 4px 6px; outline: none; animation: dp-entre .5s var(--ease); }
.dp__ok-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 10px rgba(255, 200, 58, .18); }
.dp__ok-ico .ico { width: 30px; height: 30px; stroke-width: 2.6; }
.dp__ok p { color: rgba(255, 255, 255, .85); }
.dp__ok .dp__q { color: #fff; }

@media (min-width: 900px) {
  .dp { padding: 64px 0 80px; display: flex; align-items: center; }
  .dp .wrap { width: min(1240px, 100% - 64px); }
  .dp__grille { grid-template-columns: 1fr minmax(0, 500px); gap: 64px; align-items: center; }
  .dp__lead { display: block; }
  .dp__plus { display: grid; }
  .dp__appel { display: flex; }
  .dp__biens { display: flex; flex-wrap: wrap; }
  .dp__carte { padding: 26px 28px 28px; border-radius: 30px; }
  .dp__q, .dp__sq { font-size: 1.55rem; }
  .dp__q { margin: 18px 0 14px; }
  .dp__sq { margin: 22px 0 14px; }
  .dp.is-engage .dp__texte { display: block; }
  .dp__c span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 14px; }
  .dp__c .ico { width: 24px; height: 24px; }
  .dp__c input:checked + span::after { top: 10px; margin-top: 0; right: 10px; }
  .dp__champ { margin-top: 12px; }
  .dp__champ input, .dp__champ textarea { min-height: 52px; }
  .dp__suite { margin-top: 16px; min-height: 58px; }
}
/* Petit écran : les choix déjà faits restent visibles par le bouton Retour, la carte tient entière. */
@media (max-width: 899px) and (max-height: 720px) {
  .dp__resume { display: none !important; }
  .dp__pill { display: none; }
  .dp h1 { font-size: 1.2rem; }
  .dp__c span { min-height: 46px; }
  .dp__b span { min-height: 36px; }
  .dp__q { margin: 10px 0 10px; }
  .dp__sq { margin: 12px 0 8px; }
}
/* La bande du haut du site est vide sur mobile : sur cette page, elle laisse sa place au formulaire. */
@media (max-width: 899px) { .topbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .dp__etape.is-on, .dp__ok, .is-relance .dp__reste, .dp__sq.is-relance + .dp__biens .dp__b span, .dp__q.is-relance + .dp__choix .dp__c span { animation: none; } .dp__barre span { transition: none; } }
