@font-face {
  font-family: "stereo";
  src: url(/fonts/Retro-Stereo-Wide.ttf);
}

@font-face {
  font-family: "mono";
  src: url(/fonts/Retro-Mono-Wide.ttf);
}

@font-face {
  font-family: "regular";
  src: url(/fonts/SourceCodePro-VariableFont_wght.ttf);
}

/* ---------- VARIABLES ---------- */
:root {
  --color-primary: #7084bd;
  --color-secondary: #50aee2;
  --color-thirdary: #e26851;
  --color-fourthary: #d0662e;
  --color-golden: #edcf50;
  --color-dark: #2c2220;
  --color-light: #f9eee3;

  --font-title1: "stereo";
  --font-title2: "mono";
  --font-regular: "regular";
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

/* ---------- BASE ---------- */
body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-regular);
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-light);
}

a {
  color: inherit;
}

h2,
h3 {
  font-family: var(--font-title1);
  font-weight: normal;
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- HEADER ---------- */
header {
  background: var(--color-dark);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 40px;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--color-light);
}

nav a {
  margin-left: 20px;
  font-weight: bold;
  text-decoration: none;
}

nav a:hover {
  color: var(--color-secondary);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(
    63deg,
    rgba(226, 104, 81, 1) 0%,
    rgba(80, 174, 226, 1) 100%
  );
  color: white;
}

.hero .container {
  position: relative;
  z-index: 5;
}

.hero h1 {
  font-family: var(--font-title2);
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.hero p {
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0.5rem 0 0.5rem;
  background: white;
  color: var(--color-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn:hover {
  background: var(--color-secondary);
  color: white;
}

.hero-img {
  width: 15%;
  position: absolute;
  z-index: 1;
}

.hero-img1 {
  bottom: 50px;
  right: 50px;
}

.hero-img2 {
  bottom: 50px;
  left: 50px;
}
/* ---------- PRESTATIONS ---------- */
.prestations {
  padding: 3rem 1rem;
  text-align: center;
}

.prestations h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.prestations-img {
  width: 25%;
  margin-top: 2rem;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--color-dark);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
}

.contact h2 {
  font-weight: normal;
}

.contact-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--color-dark);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ---------- RESPONSIVE DESIGN ---------- */

/* Tablette */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  nav {
    display: none;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: fit-content;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-img {
    position: static;
    width: 40%;
  }
  .hero-img1 {
    margin-top: 1rem;
  }

  .hero-img2 {
    margin-top: 1rem;
    margin-right: 2rem;
  }

  .btn {
    display: inline-flex;
    width: 100%;
    max-width: 300px;
    margin: 0.5rem auto;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  footer p {
    font-size: 0.8rem;
  }
}
