/* Anaïs Hay — reprise de la page WordPress (Elementor, modèle « Canvas ») */

:root {
  --fond: #C4CED2;      /* gris-bleu du site d'origine */
  --texte: #000000;
  --survol: #FFFFFF;    /* les liens passaient en blanc au survol */
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--fond);
  transition: background-color 0.6s ease-out;  /* la couleur suit la souris (js/script.js) */
  color: var(--texte);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

/* Chaque partie occupe toute la hauteur de l'écran, contenu centré */
section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

h1 {
  margin: 0 0 1rem;
  font: inherit;
}

p {
  margin: 0 0 1rem;
}

/* Les liens de contact, côte à côte (l'un sous l'autre sur petit écran) */
.liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

a {
  color: var(--texte);
  transition: color 0.2s;
}

a:hover,
a:focus-visible {
  color: var(--survol);
}

/* Vidéo verticale, centrée, sans dépasser l'écran */
.video video {
  display: block;
  width: auto;
  max-width: 56vw;      /* le site d'origine laissait 22 % de marge de chaque côté */
  max-height: 90vh;
  max-height: 90svh;
  aspect-ratio: 9 / 16;
  background: var(--fond);
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

@media (max-width: 767px) {
  .video video {
    max-width: 100%;
  }
}
