/* ========== BASE & RESET LÉGER ========== */

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

html {
  font-size: 100%;  
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
               sans-serif;
  line-height: 1.6;
  color: #fff;

  /* Image + overlay */
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.85),
      rgba(97, 97, 97, 0.85)
    ),
    url("assets/images/genealogy-5210251_1920.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
}

/* ========== ACCESSIBILITÉ ========== */

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  width: 100%;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Contenu masqué visuellement mais accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== CONTENU PRINCIPAL ========== */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 1.5rem;
  text-align: center;
}

/* Limite la largeur pour la lisibilité */
main > * {
  max-width: 40rem;
}

/* ========== EN-TÊTE ========== */

main > header {
  margin-bottom: 1.5rem;
}

main header img {
  max-width: 24rem;
  height: auto;
  margin-bottom: 0.75rem;
}

/* ========== TYPOGRAPHIE ========== */

h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0;
  color: #83c6a2;
  text-shadow: 1px 1px black;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 0.5rem 0 1.25rem;
  font-size: 1rem;
}

/* Texte d’accroche */
main section:first-of-type p {
  font-size: 1.05rem;
}

/* ========== CONTACT ========== */

address {
  font-style: normal;
}

address p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
}

address p img {
	margin: 0.5rem;
}

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* ========== PIED DE PAGE ========== */

footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
