:root {
  --green: #4a7dfe;
  --dark: #0d2015;
  --sand: #fdfdf9;
  --gold: #d4af37;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--sand);
  color: #1d1d1d;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  height: 54px;
}

.nav a {
  margin: 0 14px;
  font-weight: 600;
  transition: color .3s;
}

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

.cta {
  background: var(--green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background .3s;
}

.cta:hover {
  background: #edfd09;
}

/* HERO */
.hero {
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
  background-size: contain;   /* 🔥 affiche toute l’image */
  background-repeat: no-repeat; /* évite les répétitions */
  background-position: center center; /* centre l’image */
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(36px,6vw,72px);
  margin: 0;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(18px,2vw,26px);
  margin: 16px 0 28px;
}

.btn {
  background: var(--green);
  color: #fff;
  margin: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: transform .3s, background .3s;
}

.btn:hover {
  background: #edfd09;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(28px,4vw,40px);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 12px auto 0;
  border-radius: 3px;
}

/* SERVICES */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 24px;
}

.card {
  padding: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: transform .3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* AVANT / APRÈS */
.before-after-grid {
  display: grid;
  gap: 40px;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ba-item {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.ba-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ba-item .label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
}

/* GALERIE */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.gallery-item img {
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  opacity: 0;
  transition: opacity .4s;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.form button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 999px;
  margin-top: 12px;
  font-weight: 600;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 30px;
  background: #fafafa;
  margin-top: 40px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease,transform .8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media(max-width:800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .ba-pair {
    grid-template-columns: 1fr;
  }
}

#services {
  background-image: url("assets/bg-sky.jpg"); /* ou l’URL directe */
  background-size: cover;        /* couvre toute la zone */
  background-position: center;   /* centre l’image */
  background-attachment: scroll; 
  padding: 80px 0;
}
