/* =========================
   Variables personnalisables
   ========================= */

:root {
  --background-image: url("background.jpg");

  /* Largeur du contenu davantage étendue */
  --content-width: min(96vw, 1400px);
  --footer-gap: clamp(1rem, 3vw, 3rem);

  --text-color: #ffffff;
}


/* =========================
   Base
   ========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;

  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    var(--background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}


/* =========================
   Structure générale
   ========================= */

.page {
  width: var(--content-width);
  min-height: 100vh;
  margin: 0 auto;

  display: flex;
  flex-direction: column;

  padding: clamp(2rem, 6vh, 6rem) 0 clamp(1.5rem, 4vh, 4rem);
}


/* =========================
   Zone centrale
   ========================= */

.hero {
  flex: 1;

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

  text-align: center;
}

.logo {
  display: block;
  width: clamp(120px, 20vw, 320px);
  height: auto;
  object-fit: contain;
}

.hero h1 {
  margin: clamp(1rem, 2vw, 2rem) 0 0;

  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1.1;
}


/* =========================
   Pied de page
   ========================= */

.footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--footer-gap);
}

.footer-box {
  /*
   * Pas de fond, pas de bordure :
   * le texte est directement posé sur l'image.
   */
  padding: 0;
}

.footer-box h2 {
  margin-top: 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.footer-box p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Bloc de droite aligné à droite */
.footer-box:last-child {
  text-align: right;
}


/* =========================
   Responsive mobile
   ========================= */

@media (max-width: 700px) {
  .page {
    width: 92vw;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-box:last-child {
    text-align: right;
  }
}
