:root{
  --bg:#e0e4e4;              /* fond */
  --card:#ffffff;
  --text:#132744;            /* texte principal */
  --muted:#5f6670;
  --primary:#132744;         /* boutons primaires */
  --accent:#e9c46a;          /* doré pour accents */
  --primary-contrast:#ffffff;
  --danger:#b91c1c;
  --radius:16px;             /* un peu plus doux */
  --gap:16px;
  --shadow:0 1px 3px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.08);
}

*{
    box-sizing: border-box;

}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);
  font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial}
.container{max-width:1180px;margin:auto;padding:18px}
.grid{display:grid;gap:var(--gap)}
/* Desktop: 2 colonnes, mobile par défaut en 1 colonne */
@media(min-width:1024px){
  .grid{grid-template-columns:1.05fr .95fr}
}
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}

/* prod: cacher le panneau de droite + 1 colonne */
.no-estimate .grid{grid-template-columns:1fr}
.no-estimate aside{display:none}

/* Collant à droite (desktop) */
.sticky{position:sticky;top:18px;height:max-content}
@media(max-width:1023px){ .sticky{position:static} }

h1{margin:.2rem 0 0}
h2{margin:0 0 .6rem}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.mt{margin-top:12px}

/* Stepper — scrollable mobile */
/* Stepper : scroll horizontal interne, pas de débordement page */
.stepper{
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 25px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  contain: inline-size;
}
.step{display:flex;align-items:center;gap:8px;white-space:nowrap}
.step{flex:0 0 auto;scroll-snap-align:start}
.step .dot{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:#d7dee0;color:#132744;font-weight:700;flex:0 0 auto
}
.step[aria-current="step"] .dot{background:var(--accent);color:var(--primary)}
.step .label{font-weight:700}
.step.disabled{opacity:.5;pointer-events:none;}
@media(max-width:719px){
  .container{overflow-x:clip}
}

/* Form */
fieldset{border:0;padding:0;margin:0 0 14px}
legend{font-weight:800;margin-bottom:8px}
.control{display:flex;flex-direction:column;gap:6px;margin-bottom:40px}
label{font-weight:700}
input[type="text"],input[type="number"],select,textarea{
  width:100%;padding:12px 14px;border:1px solid #cfd6d6;border-radius:12px;background:#fff;
}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(233,196,106,.45)}
.hint{font-size:.9rem;color:var(--muted)}
.row{display:grid;gap:12px}
@media(min-width:720px){ .row.two{grid-template-columns:1fr 1fr} }

/* Grilles de cases */
.checks{display:grid;gap:10px}
@media(min-width:720px){ .checks{grid-template-columns: repeat(1, minmax(0,1fr));} }

.inline{display:flex;flex-wrap:wrap;gap:10px}

/* Chip = bouton radio/checkbox custom */
.chip{
  position:relative;
  display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #cfd6d6;border-radius:999px;
  background:#fff;transition:transform .06s ease, box-shadow .06s ease, background .06s ease, border-color .06s ease;
  min-height:42px;
}
/* Masquer les entrées natives mais garder l'accessibilité */
.chip input{
  position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer;
}
.chip:hover{transform:translateY(-1px);box-shadow:0 2px 10px rgba(0,0,0,.05)}
.chip:focus-within{box-shadow:0 0 0 3px rgba(233,196,106,.45)}

/* Surbrillance visuelle quand sélectionné */
.chip:has(input:checked){
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233,196,106,.35);
}

/* Selects : style custom + chevron */
select:not([multiple]){
  appearance:none;
  background:
    linear-gradient(transparent,transparent),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%23132744" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center / 18px 18px;
  padding-right:42px;
  height:46px;
}
select[multiple]{min-height:128px;border-radius:12px}
select[multiple] option:checked { background-color: var(--accent); color: var(--primary);}

/* Sélection (quand valeur présente) */
select[data-selected="true"],
input[type="text"][data-selected="true"],
input[type="number"][data-selected="true"]{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,196,106,.35);
}

/* Buttons */
.btn{
    appearance: none;
    border: 0;
    background: var(--primary);
    color: var(--primary-contrast);
    padding: 12px 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: var(--shadow);
    min-height: 44px;

    text-decoration: none;

}
.btn:hover{filter:brightness(1.05)}
.btn.secondary{background:var(--accent);color:var(--primary)}
.btn.ghost{background:#eef2f4;color:var(--primary)}
.btn:focus{outline:3px solid rgba(233,196,106,.45)}
.nav{display:flex;gap:10px;justify-content:space-between;margin-top:8px;flex-wrap:wrap}
@media(max-width:719px){
  .nav{flex-direction:column-reverse}
  .nav .btn{width:100%}
}

/* Estimate */
.estimate table{width:100%;border-collapse:collapse}
.estimate th,.estimate td{padding:10px 8px;border-bottom:1px solid #eee;text-align:left}
.estimate tfoot td{font-weight:900}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;background:#fff3d4;border:1px solid #f1d386;color:#7a5a00}

/* CTA block */
.cta{
  padding:16px;background:#fff9e6;border-radius:12px;margin-top:10px
}
.cta h4{margin:0 0 8px}
.cta p{margin:6px 0}

.contact{display:flex;flex-direction:column;gap:10px;margin-top:10px}

/* Errors */
.errors{color:var(--danger);font-weight:700;margin-top:8px}

/* a11y util */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
summary{cursor:pointer}
details{border:1px solid #e5e7eb;border-radius:12px;padding:10px}
details>div{margin-top:8px}

/* Pièces — compteurs inline */
.piece{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.qty-inline{display:none;align-items:center;gap:6px}
.piece:has(#pieces-chambre:checked) .qty-inline--chambres{display:flex}
.piece:has(#pieces-salle-de-bain:checked) .qty-inline--sdb{display:flex}
.qty-inline input{width:92px}

/* Modal */
.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);z-index:1000}
.modal{background:#fff;padding:20px;border-radius:12px;max-width:90%;width:400px;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.modal .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:15px}


