:root {
  --primary: #1BAC4B;
  --primary-dark: #148A3C;
  --secondary: #FFD300;
  --tertiary: #EE8B60;
  --text: #14181B;
  --text-secondary: #57636C;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --border: #E0E3E7;
  --error: #FF5963;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Urbanist', -apple-system, sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Le bandeau hero en 100vw peut créer un débordement de la largeur de la scrollbar. */
  overflow-x: hidden;
}

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { height: 40px; width: auto; }

.lang-toggle {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.screen.card {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(20, 24, 27, 0.06);
}

h1 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
h3 { font-size: 17px; font-weight: 700; }
.centered { text-align: center; }

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--bg);
  color: var(--text);
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 172, 75, 0.15);
}

#code-input {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
}

.btn-primary {
  width: 100%;
  margin-top: 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--primary);
  border: none;
  border-radius: 28px;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.info-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 4px 16px;
  margin-bottom: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child { border-bottom: none; }
.info-row span { color: var(--text-secondary); flex-shrink: 0; }
.info-row strong { text-align: right; }

.info-value { text-align: right; min-width: 0; }

.info-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

.formule-card {
  position: relative;
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.formule-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 172, 75, 0.15);
}

.formule-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.formule-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}

.formule-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--bg-alt);
  flex-shrink: 0;
}

.formule-body { flex: 1; min-width: 0; }
.formule-body h3 { margin: 8px 0 4px; }
.formule-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }

.badge {
  display: inline-block;
  background: rgba(27, 172, 75, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.error {
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

.confirm-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 16px;
}

.order-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  letter-spacing: 1px;
  margin: 8px 0 12px;
}

.footer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 20px 16px 28px;
  line-height: 1.6;
}

.hidden { display: none !important; }

/* --- Mini-landing (écran code) --- */

.pill {
  display: inline-block;
  background: rgba(27, 172, 75, 0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.hero {
  text-align: center;
  /* Bandeau pleine largeur : la photo déborde du .container (720px). */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -24px;
  padding: 48px 16px 44px;
  background:
    linear-gradient(rgba(12, 22, 16, 0.55), rgba(12, 22, 16, 0.68)),
    url('assets/hero.jpg') center / cover no-repeat;
}

.hero .pill {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.hero-title {
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  margin: 14px auto 10px;
  max-width: 620px;
  color: #FFFFFF;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto 24px;
}

.code-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.arguments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0 8px;
}

@media (min-width: 640px) {
  .arguments {
    grid-template-columns: repeat(3, 1fr);
  }
}

.argument-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(20, 24, 27, 0.06);
}

.argument-card svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.argument-card h3 {
  font-size: 16px;
  margin: 10px 0 6px;
}

.argument-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.discover {
  text-align: center;
  margin: 20px 0 8px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.discover a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.discover a:hover {
  text-decoration: underline;
}

/* --- Bloc « Et la suite ? » (confirmation) --- */

.next-block {
  margin-top: 20px;
  padding: 18px;
  background: rgba(27, 172, 75, 0.08);
  border-radius: var(--radius);
  text-align: center;
}

.next-block h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.next-block p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.next-block a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.next-block a:hover {
  text-decoration: underline;
}

/* --- Footer --- */

.footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.company-logo {
  display: block;
  height: 56px;
  max-width: 160px;
  object-fit: contain;
  margin: 0 0 10px;
  padding: 6px;
  background: var(--bg);
  border-radius: 12px;
}
