* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: transparent;  /* Au lieu de #f5f7fb */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1065px;
  background: transparent;  /* Au lieu de #fff */
  padding: 0; /* Au lieu de 32px */
  border-radius: 12px;
  box-shadow: none;  /* Au lieu de 0 6px 20px rgba(20,30,60,0.08) */
}

/* Layout 2 colonnes */
.columns {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 32px;
}

/* Colonne gauche */
.column-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-size: 14px;
}

input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.example-cta {
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
}

.example-cta:hover {
  color: #2563eb;
}

.btn-analyze {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-analyze:hover:not(:disabled) {
  background: #2563eb;
}

.btn-analyze:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-analyze:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Spinner */
.spinner svg {
  width: 18px;
  height: 18px;
  animation: rotate 1s linear infinite;
}

.spinner circle {
  stroke-dasharray: 1, 150;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Colonne droite */
.column-right {
  border-left: 1px solid #e6e9ef;
  padding-left: 32px;
}

#output {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  white-space: pre-wrap;
  min-height: 150px;
  padding: 16px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #f9fafb;
}

#output.placeholder {
  color: #9ca3af;
  font-style: italic;
}

#output.error {
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fca5a5;
}

#output.success {
  color: #059669;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
}

/* Responsive */
@media (max-width: 768px) {
  .columns {
    grid-template-columns: 1fr;
  }
  
  .column-right {
    border-left: none;
    border-top: 1px solid #e6e9ef;
    padding-left: 0;
    padding-top: 32px;
  }
}