﻿:root {
  --primary: #0f172a;
  --primary-dark: #050816;
  --accent: #d9a24b;
  --accent-soft: #f2d8a8;
  --text: #e8edf4;
  --muted: #9da9b7;
  --bg: #060b14;
  --surface: #101725;
  --border: rgba(217, 162, 75, 0.18);
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 162, 75, 0.15), transparent 30%),
    linear-gradient(135deg, #08101a 0%, var(--bg) 100%);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 162, 75, 0.16);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.nav-links a {
  color: #dfe7f2;
  font-weight: 700;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(217, 162, 75, 0.22);
  color: white;
}
.menu-toggle { display: none; }

.hero {
  padding: 6rem 0 5rem;
  color: white;
}
.hero-home {
  background:
    linear-gradient(135deg, rgba(11, 23, 36, 0.95) 0%, rgba(20, 43, 61, 0.8) 100%),
    url('images/toiture-tuiles-hero.jpg') center/cover;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.7rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-copy p { font-size: 1.04rem; color: rgba(255,255,255,0.86); margin-bottom: 1.35rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--primary-dark); box-shadow: 0 12px 30px rgba(216, 180, 106, 0.25); }
.btn-secondary { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.28); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.hero-badges span {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 0.92rem;
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-card {
  background: rgba(16, 23, 37, 0.92);
  color: var(--text);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 162, 75, 0.16);
}
.hero-card h3 { margin-top: 0; color: white; }
.hero-card ul { padding-left: 1rem; color: var(--muted); }
.hero-card li { margin-bottom: 0.6rem; }

.trust-bar {
  background: var(--primary-dark);
  color: white;
  padding: 1rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.trust-grid div {
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.trust-grid div:last-child { border-right: none; }
.trust-grid strong { display: block; font-size: 1.1rem; }
.trust-grid span { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

.section { padding: 4.5rem 0; }
.hero-page {
  background: linear-gradient(135deg, rgba(11, 23, 36, 0.94) 0%, rgba(20, 43, 61, 0.84) 100%), url('images/toiture-tuiles-hero.jpg') center/cover;
}
.section-alt { background: rgba(8, 12, 24, 0.8); }
.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}
.section-heading h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  color: white;
}
.section-heading p { margin: 0; color: var(--muted); }

.services-grid, .project-grid, .testimonial-grid {
  display: grid;
  gap: 1.25rem;
}
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card, .project-card, .testimonial-card {
  background: linear-gradient(145deg, rgba(16, 23, 37, 0.95), rgba(9, 14, 24, 0.95));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover, .project-card:hover, .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px rgba(11, 23, 36, 0.14);
}
.service-card h3, .project-card h3 { margin-top: 0; color: white; }
.service-card p, .project-card p, .testimonial-card p { color: var(--muted); margin-bottom: 0; }

.image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.image-gallery.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 250px;
  box-shadow: var(--shadow);
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.image-card:hover img {
  transform: scale(1.12);
  filter: brightness(1.02);
}
.image-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 23, 36, 0.7) 100%);
}
.image-card .overlay span {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 22px 44px rgba(11, 23, 36, 0.16);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split-media img {
  border-radius: 30px;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.feature-list { padding-left: 1rem; color: var(--muted); }
.feature-list li { margin-bottom: 0.7rem; }

.project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { padding: 0; overflow: hidden; }
.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.project-card .content { padding: 1.1rem 1.2rem 1.25rem; }

.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonial-card { background: linear-gradient(145deg, rgba(16, 23, 37, 0.95), rgba(9, 14, 24, 0.95)); }
.testimonial-card strong { color: var(--accent-soft); display: block; margin-top: 0.8rem; }

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  background: linear-gradient(135deg, rgba(16, 23, 37, 0.95), rgba(8, 12, 24, 0.95));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.contact-copy h2 { margin: 0 0 0.75rem; color: white; }
.contact-copy p { color: var(--muted); }
.info-list { display: grid; gap: 0.85rem; margin-top: 1rem; }
.info-item { background: rgba(8, 12, 24, 0.8); padding: 0.95rem 1rem; border-radius: 16px; border: 1px solid var(--border); }
.info-item strong { color: white; }
.form-card { background: rgba(8, 12, 24, 0.8); border: 1px solid var(--border); border-radius: 24px; padding: 1.3rem; }
form { display: grid; gap: 0.8rem; }
label { font-weight: 700; color: white; }
input, textarea, select {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(217, 162, 75, 0.18);
  border-radius: 14px;
  font: inherit;
  background: rgba(255,255,255,0.05);
  color: white;
}
textarea { min-height: 120px; resize: vertical; }
button[type="submit"] { border: none; cursor: pointer; }

footer {
  background: var(--primary-dark);
  color: white;
  padding: 1.5rem 0;
}
.footer-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: white;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.75s ease, filter 0.75s ease;
}
.gallery-item:hover img {
  transform: scale(1.14);
  filter: brightness(1.04) contrast(1.04);
}
.gallery-item .content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 23, 36, 0.8) 100%);
  color: white;
}
.gallery-item .content h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.gallery-item .content p { margin: 0; color: rgba(255,255,255,0.9); font-size: 0.95rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-card, .service-card, .project-card, .testimonial-card, .form-card, .info-item {
  animation: floatIn 0.8s ease both;
}

@media (max-width: 900px) {
  .hero-grid, .split, .contact-box { grid-template-columns: 1fr; }
  .services-grid, .project-grid, .testimonial-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .menu-toggle { display: inline-block; background: none; border: none; font-size: 1.5rem; color: var(--primary-dark); }
  .nav-links {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.8rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 3rem; }
  .services-grid, .project-grid, .testimonial-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero-badges { gap: 0.5rem; }
  .section-heading h2 { font-size: 1.7rem; }
  .split-media img { min-height: 280px; }
}

