*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: #133041;
  background-color: #f5f7fa;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(135deg, #8ad27a 0%, #6bb5ff 45%, #265dff 100%);
  color: #ffffff;
  display: flex;
  align-items: stretch;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.4)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  font-size: 0.78rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: #ffe38f;
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 2rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw + 1.2rem, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 32rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background-color 0.15s ease-out, color 0.15s ease-out,
    border-color 0.15s ease-out;
}

.btn-primary {
  background: #ffe38f;
  color: #133041;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-card {
  background-color: rgba(12, 33, 54, 0.92);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.hero-card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.hero-card li::before {
  content: '✓';
  display: inline-block;
  margin-right: 0.4rem;
  color: #8ad27a;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #e9f0f5;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  color: #5b6a75;
  font-size: 0.98rem;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.highlight-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a63d8;
}

.highlight-label {
  font-size: 0.85rem;
  color: #5b6a75;
}

.card {
  background-color: #ffffff;
  border-radius: 1.1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 35, 52, 0.12);
}

.about-card h3 {
  margin-bottom: 1rem;
}

.about-card ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.93rem;
}

.about-card li::before {
  content: '•';
  color: #1a63d8;
  font-weight: bold;
  display: inline-block;
  width: 0.9em;
  margin-left: -0.4em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(15, 35, 52, 0.18);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #5b6a75;
  margin-bottom: 0.7rem;
}

.service-card ul {
  font-size: 0.86rem;
  color: #344554;
  display: grid;
  gap: 0.35rem;
}

.service-card li::before {
  content: '▸';
  color: #1a63d8;
  margin-right: 0.3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  background-color: #ffffff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 35, 52, 0.12);
  display: flex;
  flex-direction: column;
}

.gallery-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.gallery-video-wrap {
  height: 180px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder {
  background: linear-gradient(135deg, #d0d9e3, #b2c1d2);
  position: relative;
}

.placeholder::after {
  content: 'Photo chantier';
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.gallery-info {
  padding: 1rem 1.25rem 1.25rem;
}

.gallery-info h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.gallery-info p {
  font-size: 0.88rem;
  color: #5b6a75;
}

.gallery-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #5b6a75;
  text-align: center;
}

.contact-list {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  display: grid;
  gap: 0.35rem;
}

.contact-form {
  margin-top: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.form-group label {
  font-weight: 500;
  color: #1a2731;
}

.form-group input,
.form-group textarea {
  border-radius: 0.75rem;
  border: 1px solid #ccd6e0;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out,
    background-color 0.15s ease-out;
  background-color: #f9fbfd;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1a63d8;
  box-shadow: 0 0 0 3px rgba(26, 99, 216, 0.15);
  background-color: #ffffff;
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  cursor: pointer;
}

.form-message {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #6c7c8a;
}

.footer {
  background-color: #0d1c29;
  color: #d0dde9;
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer-small {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-subtitle {
    display: none;
  }
}

