:root {
  --bg: #0f172a;
  --bg-light: #f5f5f7;
  --accent: #e67e22;
  --accent-soft: rgba(230, 126, 34, 0.1);
  --text: #0f172a;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --radius: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --max-width: 1100px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* RESET SIMPLE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

/* LAYOUT GLOBAL */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-light {
  background: var(--bg-light);
}

.section-accent {
  background: #111827;
  color: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted);
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(10px);
  color: #f9fafb;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 700;
}

.logo-mark img {
  width: 100%; /* Prend toute la largeur du cadre */
  height: 100%; /* Prend toute la hauteur du cadre */
  object-fit: cover; /* Remplit le cadre sans déformer l'image */
  border-radius: inherit; /* Hérite des bords arrondis du parent */
  display: block; /* Évite l'espace vide sous l'image */
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
}

.logo-text small {
  font-weight: 400;
  font-size: 0.75rem;
  color: #e5e7eb;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
}

.nav a:hover {
  color: #f97316;
}

/* HERO */
.hero {
  background: radial-gradient(circle at top left, #111827, #020617);
  color: #e5e7eb;
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: #cbd5f5;
  max-width: 36rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.hero-badges li {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(156, 163, 175, 0.35);
}

/* HERO MEDIA */
.hero-media {
  position: relative;
  min-height: 250px;
}

.hero-photo {
  position: absolute;
  border-radius: 18px;
  padding: 1rem;
  color: #f3f4f6;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-photo img, .gallery-item img {
  width: 100%; /* Prend toute la largeur du cadre */
  height: 100%; /* Prend toute la hauteur du cadre */
  object-fit: cover; /* Remplit le cadre sans déformer l'image */
  border-radius: inherit; /* Hérite des bords arrondis du parent */
  display: block; /* Évite l'espace vide sous l'image */
}

.hero-photo span {
  display: block;
}

.main-photo {
  inset: 0;
  margin: auto;
  max-width: 380px;
  height: 300px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.4)),
    url('img/placeholder-facade.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.secondary-photo {
  right: -40px;
  bottom: -160px;
  width: 290px;
  height: 230px;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.6)),
    url('img/placeholder-maconnerie.jpg') center/cover no-repeat;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #111827;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(248, 113, 22, 0.35);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  box-shadow: none;
}

.btn-full {
  width: 100%;
}

/* SECTIONS A PROPOS / ZONE / CONTACT */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.highlight {
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.highlight-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.highlight-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.zone-card {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(248, 113, 22, 0.3);
}

/* GRID GENERIQUE */
.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* CARTES & GALLERIE */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.card h3 {
  margin-top: 0;
}

.gallery-item {
  margin: 0;
}

.placeholder-img {
  height: 250px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563; 
  font-size: 0.85rem;
  font-weight: 500;
}

.gallery-item figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* PILL LIST */
.pill-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.8rem;
}

/* AVIS */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  border-left: 3px solid var(--accent);
}

.testimonial-text {
  margin: 0 0 0.75rem;
}

.testimonial-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* CONTACT */
.contact-inner {
  align-items: stretch;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
}

.contact-info li + li {
  margin-top: 0.4rem;
}

.contact-info a {
  color: #f97316;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form-row label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.form-row input,
.form-row textarea {
  border-radius: 8px;
  border: 1px solid #4b5563;
  padding: 0.55rem 0.7rem;
  background: #020617;
  color: #f9fafb;
  font-family: inherit;
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid #f97316;
  outline-offset: 1px;
}

/* FOOTER */
.footer {
  background: #020617;
  color: #9ca3af;
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-links a:hover {
  color: #f97316;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    margin-bottom: 8rem;
  }

  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 4rem;
  }

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-inner {
    gap: 2.2rem;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}