/* =====================
   style.css - 3DPlant
   ===================== */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #333;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 20;
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2db94f;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #fff; /* blanc sur hero */
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

nav.scrolled a {
  color: #000; /* noir quand fond blanc */
}

/* Bouton CTA */
nav .cta {
  border: 1.5px solid #c62828;
  border-radius: 25px;
  padding: 6px 16px;
  color: #fff;             /* texte blanc */
  background: #c62828;     /* fond rouge */
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.3s ease;
}

nav .cta:hover {
  background: #bb2d3b;
  border-color: #b02a37;
  color: #fff;
}

/* CTA quand navbar a scrollé */
nav.scrolled .cta {
  background: #fff;
  color: #c62828;
  border-color: #c62828;
}

nav.scrolled .cta:hover {
  background: #c62828;
  color: #fff;
}

nav .icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

nav .icons img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
}

.logo img {
  height: 40px;
  /* couleur #2db94f */
  filter: invert(39%) sepia(72%) saturate(749%) hue-rotate(81deg) brightness(90%) contrast(85%);
}

/* ===== HERO ===== */
header.hero {
  height: 100vh;
  background: url('../img/hero-bg.png') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

header.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

header.hero .content {
  position: relative;
  z-index: 2;
}

header.hero h1 {
  font-size: 3rem;
  margin: 0 0 20px;
}

header.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-danger {
  padding: 10px 22px;
  border: 2px solid #c62828;
  color: #fff;
  background: #c62828;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-danger:hover {
  background: #bb2d3b;
  border-color: #b02a37;
  color: #fff;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 10%;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.services, .process, .technos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  padding: 30px;
  border: 1px solid #c5c5c5;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
  background: #fff;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.card img {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
  background: #2c2c2c;
  color: #fff;
  text-align: center;
  padding: 30px;
  margin-top: 40px;
}

footer a {
  color: #2c7a3f;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
