/* Reset et base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  background: #fff;
  color: #242525;
  line-height: 1.6;
}

/* Polices */
@font-face {
  font-family: "League Gothic";
  src: url("/static/fonts/LeagueGothic-1.601/LeagueGothic-1.601/static/WOFF2/LeagueGothic-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("static/fonts/Albert_Sans,Instrument_Serif/Instrument_Serif/InstrumentSerif-Regular.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

/* Typographie */
h1,
h2,
h3,
.title {
  font-family: "League Gothic", sans-serif;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: 2.5em;
  font-weight: 500;
}

h2 {
  font-size: 3em;
  font-weight: 400;
}

h4 {
  font-family: "League Gothic", sans-serif;
  font-size: 2em;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1.5rem 0;
}

/* Liens */
a {
  text-decoration: none;
  color: #242525;
  transition: color 0.3s ease;
}

a:hover {
  color: #676767;
}

/* Boutons */
.btn {
  background-color: #242525;
  color: #faf460;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  width: 150px;
  height: 50px;
  font-weight: bold;
  font-family: inherit;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn--secondary {
  background-color: #faf460;
  color: #242525;
}

/* Header */
header {
  background-color: #faf460;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

header nav {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: #242525;
  font-weight: bold;
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #242525;
  transition: width 0.3s ease;
}

header nav a:hover::after {
  width: 100%;
}

/* Layout */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.flex {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.half {
  flex: 1 1 100%;
  /* Mobile : 100% */
  padding: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

.half img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.half img:hover {
  transform: scale(1.02);
}

/* Section highlight */
.highlight {
  background: linear-gradient(
      to bottom,
      rgba(36, 37, 37, 0) 0%,
      rgba(36, 37, 37, 0.5) 70%,
      #242525 100%
    ),
    url("../static/img/picture_2.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 3rem 2rem 4rem 2rem;
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.highlight h2 {
  color: #faf460;
  margin-bottom: 1rem;
}

.highlight p {
  color: #faf460;
  font-size: 1.2em;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Testimonials */
.testimonials {
  background-color: #242525;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.testimonials h2 {
  color: #faf460;
  margin-bottom: 3rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  color: #242525;
  border-radius: 1rem;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.testimonial-logo {
  max-height: 50px;
  width: auto;
  margin: 0 auto 1rem auto;
  display: block;
}

.testimonial-title {
  font-weight: normal;
  margin-bottom: 1rem;
  text-align: center;
  color: #242525;
  letter-spacing: 0px;
}

.testimonial-card p {
  flex-grow: 1;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-card a {
  font-weight: bold;
  color: #676767;
}

/* Footer */
footer {
  padding: 3rem 2rem 2rem 2rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

footer > div {
  flex: 1;
  min-width: 250px;
}

footer h4 {
  color: #676767;
}

footer p {
  color: #676767;
}

footer small {
  display: block;
  margin-top: 2rem;
  text-align: center;
  width: 100%;
  color: #999;
  font-size: 0.9em;
}

/* Menu burger mobile*/

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #242525;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 2rem 1rem;
  }

  .burger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #faf460;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .flex {
    flex-direction: column;
    gap: 2rem;
    display: flex;
    flex-wrap: wrap;
  }
  .half {
    flex: 1 1 50%;
    /* Desktop : 50% */
  }

  .half img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  header nav {
    gap: 1rem;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 2.5em;
  }

  .highlight {
    padding: 2rem 1rem 3rem 1rem;
    min-height: 50vh;
  }

  .testimonials {
    padding: 2rem 1rem;
  }

  .testimonial-cards {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .btn {
    width: 120px;
    height: 45px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 2em;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .highlight {
    min-height: 40vh;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}
