/* ==========================================================================
   Dom'Home Services — Simulation
   Direction artistique : fond blanc, bleu Dom'Home en liseré discret,
   titres Poppins, texte Montserrat. Sobre, chaleureux, professionnel.
   ========================================================================== */

:root{
  --blue:        #1B9BC9;
  --blue-deep:   #1585AE;
  --blue-line:   rgba(27,155,201,.38);
  --blue-line-2: rgba(27,155,201,.22);
  --blue-soft:   #E8F5FA;
  --blue-mist:   #F3FAFD;
  --ink:         #1A1F24;
  --muted:       #5B6770;
  --faint:       #9AA5AD;
  --line:        #E6EBEF;
  --bg:          #FFFFFF;
  --red:         #D9534F;

  --shadow-card:  0 1px 2px rgba(20,60,80,.04), 0 10px 26px -14px rgba(27,155,201,.28);
  --shadow-hover: 0 2px 4px rgba(20,60,80,.04), 0 18px 36px -16px rgba(27,155,201,.45);
  --shadow-sel:   0 0 0 4px rgba(27,155,201,.14), 0 14px 30px -16px rgba(27,155,201,.5);
  --shadow-cta:   0 10px 24px -10px rgba(27,155,201,.65);

  --ease: cubic-bezier(.4,0,.2,1);
  --head: 'Poppins', 'Montserrat', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100% }
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--body); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
input,button,a{ font-family:inherit }
input::placeholder{ color:var(--faint) }
::selection{ background:rgba(27,155,201,.18) }
:focus-visible{ outline:3px solid rgba(27,155,201,.4); outline-offset:3px; border-radius:8px }

/* ---------- Layout -------------------------------------------------------- */

.screen{
  min-height:100dvh; display:flex; flex-direction:column; align-items:center;
  padding:0 24px; position:relative; overflow:hidden; background:var(--bg);
}
.shell{ width:100%; max-width:800px; display:flex; flex-direction:column; min-height:100dvh }
.screen--wide .shell{ max-width:940px }

/* ---------- En-tête + progression ---------------------------------------- */

.hdr{
  display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:26px 0 20px; position:relative; z-index:1;
}
.hdr__logo{ height:60px; width:auto; display:block }
.hdr__badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px; border-radius:999px;
  background:var(--blue-mist); border:1px solid var(--blue-line-2);
  font-size:13px; font-weight:600; color:var(--blue-deep);
}
.hdr__badge svg{ color:var(--blue) }

.progress{ height:5px; border-radius:999px; background:var(--blue-soft); overflow:hidden; position:relative; z-index:1 }
.progress__bar{ height:100%; border-radius:999px; background:var(--blue); width:0%; transition:width .5s var(--ease) }

/* ---------- Corps --------------------------------------------------------- */

.main{
  flex:1; display:flex; flex-direction:column; justify-content:flex-start;
  padding:clamp(30px,6vh,60px) 0 32px; position:relative; z-index:1;
  animation:fadeUp .36s var(--ease) both;
}
.screen{ animation:fadeIn .3s var(--ease) both }

h1{
  margin:0; text-align:center; font-family:var(--head);
  font-size:clamp(26px,3.6vw,38px); font-weight:700; line-height:1.22;
  letter-spacing:-.015em; color:var(--ink);
}
h1.h1--sm{ font-size:clamp(23px,3.1vw,33px) }
.g{ color:var(--blue) }
.nb{ white-space:nowrap }

.lede{
  margin:14px 0 0; text-align:center;
  font-size:clamp(15px,1.8vw,17px); font-weight:500; color:var(--muted); line-height:1.6;
}
.lede--strong{ color:var(--ink); font-weight:600; font-size:clamp(16px,2vw,19px) }
.lede--blue{ color:var(--blue); font-family:var(--head); font-weight:600; font-size:clamp(19px,2.6vw,26px); line-height:1.32; margin-top:8px }

/* ---------- Options ------------------------------------------------------- */

.opts{ display:flex; flex-direction:column; gap:12px; margin-top:32px; max-width:600px; width:100%; align-self:center }
.opts--cards{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(14px,2.6vw,24px); margin-top:32px; max-width:620px; width:100%; align-self:center }
.opts--services{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(12px,2vw,18px); margin-top:32px; width:100%; align-self:center }

.opt{
  position:relative; cursor:pointer; text-align:center;
  border-radius:14px; border:1.5px solid var(--blue-line); background:#fff;
  box-shadow:var(--shadow-card);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  padding:0; font:inherit; color:inherit; width:100%; display:block;
}
.opt:hover{ transform:translateY(-2px); border-color:var(--blue); background:var(--blue-mist); box-shadow:var(--shadow-hover) }
.opt[aria-pressed="true"]{ border-color:var(--blue); background:var(--blue-mist); box-shadow:var(--shadow-sel) }

.opt__check{
  position:absolute; top:12px; right:12px; width:26px; height:26px; border-radius:999px;
  background:var(--blue); display:grid; place-items:center; z-index:2;
  box-shadow:0 4px 10px rgba(27,155,201,.35);
  opacity:0; transform:scale(.4); transition:opacity .18s ease, transform .18s ease;
}
.opt[aria-pressed="true"] .opt__check{ opacity:1; transform:scale(1) }
.opt__check svg{ width:13px; height:13px }

/* réponses en liste */
.opt--plain{ padding:19px 22px; font-size:clamp(16px,1.9vw,18px); font-weight:500; color:var(--ink) }
.opt--plain .opt__check{ top:50%; margin-top:-13px; right:16px }

/* grandes cartes « pour moi / pour un proche » */
.opt--big{ display:flex; flex-direction:column; align-items:center; gap:18px; padding:clamp(28px,4vw,40px) 20px; border-radius:18px }
.opt__glyph{
  width:116px; height:116px; border-radius:999px;
  background:var(--blue-soft); box-shadow:inset 0 0 0 1.5px var(--blue-line-2);
  display:grid; place-items:center; color:var(--blue);
  transition:background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.opt--big:hover .opt__glyph{ transform:scale(1.04) }
.opt[aria-pressed="true"] .opt__glyph{ background:var(--blue); color:#fff; box-shadow:0 12px 26px -12px rgba(27,155,201,.7) }
.opt__title{ display:block; font-family:var(--head); font-size:20px; font-weight:600; color:var(--ink) }

/* cartes services */
.opt--service{ display:flex; flex-direction:column; overflow:hidden; border-radius:16px }
.opt__art{
  aspect-ratio:4/3; display:grid; place-items:center; overflow:hidden;
  background:var(--blue-mist); border-bottom:1px solid var(--blue-line-2);
}
.opt__art img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease }
.opt--service:hover .opt__art img{ transform:scale(1.04) }
.opt__art--mark{ background:linear-gradient(170deg,#F3FAFD 0%,#E3F2F9 100%) }
.opt__mark{
  font-family:var(--head); font-weight:700; font-size:clamp(56px,7vw,84px); line-height:1;
  color:var(--blue); letter-spacing:-.02em;
}
.opt[aria-pressed="true"] .opt__art--mark{ background:linear-gradient(170deg,#DDF0F8,#C9E7F3) }
.opt__label{
  display:block; padding:16px 12px 18px; font-family:var(--head);
  font-size:clamp(15px,1.7vw,17px); font-weight:600; color:var(--ink); line-height:1.25;
}

/* ---------- Champs ------------------------------------------------------- */

.field{
  display:flex; align-items:center; gap:12px;
  padding:6px 8px 6px 18px; border-radius:14px;
  border:1.5px solid var(--blue-line); background:#fff; color:var(--blue);
  box-shadow:var(--shadow-card); transition:box-shadow .2s ease, border-color .2s ease;
}
.field:focus-within{ border-color:var(--blue); box-shadow:var(--shadow-sel) }
.field svg{ flex-shrink:0 }
.field input{
  flex:1; min-width:0; border:none; outline:none; background:transparent;
  font-size:17px; font-weight:500; color:var(--ink); padding:14px 0;
}
.field--invalid{ border-color:var(--red) }
.field__prefix{
  display:inline-flex; align-items:center; gap:7px; padding-right:12px; margin-right:2px;
  border-right:1px solid var(--line); font-size:15px; font-weight:600; color:var(--muted);
}
.field__flag{ font-size:18px; line-height:1 }
.label{ display:block; margin:0 0 8px 4px; font-size:14px; font-weight:600; color:var(--muted) }

.form{ display:flex; flex-direction:column; gap:12px; max-width:560px; width:100%; align-self:center; margin-top:28px }
.narrow{ max-width:560px; width:100%; align-self:center }
.mt16{ margin-top:16px } .mt22{ margin-top:22px } .mt28{ margin-top:28px }

.err{ margin:8px auto 0; max-width:560px; width:100%; font-size:13.5px; font-weight:600; color:var(--red); text-align:center; min-height:18px }

/* ---------- Boutons ------------------------------------------------------ */

.cta{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:17px 30px; border:none; border-radius:12px;
  background:var(--blue); color:#fff; font-family:var(--body);
  font-size:16px; font-weight:700; letter-spacing:.01em; cursor:pointer;
  box-shadow:var(--shadow-cta); text-decoration:none;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta:hover:not(:disabled){ transform:translateY(-2px); background:var(--blue-deep) }
.cta:disabled{ background:#E9EDF0; color:#9AA5AD; cursor:not-allowed; box-shadow:none; transform:none }
.cta--upper{ text-transform:uppercase; letter-spacing:.06em }

.nav{ display:flex; align-items:center; justify-content:center; gap:30px; margin-top:28px; flex-wrap:wrap }
.back{
  display:inline-flex; align-items:center; gap:8px; background:none; border:none; padding:8px 4px;
  font-size:16px; font-weight:600; color:var(--muted); cursor:pointer; transition:color .2s ease;
}
.back:hover{ color:var(--ink) }

/* ---------- Réassurance (écran 1) ---------------------------------------- */

.trust{
  display:grid; grid-template-columns:1fr 1fr; gap:22px 40px;
  margin-top:clamp(36px,6vh,64px); padding:30px 0 34px; border-top:1px solid var(--line);
  position:relative; z-index:1;
}
.trust__i{ display:flex; gap:14px; align-items:flex-start }
.trust__ic{
  width:44px; height:44px; flex-shrink:0; border-radius:999px; background:var(--blue);
  color:#fff; display:grid; place-items:center; font-family:var(--head); font-weight:700; font-size:16px;
  box-shadow:0 10px 20px -10px rgba(27,155,201,.7);
}
.trust__t{ display:block; font-family:var(--head); font-size:17px; font-weight:600; color:var(--ink) }
.trust__d{ display:block; margin-top:3px; font-size:14px; line-height:1.5; color:var(--muted) }

/* ---------- Recherche / succès ------------------------------------------- */

.ring{
  align-self:center; width:150px; height:150px; border-radius:999px;
  border:3px solid var(--blue); display:grid; place-items:center; margin-top:36px;
  background:#fff; box-shadow:0 20px 44px -22px rgba(27,155,201,.55);
}
.ring svg{ width:74px; height:74px }
.ring--spin{ position:relative }
.ring--spin::after{
  content:''; position:absolute; inset:-3px; border-radius:999px;
  border:3px solid transparent; border-top-color:#fff; animation:spin 1.1s linear infinite;
}
.ring path{ stroke-dasharray:60; stroke-dashoffset:60; animation:draw .9s .35s var(--ease) forwards }

.seal{
  align-self:center; width:120px; height:120px; border-radius:999px; border:3px solid var(--blue);
  display:grid; place-items:center; background:#fff; margin-top:6px;
  box-shadow:0 20px 44px -22px rgba(27,155,201,.55); animation:pop .5s ease both;
}
.seal svg{ width:60px; height:60px }

.consent{
  display:flex; align-items:flex-start; gap:12px; cursor:pointer; text-align:left;
  padding:14px 16px; border-radius:14px; border:1.5px solid var(--blue-line); background:#fff;
}
.consent__box{
  width:22px; height:22px; flex-shrink:0; margin-top:1px; border-radius:7px;
  border:2px solid var(--blue-line); background:#fff; display:grid; place-items:center; position:relative;
}
.consent__box::after{ content:''; position:absolute; inset:-2px; border-radius:7px; background:var(--blue); opacity:0; transition:opacity .15s ease }
.consent__box svg{ position:relative; z-index:1; opacity:0; transition:opacity .15s ease }
.consent[aria-checked="true"] .consent__box::after,
.consent[aria-checked="true"] .consent__box svg{ opacity:1 }
.consent__txt{ font-size:14px; line-height:1.5; color:var(--muted) }

.secure{ margin-top:16px; align-self:center; display:flex; align-items:center; gap:8px; color:var(--faint); font-size:13px; font-weight:500 }

/* ---------- Merci --------------------------------------------------------- */

.steps{ display:flex; justify-content:center; align-items:flex-start; margin:36px auto 0; max-width:640px; width:100%; position:relative }
.step{ flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; position:relative }
.step:not(:last-child)::after{ content:''; position:absolute; top:15px; left:50%; width:100%; height:3px; background:var(--blue); z-index:0 }
.step__dot{
  width:32px; height:32px; border-radius:999px; background:var(--blue); color:#fff;
  display:grid; place-items:center; position:relative; z-index:1; box-shadow:0 0 0 4px #fff;
}
.step__dot--current{ background:#fff; border:3px solid var(--blue) }
.step__dot--current::after{ content:''; width:14px; height:14px; border-radius:999px; background:var(--blue) }
.step__l{ font-size:15px; font-weight:600; color:var(--blue); text-align:center }
.step--current .step__l{ font-weight:700 }

.person{
  display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(24px,4vw,48px); align-items:center;
  margin-top:clamp(30px,5vh,54px); padding:clamp(24px,3.5vw,40px);
  background:#fff; border:1.5px solid var(--blue-line-2); border-radius:22px; box-shadow:var(--shadow-card);
}
.person__name{ margin:0 0 14px; font-family:var(--head); font-size:clamp(24px,3vw,32px); font-weight:600; color:var(--ink) }
.person p{ margin:0 0 14px; font-size:16px; line-height:1.65; color:var(--muted) }
.person p strong{ color:var(--ink); font-weight:700 }
.person__bye{ font-size:18px; color:var(--muted); margin-top:6px }
.person__photo{
  width:min(100%,300px); aspect-ratio:1; border-radius:999px; justify-self:center;
  background:var(--blue-soft) center/cover no-repeat; border:6px solid #fff;
  box-shadow:0 0 0 1.5px var(--blue-line-2), 0 24px 50px -22px rgba(27,155,201,.45);
  display:grid; place-items:center; font-family:var(--head); font-size:64px; font-weight:600; color:var(--blue);
}

/* ---------- Animations --------------------------------------------------- */

@keyframes fadeIn{ from{opacity:0} to{opacity:1} }
@keyframes fadeUp{ from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
@keyframes spin{ to{ transform:rotate(360deg) } }
@keyframes draw{ to{ stroke-dashoffset:0 } }
@keyframes pop{ 0%{transform:scale(.5);opacity:0} 70%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important } }

/* ---------- Responsive --------------------------------------------------- */

@media (max-width:760px){
  .opts--services{ grid-template-columns:1fr 1fr }
  .person{ grid-template-columns:1fr; text-align:center }
  .person__photo{ order:-1; width:min(70%,220px) }
  .trust{ grid-template-columns:1fr; gap:18px }
}
@media (max-width:600px){
  .screen{ padding:0 18px }
  .hdr{ padding:20px 0 14px; gap:12px }
  .hdr__logo{ height:46px }
  .main{ padding-top:22px }
  h1{ font-size:24px !important }
  .opts{ gap:10px; margin-top:22px }
  .opt--plain{ padding:15px 18px; font-size:16px }
  .opts--cards{ gap:12px; margin-top:22px }
  .opt--big{ padding:22px 12px; gap:12px }
  .opt__glyph{ width:84px; height:84px }
  .opt__glyph svg{ width:44px; height:44px }
  .opt__title{ font-size:18px }
  .opt__label{ font-size:15px; padding:12px 8px 14px }
  .ring{ width:120px; height:120px; margin-top:24px }
  .ring svg{ width:60px; height:60px }
  .steps{ margin-top:26px }
  .step__l{ font-size:13px }
  .nav{ gap:18px; margin-top:20px }
}
