@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: 'Century Gothic', 'Poppins', sans-serif;
  min-height: 100%;
}

/* ====== FOND CLAIR ====== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, #f7f2e9 0%, #efe7d8 50%, #e9ddc8 100%);
}

.pg {
  font-family: 'Century Gothic', 'Poppins', sans-serif;
  color: #f0ede8;
  max-width: 680px;
  margin: 2rem auto;
  min-height: calc(100vh - 4rem);
  box-shadow: 0 20px 60px rgba(80,60,30,0.12);
  border-radius: 18px;
  overflow: hidden;
}

/* ====== HERO ====== */
.hero { background: #0d1f3c; padding: 3rem 2.5rem 2rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(200,180,140,0.12); }
.logo { font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 52px; font-weight: 600; letter-spacing: -1px; color: #fff; line-height: 1; margin: 0 0 0.25rem; }
.logo span { color: #c8b48c; }
.subtitle { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(200,180,140,0.7); margin: 0 0 1.5rem; font-weight: 300; }
.tagline { font-family: 'Century Gothic', 'Poppins', sans-serif; font-style: italic; font-size: 15px; color: rgba(240,237,232,0.65); max-width: 340px; line-height: 1.7; border-left: 1px solid rgba(200,180,140,0.35); padding-left: 1rem; margin: 0 0 2rem; }
.authors { font-size: 12px; letter-spacing: 2px; color: rgba(200,180,140,0.6); font-weight: 300; }

/* ====== SWITCH DE LANGUE ====== */
.lang-switch {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(200,180,140,0.25);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-family: 'Century Gothic', 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(240,237,232,0.5);
  z-index: 2;
  transition: border-color 0.2s;
}
.lang-switch:hover { border-color: rgba(200,180,140,0.5); }
.lang-opt { transition: color 0.2s, font-weight 0.2s; }
.lang-opt.active { color: #c8b48c; font-weight: 500; }
.lang-sep { color: rgba(200,180,140,0.3); }

/* ====== CORPS (effet glass discret) ====== */
.body {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding: 2.5rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.6);
}
.section-label { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: #8a7e6e; font-weight: 500; margin: 0 0 0.75rem; }
.section-title { font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 24px; color: #1a2a42; font-weight: 600; margin: 0 0 0.4rem; line-height: 1.3; }
.section-desc { font-size: 13.5px; color: #6b6357; line-height: 1.7; margin: 0 0 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8a7e6e; margin-bottom: 0.4rem; font-weight: 500; }
.form-group input, .form-group select {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.85); border: 0.5px solid #ccc8c0;
  padding: 0.7rem 0.85rem; font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 14px; color: #1a2a42;
  outline: none; transition: border-color 0.2s; appearance: none; border-radius: 10px;
}
.form-group input:focus, .form-group select:focus { border-color: #0d1f3c; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ====== SÉLECTEUR DE PAYS PERSONNALISÉ ====== */
.country-select { position: relative; }

.country-trigger {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.85); border: 0.5px solid #ccc8c0;
  padding: 0.7rem 0.85rem; font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 14px; color: #1a2a42;
  outline: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  text-align: left; transition: border-color 0.2s; border-radius: 10px;
}
.country-trigger:focus, .country-select.open .country-trigger { border-color: #0d1f3c; }

.country-trigger-content { display: flex; align-items: center; gap: 0.6rem; overflow: hidden; }
.country-placeholder { color: #a09285; }
.country-chevron { font-size: 14px; color: #8a7e6e; transition: transform 0.2s; flex-shrink: 0; }
.country-select.open .country-chevron { transform: rotate(180deg); }

.country-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 0.5px solid #ccc8c0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13,31,60,0.12);
  z-index: 20;
  max-height: 280px;
  flex-direction: column;
  overflow: hidden;
}
.country-select.open .country-dropdown { display: flex; }

.country-search {
  width: 100%; box-sizing: border-box; border: none; border-bottom: 0.5px solid #eee8e0;
  padding: 0.7rem 0.85rem; font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 13px; color: #1a2a42;
  outline: none; background: #fafafa;
}

.country-list { overflow-y: auto; max-height: 230px; }

.country-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.85rem; cursor: pointer; font-size: 13.5px; color: #1a2a42;
  transition: background 0.12s;
}
.country-option:hover { background: #f5f2ec; }
.country-option.selected { background: #f0f3f8; font-weight: 500; }
.country-option .fi { flex-shrink: 0; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08); border-radius: 2px; }
.country-option-empty { padding: 0.85rem; font-size: 12.5px; color: #a09285; text-align: center; }
.country-option-other { border-top: 0.5px solid #eee8e0; color: #6b6357; font-style: italic; }

.country-other-wrap { margin-top: 0.6rem; margin-bottom: 0; }
.country-other-wrap input {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.85); border: 0.5px solid #ccc8c0;
  padding: 0.7rem 0.85rem; font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 14px; color: #1a2a42;
  outline: none; border-radius: 10px; transition: border-color 0.2s;
}
.country-other-wrap input:focus { border-color: #0d1f3c; }

/* ====== VERSIONS / QUANTITÉS / TOTAL ====== */
.version-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.version-card { border: 0.5px solid #ccc8c0; background: rgba(255,255,255,0.85); padding: 1rem 1rem 0.85rem; cursor: pointer; transition: all 0.18s; position: relative; border-radius: 12px; }
.version-card:hover { border-color: #0d1f3c; }
.version-card.selected { border: 1.5px solid #0d1f3c; background: #f0f3f8; }
.version-card .v-lang { font-size: 13px; font-weight: 500; color: #1a2a42; margin: 0 0 0.15rem; }
.version-card .v-price { font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 20px; color: #0d1f3c; font-weight: 600; }
.version-card .v-shipping { font-size: 10px; color: #5a8a5a; letter-spacing: 1px; text-transform: uppercase; margin-top: 0.2rem; }
.version-card .v-check { position: absolute; top: 8px; right: 10px; font-size: 14px; color: #0d1f3c; display: none; }
.version-card.selected .v-check { display: block; }

.qty-block { background: rgba(255,255,255,0.85); border: 0.5px solid #ccc8c0; padding: 1.1rem 1.1rem 0.9rem; margin-bottom: 1.5rem; border-radius: 12px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 0.5px solid #eee8e0; }
.qty-row:last-child { border-bottom: none; }
.qty-lang { font-size: 13px; color: #1a2a42; }
.qty-controls { display: flex; align-items: center; gap: 0; }
.qty-btn { width: 32px; height: 32px; background: #0d1f3c; color: #fff; border: none; font-size: 18px; cursor: pointer; font-family: 'Century Gothic', 'Poppins', sans-serif; display: flex; align-items: center; justify-content: center; line-height: 1; border-radius: 8px 0 0 8px; }
.qty-btn:last-of-type { border-radius: 0 8px 8px 0; }
.qty-btn:hover { background: #1a3460; }
.qty-num { width: 40px; text-align: center; font-size: 15px; font-weight: 500; color: #1a2a42; background: #f5f2ec; height: 32px; display: flex; align-items: center; justify-content: center; border-top: 0.5px solid #ccc8c0; border-bottom: 0.5px solid #ccc8c0; }
.qty-unit { font-size: 11px; color: #8a7e6e; margin-left: 8px; }

.total-bar { background: #0d1f3c; color: #f0ede8; padding: 0.9rem 1.1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-radius: 12px; }
.total-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(200,180,140,0.7); }
.total-amount { font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 24px; font-weight: 600; color: #c8b48c; }
.total-detail { font-size: 10px; color: rgba(240,237,232,0.45); margin-top: 1px; }
.shipping-tag { font-size: 10px; color: #7ab87a; letter-spacing: 1px; text-transform: uppercase; }

.submit-btn { width: 100%; padding: 1rem; background: #0d1f3c; color: #c8b48c; font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; border: none; cursor: pointer; transition: background 0.2s; font-weight: 500; border-radius: 12px; }
.submit-btn:hover { background: #1a3460; }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.note { font-size: 11px; color: #a09285; line-height: 1.6; margin-top: 1.25rem; text-align: center; }
.error-msg { font-size: 12px; color: #b23b3b; text-align: center; margin-top: 0.75rem; min-height: 1em; }

.stats { display: flex; border: 0.5px solid #ddd8ce; margin-bottom: 2rem; }
.stat { flex: 1; text-align: center; padding: 0.85rem 0.5rem; border-right: 0.5px solid #ddd8ce; }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 20px; color: #0d1f3c; font-weight: 600; display: block; }
.stat-lbl { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #a09285; display: block; margin-top: 2px; }

.success { display: none; text-align: center; padding: 2rem 0; }
.success-icon { font-size: 32px; color: #c8b48c; margin-bottom: 1rem; }
.success h3 { font-family: 'Century Gothic', 'Poppins', sans-serif; font-size: 22px; color: #1a2a42; margin: 0 0 0.5rem; }
.success p { font-size: 13px; color: #8a7e6e; margin: 0; }

.version-hint { font-size: 11px; color: #8a7e6e; margin: -0.75rem 0 1.25rem; font-style: italic; }

@media (max-width: 480px) {
  .hero, .body { padding: 2rem 1.25rem; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .version-cards { grid-template-columns: 1fr; }
  .lang-switch { top: 1rem; right: 1rem; }
}
