/* Reset CSS */

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

/* Global Styles */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
  overflow: hidden;
}
section {
  overflow: visible;
}

/* Variables */
:root {
  --primary-color: #6f5550;
  --background-color: #f5f3f0;
  --secondary-color: #efe5d8;
}

/* Typography */

@font-face {
  font-family: alternate-gothic-no-3-d;
  src: url(/assets/fonts/Alternate\ Gothic\ No3\ D\ Regular.woff2) format("woff2");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "alternate-gothic-no-3-d", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1em;
  font-size: 15px;
}

/* Header */

header {
  padding: 40px 20px 0px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-svg {
  width: 120px;
  height: auto;
  fill: var(--primary-color);
}

/* Hero */

.hero-h1 {
  font-size: 0.8em;
}

.hero-h2 {
  font-size: 4rem;
  margin-bottom: 0.3em;
  line-height: 1.2;
}

/* Layout */

.hero-blocks {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 10rem;
  flex-wrap: wrap;
}

.block-announcement {
  max-width: 40rem;
  padding: 30px;
  margin-top: 2rem;
}

.block-img {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  margin-right: -8rem;
}

.block-img-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 11rem;
}
.block-img-column > div {
  position: relative;
}

.block-img img {
  object-fit: cover;
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: var(--background-color);
  text-decoration: none;
  border-radius: 5px;
  font-family: "alternate-gothic-no-3-d", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Error Page */

.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-container {
  text-align: center;
  max-width: 600px;
}

.error-code {
  font-size: 10rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.error-message {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* Footer */
footer {
  padding: 30px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.credits {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.credits svg {
  width: 12px;
  display: flex;
  align-items: flex-end;
  fill: var(--primary-color);
}

/* Utilities */

.text-stroke {
  color: transparent;
  -webkit-text-stroke: 1px color(srgb 0.4355 0.3332 0.3137);
}

.mb-0 {
  margin-bottom: 0;
}

.align-content-center {
  align-content: center;
}

.mb-3 {
  margin-bottom: 3rem;
}

.pt-9 {
  padding-top: 9rem;
}

.pt-20 {
  padding-top: 20rem;
}

/* Responsive */

/* Desktop adjustments */
@media (max-width: 1300px) {
  .block-img {
    margin-top: -4rem;
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  .hero-h1 {
    font-size: 0.7em;
  }
  .hero-blocks {
    gap: 0rem;
  }

  .hero-h2 {
    font-size: 2.5rem;
  }

  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 2rem;
  }

  .error-message {
    font-size: 1rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1.1rem;
  }

  .logo-svg {
    width: 100px;
  }
}

/* Très petit mobile (< 400px) */
@media (max-width: 400px) {
  .hero-h2 {
    font-size: 3rem;
  }

  .error-code {
    font-size: 4.5rem;
  }

  .error-title {
    font-size: 1.5rem;
  }
  .block-img {
    margin-top: -4rem;
    margin-right: 4rem;
  }
}
