/* ================= RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */

body {
  font-family: 'Montserrat', sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
}

/* ================= NAV ================= */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #aaa;
}

/* ================= SECTIONS ================= */

section {
  padding: 7rem 10%;
}

/* ================= BACKGROUNDS ================= */

.section-background,
.section-background1,
.section-background2 {
  position: relative;
  min-height: 100vh;
  width: 100%;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.section-background {
  background-image: url('../img/copo.jpg');
}

.section-background1 {
  background-image: url('../img/20250406_123826.jpg');
}

.section-background2 {
  background-image: url('../img/20250406_112750.jpg');
}

/* Overlay */

.section-background::before,
.section-background1::before,
.section-background2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.section-background *,
.section-background1 *,
.section-background2 * {
  position: relative;
  z-index: 2;
}

/* ================= TITRES ================= */

h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

/* ================= SERVICES ================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  margin-top: 4rem;
}

.service-item {
  background: none;
}

/* Carte service */

.service-box {
  background: linear-gradient(
    180deg,
    rgba(22, 22, 22, 0.96),
    rgba(8, 8, 8, 0.96)
  );

  border-radius: 16px;
  padding: 3rem 2.5rem;

  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.95);
}

.service-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.75);
}

.service-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.service-box ul {
  list-style: none;
  margin-top: 1.8rem;
}

.service-box ul li {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  padding-left: 1.4rem;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
}

.service-box ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #fff;
}

/* ================= CONTACT (FIX + PREMIUM) ================= */

/* IMPORTANT : enlève le centrage vertical */
#contact {
  justify-content: flex-start;
}

/* Carte formulaire */
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 620px;
  margin: 3rem auto 0;

  background: rgba(15, 15, 15, 0.92);
  border-radius: 22px;
  padding: 3.5rem 3rem;

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

/* Champs */
.contact input,
.contact textarea {
  width: 100%;
  margin-bottom: 1.3rem;
  padding: 1.15rem 1.5rem;

  background: rgba(5, 5, 5, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;

  color: #fff;
  font-size: 1rem;

  transition: all 0.25s ease;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Hover */
.contact input:hover,
.contact textarea:hover {
  background: rgba(20, 20, 20, 1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Focus */
.contact input:focus,
.contact textarea:focus {
  outline: none;
  background: rgba(20, 20, 20, 1);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

/* Bouton */
.contact button {
  margin-top: 1.8rem;
  padding: 1.1rem 2.8rem;

  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.8px;

  background: #fff;
  color: #000;
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 2rem;
  background: #111;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    margin-top: 1rem;
  }

  .nav-links a {
    margin: 0 1rem;
  }

  h1 {
    font-size: 3rem;
  }
}
