/**
 * Styles pour le Guide et les helpers contextuels
 * Composants: docs-panel, campaign-helper, header
 * Branding: Lavernna - Noir #0d0d0f + Rose #e8478b + nuances UX appropriées
 */

/* ========================================
   HEADER AVEC NAV GUIDE
   ======================================== */

.wa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border, #2a2a32);
}

.wa-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-logo {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--text, #eeedf2);
  letter-spacing: 0.05em;
}

.wa-tagline {
  font-size: 11px;
  color: var(--text-3, #5a5a6a);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.wa-header-nav {
  display: flex;
  gap: 12px;
}

.header-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg2, #141417);
  border: 1px solid var(--border, #2a2a32);
  border-radius: var(--radius, 12px);
  color: var(--text-2, #9898a8);
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition, 0.2s cubic-bezier(0.4,0,0.2,1));
  cursor: pointer;
}

.header-nav-link:hover {
  border-color: var(--rose, #e8478b);
  color: var(--rose, #e8478b);
  background: var(--rose-subtle, rgba(232,71,139,0.07));
}

.header-nav-link span {
  font-size: 14px;
  opacity: 0.8;
}

/* ========================================
   PANEL DE DOCUMENTATION (DOCS-PANEL)
   ======================================== */

.docs-panel {
  border: 1px solid var(--border, #2a2a32);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  background: var(--bg2, #141417);
}

.docs-section {
  border-bottom: 1px solid var(--border, #2a2a32);
}

.docs-section:last-child {
  border-bottom: none;
}

.docs-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: var(--bg2, #141417);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  color: var(--text, #eeedf2);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: var(--transition, 0.2s cubic-bezier(0.4,0,0.2,1));
}

.docs-header:hover {
  background: var(--bg3, #1c1c21);
}

.docs-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.docs-title {
  flex: 1;
  color: var(--text, #eeedf2);
}

.docs-toggle {
  font-size: 20px;
  color: var(--text-2, #9898a8);
  transition: transform 0.2s;
}

.docs-header[aria-expanded="true"] .docs-toggle {
  transform: rotate(0deg);
}

.docs-content {
  padding: 0 20px 20px;
  background: var(--bg3, #1c1c21);
  animation: slideDown 0.2s ease-out;
  color: var(--text-2, #9898a8);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.docs-content h4 {
  color: var(--text, #eeedf2);
  font-size: 14px;
  font-weight: 500;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #2a2a32);
}

.docs-content h4:first-child {
  margin-top: 8px;
}

.docs-content h5 {
  color: var(--rose, #e8478b);
  font-size: 13px;
  font-weight: 500;
  margin: 16px 0 8px;
  letter-spacing: 0.02em;
}

.docs-content p {
  margin: 12px 0;
  line-height: 1.7;
  color: var(--text-2, #9898a8);
}

.docs-content strong {
  color: var(--text, #eeedf2);
  font-weight: 500;
}

.docs-list {
  margin: 12px 0;
  padding-left: 20px;
}

.docs-list li {
  margin: 10px 0;
  line-height: 1.6;
  color: var(--text-2, #9898a8);
}

.docs-list li strong {
  color: var(--text, #eeedf2);
}

/* ========================================
   ALERTES - Branding Lavernna + nuances UX
   ======================================== */

.docs-alert {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid;
  font-size: 13px;
  line-height: 1.6;
}

.docs-alert strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-alert p {
  margin: 6px 0;
}

.docs-alert ul {
  margin: 8px 0;
  padding-left: 18px;
}

.docs-alert li {
  margin: 6px 0;
}

/* Info - Cyan-gris subtil (informatif, neutre, élégant sur dark) */
.docs-alert-info {
  background: rgba(100, 181, 246, 0.08);
  border-left-color: #64b5f6;
  color: var(--text-2, #9898a8);
}

.docs-alert-info strong {
  color: #90caf9;
}

/* Warning - Ambre/doré (attention, mise en garde) */
.docs-alert-warning {
  background: rgba(255, 167, 77, 0.08);
  border-left-color: #ffa74d;
  color: var(--text-2, #9898a8);
}

.docs-alert-warning strong {
  color: #ffcc80;
}

/* Success - Menthe/turquoise (succès, validation) */
.docs-alert-success {
  background: rgba(129, 199, 132, 0.08);
  border-left-color: #81c784;
  color: var(--text-2, #9898a8);
}

.docs-alert-success strong {
  color: #a5d6a7;
}

/* Danger - Rose vif/corail (critique, erreur) */
.docs-alert-danger {
  background: rgba(232, 71, 139, 0.12);
  border-left-color: var(--rose, #e8478b);
  color: var(--text-2, #9898a8);
}

.docs-alert-danger strong {
  color: #f48fb1;
}

/* Tip - Subtil rose Lavernna (astuce) */
.docs-tip {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--rose-subtle, rgba(232,71,139,0.07));
  border-radius: 8px;
  border-left: 3px solid var(--rose, #e8478b);
  color: var(--text-2, #9898a8);
  font-size: 13px;
}

.docs-tip strong {
  color: var(--rose, #e8478b);
}

/* ========================================
   CARDS DANS LE GUIDE
   ======================================== */

.docs-card {
  margin: 14px 0;
  padding: 16px 18px;
  background: var(--bg2, #141417);
  border: 1px solid var(--border, #2a2a32);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.docs-card:hover {
  border-color: var(--border-h, #3d3d4a);
}

.docs-card h5 {
  margin: 0 0 10px;
  font-size: 13px;
}

.docs-card p {
  margin: 8px 0;
  font-size: 13px;
}

/* ========================================
   TABLEAU DE RESOLUTION
   ======================================== */

.docs-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 13px;
}

.docs-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg2, #141417);
  border-bottom: 2px solid var(--rose, #e8478b);
  color: var(--text, #eeedf2);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.docs-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #2a2a32);
  color: var(--text-2, #9898a8);
  vertical-align: top;
  line-height: 1.5;
}

.docs-table tr:hover td {
  background: var(--bg2, #141417);
}

.docs-table tr:last-child td {
  border-bottom: none;
}

/* ========================================
   HELPER CONTEXTUEL (CAMPAIGN-HELPER)
   ======================================== */

.helper-box {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius, 12px);
  border: 1px solid;
  font-size: 14px;
  animation: fadeIn 0.3s ease-out;
  background: var(--bg2, #141417);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Helper Info - Cyan subtil */
.helper-box.helper-info {
  background: rgba(100, 181, 246, 0.06);
  border-color: rgba(100, 181, 246, 0.2);
  color: var(--text-2, #9898a8);
}

.helper-box.helper-info .helper-title {
  color: #90caf9;
}

/* Helper Warning - Rose Lavernna (par défaut pour campagnes) */
.helper-box.helper-warning {
  background: var(--rose-subtle, rgba(232, 71, 139, 0.07));
  border-color: rgba(232, 71, 139, 0.25);
  color: var(--text-2, #9898a8);
}

.helper-box.helper-warning .helper-title {
  color: var(--rose, #e8478b);
}

/* Helper Success - Menthe */
.helper-box.helper-success {
  background: rgba(129, 199, 132, 0.06);
  border-color: rgba(129, 199, 132, 0.2);
  color: var(--text-2, #9898a8);
}

.helper-box.helper-success .helper-title {
  color: #a5d6a7;
}

.helper-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.helper-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.helper-title {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.helper-text {
  margin: 0;
  line-height: 1.4;
}

.helper-link {
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--rose, #e8478b);
  border-radius: 6px;
  color: var(--rose, #e8478b);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition, 0.2s cubic-bezier(0.4,0,0.2,1));
}

.helper-link:hover {
  background: var(--rose-subtle, rgba(232,71,139,0.07));
}
