/* ============================================
   MODULE TEST RÉGLEMENTAIRE ADR/SDR/OMoD
   ============================================ */
.reg-test-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f4ede0 100%);
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}
.reg-test-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,108,138,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.reg-test-section::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(12,59,77,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.reg-test-container {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.reg-test-header {
  text-align: center;
  margin-bottom: 3rem;
}
.reg-test-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
  margin: 1.2rem auto 0;
}
.reg-test-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(12,59,77,0.10), 0 4px 12px rgba(12,59,77,0.05);
  border: 1px solid rgba(14,108,138,0.15);
  position: relative;
}
.reg-progress {
  width: 100%;
  height: 6px;
  background: var(--stone);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}
.reg-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.reg-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.reg-step {
  display: none;
  animation: regFadeIn 0.4s ease;
}
.reg-step.active {
  display: block;
}
@keyframes regFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.reg-question {
  font-family: 'Lexend',system-ui,sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.reg-question em {
  color: var(--gold-dk);
  font-style: italic;
}
.reg-helper {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.reg-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.reg-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  width: 100%;
}
.reg-option:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(14,108,138,0.12);
}
.reg-option.selected {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(14,108,138,0.18);
}
.reg-option-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.reg-option strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.reg-option span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.reg-options-checks {
  gap: 0.6rem;
}
.reg-check {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.reg-check:hover {
  border-color: var(--gold);
  background: var(--white);
}
.reg-check input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.reg-check input[type="checkbox"]:checked + span strong {
  color: var(--gold-dk);
}
.reg-check span strong {
  display: block;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.reg-check span em {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}
.reg-btn-next {
  margin-top: 1.8rem;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.reg-btn-next:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,59,77,0.25);
}

/* ÉCRAN RÉSULTAT */
.reg-result {
  text-align: center;
}
.reg-result-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}
.reg-result-title {
  font-family: 'Lexend',system-ui,sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.reg-result-content {
  text-align: left;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0 2rem;
}
.reg-result-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.reg-result-content p:last-child { margin-bottom: 0; }
.reg-result-content strong { color: var(--navy); font-weight: 700; }
.reg-result-content ul {
  margin: 0.8rem 0;
  padding-left: 0;
  list-style: none;
}
.reg-result-content ul li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}
.reg-result-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-dk);
  font-weight: 700;
}
.reg-result-content .reg-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--gold-lt);
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.reg-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

/* === FORMULAIRE DE CONTACT INTÉGRÉ === */
.reg-contact-form {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  margin-top: 1.8rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.reg-contact-form::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(14,108,138,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.reg-form-title {
  font-family: 'Lexend',system-ui,sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 2;
}
.reg-form-intro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 2;
}
#regForm {
  position: relative;
  z-index: 2;
}
.reg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.reg-form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}
.reg-form-field label {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.3rem;
}
.reg-form-field input,
.reg-form-field textarea {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.reg-form-field input:focus,
.reg-form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.reg-form-field input::placeholder,
.reg-form-field textarea::placeholder {
  color: rgba(255,255,255,0.4);
}
.reg-form-field textarea {
  resize: vertical;
  min-height: 80px;
}
.reg-form-consent {
  margin: 1rem 0 1.4rem;
}
.reg-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}
.reg-form-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.reg-form-consent span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.reg-cta-primary {
  display: inline-block;
  text-align: center;
  font-size: 1rem !important;
  padding: 1.05rem 2rem !important;
  width: 100%;
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.25s;
}
.reg-cta-primary:hover {
  background: var(--gold-lt) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14,108,138,0.35);
}
.reg-cta-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.reg-form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.reg-form-feedback.success {
  background: rgba(72, 187, 120, 0.15);
  border: 1px solid rgba(72, 187, 120, 0.4);
  color: #c6f6d5;
}
.reg-form-feedback.error {
  background: rgba(232, 76, 90, 0.15);
  border: 1px solid rgba(232, 76, 90, 0.4);
  color: #fed7d7;
}
.reg-form-feedback a {
  color: var(--gold-lt);
  font-weight: 600;
  text-decoration: underline;
}
.reg-restart {
  background: transparent;
  border: 1.5px solid var(--stone);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1.2rem;
  width: 100%;
}
.reg-restart:hover {
  border-color: var(--gold);
  color: var(--navy);
}
.reg-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--stone);
}

@media (max-width: 700px) {
  .reg-test-section { padding: 4rem 1.2rem; }
  .reg-test-card { padding: 2rem 1.3rem; border-radius: 16px; }
  .reg-option { padding: 0.9rem 1rem; gap: 0.8rem; }
  .reg-option-icon { font-size: 1.4rem; }
  .reg-option strong { font-size: 0.92rem; }
  .reg-option span { font-size: 0.78rem; }
  .reg-question { font-size: 1.25rem; }
  .reg-helper { font-size: 0.82rem; margin-bottom: 1.4rem; }
  .reg-result-content { padding: 1.2rem; }
  .reg-contact-form { padding: 1.6rem 1.2rem; }
  .reg-form-row { grid-template-columns: 1fr; gap: 0; }
  .reg-form-title { font-size: 1.35rem; }
}



/* ====== CALCULATEUR 1000 POINTS ====== */
/* ============================================================
   CALCULATEUR 1000 POINTS — Styles
   Charte : navy #0c3b4d, gold #f5c518, cream #eef3f5
   ============================================================ */

.calc-section {
  background: linear-gradient(180deg, #f4ede0 0%, var(--cream) 100%);
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}

.calc-section::before {
  content: '';
  position: absolute;
  top: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,108,138,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.calc-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(12,59,77,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.calc-container {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.calc-header {
  text-align: center;
  margin-bottom: 3rem;
}

.calc-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 660px;
  margin: 1.2rem auto 0;
}

.calc-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(12,59,77,0.10), 0 4px 12px rgba(12,59,77,0.05);
  border: 1px solid rgba(14,108,138,0.15);
}

/* === COMPTEUR === */
.calc-counter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
}
.calc-counter::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(14,108,138,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.calc-counter-info {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.9rem;
  position: relative; z-index: 2;
}
.calc-counter-label {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.72rem;
  color: var(--gold-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.calc-counter-value {
  font-family: 'Lexend',system-ui,sans-serif;
  color: var(--white);
  font-size: 1.4rem;
}
.calc-counter-value #calcTotal {
  font-size: 2.4rem; font-weight: 700;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
}
.calc-counter-max {
  font-size: 1rem; color: rgba(255,255,255,0.55); margin-left: 0.3rem;
}
.calc-counter-bar {
  width: 100%; height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px; overflow: hidden;
  position: relative; z-index: 2;
}
.calc-counter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.calc-counter-fill.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}
.calc-counter-fill.danger {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}
.calc-counter-status {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.78);
  position: relative; z-index: 2;
}
.calc-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-lt);
  box-shadow: 0 0 0 4px rgba(232,201,106,0.2);
}
.calc-status-dot.warning { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,0.2); }
.calc-status-dot.danger { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.2); }

/* === LISTE DES PRODUITS AJOUTÉS === */
.calc-products {
  margin-bottom: 1.8rem;
}
.calc-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  background: var(--cream);
  border-radius: 12px;
  border: 1.5px dashed var(--stone);
}
.calc-empty-icon {
  font-size: 2.4rem; margin-bottom: 0.6rem;
}
.calc-empty p {
  font-size: 0.92rem;
}

.calc-product-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 0.8rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  animation: calcSlideIn 0.3s ease;
}
@keyframes calcSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc-product-icon {
  font-size: 1.4rem;
}
.calc-product-info {
  min-width: 0;
}
.calc-product-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-product-meta {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.calc-product-qty {
  display: flex; align-items: center; gap: 0.3rem;
}
.calc-product-qty input {
  width: 70px;
  padding: 0.45rem 0.5rem;
  border: 1.5px solid var(--stone);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  background: var(--white);
  transition: border-color 0.2s;
}
.calc-product-qty input:focus {
  outline: none;
  border-color: var(--gold);
}
.calc-product-qty .unit {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 24px;
}
.calc-product-points {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold-dk);
  background: rgba(14,108,138,0.12);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
}
.calc-product-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.calc-product-remove:hover {
  background: rgba(232,76,90,0.1);
  color: var(--red);
}

/* Cas spécial : produit catégorie 0 (interdit) ou 1 lourd */
.calc-product-row.banned {
  border-color: rgba(220,38,38,0.4);
  background: rgba(220,38,38,0.05);
}
.calc-product-row.banned .calc-product-points {
  background: rgba(220,38,38,0.15);
  color: #dc2626;
}

/* === FAMILLES === */
.calc-families {
  margin-bottom: 1.5rem;
}
.calc-section-label {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.calc-family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
}
.calc-family-btn {
  background: var(--cream);
  border: 1.5px solid var(--stone);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.calc-family-btn:hover {
  border-color: var(--gold);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14,108,138,0.15);
}
.calc-family-btn-header {
  display: flex; align-items: center; gap: 0.5rem;
}
.calc-family-icon {
  font-size: 1.5rem; line-height: 1;
}
.calc-family-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.3;
}
.calc-family-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.15rem;
}

/* === MODALE DE SÉLECTION PRODUIT === */
.calc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,29,54,0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: calcFadeIn 0.25s ease;
}
.calc-modal-overlay.active { display: flex; }
@keyframes calcFadeIn { from { opacity: 0; } to { opacity: 1; } }

.calc-modal {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: calcModalSlide 0.3s ease;
}
@keyframes calcModalSlide {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.calc-modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white);
  padding: 1.5rem 1.8rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.calc-modal-title {
  font-family: 'Lexend',system-ui,sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.6rem;
}
.calc-modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.calc-modal-close:hover {
  background: rgba(255,255,255,0.2);
}

.calc-modal-search {
  padding: 1rem 1.8rem;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}
.calc-modal-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--stone);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.calc-modal-search input:focus {
  outline: none;
  border-color: var(--gold);
}

.calc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem 1.8rem;
}
.calc-modal-product {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--stone);
}
.calc-modal-product:last-child { border-bottom: none; }
.calc-modal-product:hover {
  background: var(--cream);
}
.calc-modal-product-info {
  flex: 1; min-width: 0;
}
.calc-modal-product-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.94rem;
  margin-bottom: 0.2rem;
}
.calc-modal-product-meta {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.calc-modal-product-cat {
  font-family: 'Source Sans 3',system-ui,sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dk);
  background: rgba(14,108,138,0.15);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}

/* === RÉSULTAT === */
.calc-result {
  margin-top: 1.5rem;
  border-top: 1px solid var(--stone);
  padding-top: 1.8rem;
  animation: calcFadeIn 0.4s ease;
}
.calc-result-title {
  font-family: 'Lexend',system-ui,sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.calc-result-text {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.calc-result-text.success { border-left-color: #10b981; }
.calc-result-text.warning { border-left-color: #f59e0b; }
.calc-result-text.danger { border-left-color: #dc2626; }
.calc-result-text strong { color: var(--navy); }

/* === FORMULAIRE PDF === */
.calc-pdf-capture {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 14px;
  padding: 1.8rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.calc-pdf-capture::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(14,108,138,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.calc-pdf-title {
  font-family: 'Lexend',system-ui,sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative; z-index: 2;
}
.calc-pdf-intro {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  position: relative; z-index: 2;
}
#calcPdfForm {
  position: relative; z-index: 2;
}
.calc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
#calcPdfForm input[type="text"],
#calcPdfForm input[type="email"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
#calcPdfForm input::placeholder {
  color: rgba(255,255,255,0.45);
}
#calcPdfForm input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.calc-form-row input { margin-bottom: 0 !important; }
.calc-pdf-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  cursor: pointer;
  margin: 0.9rem 0 1.2rem;
}
.calc-pdf-consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.calc-pdf-consent span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}
.calc-pdf-submit {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.calc-pdf-submit:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,108,138,0.35);
}
.calc-pdf-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.calc-pdf-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.calc-pdf-feedback.success {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  color: #d1fae5;
}
.calc-pdf-feedback.error {
  background: rgba(232,76,90,0.15);
  border: 1px solid rgba(232,76,90,0.4);
  color: #fed7d7;
}
.calc-pdf-feedback a {
  color: var(--gold-lt);
  font-weight: 600;
}

.calc-reset {
  background: transparent;
  border: 1.5px solid var(--stone);
  color: var(--muted);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.calc-reset:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.6;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--stone);
}
.calc-disclaimer a {
  color: var(--gold-dk);
  font-weight: 600;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 700px) {
  .calc-section { padding: 4rem 1.2rem; }
  .calc-card { padding: 1.5rem 1.2rem; border-radius: 14px; }
  .calc-counter { padding: 1.2rem 1.3rem; }
  .calc-counter-value #calcTotal { font-size: 2rem; }
  .calc-product-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "icon info remove"
      "qty qty points";
    gap: 0.5rem;
  }
  .calc-product-icon { grid-area: icon; }
  .calc-product-info { grid-area: info; }
  .calc-product-qty { grid-area: qty; justify-self: start; }
  .calc-product-points { grid-area: points; justify-self: end; }
  .calc-product-remove { grid-area: remove; }
  .calc-family-grid { grid-template-columns: 1fr; }
  .calc-form-row { grid-template-columns: 1fr; gap: 0; }
  .calc-modal { max-height: 92vh; border-radius: 14px; }
  .calc-modal-header { padding: 1.2rem 1.4rem; }
  .calc-modal-title { font-size: 1.2rem; }
  .calc-modal-search { padding: 0.8rem 1.4rem; }
  .calc-modal-body { padding: 0.6rem 1.4rem; }
}



/* ===== Ajustements refonte 2027 ===== */
.reg-test-section,.calc-section{background:var(--paper);padding:clamp(56px,7vw,88px) var(--gutter)}
.calc-section{background:var(--white)}
.reg-test-section::before,.reg-test-section::after,.calc-section::before,.calc-section::after,
.reg-contact-form::before,.calc-counter::before,.calc-pdf-capture::before{display:none}
.reg-test-card,.calc-card{border-color:var(--line);box-shadow:0 30px 60px -36px rgba(7,42,56,.35)}
.reg-progress-bar,.calc-counter-fill{background:var(--accent)}
.reg-option,.reg-check,.calc-family-btn{transition:transform .2s var(--ease),border-color .2s var(--ease),background-color .2s var(--ease)}
.reg-option:hover{transform:none}
.reg-option:active,.reg-check:active,.calc-family-btn:active,.calc-modal-product:active,.reg-btn-next:active,.reg-restart:active,.calc-reset:active{transform:scale(.97)}
.reg-option:hover,.reg-option.selected,.reg-check:hover,.calc-family-btn:hover{border-color:var(--accent)}
.reg-btn-next{border-radius:999px;transition:transform .2s var(--ease),background-color .2s var(--ease)}
.reg-btn-next:hover{transform:none;box-shadow:none}
.reg-cta-primary,.calc-pdf-submit{background:var(--accent)!important;color:var(--accent-ink)!important;border-radius:999px}
.reg-cta-primary:hover,.calc-pdf-submit:hover{background:var(--accent-hover)!important;transform:none;box-shadow:none}
.reg-form-field label{color:var(--accent)}
.calc-counter-value #calcTotal{color:var(--accent)}
/* Fenêtre du calculateur : sort comme elle entre */
.calc-modal-overlay{display:flex;opacity:0;visibility:hidden;pointer-events:none;animation:none;transition:opacity .2s var(--ease),visibility 0s linear .2s}
.calc-modal-overlay.active{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .2s var(--ease),visibility 0s}
.calc-modal{animation:none;transform:translateY(16px) scale(.97);transition:transform .25s var(--ease)}
.calc-modal-overlay.active .calc-modal{transform:none}
@media (prefers-reduced-motion:reduce){.reg-step,.calc-product-row,.calc-result{animation:none}}
