/* ============================================
   MODOP Déconstruction — style.css
   Dark charcoal #2d2d2d | Safety orange #ea580c | Concrete gray #e5e5e0
   ============================================ */

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

:root {
  --charcoal: #2d2d2d;
  --orange: #ea580c;
  --orange-dark: #c44a09;
  --gray: #e5e5e0;
  --gray-mid: #9a9a94;
  --white: #ffffff;
  --black: #111111;
  --section-bg: #f4f4f2;
  --font-head: 'Oswald', 'Impact', Arial Narrow, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 20px rgba(0,0,0,0.18);
  --transition: 0.28s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--charcoal); background: var(--white); line-height: 1.7; }

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---- HEADER ---- */
header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-wrap img { height: 52px; width: auto; }

nav ul { list-style: none; display: flex; gap: 4px; }
nav ul li a {
  display: block;
  padding: 10px 16px;
  color: var(--gray);
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}

.nav-toggle { display: none; background: none; border: 2px solid var(--orange); color: var(--orange); padding: 8px 12px; cursor: pointer; font-size: 1.1rem; border-radius: var(--radius); }

/* ---- VIDEO HERO ---- */
.video-hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.88);
  z-index: 1;
}
.video-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 860px;
}
.video-hero .hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.video-hero .hero-content .hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--gray);
  margin-bottom: 36px;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ---- STANDARD PAGE HERO (CSS bg) ---- */
.page-hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  background: var(--charcoal);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234,88,12,0.15) 0%, rgba(45,45,45,0.9) 100%);
}
.page-hero .page-hero-inner { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.page-hero p { color: var(--gray); font-size: 1.1rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); text-decoration: none; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); text-decoration: none; transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--charcoal); }
.btn-white:hover { background: var(--gray); color: var(--charcoal); text-decoration: none; transform: translateY(-2px); }

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--section-bg); }
.section-dark { background: var(--charcoal); color: var(--gray); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-tag {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-subtitle { color: var(--gray-mid); font-size: 1.05rem; max-width: 640px; font-weight: 400; text-transform: none; font-family: var(--font-body); }

/* ---- 2-COL GRID ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
.col-text h2 { margin-bottom: 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.col-text p { margin-bottom: 16px; color: #444; line-height: 1.8; }
.col-text .btn { margin-top: 8px; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white);
  border: 1px solid #e0e0da;
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .icon { font-size: 2.4rem; margin-bottom: 18px; display: block; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--charcoal); }
.service-card p { color: #555; font-size: 0.95rem; }

/* ---- BANNER (CSS BG) ---- */
.banner-section {
  position: relative;
  padding: 100px 24px;
  text-align: center;
  background-image: url('/images/chantier-aerien.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.88);
}
.banner-section .banner-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.banner-section h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 18px; }
.banner-section p { color: var(--gray); font-size: 1.05rem; margin-bottom: 32px; }

/* ---- STATS ---- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; text-align: center; }
.stat-item .stat-num { font-family: var(--font-head); font-size: 3rem; color: var(--orange); font-weight: 700; line-height: 1; }
.stat-item .stat-label { color: var(--gray-mid); font-size: 0.88rem; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.section-dark .stat-item .stat-label { color: var(--gray); }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #e8e8e4;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 210px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-body .post-meta { font-size: 0.8rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 12px; }
.blog-card-body h3 a { color: var(--charcoal); }
.blog-card-body h3 a:hover { color: var(--orange); text-decoration: none; }
.blog-card-body p { font-size: 0.9rem; color: #555; }

/* ---- ARTICLE ---- */
.article-wrap { max-width: 820px; margin: 0 auto; }
.article-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; }
.article-meta { font-size: 0.82rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.article-body h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--charcoal); }
.article-body h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--charcoal); }
.article-body p { margin-bottom: 20px; color: #3a3a3a; line-height: 1.85; }
.article-body ul, .article-body ol { margin: 0 0 20px 28px; }
.article-body li { margin-bottom: 8px; color: #3a3a3a; }
.article-body img { width: 100%; border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow); }
.article-body a { color: var(--orange); font-weight: 600; }
.article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  background: var(--section-bg);
  margin: 28px 0;
  font-style: italic;
  color: #444;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---- BREADCRUMB ---- */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: var(--gray-mid); margin-bottom: 8px; }
.breadcrumb a { color: var(--orange); }
.breadcrumb span { margin: 0 8px; }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-form { background: var(--white); }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.06em; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0da;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: #fafafa;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--orange);
  outline: none;
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-info p { color: #555; margin-bottom: 12px; }
.info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.info-item .info-icon { font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }

/* ---- SITEMAP ---- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.sitemap-col h3 { font-size: 1rem; margin-bottom: 16px; color: var(--orange); border-bottom: 2px solid var(--orange); padding-bottom: 8px; }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 8px; }
.sitemap-col ul li a { color: var(--charcoal); font-size: 0.92rem; }
.sitemap-col ul li a:hover { color: var(--orange); }

/* ---- 404 ---- */
.error-page { text-align: center; padding: 120px 24px; }
.error-page .error-code { font-family: var(--font-head); font-size: 9rem; color: var(--orange); line-height: 1; }
.error-page h1 { font-size: 2.2rem; margin: 16px 0; }
.error-page p { color: #555; font-size: 1.1rem; margin-bottom: 36px; }

/* ---- FOOTER ---- */
footer {
  background: #1a1a1a;
  color: var(--gray);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 48px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.9rem; color: #aaa; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--orange); }

/* ---- CTA STRIP ---- */
.cta-strip { background: var(--orange); padding: 56px 24px; text-align: center; }
.cta-strip h2 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.88); font-size: 1.05rem; margin-bottom: 28px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { gap: 36px; }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse { direction: ltr; }
  .two-col img { height: 260px; }
  .contact-grid { grid-template-columns: 1fr; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--charcoal); padding: 16px; border-top: 2px solid var(--orange); }
  nav ul.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .video-hero { min-height: 75vh; }
  .banner-section { background-attachment: scroll; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .header-inner { height: 62px; }
  .logo-wrap img { height: 42px; }
  .btn { padding: 12px 22px; font-size: 0.88rem; }
  .section { padding: 56px 0; }
}
