/* COMPONENTS.CSS - Boutons, formulaires et composants réutilisables */

/* Language Selector - SANS DIV ANTHRACITE */
.language-selector {
  display: flex;
  gap: var(--spacing-sm);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--rdc-blue);
  border: 1px solid var(--rdc-red);
  color: var(--rdc-yellow);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-btn:hover {
  background: var(--rdc-blue);
  box-shadow: var(--shadow-sm);
  border-color: var(--rdc-red);
}

.lang-btn.active {
  background: var(--rdc-blue);
  border: 2px solid var(--rdc-red);
  box-shadow: var(--shadow-sm);
}

.flag-img {
  width: 24px;
  height: auto;
  border-radius: 2px;
}

/* Tab Buttons */
.tab-btn {
  background: var(--rdc-blue);
  border: 1px solid var(--rdc-red);
  color: var(--rdc-yellow);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: var(--font-size-lg);
  text-align: center;
  min-width: 140px;
  position: relative;
}

.tab-btn:hover {
  background: var(--rdc-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--rdc-red);
}

.tab-btn.active {
  background: var(--rdc-blue);
  border: 2px solid var(--rdc-red);
  box-shadow: 0 0 15px rgba(206, 17, 38, 0.5);
  transform: translateY(-1px);
}

.tab-btn.active::before {
  content: '✓ ';
  color: var(--rdc-red);
  font-weight: bold;
}

.tab-separator {
  color: var(--rdc-yellow);
  font-weight: 600;
  font-size: var(--font-size-xl);
}

/* Form Elements */
.input-group {
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 2px;
  color: var(--rdc-yellow);
  font-weight: 600;
  font-size: var(--font-size-lg);
  line-height: 1.2;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: var(--spacing-lg);
  border: 2px solid var(--rdc-blue);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xl);
  text-align: center;
  transition: border-color 0.3s ease;
  padding-right: 100px;
  background: var(--white);
  color: var(--anthracite);
  font-weight: 600;
}

.input-group input:focus {
  outline: none;
  border-color: var(--rdc-red);
  box-shadow: 0 0 0 2px rgba(206, 17, 38, 0.3);
}

.currency {
  position: absolute;
  right: 50px;
  color: var(--rdc-red);
  font-weight: 600;
  font-size: var(--font-size-lg);
  pointer-events: none;
}

.reset-btn {
  position: absolute;
  right: 8px;
  background: var(--anthracite);
  color: var(--white);
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  line-height: 1;
}

.reset-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Separators */
.or-separator {
  text-align: center;
  margin: var(--spacing-sm) 0;
  position: relative;
}

/* OU BIEN - SANS LIGNES ROUGES */
.or-separator span {
  background: var(--anthracite);
  color: var(--rdc-yellow);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  font-size: var(--font-size-lg);
}