/* Réservation d'intervention — tawsa.ma/intervention (2026-11-14) */
#iv{max-width:980px;margin:0 auto;padding:0 48px 110px}
#iv [hidden]{display:none!important}
.iv-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#E6E2D8;border:1px solid #E6E2D8;margin-bottom:28px;counter-reset:s}
.iv-step{background:#FCFBF7;padding:16px 18px;font-family:'DM Sans',sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#7A828C;font-weight:600;display:flex;align-items:center;gap:10px}
.iv-step b{font-family:'Playfair Display',serif;font-style:italic;font-size:18px;color:#D8D2C4;font-weight:500;text-transform:none;letter-spacing:0}
.iv-step.on{background:#0B1F3A;color:#F4F1EA}.iv-step.on b{color:#C9A961}
.iv-step.ok{color:#0B1F3A}.iv-step.ok b{color:#B08D43}
.iv-card{background:#FFFFFF;border:1px solid #E6E2D8;box-shadow:0 30px 70px -40px rgba(11,31,58,.28);padding:40px 38px}
.iv-card h2{margin:0 0 6px;font-family:'Philosopher',serif;font-size:30px;font-weight:700;color:#0B1F3A}
.iv-sub{margin:0 0 26px;font-size:15px;line-height:1.6;color:#46525F}
.iv-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.iv-full{grid-column:1/-1}
.iv-f{display:flex;flex-direction:column;gap:8px}
.iv-f>span{font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#7A828C;font-weight:600}
.iv-f input,.iv-f select,.iv-f textarea{background:#FCFBF7;border:1px solid #E6E2D8;padding:13px 15px;color:#0B1F3A;font-family:'Inter',sans-serif;font-size:15px;outline:none;border-radius:0;width:100%;box-sizing:border-box}
.iv-f textarea{min-height:110px;resize:vertical}
.iv-f input:focus,.iv-f select:focus,.iv-f textarea:focus{border-color:#C9A961}
.iv-f.err input,.iv-f.err select,.iv-f.err textarea{border-color:#B4443A}
.iv-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:28px;flex-wrap:wrap}
.iv-btn{display:inline-flex;align-items:center;gap:10px;padding:16px 28px;font-family:'DM Sans',sans-serif;font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;background:#0B1F3A;color:#F8F7F4;border:1px solid #0B1F3A;cursor:pointer;transition:all .22s}
.iv-btn:hover:not(:disabled){background:#C9A961;color:#0B1F3A;border-color:#C9A961}
.iv-btn:disabled{opacity:.45;cursor:not-allowed}
.iv-btn.gold{background:#C9A961;color:#06101F;border-color:#C9A961}.iv-btn.gold:hover:not(:disabled){background:#0B1F3A;color:#C9A961}
.iv-link{background:none;border:none;font-family:'DM Sans',sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;color:#46525F;cursor:pointer;padding:8px 0}
.iv-link:hover{color:#0B1F3A}
.iv-msg{margin-top:18px;padding:12px 16px;font-size:14px;line-height:1.5;border-right:3px solid #B4443A;background:#FBF1EF;color:#7A2A22}
.iv-msg.info{border-color:#C9A961;background:#F8F4EA;color:#5A4A22}
/* calendrier */
.iv-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.iv-cal-head strong{font-family:'Philosopher',serif;font-size:22px;color:#0B1F3A;text-transform:capitalize}
.iv-nav{width:40px;height:40px;border:1px solid #E6E2D8;background:#FCFBF7;color:#0B1F3A;font-size:18px;cursor:pointer}
.iv-nav:disabled{opacity:.3;cursor:not-allowed}
.iv-cal{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.iv-dow{font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7A828C;text-align:center;padding:6px 0}
.iv-day{aspect-ratio:1/1;min-height:44px;border:1px solid #EFEBE1;background:#FCFBF7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:'DM Sans',sans-serif;font-size:15px;color:#C4C0B6;padding:0}
.iv-day small{font-size:10px;letter-spacing:.04em}
button.iv-day{cursor:pointer;color:#0B1F3A;border-color:#E6E2D8;background:#FFFFFF}
button.iv-day small{color:#2F9E6E}
button.iv-day:hover{border-color:#C9A961}
button.iv-day.sel{background:#0B1F3A;color:#F4F1EA;border-color:#0B1F3A}button.iv-day.sel small{color:#C9A961}
.iv-day.vide{border:none;background:none}
.iv-load{font-size:14px;color:#7A828C;padding:20px 0}
/* créneaux */
.iv-slots{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.iv-slot{padding:14px 0;border:1px solid #E6E2D8;background:#FFFFFF;font-family:'DM Sans',sans-serif;font-size:15px;font-weight:600;color:#0B1F3A;cursor:pointer}
.iv-slot:hover{border-color:#C9A961}.iv-slot.sel{background:#0B1F3A;color:#C9A961;border-color:#0B1F3A}
.iv-note{margin-top:18px;font-size:13px;line-height:1.6;color:#7A828C}
/* récapitulatif */
.iv-recap{border-top:1px solid #EFEBE1;margin:0 0 22px}
.iv-recap div{display:flex;gap:16px;padding:11px 0;border-bottom:1px solid #EFEBE1;font-size:15px}
.iv-recap dt{width:150px;flex:none;font-family:'DM Sans',sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#7A828C;padding-top:2px}
.iv-recap dd{margin:0;color:#0B1F3A;white-space:pre-wrap;word-break:break-word}
.iv-total{display:flex;justify-content:space-between;align-items:baseline;background:#0B1F3A;color:#F4F1EA;padding:20px 24px;margin-bottom:20px}
.iv-total span{font-family:'DM Sans',sans-serif;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,241,234,.7)}
.iv-total strong{font-family:'Philosopher',serif;font-size:32px;color:#C9A961}
.iv-cgv{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.6;color:#46525F;margin-bottom:18px;cursor:pointer}
.iv-cgv input{margin-top:4px;width:18px;height:18px;accent-color:#0B1F3A;flex:none}
.iv-pay{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:12px;color:#7A828C}
.iv-pay img{height:22px;width:auto}
/* état après paiement */
.iv-etat{text-align:center;padding:56px 38px}
.iv-etat .ic{width:64px;height:64px;border-radius:50%;margin:0 auto 22px;display:flex;align-items:center;justify-content:center;font-size:30px}
.iv-etat .ic.ok{background:#E6F4EC;color:#2F9E6E}.iv-etat .ic.ko{background:#FBF1EF;color:#B4443A}.iv-etat .ic.wait{background:#F8F4EA;color:#B08D43}
.iv-etat h2{font-size:34px}
.iv-etat p{font-size:16px;line-height:1.7;color:#46525F;max-width:52ch;margin:0 auto 10px}
@media (max-width:860px){
  #iv{padding:0 20px 80px}
  .iv-card{padding:28px 20px}
  .iv-grid{grid-template-columns:1fr}
  .iv-steps{grid-template-columns:repeat(4,1fr)}
  .iv-step{padding:12px 6px;justify-content:center;font-size:0;gap:0}
  .iv-step b{font-size:18px}
  .iv-slots{grid-template-columns:repeat(3,1fr)}
  .iv-recap div{flex-direction:column;gap:2px}
  .iv-recap dt{width:auto}
  .iv-day{min-height:38px;font-size:14px}
  .iv-day small{font-size:9px}
  .iv-actions{flex-direction:column-reverse;align-items:stretch}
  .iv-btn{justify-content:center}
}
/* impression du récapitulatif (page de confirmation) */
@media print{
  #p-nav,footer,.iv-actions,.iv-hero-retour p{display:none!important}
  body,#page-root,section{background:#fff!important}
  .iv-card{box-shadow:none;border:1px solid #ccc}
  #iv{padding:0}
}
#iv a.iv-btn,#iv a.iv-link{text-decoration:none}
/* en-tête des pages de réservation : mêmes marges que la carte sur mobile */
@media (max-width:860px){ .iv-head{padding:120px 20px 28px!important} .iv-head h1{font-size:40px!important} }
/* suggestion d'adresse */
#iv .iv-f{position:relative}
.iv-sugg{position:absolute;top:100%;right:0;left:0;z-index:20;margin:2px 0 0;padding:0;list-style:none;background:#FFFFFF;border:1px solid #C9A961;box-shadow:0 18px 40px -18px rgba(11,31,58,.35);max-height:300px;overflow-y:auto}
.iv-sugg li[role=option]{padding:11px 15px;font-size:14px;line-height:1.4;color:#0B1F3A;cursor:pointer;border-bottom:1px solid #EFEBE1}
.iv-sugg li[role=option]:hover,.iv-sugg li.on{background:#F8F4EA}
.iv-sugg .iv-sugg-src{padding:8px 15px;font-size:11px;color:#7A828C;background:#FCFBF7}
