/* ============================================================================
 * CHANTIER
 * ============================================================================
 * Extrait de home.css lors du nettoyage pré-Bloc 3.
 * Toutes les couleurs/valeurs en dur ont été migrées vers tokens.css.
 * ============================================================================ */

/* ═══════════════════════════════════════════════════════════════
 * CHANTIER (4 icônes + input + bouton +)
 * ═══════════════════════════════════════════════════════════════ */
.chantier-wrap {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 8px;
}
.chantier-side { display: flex; flex-direction: column; gap: 8px; }
.side-btn {
  flex: 1;
  min-height: 60px;
  border-radius: var(--radius-icon);
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  display: grid; place-items: center;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}
.side-btn:active {
  transform: scale(0.94);
  background: var(--white-soft-08);
}
.side-btn svg {
  width: 28px; height: 28px;
  fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--white-soft-25));
}

/* v3.4.2 : icônes PNG fixes (grue, téléphone, maison) */
.side-ico-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  /* Légère lueur pour ressortir sur fond sombre */
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

/* Icône trajet animée dans bouton véhicule — format carré */
[data-side="vehicle"] svg {
  width: 48px;
  height: 48px;
  stroke: none;
  fill: none;
  filter: none;
  overflow: visible;
}

.chantier-input-wrap {
  position: relative;
}
.chantier-input {
  padding: 12px 16px;
  padding-right: 44px;
  border-radius: var(--radius-button);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  color: var(--text);
  width: 100%;
  font-size: 0.98rem;
  height: 100%;
  /* Correction #8 : card plus fine (juste une ligne pour le nom) */
  min-height: 0;
}
.chantier-input::placeholder { color: var(--text-muted); }

.chantier-add-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(77, 151, 255, 0.35);
  transition: transform var(--duration-fast) var(--ease-out);
}
.chantier-add-btn:active { transform: scale(0.92); }
.chantier-add-btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round;
}

/* Card "Chantier 2" qui apparaît si on tap + */
.chantier-second {
  display: none;
  margin-top: 8px;
  position: relative;
  padding: 14px 44px 14px 16px;
  border-radius: var(--radius-button);
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  animation: page-enter var(--duration-base) var(--ease-out);
}
.chantier-second.show { display: block; }
.chantier-second-label {
  font-size: 0.7rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 4px;
}
.chantier-second-input {
  background: transparent;
  border: none;
  color: var(--text);
  width: 100%;
  font-size: 0.96rem;
  outline: none;
}
.chantier-second-remove {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: grid; place-items: center;
}
.chantier-second-remove svg {
  width: 14px; height: 14px;
  fill: none; stroke: #ef4444; stroke-width: 2.5; stroke-linecap: round;
}

