:root {
  --bg: #eef0f3;
  --surface: #ffffff;
  --text: #17171c;
  --muted: #5d5d6a;
  --line: #dadce0;
  --accent: #d6332b;
  --notice-bg: #fdecea;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e12;
    --surface: #1c1c22;
    --text: #f1f1f4;
    --muted: #a3a3b0;
    --line: #3a3a44;
    --accent: #ff5a50;
    --notice-bg: #34201f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.carte {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 48rem);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* L'illustration est sur fond blanc : on la fond dans la carte (multiply) ou on l'inverse en thème sombre. */
.portrait {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .portrait { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
}

.contenu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
}

h1 { margin: 0; font-size: 2.25rem; line-height: 1.1; letter-spacing: -0.02em; }
.sous-titre { margin: 0 0 0.75rem; color: var(--accent); font-weight: 600; }
.contenu p { margin: 0; }

.message {
  margin-top: 0.5rem !important;
  padding: 0.6rem 0.9rem;
  background: var(--notice-bg);
  border-radius: 0.6rem;
  font-size: 0.95rem;
}

.google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  align-self: flex-start;
  min-height: 2.9rem;
  margin-top: 1rem;
  padding: 0 1.25rem;
  background: #ffffff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}
.google:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.google:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (min-width: 40rem) {
  .carte { grid-template-columns: 15rem 1fr; min-height: 26rem; }
  .portrait { display: block; }
  .contenu { padding: 2.5rem; }
}

@media (max-width: 24rem) {
  .google { align-self: stretch; }
}
