/* ============================================
   TOITURES SOLUTION — Shared styles
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Helvetica Neue', Arial, sans-serif; color: #111; background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- LANGUAGE TOGGLE VISIBILITY --- */
html:not([data-lang="en"]) .lang-en { display: none !important; }
html[data-lang="en"] .lang-fr { display: none !important; }

/* --- TOP EMERGENCY BAR --- */
.emergency-bar {
  background: #c8102e;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 20px;
}
.emergency-bar a { text-decoration: underline; font-weight: 800; }

/* --- HEADER --- */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  gap: 20px;
}
.logo-wrap { display: flex; align-items: center; }
.logo-wrap img { height: 64px; width: auto; }
nav ul { list-style: none; display: flex; gap: 26px; }
nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0a2540;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}
nav a:hover,
nav a.active { border-color: #c8102e; }

.top-cta {
  display: flex; gap: 14px; align-items: center;
}
.top-cta .phone {
  font-size: 15px; font-weight: 800; color: #0a2540;
}
.top-cta .phone small {
  display: block; font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px;
  color: #888;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switch {
  display: inline-flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.lang-switch button {
  background: #fff;
  color: #0a2540;
  border: none;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button.is-active {
  background: #0a2540;
  color: #fff;
}
.lang-switch button:not(.is-active):hover {
  background: #f4f4f4;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 640px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero.hero-home {
  background:
    linear-gradient(rgba(10,25,45,0.62), rgba(10,25,45,0.72)),
    url('../photos/02-hero-toiture-bardeaux.jpeg') center/cover no-repeat;
}
.hero.hero-services {
  background:
    linear-gradient(rgba(10,25,45,0.62), rgba(10,25,45,0.72)),
    url('../photos/09-detail-membrane-torche.jpeg') center/cover no-repeat;
}
.hero.hero-projects {
  background:
    linear-gradient(rgba(10,25,45,0.62), rgba(10,25,45,0.72)),
    url('../photos/05-industriel-fini-blanc.jpeg') center/cover no-repeat;
}
.hero.hero-about {
  background:
    linear-gradient(rgba(10,25,45,0.62), rgba(10,25,45,0.72)),
    url('../photos/11-camion-branding.jpeg') center/cover no-repeat;
}
.hero.hero-contact {
  background:
    linear-gradient(rgba(10,25,45,0.70), rgba(10,25,45,0.78)),
    url('../photos/07-residentiel-bardeaux-aerien.jpeg') center/cover no-repeat;
}
.hero-inner { max-width: 1100px; }
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.12;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero .sub {
  font-size: 17px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-weight: 500;
  opacity: 0.95;
}
.hero .trust-strip {
  display: inline-flex; gap: 28px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 34px;
  font-size: 12px; letter-spacing: 2px; font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero .trust-strip span::before {
  content: '✓ '; color: #c8102e; font-weight: 800; margin-right: 4px;
}

/* Secondary hero used on non-home pages */
.hero-page {
  height: 360px;
}
.hero-page h1 { font-size: 44px; margin-bottom: 12px; }
.hero-page .sub { margin-bottom: 0; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  background: #c8102e;
  color: #fff;
  padding: 16px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn:hover { background: #a10c24; }
.btn.white {
  background: #fff; color: #0a2540;
}
.btn.white:hover { background: #eee; }

/* --- TAGLINE BAND --- */
.tagline {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 22px 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.tagline .accent { color: #c8102e; }

/* --- SERVICE BLOCKS (compact, used on home) --- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.service {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(0,0,0,0.85));
  transition: background 0.3s;
}
.service:hover::before { background: linear-gradient(rgba(200,16,46,0.3), rgba(0,0,0,0.9)); }
.service-inner { position: relative; z-index: 2; }
.service h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service p {
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
  opacity: 0.95;
}
.service a.more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid #c8102e;
  padding-bottom: 3px;
}
.s1 { background-image: linear-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.25)), url('../photos/07-residentiel-bardeaux-aerien.jpeg'); }
.s2 { background-image: linear-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.25)), url('../photos/09-detail-membrane-torche.jpeg'); }
.s3 { background-image: linear-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.25)), url('../photos/05-industriel-fini-blanc.jpeg'); }
.s4 { background-image: linear-gradient(rgba(0,0,0,0.25),rgba(0,0,0,0.25)), url('../photos/10-installation-membrane.jpeg'); }

/* --- SERVICE DETAIL BLOCKS (used on services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail .media {
  background-size: cover;
  background-position: center;
}
.service-detail .copy {
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.service-detail:nth-child(odd) .copy { background: #f7f7f7; }
.service-detail .eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: #c8102e; font-weight: 800; margin-bottom: 14px;
}
.service-detail h2 {
  font-size: 34px; font-weight: 800;
  color: #0a2540;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.service-detail p {
  font-size: 15px; line-height: 1.75; color: #444;
  margin-bottom: 14px;
}
.service-detail ul {
  list-style: none; margin: 10px 0 22px 0;
}
.service-detail li {
  font-size: 14px; color: #333; padding: 6px 0;
  padding-left: 22px; position: relative;
}
.service-detail li::before {
  content: '✓'; position: absolute; left: 0;
  color: #c8102e; font-weight: 800;
}

/* --- ABOUT --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 100px 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}
.about h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
  text-transform: uppercase;
  color: #0a2540;
  margin-bottom: 24px;
}
.about h2 .accent { color: #c8102e; }
.about p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}
.about-img {
  height: 420px;
  background: url('../photos/11-camion-branding.jpeg') center/cover;
}

/* --- STATS --- */
.stats {
  background: #0a2540;
  color: #fff;
  padding: 70px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-size: 56px;
  font-weight: 800;
  color: #c8102e;
  line-height: 1;
  margin-bottom: 10px;
}
.stat .lbl {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* --- PROJECTS --- */
.projects { padding: 100px 40px 60px; text-align: center; }
.projects h2 {
  font-size: 34px; font-weight: 800; color: #0a2540;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}
.projects .sub {
  color: #666; margin-bottom: 50px;
  letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 1500px;
  margin: 0 auto;
}
.project-grid.gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.project-grid.gallery .project-card { height: 320px; }
.project-card {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}
.project-card::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  background: rgba(10,25,45,0.80);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s;
  padding: 0 20px; text-align: center;
}
.project-card:hover::after { opacity: 1; }
html[data-lang="en"] .project-card::after { content: attr(data-label-en); }
.p1 { background-image: url('../photos/01-residentiel-maison-pierre.jpeg'); }
.p2 { background-image: url('../photos/03-commercial-membrane.jpeg'); }
.p3 { background-image: url('../photos/04-industriel-rouleaux.jpeg'); }
.p4 { background-image: url('../photos/05-industriel-fini-blanc.jpeg'); }
.p5 { background-image: url('../photos/07-residentiel-bardeaux-aerien.jpeg'); }
.p6 { background-image: url('../photos/08-residentiel-membrane-bp.jpeg'); }
.p7 { background-image: url('../photos/10-installation-membrane.jpeg'); }
.p8 { background-image: url('../photos/06-commercial-fini.jpeg'); }

/* --- WHY US --- */
.why {
  background: #f5f5f5;
  padding: 90px 40px;
  text-align: center;
}
.why h2 {
  font-size: 34px; font-weight: 800; color: #0a2540;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 50px;
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1200px; margin: 0 auto;
}
.why-card {
  background: #fff; padding: 34px 24px;
  border-top: 3px solid #c8102e;
  text-align: left;
}
.why-card h3 {
  font-size: 16px; color: #0a2540; margin-bottom: 12px;
  font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.why-card p { font-size: 14px; line-height: 1.7; color: #555; }

/* --- CONTACT / CTA --- */
.contact {
  background: #0a2540;
  color: #fff;
  padding: 90px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.contact h2 {
  font-size: 36px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px; line-height: 1.15;
}
.contact h2 .accent { color: #c8102e; }
.contact p { font-size: 15px; line-height: 1.75; opacity: 0.9; margin-bottom: 26px; }
.contact-info {
  display: grid; gap: 18px;
}
.contact-info .row {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  align-items: start;
}
.contact-info .icon {
  width: 32px; height: 32px;
  background: #c8102e;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  border-radius: 4px;
}
.contact-info .label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 2px;
}
.contact-info .value { font-size: 15px; font-weight: 600; }
.contact-info .value a:hover { color: #c8102e; }

/* --- CONTACT FORM --- */
.contact-form {
  background: #fff;
  color: #111;
  padding: 40px 36px;
  border-radius: 6px;
  display: grid;
  gap: 14px;
}
.contact-form h3 {
  font-size: 18px; color: #0a2540; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px;
}
.contact-form label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; color: #555;
  display: block; margin-bottom: 4px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: #fafafa;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #c8102e;
  background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form button[type=submit] {
  margin-top: 6px;
  justify-self: start;
}

/* --- SUPPLIERS --- */
.suppliers { padding: 70px 40px; text-align: center; background: #fff; }
.suppliers h2 {
  font-size: 22px; color: #0a2540; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px;
}
.supplier-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 50px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto;
  opacity: 0.75;
}
.supplier-logos div {
  font-family: Georgia, serif;
  font-size: 18px; font-weight: 700;
  color: #555;
  padding: 14px 26px;
  border: 2px solid #ddd;
  border-radius: 4px;
}

/* --- FOOTER --- */
footer {
  background: #081c33;
  color: #fff;
  padding: 60px 40px 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px; max-width: 1400px; margin: 0 auto 40px;
}
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px; color: #c8102e;
}
.footer-col p, .footer-col li, .footer-col a {
  font-size: 14px; line-height: 1.95; color: #cfd8e3;
}
.footer-col ul { list-style: none; }
.footer-col a:hover { color: #fff; }
.footer-logo img {
  height: 64px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1) opacity(0.95);
}
.footer-bottom {
  border-top: 1px solid #1a3558;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #8a9bb3;
  letter-spacing: 1px;
}

/* --- CTA STRIP (used on inner pages) --- */
.cta-strip {
  background: #c8102e;
  color: #fff;
  padding: 50px 40px;
  text-align: center;
}
.cta-strip h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-strip .btn.white { color: #c8102e; }

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
  header { flex-wrap: wrap; padding: 14px 20px; gap: 14px; }
  nav ul { flex-wrap: wrap; gap: 14px; }
  .hero h1 { font-size: 34px; }
  .hero .trust-strip { font-size: 11px; gap: 16px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .service-detail .media { height: 280px; }
  .service-detail .copy { padding: 40px 24px; }
  .about, .stats, .project-grid, .project-grid.gallery, .why-grid, .footer-grid, .contact {
    grid-template-columns: 1fr;
  }
  .about { padding: 50px 20px; gap: 30px; }
  .about-img { height: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 40px 20px; }
  .stat .num { font-size: 42px; }
  .contact-form .grid2 { grid-template-columns: 1fr; }
  .contact { padding: 50px 20px; }
  .projects { padding: 60px 20px; }
  .why { padding: 60px 20px; }
  .tagline { font-size: 14px; letter-spacing: 2px; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .hero { height: 520px; }
  .hero-page { height: 320px; }
}
