/* Styles communs à toutes les pages eriaulait */

@font-face {
  font-family: 'NoyhA';
  src: url('/fonts/NoyhA-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #243f53;      /* titres, boutons */
  --blue-2: #243f53;    /* texte */
  --blue-3: #3b5f78;    /* survol des boutons */
  --card-bg: rgba(255, 255, 255, .85);
  --card-border: #e3cba1;
}

body {
  margin: 0;
  font-family: 'NoyhA', sans-serif;
  background: url('/images/nuages-pc.jpg') center/cover no-repeat fixed;
  text-align: center;
  padding: 2rem;
  color: var(--blue-2);
}

/* Mobile : "fixed" fonctionne mal sur iOS, on laisse défiler le fond */
@media (max-width: 768px) {
  body {
    background: url('/images/nuages-mobile.jpg') center/cover repeat scroll;
    padding: 1.5rem 1rem;
  }
}

h1 {
  font-size: 3rem;
  color: var(--blue);
  margin: .2rem 0 .4rem;
  letter-spacing: .5px;
  text-transform: lowercase;
}

h2 {
  color: var(--blue);
  margin-top: 2rem;
}

.subtitle {
  font-size: 1.2rem;
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.note {
  max-width: 820px;
  margin: 0 auto 1.2rem;
  line-height: 1.55;
  background: var(--card-bg);
  border: 1px dashed var(--card-border);
  border-radius: 18px;
  padding: 1rem;
  text-align: left;
}

.note a { color: var(--blue); }

/* Boutons */
.links a {
  display: block;
  position: relative;
  background-color: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  margin: .6rem auto;
  border-radius: 30px;
  max-width: 420px;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color .3s;
}

.links a:hover { background-color: var(--blue-3); }

.links p {
  max-width: 420px;
  margin: 6px auto 16px;
  line-height: 1.5;
}

.flag { margin-right: .45rem; }

.badge {
  float: right;
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-weight: 800;
  font-size: .8rem;
}

/* Pied de page */
footer {
  margin-top: 1.25rem;
  padding-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

.small-footer {
  font-size: .8rem;
  opacity: .65;
  margin: .15rem 0;
}

footer a {
  color: var(--blue-2);
  text-decoration: none;
  font-size: .9rem;
}

footer a:hover { text-decoration: underline; }
