.f4hxn-hp {
  --f4hxn-hp-accent: #0076a5;
  --f4hxn-hp-navy: #298ad4;
  --f4hxn-hp-ink: #163247;
  --f4hxn-hp-muted: #637887;
  --f4hxn-hp-line: #d9e6ee;
  width: 100%;
  max-width: 1250px;
  margin: 28px auto;
  overflow: hidden;
  color: var(--f4hxn-hp-ink);
  background: #fff;
  border: 1px solid var(--f4hxn-hp-line);
  border-radius: 20px;
  box-shadow: 0 14px 42px rgba(25, 63, 87, .12);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  box-sizing: border-box;
}

.f4hxn-hp *, .f4hxn-hp *::before, .f4hxn-hp *::after { box-sizing: border-box; }

/* ── v2 : mode pleine largeur (100 %) ─────────────────────────────
   Le conteneur remplit toute la largeur disponible. Sur grand écran,
   la carte est plafonnée pour conserver des proportions lisibles
   (une carte 2:1 en pleine largeur deviendrait trop haute). */
.f4hxn-hp--full { max-width: none; }

@media (min-width: 981px) {
  .f4hxn-hp--full .f4hxn-hp__body { grid-template-columns: minmax(0, 1fr) clamp(360px, 30%, 560px); }
  .f4hxn-hp--full .f4hxn-hp__map { width: 100%; max-width: 1200px; margin-inline: auto; }
  .f4hxn-hp--full .f4hxn-hp__map-heading,
  .f4hxn-hp--full .f4hxn-hp__map-legend { width: 100%; max-width: 1200px; margin-inline: auto; }
}

.f4hxn-hp__header {
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 80% -80%, rgba(255,255,255,.3), transparent 45%),
    linear-gradient(135deg, var(--f4hxn-hp-accent), var(--f4hxn-hp-navy));
}

.f4hxn-hp__header h2 {
  margin: 0 0 3px !important;
  color: #fff !important;
  font-size: clamp(1.55rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.025em;
  line-height: 1.12 !important;
}

.f4hxn-hp__header p { margin: 0 !important; color: rgba(255,255,255,.82); font-size: .96rem; }

.f4hxn-hp__globe {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(255,255,255,.13);
}

.f4hxn-hp__globe svg { width: 38px; height: 38px; fill: none; stroke: #fff; stroke-width: 2; }

.f4hxn-hp__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 12px;
  color: #fff;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.f4hxn-hp__live i { width: 8px; height: 8px; border-radius: 50%; background: #77efb0; box-shadow: 0 0 0 4px rgba(119,239,176,.18); }

.f4hxn-hp__body { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(360px, .84fr); }
.f4hxn-hp--no-map .f4hxn-hp__body { display: block; }
.f4hxn-hp--no-map .f4hxn-hp__panel { max-width: 760px; margin: auto; }

.f4hxn-hp__map-panel {
  min-width: 0;
  padding: 23px 24px 20px;
  background: #f4f9fc;
  border-right: 1px solid var(--f4hxn-hp-line);
}

.f4hxn-hp__map-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 0 2px 13px; }
.f4hxn-hp__map-heading strong { font-size: 1.02rem; }
.f4hxn-hp__map-heading span { color: var(--f4hxn-hp-muted); font-size: .82rem; }

.f4hxn-hp__map {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  min-height: 250px;
  background:
    linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px),
    linear-gradient(180deg, #cce9f4, #e8f5f8);
  background-size: 100% 25%, 12.5% 100%, 100% 100%;
  border: 1px solid #c9e0e9;
  border-radius: 15px;
}

.f4hxn-hp__map svg { display: block; width: 100%; height: 100%; }

.f4hxn-hp__country {
  fill: #d4e1df;
  stroke: #fff;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .16s ease, filter .16s ease;
}

.f4hxn-hp__country:hover { fill: #91bfd1; filter: brightness(1.02); }
.f4hxn-hp__country.is-selected { fill: #f3b83f; filter: drop-shadow(0 1px 2px rgba(76,50,0,.28)); }
.f4hxn-hp__country.is-disabled { fill: #dce6e5; cursor: default; }

.f4hxn-hp__marker { pointer-events: none; }
.f4hxn-hp__marker-dot { fill: var(--f4hxn-hp-accent); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.f4hxn-hp__marker-pulse { fill: var(--f4hxn-hp-accent); opacity: .18; transform-origin: center; animation: f4hxn-hp-pulse 1.8s ease-out infinite; }

@keyframes f4hxn-hp-pulse {
  0% { transform: scale(.35); opacity: .42; }
  75%, 100% { transform: scale(1.35); opacity: 0; }
}

.f4hxn-hp__tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: 6px 9px;
  color: #fff;
  background: rgba(8,44,68,.92);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,.18);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.f4hxn-hp__map-legend { display: flex; gap: 22px; padding: 13px 3px 0; color: var(--f4hxn-hp-muted); font-size: .76rem; }
.f4hxn-hp__map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.f4hxn-hp__legend-dot { width: 11px; height: 11px; border: 1px solid #bfd0d2; border-radius: 3px; background: #d4e1df; }
.f4hxn-hp__legend-dot--selected { border-color: #dda020; background: #f3b83f; }

.f4hxn-hp__panel { min-width: 0; padding: 24px; }
.f4hxn-hp__controls { display: grid; grid-template-columns: 1fr; gap: 13px; margin-bottom: 18px; }
.f4hxn-hp__controls label { display: block; margin: 0; }
.f4hxn-hp__controls label > span { display: block; margin-bottom: 6px; color: #3b5669; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }

.f4hxn-hp__controls select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 38px 8px 12px;
  color: var(--f4hxn-hp-ink);
  background-color: #fff;
  border: 1px solid #bfd1dc;
  border-radius: 9px;
  box-shadow: 0 2px 4px rgba(29,63,82,.04);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

.f4hxn-hp__controls select:focus { outline: 3px solid color-mix(in srgb, var(--f4hxn-hp-accent) 22%, transparent); border-color: var(--f4hxn-hp-accent); }
.f4hxn-hp__controls select:disabled { color: #5c6c77; background: #f4f7f8; cursor: default; }

.f4hxn-hp__clocks { display: grid; gap: 13px; }
.f4hxn-hp__clock-card { padding: 16px; border: 1px solid var(--f4hxn-hp-line); border-radius: 13px; background: #fff; }
.f4hxn-hp__clock-card--local { box-shadow: 0 7px 22px rgba(25,79,111,.08); }
.f4hxn-hp__clock-card--utc { background: #f7fafb; }

.f4hxn-hp__clock-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.f4hxn-hp__clock-title span { color: var(--f4hxn-hp-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.f4hxn-hp__clock-title strong { max-width: 58%; overflow: hidden; color: var(--f4hxn-hp-accent); font-size: .87rem; text-overflow: ellipsis; white-space: nowrap; }
.f4hxn-hp__clock-card--utc .f4hxn-hp__clock-title strong { color: #506879; }

.f4hxn-hp__clock-row { display: flex; align-items: center; gap: 16px; }
.f4hxn-hp__digital-wrap { min-width: 0; flex: 1; }
.f4hxn-hp__digital { display: block; color: #102d41; font-size: clamp(1.75rem, 3.3vw, 2.55rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.05; white-space: nowrap; }
.f4hxn-hp__date { overflow: hidden; margin-top: 5px; color: var(--f4hxn-hp-muted); font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }

.f4hxn-hp__analog {
  position: relative;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border: 4px solid #dbe8ed;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    repeating-conic-gradient(from -1.5deg, #9eb2bd 0 3deg, transparent 3deg 30deg),
    #fff;
  box-shadow: inset 0 0 0 1px #c9dae2, 0 3px 10px rgba(21,57,78,.08);
}

.f4hxn-hp__analog b { position: absolute; z-index: 5; width: 8px; height: 8px; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 2px solid #fff; border-radius: 50%; background: var(--f4hxn-hp-accent); }
.f4hxn-hp__hand { position: absolute; z-index: 2; left: calc(50% - 1px); bottom: 50%; width: 2px; border-radius: 3px; background: #173448; transform-origin: 50% 100%; }
.f4hxn-hp__hand--hour { height: 19px; width: 3px; left: calc(50% - 1.5px); }
.f4hxn-hp__hand--minute { height: 25px; }
.f4hxn-hp__hand--second { z-index: 3; height: 28px; width: 1px; left: calc(50% - .5px); background: #dc3d3d; }

.f4hxn-hp__zone { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #e6eef2; color: var(--f4hxn-hp-muted); font-size: .74rem; }
.f4hxn-hp__zone span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f4hxn-hp__zone strong { color: #3c5667; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f4hxn-hp__notice { margin: 15px 2px 0 !important; color: var(--f4hxn-hp-muted); font-size: .74rem; text-align: center; }
.f4hxn-hp__notice::before { content: "✓"; margin-right: 5px; color: #299260; font-weight: 900; }
.f4hxn-hp__notice--error { color: #a43131; }
.f4hxn-hp__notice--error::before { content: "!"; color: #a43131; }
.f4hxn-hp__noscript { margin: 0 !important; padding: 15px; color: #8a2d2d; background: #fff2f2; text-align: center; }

@media (max-width: 980px) {
  .f4hxn-hp__body { grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); }
  .f4hxn-hp__map-panel { padding: 20px 18px; }
  .f4hxn-hp__panel { padding: 20px; }
  .f4hxn-hp__clock-row { gap: 12px; }
  .f4hxn-hp__analog { width: 66px; height: 66px; flex-basis: 66px; }
  .f4hxn-hp__hand--hour { height: 17px; }
  .f4hxn-hp__hand--minute { height: 22px; }
  .f4hxn-hp__hand--second { height: 25px; }
}

@media (max-width: 820px) {
  .f4hxn-hp { border-radius: 15px; }
  .f4hxn-hp__body { display: block; }
  .f4hxn-hp__map-panel { border-right: 0; border-bottom: 1px solid var(--f4hxn-hp-line); }
  .f4hxn-hp__map { min-height: 0; }
  .f4hxn-hp__clocks { grid-template-columns: 1fr 1fr; }
  .f4hxn-hp__clock-row { align-items: flex-start; }
  .f4hxn-hp__analog { display: none; }
}

@media (max-width: 560px) {
  .f4hxn-hp { margin: 18px auto; border-radius: 12px; }
  .f4hxn-hp__header { min-height: 92px; padding: 18px; gap: 13px; }
  .f4hxn-hp__globe { width: 47px; height: 47px; flex-basis: 47px; }
  .f4hxn-hp__globe svg { width: 31px; height: 31px; }
  .f4hxn-hp__header p { font-size: .82rem; }
  .f4hxn-hp__live { display: none; }
  .f4hxn-hp__map-panel, .f4hxn-hp__panel { padding: 16px; }
  .f4hxn-hp__map-heading span { display: none; }
  .f4hxn-hp__map-legend { gap: 15px; }
  .f4hxn-hp__clocks { grid-template-columns: 1fr; }
  .f4hxn-hp__digital { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .f4hxn-hp__country { transition: none; }
  .f4hxn-hp__marker-pulse { animation: none; }
}

