/*
Theme Name: Constructions Laforge
Theme URI: https://constructionslaforge.ca
Author: Constructions Laforge
Author URI: https://constructionslaforge.ca
Description: Thème professionnel pour entreprise de construction résidentielle au Québec. Design moderne noir, blanc et orange.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: constructions-laforge
Tags: construction, résidentiel, entrepreneur, québec, one-page
*/

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --noir: #0a0a0a;
  --noir-2: #141414;
  --noir-3: #1e1e1e;
  --blanc: #f5f2ed;
  --blanc-pur: #ffffff;
  --orange: #e8500a;
  --orange-clair: #ff6b2b;
  --orange-sombre: #c43d00;
  --gris: #8a8a8a;
  --gris-clair: #d0ccc6;
  --font-titre: 'Barlow Condensed', sans-serif;
  --font-corps: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--font-corps);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-clair); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ─── NAVIGATION ─── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 76px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,80,10,0.2);
  transition: background 0.3s;
}

#site-header.scrolled { background: rgba(10,10,10,0.98); }

.site-branding { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  width: 40px; height: 40px;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.site-name {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--blanc);
  text-transform: uppercase;
  line-height: 1.1;
}

.site-name span { color: var(--orange); }

.site-tagline {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gris);
  font-weight: 500;
  text-transform: uppercase;
}

#main-navigation { display: flex; align-items: center; }

#main-navigation ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

#main-navigation ul li a {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-clair);
}

#main-navigation ul li a:hover { color: var(--orange); }

#main-navigation ul li.menu-cta a {
  background: var(--orange);
  color: white !important;
  padding: 10px 22px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

#main-navigation ul li.menu-cta a:hover { background: var(--orange-clair); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--blanc);
  transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: zoomOut 12s ease-out forwards;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.85) 100%);
}

@keyframes zoomOut {
  from { transform: scale(1.05); }
  to   { transform: scale(1.0); }
}

.hero-badge {
  position: absolute;
  top: 110px; right: 48px;
  background: var(--orange);
  color: white;
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 20px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  animation: fadeDown 1s 0.5s both;
  z-index: 2;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 900px;
  animation: fadeUp 1s 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--orange);
}

.hero-eyebrow span {
  font-family: var(--font-titre);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--blanc);
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
  display: block;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(245,242,237,0.8);
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  bottom: 0; right: 0;
  display: flex;
  background: rgba(20,20,20,0.96);
  border-top: 3px solid var(--orange);
  animation: fadeUp 1s 0.8s both;
  z-index: 2;
}

.hero-stat {
  padding: 22px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.hero-stat:last-child { border-right: none; }

.hero-stat .num {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 36px;
  color: var(--orange);
  line-height: 1;
}

.hero-stat .label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gris);
  margin-top: 4px;
}

/* ─── BOUTONS ─── */
.btn-primary {
  background: var(--orange);
  color: white;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--orange-clair); transform: translateY(-2px); color: white; }

.btn-secondary {
  border: 2px solid rgba(245,242,237,0.4);
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ─── SECTIONS GÉNÉRALES ─── */
section, .section-wrap { padding: 100px 48px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-titre);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px; height: 2px;
  background: var(--orange);
}

h2, .section-title {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--blanc);
}

h2 span, .section-title span { color: var(--orange); }

h3 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blanc);
}

/* ─── BANNIÈRE RBQ ─── */
.rbq-banner {
  background: var(--orange);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.rbq-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

/* ─── SERVICES ─── */
#services { background: var(--noir-2); padding: 100px 48px; }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.services-desc {
  max-width: 420px;
  color: var(--gris);
  line-height: 1.7;
  font-size: 16px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.service-card {
  background: var(--noir-3);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--orange);
  transition: width 0.4s ease;
}

.service-card:hover { background: #252525; }
.service-card:hover::after { width: 100%; }

.service-num {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 72px;
  color: rgba(232,80,10,0.08);
  line-height: 1;
  position: absolute;
  top: 20px; right: 24px;
  pointer-events: none;
}

.service-icon {
  width: 52px; height: 52px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.service-icon svg { width: 26px; height: 26px; fill: white; }
.service-card p { color: var(--gris); line-height: 1.7; font-size: 15px; margin-top: 14px; }

/* ─── PROJETS ─── */
#projets { background: var(--noir); }

.projets-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.projet-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.projet-card.large { grid-column: span 2; aspect-ratio: auto; min-height: 400px; }

.projet-img {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  position: absolute; inset: 0;
}

.projet-card:hover .projet-img { transform: scale(1.06); }

.projet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: transform 0.3s;
}

.projet-tag {
  display: inline-block;
  background: var(--orange);
  font-family: var(--font-titre);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  margin-bottom: 10px;
  color: white;
}

.projet-info h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: white;
}

.projet-info p { font-size: 13px; color: rgba(245,242,237,0.65); }

/* ─── AVANTAGES ─── */
#avantages {
  background: var(--noir-2);
  position: relative;
  overflow: hidden;
}

.avantages-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.avantages-img { position: relative; }

.avantages-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.avantages-img-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--orange);
  padding: 28px 32px;
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: white;
}

.avantages-img-accent small {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

.avantage-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: flex-start;
  transition: padding-left 0.3s;
}

.avantage-item:hover { padding-left: 8px; }

.avantage-num {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 13px;
  color: var(--orange);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}

.avantage-content h4 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--blanc);
}

.avantage-content p { color: var(--gris); font-size: 15px; line-height: 1.65; }

/* ─── TÉMOIGNAGES ─── */
#temoignages { background: var(--noir); }
.temoignages-header { margin-bottom: 64px; }

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.temoignage-card {
  background: var(--noir-3);
  padding: 44px 36px;
  transition: background 0.3s;
}

.temoignage-card:hover { background: #222; }

.temoignage-quote {
  font-family: var(--font-titre);
  font-size: 80px;
  line-height: 0.8;
  color: var(--orange);
  font-weight: 900;
  margin-bottom: 20px;
  opacity: 0.6;
}

.stars { display: flex; gap: 4px; margin-bottom: 20px; }

.star {
  width: 16px; height: 16px;
  background: var(--orange);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}

.temoignage-card blockquote {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245,242,237,0.8);
  margin-bottom: 28px;
  font-style: italic;
}

.temoignage-author { display: flex; align-items: center; gap: 16px; }

.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--noir-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--blanc);
}

.author-ville { font-size: 13px; color: var(--gris); margin-top: 2px; }

/* ─── SOUMISSION / CONTACT ─── */
#soumission {
  background: var(--noir-2);
  position: relative;
  overflow: hidden;
}

#soumission::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--orange);
}

.soumission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.soumission-info p {
  color: var(--gris);
  line-height: 1.7;
  font-size: 16px;
  margin: 24px 0 40px;
  max-width: 420px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(232,80,10,0.15);
  border: 1px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; }

.contact-text strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blanc);
}

.contact-text span { font-size: 15px; color: var(--gris); }

/* ─── FORMULAIRE ─── */
.wpcf7-form, form.soumission-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

label {
  font-family: var(--font-titre);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  background: var(--noir-3);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(232,80,10,0.3);
  color: var(--blanc);
  padding: 14px 16px;
  font-family: var(--font-corps);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  border-bottom-color: var(--orange);
}

select option { background: var(--noir-3); color: var(--blanc); }
textarea { resize: vertical; min-height: 130px; }

/* ─── FOOTER ─── */
#site-footer {
  background: var(--noir);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-about p {
  color: var(--gris);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 20px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--blanc);
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--orange);
  margin-top: 8px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--gris);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--orange);
  font-size: 18px;
}

.footer-col ul li a:hover { color: var(--orange-clair); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { color: var(--gris); font-size: 13px; }
.footer-bottom span { color: var(--orange); }

.rbq-num {
  font-family: var(--font-titre);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--gris);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── PAGE INTÉRIEURE ─── */
.page-hero {
  padding: 160px 48px 80px;
  background: var(--noir-2);
  border-bottom: 2px solid var(--orange);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-titre);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 80px);
  text-transform: uppercase;
  color: var(--blanc);
  line-height: 1;
}

.page-hero h1 span { color: var(--orange); }

.page-content { padding: 80px 48px; max-width: 900px; margin: 0 auto; }
.page-content p { color: var(--gris); line-height: 1.8; margin-bottom: 20px; font-size: 16px; }
.page-content h2 { font-size: 32px; margin-bottom: 16px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #site-header { padding: 0 24px; }
  #main-navigation { display: none; }
  #main-navigation.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #0a0a0a;
    padding: 24px 24px 32px;
    z-index: 99;
    border-top: 2px solid var(--orange);
  }
  #main-navigation.open ul { flex-direction: column; gap: 20px; width: 100%; }
  .hamburger { display: flex; }

  section, .section-wrap { padding: 72px 24px; }
  #services { padding: 72px 24px; }
  .hero-content { padding: 0 24px; }
  .hero-badge { right: 24px; }
  .hero-stats { width: 100%; }
  .hero-stat { flex: 1; padding: 16px 12px; }

  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; }

  .projets-grid { grid-template-columns: 1fr 1fr; }
  .projet-card.large { grid-column: span 2; }

  .avantages-layout { grid-template-columns: 1fr; }
  .avantages-img { display: none; }

  .temoignages-grid { grid-template-columns: 1fr; }
  .soumission-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .rbq-banner { padding: 16px 24px; gap: 24px; }
}

@media (max-width: 600px) {
  .projets-grid { grid-template-columns: 1fr; }
  .projet-card.large { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
