/**
 * Inscription officine ERP — page dédiée, lisible et rassurante
 */

.phreg-page {
  --phreg-bg: linear-gradient(165deg, #ecfdf5 0%, #f8fafc 38%, #f0fdfa 100%);
  --phreg-ink: #0f172a;
  --phreg-muted: #64748b;
  --phreg-line: rgba(15, 23, 42, 0.08);
  --phreg-teal: #0d9488;
  --phreg-teal-deep: #0f766e;
  --phreg-mint: #ccfbf1;
  --phreg-card: #ffffff;
  --phreg-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 24px 48px -12px rgba(13, 148, 136, 0.12);
  --phreg-radius: 1.25rem;
  --phreg-font: var(--ecm-font-body);

  font-family: var(--phreg-font);
  color: var(--phreg-ink);
  min-height: calc(100vh - 120px);
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 3rem;
  background: var(--phreg-bg);
}

.phreg-inner {
  max-width: 28rem;
  margin: 0 auto;
}

.phreg-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.phreg-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.18), rgba(217, 119, 6, 0.12));
  color: var(--phreg-teal-deep);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.15);
}

.phreg-hero__title {
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--phreg-ink);
}

.phreg-hero__lead {
  font-size: 0.95rem;
  color: var(--phreg-muted);
  line-height: 1.55;
  margin: 0;
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
}

.phreg-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--phreg-line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.phreg-progress__step {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--phreg-muted);
  padding: 0.35rem 0.2rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.phreg-progress__step--active {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.phreg-progress__step--done {
  color: var(--phreg-teal-deep);
}

.phreg-card {
  background: var(--phreg-card);
  border-radius: var(--phreg-radius);
  border: 1px solid var(--phreg-line);
  box-shadow: var(--phreg-shadow);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  position: relative;
  overflow: hidden;
}

.phreg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d9488, #f59e0b);
  opacity: 0.9;
}

.phreg-geo {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.phreg-geo__ico {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.phreg-geo--info {
  background: #f0fdfa;
  border-color: rgba(13, 148, 136, 0.2);
  color: #115e59;
}
.phreg-geo--info .phreg-geo__ico {
  background: var(--phreg-mint);
  color: var(--phreg-teal-deep);
}

.phreg-geo--success {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.25);
  color: #065f46;
}
.phreg-geo--success .phreg-geo__ico {
  background: #d1fae5;
  color: #047857;
}

.phreg-geo--warning {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}
.phreg-geo--warning .phreg-geo__ico {
  background: #fef3c7;
  color: #b45309;
}

.phreg-section {
  margin-bottom: 1.5rem;
}

.phreg-section:last-of-type {
  margin-bottom: 0;
}

.phreg-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phreg-teal-deep);
}

.phreg-section__head i {
  opacity: 0.85;
}

.phreg-field {
  margin-bottom: 1rem;
}

.phreg-field:last-child {
  margin-bottom: 0;
}

.phreg-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--phreg-ink);
  margin-bottom: 0.4rem;
}

.phreg-label .text-muted {
  font-weight: 500;
  font-size: 0.75rem;
}

.phreg-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  border: 1.5px solid var(--phreg-line);
  border-radius: 0.65rem;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.phreg-input:hover {
  border-color: rgba(13, 148, 136, 0.25);
  background: #fff;
}

.phreg-input:focus {
  outline: none;
  border-color: var(--phreg-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.phreg-input::placeholder {
  color: #94a3b8;
}

.phreg-hint {
  font-size: 0.72rem;
  color: var(--phreg-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.phreg-alert {
  border-radius: 0.65rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.phreg-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--phreg-font);
  border: none;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0d9488 0%, #059669 50%, #0ea5e9 120%);
  background-size: 200% auto;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.phreg-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.45);
  color: #fff;
}

.phreg-submit:active {
  transform: translateY(0);
}

.phreg-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.phreg-footer a {
  color: var(--phreg-teal-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.phreg-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .phreg-progress {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    justify-content: center;
    border-radius: 0.85rem;
  }
  .phreg-progress__step {
    flex: 0 1 auto;
    min-width: 28%;
  }
}

@media (max-width: 400px) {
  .phreg-progress__step {
    font-size: 0.58rem;
    padding: 0.3rem 0.1rem;
  }
}
