/* =========================================
   1. BOUTONS
   ========================================= */
.btn {
  height: var(--ui-height);
  border-radius: var(--radius-md);
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

/* --- Bouton Principal --- */
.btn-primary {
  background: var(--primary);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  /* Utilise le RGB blanc pour une bordure subtile */
  border: 1px solid rgba(var(--white-rgb), 0.1); 
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* --- Bouton Secondaire --- */
.btn-secondary {
  background-color: var(--white);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

/* --- Bouton Outline --- */
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-main);
}

.btn-block {
  width: 100%;
  display: flex;
}

/* =========================================
   2. FORMULAIRES
   ========================================= */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  background-color: var(--bg-input);
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"], input[type="email"], select { height: var(--ui-height); }
textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: var(--ring-focus);
}

.is-invalid { border-color: var(--danger) !important; }

/* Alertes Succès (DYNAMIQUE GRÂCE À VOTRE LOGIQUE) */
.form-success {
  display: none;
  text-align: center;
  padding: 16px;
  
  /* Fond : Utilise --success-rgb pour faire du vert transparent */
  background: rgba(var(--success-rgb), 0.1); 
  border: 1px solid rgba(var(--success-rgb), 0.2);
  color: var(--success); 
  
  border-radius: var(--radius-md);
  margin-top: 20px;
}

/* =========================================
   3. CARTES
   ========================================= */
.card, .tool-card, .contact-card, .audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.tool-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool-card p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
  line-height: 1.6;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow-md);
}

/* =========================================
   4. LISTES
   ========================================= */
.value-list { display: grid; gap: 16px; margin-top: 24px; }

.value-list li {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.value-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
  font-size: 18px;
}