/* --- VARIABLES & RESET --- */
:root {
  /* Palette Modernisée */
  --primary-color: #E9531E;     /* Ocre Bois (Chaud et pro) */
  --primary-hover: #a83810;
  --secondary-color: #1d1d1d;   /* Bleu Nuit (BTP Premium) */
  --text-main: #1d1d1d;         /* Gris foncé lisible */
  --text-light: #64748B;        /* Gris moyen */
  --bg-light: #F8FAFC;          /* Blanc cassé très léger */
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  
  /* Layout */
  --max-width: 1280px;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --font-main: 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILS --- */
.base-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.white-bg { background-color: var(--bg-white); }
.light-bg { background-color: var(--bg-light); }
.primary-bg { background-color: var(--primary-color); color: white; }

/* Tags & Titles */
.section-tag {
  display: inline-block;
  background: rgba(198, 142, 23, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.highlight { color: var(--primary-color); }

/* --- BUTTONS --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  gap: 10px;
}

.button.primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}
.button.primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.button.secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}
.button.secondary:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.text-link {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.text-link:hover { border-bottom-color: var(--primary-color); }

/* --- HEADER --- */
header {
  height: 90px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo { height: 60px; width: auto; }

.desktop-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--secondary-color);
}
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

.header-cta { font-size: 0.95rem; padding: 10px 20px; }

/* Mobile Trigger */
.mobile-nav-checkbox, .mobile-nav-container, .mobile-nav-open-button { display: none; }

/* --- HERO SECTION --- */
.hero-section {
  padding-top: 60px;
  padding-bottom: 100px;
  overflow: hidden;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-layout.reverse .text-content { order: 2; }
.split-layout.reverse .image-content { order: 1; }

.hero-subtitle {
  max-width: 500px;
  font-size: 1.2rem;
}

.hero-buttons { display: flex; gap: 16px; margin-top: 32px; }

.tags-row { display: flex; gap: 12px; margin-bottom: 24px; }
.badge {
  background: white;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper.rounded { border-radius: var(--radius-lg); }
.image-wrapper.blob-shape {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob 10s infinite alternate;
}
@keyframes blob {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.image-wrapper img { width: 100%; height: auto; object-fit: cover; }

/* --- SERVICES (Grid) --- */
.center-layout { text-align: center; }
.center-layout p { max-width: 700px; margin: 0 auto 48px auto; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.service-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.icon-box {
  width: 56px;
  height: 56px;
  background: rgba(198, 142, 23, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-link {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
}
.card-link:hover { text-decoration: underline; }

/* --- GALLERY --- */
.gallery-section { padding: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 350px;
}
.gallery-item { overflow: hidden; height: 100%; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- VALUES --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.value-icon {
  color: var(--secondary-color);
  margin-bottom: 16px;
}

/* --- PARTNERS --- */
.partners-container { text-align: center; }
.partners-title { color: rgba(255,255,255,0.8); margin-bottom: 32px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.partners-logos {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.partners-logos img {
  width: 250px;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

/* --- CONTACT --- */
.contact-layout { align-items: start; gap: 64px; }

.contact-form-wrapper {
  flex: 1;
}

.input-group { display: flex; gap: 20px; }
.input-container { width: 100%; margin-bottom: 20px; }
label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--secondary-color); font-size: 0.9rem; }
input, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-light);
  transition: 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(198, 142, 23, 0.1);
}
textarea { min-height: 150px; resize: vertical; }

.disclaimer { font-size: 0.8rem; text-align: center; margin-top: 16px; color: var(--text-light); opacity: 0.7; }

.contact-info-wrapper {
  flex: 0 0 400px;
  position: relative;
}
.info-card {
  background: var(--secondary-color);
  color: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.info-card h3 { color: white; margin-bottom: 32px; }
.info-list li { display: flex; gap: 16px; margin-bottom: 24px; }
.info-list p { color: rgba(255,255,255,0.8); margin: 0; font-size: 1rem; }
.socials { margin-top: 32px; display: flex; gap: 16px; }
.social-icon { color: white; opacity: 0.7; font-weight: 600; }
.social-icon:hover { opacity: 1; text-decoration: underline; }

.map-image {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.5; /* Just decorative here */
}

/* --- FOOTER --- */
.footer { background: var(--secondary-color); color: white; padding-top: 80px; }
.footer-content { display: flex; justify-content: space-between; padding-bottom: 60px; }
.footer-logo { height: 50px; margin-bottom: 20px; } 
.footer p { color: rgba(255,255,255,0.6); }

.footer-links { display: flex; gap: 64px; }
.link-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.link-col a { display: block; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.link-col a:hover { color: var(--primary-color); }

.footer-bottom { background: rgba(0,0,0,0.2); padding: 24px 0; text-align: center; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  .split-layout { grid-template-columns: 1fr; gap: 48px; }
  .split-layout.reverse .text-content { order: 1; }
  .contact-info-wrapper { flex: auto; width: 100%; }
  .map-image { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); height: auto; }
  .gallery-item { height: 250px; }
  
  /* Mobile Nav Logic */
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav-open-button { display: block; cursor: pointer; }
  .mobile-nav-container {
    display: block;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: white; z-index: 2000;
    transform: translateX(100%); transition: 0.3s ease;
  }
  .mobile-nav-checkbox:checked ~ .mobile-nav-container { transform: translateX(0); }
  .mobile-nav { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 32px; }
  .mobile-nav-link { font-size: 1.5rem; font-weight: 700; color: var(--secondary-color); }
  .close-button-mobile-nav { position: absolute; top: 24px; right: 24px; cursor: pointer; }
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .partners-logos img { max-width: 45%; }
  .input-group { flex-direction: column; gap: 0; }
  .footer-content { flex-direction: column; gap: 48px; text-align: center; }
  .footer-links { justify-content: center; }
  .header-logo { height: 45px; }
}