/* ═════════════════════════════════════════════════════════════════════════════
   ALLÔPHARMA — STYLES PAGE ORDONNANCES DIGITALES (Standard 100M€+)
   Conforme à DESIGN.md et docs/standards/UI-RADIUS-AND-SHADOW-STANDARDS.md
   ═════════════════════════════════════════════════════════════════════════════ */

:root {
  --c-brand: #0b6b4f;
  --c-brand-dark: #074734;
  --c-brand-soft: #e8f5ef;
  --c-brand-border: #a7f3d0;
  --c-teal-700: #0b6f92;
  --c-blue-500: #2563eb;
  --c-blue-soft: #eff6ff;
  --c-blue-border: #bfdbfe;
  --c-amber-500: #d97706;
  --c-amber-soft: #fef3c7;
  
  --c-bg-page: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-alt: #f1f5f9;
  
  --c-text-main: #0f172a;
  --c-text-body: #334155;
  --c-text-muted: #64748b;
  --c-line-soft: #e2e8f0;
  --c-line-strong: #cbd5e1;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 6px 18px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
}

body.ordonnances-redesign {
  background: var(--c-bg-page);
  color: var(--c-text-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── HERO ORDONNANCES ── */
.ordo-hero-section {
  padding: 110px 24px 48px;
  background: linear-gradient(180deg, #ffffff 0%, var(--c-bg-page) 100%);
  border-bottom: 1px solid var(--c-line-soft);
}

.ordo-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.ordo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.ordo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  border: 1px solid var(--c-brand-border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.ordo-hero-h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text-main);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.ordo-hero-h1 .highlight {
  color: var(--c-brand);
}

.ordo-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 620px;
  margin: 0 0 24px;
}

/* Sceau Déontologique */
.ordo-trust-seal {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-left: 3px solid var(--c-brand);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: 620px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--c-text-body);
  margin-bottom: 24px;
}

.ordo-trust-seal svg {
  color: var(--c-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.ordo-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-ordo-primary {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-brand);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-ordo-primary:hover {
  background: var(--c-brand-dark);
}

.btn-ordo-secondary {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--c-text-main);
  border: 1px solid var(--c-line-strong);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn-ordo-secondary:hover {
  background: var(--c-surface-alt);
  border-color: var(--c-text-muted);
}

/* ── CARTE INTERACTIVE DE TRANSMISSION (COLONNE DROITE) ── */
.ordo-interactive-card {
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.interactive-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line-soft);
}

.interactive-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.interactive-card-badge {
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Dropzone d'upload */
.ordo-dropzone {
  border: 2px dashed var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: var(--c-bg-page);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.ordo-dropzone:hover,
.ordo-dropzone.dragover {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: var(--c-brand);
}

.dropzone-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-main);
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

/* File Preview State */
.file-preview-box {
  display: none;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-preview-info svg {
  color: var(--c-brand);
}

.file-preview-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-text-main);
}

.file-preview-size {
  font-size: 0.76rem;
  color: var(--c-text-muted);
}

.btn-remove-file {
  background: transparent;
  border: 0;
  color: var(--c-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
}

.btn-remove-file:hover {
  color: #ef4444;
}

/* Sélection Pharmacie Réelle */
.ordo-select-group {
  margin-bottom: 16px;
}

.ordo-select-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-body);
  margin-bottom: 6px;
}

.ordo-pharmacy-select {
  width: 100%;
  height: 42px;
  padding: 0 32px 0 12px;
  background: var(--c-surface-alt);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--c-text-main);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.ordo-pharmacy-select:focus {
  border-color: var(--c-brand);
  background-color: #ffffff;
}

.btn-submit-transmission {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-brand);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit-transmission:hover {
  background: var(--c-brand-dark);
}

.transmission-note {
  font-size: 0.75rem;
  color: var(--c-text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

/* ── ÉTAPES DU PARCOURS (HOW TO) ── */
.ordo-steps-section {
  max-width: 1240px;
  margin: 64px auto;
  padding: 0 24px;
}

.section-header-centered {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-label-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-main-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--c-text-main);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-subtext {
  font-size: 0.96rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
}

.steps-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card-box {
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.step-number-tag {
  width: 32px;
  height: 32px;
  background: var(--c-brand-soft);
  color: var(--c-brand);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step-card-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text-main);
  margin: 0 0 8px;
}

.step-card-box p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── SÉCURITÉ & DÉONTOLOGIE ── */
.ordo-security-section {
  background: #ffffff;
  border-top: 1px solid var(--c-line-soft);
  border-bottom: 1px solid var(--c-line-soft);
  padding: 64px 24px;
}

.ordo-security-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.security-4col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.security-item-card {
  background: var(--c-bg-page);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.security-icon {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  color: var(--c-brand);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.security-item-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text-main);
  margin: 0 0 6px;
}

.security-item-card p {
  font-size: 0.84rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── ESPACE PRATICIENS / MÉDECINS PRESCripteurs (Standard 100M€+) ── */
.ordo-pro-section {
  max-width: 1240px;
  margin: 64px auto;
  padding: 0 24px;
}

.pro-banner-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 85% 15%, rgba(52, 211, 153, 0.16), transparent 50%),
              linear-gradient(135deg, #053b2c 0%, #084c37 50%, #0b5f45 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -12px rgba(5, 59, 44, 0.35), var(--shadow-card);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

/* Watermark décoratif en arrière-plan */
.pro-watermark-bg {
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 240px;
  height: 240px;
  color: #ffffff;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}

.pro-banner-copy {
  position: relative;
  z-index: 2;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.pro-badge-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #34d399;
}

.pro-banner-copy h3,
.pro-banner-title {
  color: #ffffff !important;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.pro-banner-copy p,
.pro-banner-desc {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Puces d'atouts professionnels */
.pro-features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pro-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.pro-feature-pill svg {
  color: #6ee7b7;
  flex-shrink: 0;
}

/* Boîte d'action dédiée */
.pro-action-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pro-action-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.pro-action-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.btn-pro-register {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #064e3b !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-pro-register:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pro-action-login-link {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pro-action-login-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.pro-security-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 2px;
}

.pro-security-footnote svg {
  color: #6ee7b7;
}

/* ── FAQ ACCORDÉON SEO ── */
.ordo-faq-section {
  max-width: 860px;
  margin: 64px auto;
  padding: 0 24px;
}

.faq-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.faq-item-details {
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

.faq-item-details[open] {
  border-color: var(--c-brand);
}

.faq-item-summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--c-text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item-summary::-webkit-details-marker {
  display: none;
}

.faq-item-summary svg {
  color: var(--c-text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item-details[open] .faq-item-summary svg {
  transform: rotate(180deg);
  color: var(--c-brand);
}

.faq-item-content {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-text-body);
}

/* ── PASSERELLE RUPTURE DE STOCK ── */
.ordo-bridge-banner {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.bridge-banner-card {
  background: #ffffff;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.bridge-banner-copy h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text-main);
  margin: 0 0 6px;
}

.bridge-banner-copy p {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  margin: 0;
}

.btn-bridge-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-brand);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-bridge-signal:hover {
  background: var(--c-brand-dark);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .ordo-hero-grid {
    grid-template-columns: 1fr;
  }

  .steps-3col-grid {
    grid-template-columns: 1fr;
  }

  .security-4col-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pro-banner-card {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .ordo-hero-section {
    padding-top: 86px;
  }

  .security-4col-grid {
    grid-template-columns: 1fr;
  }

  .ordo-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ordo-primary,
  .btn-ordo-secondary {
    justify-content: center;
  }
}
