/* Palette
  - Brun profond: #483515
  - Jaune: #F9B233
  - Orange: #FF8200
  - Blanc: #FFFFFF
  - Noir: #000000
*/

:root {
  --bg: #FFFFFF;
  --fg: #1f1b16;
  --muted: #6f6a63;
  --accent: #F9B233;
  --accent-2: #FF8200;
  --ink: #000000;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
}

.container {
  width: min(960px, 92%);
  margin-inline: auto;
}

.header { padding: 28px 0 8px; display: flex; justify-content: center; }
.logo { filter: none; }

.main { text-align: center; padding: 24px 0 48px; }
.headline {
  margin: 8px 0 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(28px, 4.2vw, 44px);
}
.subtitle {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(14px, 2.4vw, 18px);
  max-width: 56ch;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 14px;
  margin: 22px auto 28px;
  width: min(680px, 100%);
}
.segment {
  background: #faf8f6;
  border: 1px solid #ece7e2;
  border-radius: 14px;
  padding: 16px 10px;
  backdrop-filter: none;
}
.value {
  display: block;
  font-variant-numeric: tabular-nums; 
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  line-height: 1;
}
.label {
  display: block;
  margin-top: 6px;
  color: #8c877f;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.signup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(390px, 100%);
  margin: 10px auto 12px;
  align-items: center;
}
.signup > * {
  width: 100%;
}
.signup input[type="email"],
.signup input[type="tel"] {
  background: #ffffff;
  color: var(--fg);
  border: 1px solid #d9d3cc;
  border-radius: 12px;
  padding: 14px 14px;
  outline: none;
}
.signup input::placeholder { color: #9b958d; }
.signup input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,178,51,0.25); }

.phone-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.custom-select {
  position: relative;
  min-width: 130px;
}
.custom-select .flag-icon {
  border: 1px solid #e8e2da;
  border-radius: 3px;
  flex-shrink: 0;
}
.select-selected {
  background: #ffffff;
  color: var(--fg);
  border: 1px solid #d9d3cc;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  user-select: none;
  position: relative;
}
.select-selected::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6f6a63;
  transition: transform 0.2s;
}
.custom-select.active .select-selected::after {
  transform: translateY(-50%) rotate(180deg);
}
.select-selected:hover,
.custom-select.active .select-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,178,51,0.25);
}
.select-items {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d9d3cc;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 99;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}
.custom-select.active .select-items {
  display: block;
}
.select-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  transition: background 0.15s;
}
.select-item:hover {
  background: #faf8f6;
}
.select-item.active {
  background: #fff5e1;
  font-weight: 600;
}
.select-item:first-child {
  border-radius: 12px 12px 0 0;
}
.select-item:last-child {
  border-radius: 0 0 12px 12px;
}
.phone-input-group input[type="tel"] {
  flex: 1;
}

.btn {
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #1f1b16;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  transition: transform .06s ease, filter .2s ease;
}
.signup .btn { height: 100%; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }

.form-message { min-height: 20px; margin: 6px 0 0; color: var(--muted); grid-column: 1 / -1; font-size: 14px; }
.form-message.success { color: #2a7a2a; }
.form-message.error { color: #b42318; }

.social-hint {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.socials {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 20px 0 0;
}
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e8e2da;
  color: #483515;
}
.social:hover { background: #fff5e1; border-color: #ffd18a; }
.social svg { fill: currentColor; }

.footer { padding: 36px 0 32px; text-align: center; color: #8c877f; }
.footnote { margin: 0; font-size: 13px; }

@media (max-width: 520px) {
  .phone-input-group {
    flex-direction: row;
    gap: 8px;
  }
  .custom-select {
    min-width: 110px;
  }
}
