/* ============================================================
   TrouvePro — deposer-demande.css
   ============================================================ */

.dep-main {
  background: var(--gris-clair);
  min-height: calc(100vh - 120px);
  padding: 48px 24px 80px;
}
.dep-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

/* ── HEADER ──────────────────────────────────────────────── */
.dep-header { margin-bottom: 32px; text-align: center; }
.dep-titre  {
  font-family: var(--font-titre);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800; color: var(--noir);
  letter-spacing: -.02em; line-height: 1.15;
}
.dep-sous {
  font-size: 15px; color: var(--gris-mid);
  font-weight: 300; line-height: 1.6; margin-top: 8px;
}

/* ── SOS TOGGLE ──────────────────────────────────────────── */
.sos-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: var(--blanc);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color .2s;
}
.sos-toggle-row:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.sos-toggle-titre { font-weight: 600; font-size: 14px; color: var(--noir); }
.sos-toggle-desc  { font-size: 12px; color: var(--gris-mid); margin-top: 3px; }

/* Toggle orange */
.toggle-slider-orange { background: var(--border) !important; }
input:checked + .toggle-slider-orange { background: var(--orange) !important; }

/* ── GRILLE CATÉGORIES ───────────────────────────────────── */
.cat-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.cat-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  padding: 12px 6px;
  background: var(--blanc);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer; font-family: var(--font-corps);
  transition: border-color .15s, background .15s;
}
.cat-btn:hover { border-color: rgba(255,75,31,.35); }
.cat-btn.selected {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.cat-btn .cat-emoji { font-size: 20px; }
.cat-btn .cat-nom   { font-size: 11px; font-weight: 500; color: var(--noir); text-align: center; line-height: 1.2; }

/* ── TEXTAREA + MIC ──────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--gris-mid); margin-bottom: 7px; }
.dep-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.desc-input-wrapper { position: relative; }
.btn-mic {
  position: absolute; bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  background: var(--blanc); border: 1px solid var(--border);
  border-radius: 50%; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  line-height: 1;
}
.btn-mic:hover { background: var(--orange-soft); border-color: var(--orange); }
.btn-mic.actif { background: var(--orange); border-color: var(--orange); animation: pulseBtn 1.2s infinite; }
.desc-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px;
}
.char-count { font-size: 12px; color: var(--gris-mid); }

/* ── ESTIMATION IA ───────────────────────────────────────── */
.estimation-ia {
  background: var(--blanc);
  border: 1.5px solid rgba(255,75,31,.2);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 20px;
  animation: fadeUp .3s both;
}
.estimation-ia.hidden { display: none; }
.est-titre { font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.est-range { font-family: var(--font-titre); font-size: 24px; font-weight: 800; color: var(--noir); }
.est-note  { font-size: 12px; color: var(--gris-mid); margin-top: 4px; }

/* ── ANIMATION RADAR ─────────────────────────────────────── */
.recherche-wrapper { text-align: center; padding: 40px 20px; }
.radar {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 32px;
}
.radar-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,75,31,.25);
  animation: radarPulse 2s ease-out infinite;
}
.r1 { inset: 0; animation-delay: 0s; }
.r2 { inset: -20px; animation-delay: .5s; border-color: rgba(255,75,31,.15); }
.r3 { inset: -40px; animation-delay: 1s;  border-color: rgba(255,75,31,.08); }
.radar-centre {
  position: absolute; inset: 20px;
  background: var(--orange-soft);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  animation: spin3d 3s linear infinite;
}
@keyframes radarPulse {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes spin3d {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.recherche-titre {
  font-family: var(--font-titre); font-size: 22px; font-weight: 700;
  color: var(--noir); margin-bottom: 24px;
}
.recherche-etapes { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 280px; margin: 0 auto; }
.rech-step {
  font-size: 13.5px; color: var(--gris-mid); font-weight: 300;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: transparent;
  transition: background .3s, color .3s;
}
.rech-step.active {
  background: var(--vert-soft); color: var(--vert); font-weight: 500;
}
.rech-step.done  { color: var(--vert); }

/* ── RÉSULTATS PROS ──────────────────────────────────────── */
.results-header { text-align: center; margin-bottom: 24px; }
.pros-results   { display: flex; flex-direction: column; gap: 14px; }

.pro-result-card {
  background: var(--blanc);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: border-color .18s, box-shadow .18s;
  cursor: pointer;
  position: relative;
}
.pro-result-card:hover {
  border-color: var(--orange);
  box-shadow: var(--ombre);
}
.pro-result-card.top {
  border-color: var(--orange);
}
.pro-top-badge {
  position: absolute; top: -10px; left: 18px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 12px; border-radius: 50px;
}

.pro-result-top {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.pro-result-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF8C42);
  color: #fff; font-family: var(--font-titre);
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pro-result-info { flex: 1; }
.pro-result-nom  { font-weight: 600; font-size: 16px; color: var(--noir); }
.pro-result-meta { font-size: 13px; color: var(--gris-mid); margin-top: 3px; }
.pro-result-note {
  display: flex; align-items: center; gap: 6px;
  text-align: right; flex-shrink: 0;
}
.note-num  { font-family: var(--font-titre); font-weight: 700; font-size: 20px; color: var(--noir); }
.note-star { color: #F5A623; font-size: 14px; }
.note-avis { font-size: 11px; color: var(--gris-mid); }

.pro-result-tags {
  display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px;
}
.pro-tag {
  font-size: 12px; color: var(--gris-mid);
  background: var(--gris-clair);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 3px 10px;
}
.pro-tag.dispo { background: var(--vert-soft); color: var(--vert); border-color: rgba(22,163,74,.2); }

.pro-result-desc {
  font-size: 13.5px; color: var(--gris-mid);
  line-height: 1.55; font-weight: 300;
  margin-bottom: 16px; font-style: italic;
}

.pro-result-actions { display: flex; gap: 10px; }
.btn-choisir {
  flex: 1; background: var(--orange); color: #fff;
  border: none; border-radius: 50px;
  padding: 11px 20px; font-size: 14px; font-weight: 500;
  font-family: var(--font-corps); cursor: pointer;
  transition: opacity .18s;
}
.btn-choisir:hover { opacity: .88; }
.btn-voir-profil {
  background: transparent; color: var(--gris-mid);
  border: 1px solid var(--border); border-radius: 50px;
  padding: 10px 16px; font-size: 13px;
  font-family: var(--font-corps); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-voir-profil:hover { border-color: var(--noir); color: var(--noir); }

/* ── CONFIRMATION ────────────────────────────────────────── */
.confirm-wrapper { text-align: center; padding: 20px 0; }
.confirm-icone   { font-size: 56px; margin-bottom: 16px; animation: bounceIn .5s both; }
.confirm-card {
  background: var(--gris-clair);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 20px 0 24px;
  text-align: left;
}
.confirm-ligne {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--gris-mid);
  padding: 6px 0; font-weight: 300;
}
.confirm-ligne strong { color: var(--noir); }

/* ── TOGGLE ──────────────────────────────────────────────── */
.toggle        { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input  { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  border-radius: 22px; cursor: pointer;
  transition: background .25s;
  background: var(--border);
}
.toggle-slider::before {
  content: '';
  position: absolute; width: 16px; height: 16px;
  left: 3px; top: 3px; background: #fff;
  border-radius: 50%; transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
input:checked + .toggle-slider { background: var(--vert); }
input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,75,31,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(255,75,31,0); }
}
@keyframes bounceIn {
  0%   { transform: scale(.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .cat-select-grid { grid-template-columns: repeat(3, 1fr); }
  .dep-main { padding: 28px 12px 64px; }
}
@media (max-width: 400px) {
  .cat-select-grid { grid-template-columns: repeat(2, 1fr); }
}
