* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'myFirstFont';
  src: url("./fonts/Montserrat-ExtraLight.ttf");
}

@font-face {
  font-family: "myTitleFont";
  src: url("./fonts/Montserrat-Bold.ttf");
}

body, html {
  height: 100%;
  font-family: "myFirstFont", sans-serif;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr auto;
  height: 100vh;
}

/* Colonnes communes */
.column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid black;
  padding: 10px;
}

.column:first-child,
.column:nth-child(4) { /* 1ère colonne de chaque ligne */
  border-left: none;
}

/* Haut */
.brand-link {
  writing-mode: sideways-lr;
  text-align: center;
  padding: 5px;
  font-weight: bold;
}

.print-link {
  writing-mode: sideways-rl;
  text-align: center;
  padding: 5px;
  font-weight: bold;
}
/* Pour BRAND */
.top-left {
  justify-content: center; /* Centre verticalement */
  align-items: flex-start; /* Colle à gauche */
  padding-left: 20px;      /* Un petit espace visuel */
}

/* Pour PRINT */
.top-right {
  justify-content: center;  /* Centre verticalement */
  align-items: flex-end;    /* Colle à droite */
  padding-right: 20px;      /* Un petit espace visuel */
}

.logo-image {
  max-width: 15vw;
}

/* Bas */
.bottom-link,
.conta {
  font-size: 1.2em;
}

h1.title {
  font-family: "myTitleFont";
  letter-spacing: 3px;
  margin-top: 10px;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: black;
}
@media screen and (max-width: 768px) {
  .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    grid-template-areas: 
      "brand"
      "print"
      "logo-title"
      "infos"
      "contacts"
      "copyright";
    gap: 10px;
  }
  

  .top-left { grid-area: brand; }
  .top-right { grid-area: print; }
  .top-center { grid-area: logo-title; }
  .bottom-left { grid-area: infos; }
  .bottom-right { grid-area: contacts; }
  .bottom-center { grid-area: copyright; }
  

  .top-left, .top-right, .top-center, .bottom-row, .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 10px 0;
  }

  /* BRAND & PRINT côte à côte */
  .brand-link, .print-link {
    writing-mode: horizontal-tb; /* Texte normal */
  }

  /* Logo + titre vertical */
  .top-center {
    flex-direction: column;
  }

  .logo-image {
    max-width: 50vw;
  }

  /* Infos & Contacts côte à côte */
  .bottom-row {
    flex-direction: row;
    justify-content: space-around;
  }

  /* Copyright en bas seul */
  .copyright {
    font-size: 0.9em;
    text-align: center;
    padding-bottom: 20px;
  }

}