:root {
  --primary: #f06449;
  --primary-hover: #e55a3f;
  --secondary: #112330;
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, var(--secondary) 0%, #1a3a4a 50%, var(--secondary) 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text-dim: rgba(255, 255, 255, 0.7);
  --survie: #dc2626;
  --tension: #f97316;
  --transition: #eab308;
  --maitrise: #22c55e;
  --rayonnement: #8b5cf6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.5;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-container {
  display: inline-block;
  background: var(--white);
  padding: 15px 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-container.small {
  padding: 8px 16px;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.logo-img {
  width: 24px;
  height: auto;
}

.small .logo-img {
    width: 20px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: -0.02em;
}

.logo-text strong {
  font-weight: 800;
}

.small .logo-text {
  font-size: 14px;
}

.badge {
  display: inline-block;
  background: rgba(240, 100, 73, 0.2);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

h1.small {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  font-weight: 300;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .card {
    padding: 30px 20px;
  }
}

.cta-section {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 10px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px 15px;
  border-radius: 16px;
  text-align: center;
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.pillar-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.8rem;
  opacity: 0.6;
}

.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px -10px rgba(240, 100, 73, 0.5);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -10px rgba(240, 100, 73, 0.6);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.btn-next {
  width: 100%;
  margin-top: 20px;
}

.input {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  outline: none;
  margin-bottom: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 25px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #ff8066 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.question-number {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 100, 73, 0.15);
  padding: 6px 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.question-text {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 30px;
}

.scale-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}

.scale-btn {
  flex: 1;
  padding: 18px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-btn:hover {
  background: rgba(240, 100, 73, 0.2);
  border-color: var(--primary);
}

.scale-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 10px 20px -5px rgba(240, 100, 73, 0.4);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.6;
}

.selected-value {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
  min-height: 24px;
}

.results-score {
  text-align: center;
  margin-bottom: 30px;
}

.big-score {
  font-size: clamp(4rem, 15vw, 6rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
}

.zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

.radar-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.pillar-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pillar-result-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.pillar-result-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-result-score span:last-child {
  font-weight: 700;
  font-size: 1rem;
}

.priority-box {
  margin-top: 30px;
  padding: 20px;
  background: rgba(240, 100, 73, 0.1);
  border-radius: 16px;
  border-left: 4px solid var(--primary);
}

.priority-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.message-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 24px;
  border-radius: 16px;
  line-height: 1.7;
  white-space: pre-line;
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.95;
}

.email-section {
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-align: center;
}

.email-section h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.email-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.email-input-group .input {
  max-width: 300px;
  margin-bottom: 0;
}

.email-input-group .btn {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.email-sent {
  color: var(--maitrise);
  font-weight: 500;
  padding: 10px;
}

.footer {
  text-align: center;
  margin-top: 40px;
  opacity: 0.6;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer span {
  color: var(--primary);
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-30 {
  margin-bottom: 30px;
}

.info-text {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}