@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap");

:root {
  --blue: #000091;
  --red: #e1000f;
  --bg: #f6f6f6;
  --card: rgba(255,255,255,0.75);
  --text: #1a1a1a;
}

body.dark {
  --bg: #0e0e11;
  --card: rgba(20,20,25,0.75);
  --text: #f0f0f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(
    120deg,
    rgba(0,0,145,.08),
    var(--bg),
    rgba(225,0,15,.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  color: var(--text);
  transition: background .3s, color .3s;
}

.clock-card {
  width: min(92%, 420px);
  padding: 2.5rem 3rem;
  border-radius: 22px;
  background: var(--card);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0,0,0,.15);
  text-align: center;
}

/* Header */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.brand {
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--blue);
}

.toggles button {
  border: none;
  background: none;
  font-size: .9rem;
  cursor: pointer;
  color: var(--text);
}

/* Heure */
.clock {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 10vw, 5rem);
  letter-spacing: .05em;
  margin-bottom: .6rem;
}

/* Date */
.clock2 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  text-transform: capitalize;
}

/* Select */
select {
  border-radius: 30px;
  padding: .6rem 1.4rem;
  border: 1px solid #ccc;
  background: white;
  font-size: .9rem;
}

/* Tricolore */
.tricolor {
  margin-top: 2.5rem;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--blue), white, var(--red));
}
