/* ============================================================
   AMANIG — SIMULATOR CSS
   ============================================================ */

:root {
  --or:        #c9a84c;
  --or-clair:  #e8c97a;
  --noir:      #111827;
  --gris:      #6b7280;
  --gris-clair:#f3f4f6;
  --blanc:     #ffffff;
  --border:    #e5e7eb;
}

/* ===== LAYOUT ===== */
.sim-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 70px);
}

/* ===== LEFT ===== */
.sim-left { padding: 3rem 4rem; max-width: 680px; }

/* Progress */
.progress-wrap { display: flex; align-items: center; gap: .5rem; margin-bottom: 3rem; }

.step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: var(--gris);
  transition: all .3s;
}
.step-dot.done   { background: var(--or); border-color: var(--or); color: white; }
.step-dot.active { border-color: var(--or); color: var(--or); background: rgba(201,168,76,.08); }

.step-line {
  flex: 1; height: 2px; background: var(--border); position: relative; overflow: hidden;
}
.step-line::after {
  content: ''; position: absolute; top: 0; left: 0;
  height: 100%; width: 0%; background: var(--or);
  transition: width .5s ease;
}
.step-line.filled::after { width: 100%; }

.step-label {
  font-size: .65rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gris); margin-bottom: 3rem;
}

/* Step cards */
.step-card { display: none; animation: fadeUp .4s ease both; }
.step-card.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem; font-weight: 600; line-height: 1.15;
  margin-bottom: .6rem; color: var(--noir);
}
.step-sub {
  font-size: .9rem; color: var(--gris);
  margin-bottom: 2rem; font-weight: 300; line-height: 1.6;
}

/* ===== OPTION GRID (étapes 1 & 2) ===== */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 2.5rem; }
.option-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.opt {
  cursor: pointer; border: 2px solid var(--border);
  padding: 22px 20px; border-radius: 14px; background: white;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative; user-select: none;
}

/* Blur effect */
.option-grid.has-selection .opt           { filter: blur(1.5px); opacity: .4; transform: scale(.97); }
.option-grid.has-selection .opt.selected  { filter: blur(0) !important; opacity: 1 !important; border-color: var(--or); transform: scale(1.03); box-shadow: 0 12px 36px rgba(201,168,76,.2); background: rgba(201,168,76,.04); z-index: 10; }
.opt:hover:not(.selected)                 { border-color: #d1d5db; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }

/* Checkmark */
.opt::after {
  content: '✓'; position: absolute; top: 12px; right: 14px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--or); color: white; font-size: .65rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.opt.selected::after { opacity: 1; }

.opt-icon  { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.opt-title { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 4px; color: var(--noir); }
.opt-desc  { font-size: .78rem; color: var(--gris); line-height: 1.45; }

/* ===== MULTI GRID (étape 3) ===== */
.multi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 2.5rem; }

.multi-opt {
  cursor: pointer; border: 2px solid var(--border);
  padding: 16px 18px; border-radius: 12px; background: white;
  transition: all .25s; display: flex; align-items: center; gap: 12px;
  user-select: none;
}
.multi-opt:hover   { border-color: #d1d5db; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.multi-opt.selected { border-color: var(--or); background: rgba(201,168,76,.05); box-shadow: 0 8px 24px rgba(201,168,76,.15); }

.multi-opt-icon    { font-size: 1.4rem; flex-shrink: 0; }
.multi-opt-title   { font-weight: 600; font-size: .85rem; color: var(--noir); }
.multi-opt-days    { font-size: .72rem; color: var(--or); font-weight: 600; margin-top: 2px; }

.multi-checkbox {
  margin-left: auto; width: 18px; height: 18px;
  border-radius: 5px; border: 2px solid var(--border);
  transition: all .2s; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: white;
}
.multi-opt.selected .multi-checkbox              { background: var(--or); border-color: var(--or); }
.multi-opt.selected .multi-checkbox::after       { content: '✓'; }

/* ===== BOUTONS NAV ===== */
.btn-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }

.btn-back {
  background: transparent; border: none; color: var(--gris);
  font-size: .85rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s; font-family: 'Sora', sans-serif; padding: 0;
}
.btn-back:hover { color: var(--noir); }

.btn-next {
  background: var(--noir); color: white;
  padding: 14px 36px; border: none; border-radius: 8px;
  cursor: pointer; font-weight: 700; font-size: .88rem;
  transition: background .2s, transform .15s;
  font-family: 'Sora', sans-serif;
  display: flex; align-items: center; gap: 8px;
}
.btn-next:hover    { background: var(--or); transform: translateY(-1px); }
.btn-next:disabled { background: #d1d5db; cursor: not-allowed; transform: none; }

/* ===== FORMULAIRE (étape 4) ===== */
.form-group  { margin-bottom: 1.2rem; }
.form-label  { font-size: .78rem; font-weight: 600; color: var(--noir); margin-bottom: 6px; display: block; letter-spacing: .04em; }
.form-input  { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: .88rem; font-family: 'Sora', sans-serif; color: var(--noir); transition: border-color .2s; outline: none; background: white; }
.form-input:focus { border-color: var(--or); }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rgpd-note   { font-size: .72rem; color: var(--gris); line-height: 1.5; margin-top: 1rem; padding: 10px 14px; background: var(--gris-clair); border-radius: 8px; }

/* ===== RIGHT — PANNEAU LIVE ===== */
.sim-right {
  background: var(--noir); padding: 3rem 2rem;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column;
}

.estim-title       { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.5rem; }
.estim-price       { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--or-clair); line-height: 1; margin-bottom: 4px; transition: all .4s ease; }
.estim-weeks       { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 2rem; }
.estim-divider     { height: 1px; background: rgba(255,255,255,.08); margin: 1.5rem 0; }
.estim-detail-title{ font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1rem; }

.estim-line        { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.estim-line-label  { font-size: .78rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
.estim-line-icon   { font-size: .9rem; }
.estim-line-val    { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9); }

.estim-tag  { display: inline-flex; align-items: center; gap: 4px; background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.25); border-radius: 20px; padding: 3px 10px; font-size: .65rem; color: var(--or-clair); margin: 3px 3px 0 0; }
.estim-tags { margin-top: .5rem; margin-bottom: 1.5rem; min-height: 28px; }

/* ===== GANTT ===== */
.gantt-title { font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 1rem; }
.gantt-row   { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.gantt-label { font-size: .6rem; color: rgba(255,255,255,.4); width: 52px; flex-shrink: 0; }
.gantt-track { flex: 1; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; position: relative; }
.gantt-bar   { height: 100%; border-radius: 3px; position: absolute; top: 0; transition: all .5s ease; }

.bar-cadrage { background: #6c8ebf; }
.bar-design  { background: #82b366; }
.bar-dev     { background: var(--or); }
.bar-tests   { background: #d6a84b; }
.bar-deploy  { background: #ae4132; }

/* ===== RÉSULTAT (étape 4) ===== */
.result-card    { background: white; border-radius: 16px; padding: 2rem; border: 2px solid var(--or); margin-bottom: 1.5rem; animation: fadeUp .5s ease both; }
.result-label   { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--or); margin-bottom: .5rem; }
.result-price   { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 600; color: var(--noir); line-height: 1; }
.result-weeks   { font-size: .85rem; color: var(--gris); margin-top: 4px; }

.result-lots    { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.5rem; }
.lot-card       { background: var(--gris-clair); border-radius: 10px; padding: 14px; }
.lot-num        { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-bottom: 4px; }
.lot-name       { font-weight: 700; font-size: .82rem; color: var(--noir); margin-bottom: 2px; }
.lot-weeks      { font-size: .72rem; color: var(--or); font-weight: 600; }

/* ===== SUCCÈS (étape 5) ===== */
.success-icon   { width: 56px; height: 56px; background: linear-gradient(135deg, var(--or), var(--or-clair)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.5rem; }

/* ===== BRETON ===== */
.sim-breton     { margin-top: auto; padding-top: 2rem; display: flex; align-items: center; gap: 8px; opacity: .3; }
.gwenn          { display: flex; height: 8px; border-radius: 1px; overflow: hidden; }
.gwenn div      { width: 4px; height: 100%; }
.gb { background: #ccc; }
.gw { background: #555; }
.breton-micro   { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Panneau droit caché par défaut, visible dès étape 2 */
.sim-right {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.sim-right.visible {
  opacity: 1;
  pointer-events: all;
}

/* ===== MACRO PLANNING TIMELINE ===== */
.macro-timeline { margin-top: 2rem; }
.macro-title { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gris); margin-bottom: 1rem; }

.timeline-track {
  position: relative;
  height: 48px;
  background: var(--gris-clair);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.timeline-phase {
  position: absolute;
  top: 0; height: 100%;
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: .68rem; font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  border-radius: 0;
  transition: all .5s ease;
}

.phase-cadrage { background: #6c8ebf; border-radius: 10px 0 0 10px; }
.phase-design  { background: #82b366; }
.phase-dev     { background: #c9a84c; }
.phase-tests   { background: #d6a84b; }
.phase-deploy  { background: #ae4132; border-radius: 0 10px 10px 0; }

.timeline-weeks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.week-label {
  font-size: .6rem;
  color: var(--gris);
  text-align: center;
}

/* ===== TIMELINE FIXE BAS GAUCHE ===== */
.timeline-fixed {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 420px;
  background: white;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.timeline-fixed.visible {
  opacity: 1;
  transform: translateY(0);
}
.tf-title {
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 8px;
}
.tf-track {
  position: relative;
  height: 36px;
  background: var(--gris-clair);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}
.tf-phase {
  position: absolute;
  top: 0; height: 100%;
  display: flex; align-items: center;
  padding: 0 8px;
  font-size: .62rem; font-weight: 700;
  color: white; white-space: nowrap;
  overflow: hidden;
  transition: all .5s ease;
}
.tf-cadrage { background: #6c8ebf; border-radius: 8px 0 0 8px; }
.tf-design  { background: #82b366; }
.tf-dev     { background: #c9a84c; }
.tf-tests   { background: #d6a84b; }
.tf-deploy  { background: #ae4132; border-radius: 0 8px 8px 0; }
.tf-weeks {
  display: flex;
  justify-content: space-between;
}
.tf-week { font-size: .58rem; color: var(--gris); }

/* Override timeline-fixed — full width */
.timeline-fixed {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: calc(100% - 380px) !important;
  border-radius: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  padding: 12px 3rem !important;
}

/* Espace pour ne pas cacher le bouton submit */
.sim-left { padding-bottom: 120px !important; }

/* ===== PAGE CONFIRMATION ===== */
.confirm-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}
.confirm-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: white;
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.confirm-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--noir);
  margin-bottom: .75rem;
}
.confirm-sub {
  color: var(--gris);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.confirm-recap {
  background: var(--gris-clair);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.confirm-recap-row {
  display: flex;
  justify-content: space-between;
  padding: .4rem 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--border);
}
.confirm-recap-row:last-child { border-bottom: none; }
.confirm-recap-label { color: var(--gris); }
.confirm-recap-val { font-weight: 700; color: var(--noir); }
.confirm-recap-price { font-weight: 800; color: #c9a84c; font-size: 1rem; }
.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.confirm-btn-home {
  background: var(--noir);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: opacity .2s;
}
.confirm-btn-contact {
  background: white;
  color: var(--noir);
  border: 1.5px solid var(--border);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: border-color .2s;
}
.confirm-btn-contact:hover { border-color: #c9a84c; color: #c9a84c; }
.confirm-footer {
  font-size: .75rem;
  color: var(--gris);
}
