/* === Fonts === */
@font-face {
  font-family: 'Abordage';
  src: url('fonts/Abordage-Regular.woff2') format('woff2'),
       url('fonts/Abordage-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* === Variables === */
:root {
  --main-bg-color: #7a9252;
  --text-color: white;
  --hover-text-color: #ddd;
  --button-border-color: white;
  --button-hover-bg: white;
  --button-hover-text: #7a9252;
}

/* === General Styles === */
body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: var(--main-bg-color);
  color: var(--text-color);
  font-family: 'Abordage', sans-serif;
}

.grid-container {
  display: grid;
  grid-template-columns: 300px 3fr 3fr 3fr 1fr;
  grid-template-rows: 80px 200px 1fr 200px;
  grid-template-areas:
    "menu1 menu2 menu3 menu4 menu5"
    "titre page page page page"
    "logo page page page page"
    "footer footer footer footer footer";
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: var(--main-bg-color);
  margin-top: 5px;
}

.grid-item {
  background-color: var(--main-bg-color);
  box-sizing: border-box;
}

/* === Typography === */
.page {
  display: block;
  padding: 4rem 1rem 1rem 1rem;
  font-size: 1.3rem;
}

.page ul li {
  margin-bottom: 1rem;
}

.tiny {
  font-size: 0.8rem;
}

strong {
  font-size: 1.8rem;
  font-weight: bold;
}

.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.two-columns > * {
  flex: 1 1 300px;
  margin: 0;
  align-self: flex-start;
}

/* === Links === */
a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-text-color);
}

/* Special "button" style links */
a.button {
  display: block;
  width: fit-content;
  margin: 2rem auto 0 auto;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--button-border-color);
  border-radius: 8px;
  background-color: transparent;
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

a.button:hover {
  background-color: var(--button-hover-bg);
  color: var(--button-hover-text);
}

/* === Flexbox layouts where needed === */
.menu, .footer, .logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.titre {
  display: block;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem;
}

/* === Specific sections === */
.logo {
  align-items: flex-start;
  padding-top: 1rem;
}

/* Menu Styling */
.menu {
  padding: 1rem;
  border-left: 2px solid var(--text-color);
  border-top: 2px solid var(--text-color);
  border-bottom: 2px solid var(--text-color);
}

.menu5 {
  border-right: 2px solid var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.menu5 p {
  margin: 0;
  line-height: 1;
}

.menu p {
  margin: 0;
}

.menu1 p { font-size: 3rem; }
.menu2 p,
.menu3 p,
.menu4 p, 
.menu5 p { font-size: 2rem; }

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.footer-images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

/* Individual sizing */
.footer-images img {
  width: auto;
}

.footer-images .logoivgc {
  height: 50px;
}

.footer-images .logoups {
  height: 70px;
}

.footer-images .logouqam {
  height: 60px;
}

/* === Grid area assignments === */
.menu1 { grid-area: menu1; }
.menu2 { grid-area: menu2; }
.menu3 { grid-area: menu3; }
.menu4 { grid-area: menu4; }
.menu5 { grid-area: menu5; }
.titre  { grid-area: titre; }
.logo   { grid-area: logo; }
.page   { grid-area: page; }
.footer { grid-area: footer; }

/* === Page Content === */
.page h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid white;
  transition: transform 0.3s ease;
}

.card h2 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.arrondi {
	border-radius: 12px;
}

/* Hover effects */
.card:hover img {
  transform: scale(1.05);
}

.card:hover {
  transform: translateY(-5px);
}

/* === Utility Spacing Classes === */
.pt-small {
  padding-top: 1rem;
}

.pt-large {
  padding-top: 3rem;
}

.pt-xlarge {
  padding-top: 5rem;
}
