/*
Theme Name: CRIT-Construction
Description: Thème WordPress pour CRIT-Construction — BTP Edmonton Alberta
Version: 2.0
Author: CRIT-Construction
Text Domain: crit-construction
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', Arial, sans-serif; color: #2C2C2C; background: #fff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --yellow: #F5A623;
  --yellow-dark: #d4891a;
  --dark: #2C2C2C;
  --dark2: #3d3d3d;
  --white: #fff;
  --gray: #f4f4f0;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --t: all 0.25s ease;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: #2C2C2C;
}
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p  { color: #6b7280; margin-bottom: .9rem; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 72px 0; }
.section-alt { background: #f4f4f0; }
.section-dark { background: #2C2C2C; }
.center { text-align: center; }

.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.divider {
  width: 56px; height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-top: .75rem;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ===== GRID ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700; font-size: .9rem;
  transition: var(--t);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-yellow  { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-dark    { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark2); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; }

/* ===== CARD ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; }

/* ===== ICON BOX ===== */
.icon-box {
  width: 52px; height: 52px;
  background: rgba(245,166,35,.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.icon-box svg { width: 26px; height: 26px; stroke: var(--yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-circle {
  width: 60px; height: 60px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
}
.icon-circle svg { width: 26px; height: 26px; stroke: var(--dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== HEADER ===== */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(44,44,44,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900; font-size: 1.35rem;
  color: var(--white); letter-spacing: .5px;
}
.site-logo .dash { color: var(--yellow); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: .45rem .7rem;
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.65);
  border-radius: 6px;
  transition: var(--t);
}
.main-nav a:hover,
.main-nav a.active { color: var(--yellow); }

.header-right { display: flex; align-items: center; gap: .75rem; }
.header-quote { display: none; }

.hamburger {
  display: none; background: none; border: none;
  color: var(--white); padding: 6px;
}
.hamburger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Mobile nav */
#mobile-nav {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .75rem 0;
}
#mobile-nav.open { display: block; }
#mobile-nav a {
  display: block; padding: .7rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem; font-weight: 600;
  transition: var(--t);
}
#mobile-nav a:hover { color: var(--yellow); }
#mobile-nav .mobile-cta { margin: .75rem 1.5rem 0; display: block; text-align: center; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-quote { display: none !important; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  margin-top: 68px;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(44,44,44,.88) 0%, rgba(44,44,44,.5) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content h1 { color: var(--white); margin-bottom: 1rem; }
.hero-content h1 .accent { color: var(--yellow); display: block; }
.hero-content p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative; height: 320px;
  display: flex; align-items: center;
  margin-top: 68px; overflow: hidden;
}
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(44,44,44,.68); }
.page-hero-text { position: relative; z-index: 2; }
.page-hero-text h1 { color: var(--white); }
.page-hero-text p { color: rgba(255,255,255,.75); margin-top: .5rem; font-size: 1.05rem; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-val {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--yellow);
  line-height: 1; margin-bottom: .4rem;
}
.stat-lbl { color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 500; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ===== PROJECT CARD ===== */
.proj-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: var(--t); }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-img { position: relative; padding-top: 56.25%; overflow: hidden; }
.proj-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj-card:hover .proj-img img { transform: scale(1.05); }
.proj-body { padding: 1.25rem; }
.proj-cat { font-size: .7rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; }
.proj-body h3 { margin: .25rem 0; font-size: 1rem; }
.proj-meta { font-size: .82rem; color: var(--muted); }

/* ===== NEWS CARD ===== */
.news-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: var(--t); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-img { aspect-ratio: 16/9; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 1.4rem; }
.news-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); background: rgba(245,166,35,.1); padding: 3px 10px; border-radius: 99px; }
.news-date { font-size: .78rem; color: var(--muted); }
.news-body h2 { font-size: 1rem; margin: .5rem 0 .6rem; line-height: 1.4; }
.news-body p { font-size: .88rem; }
.btn-text { background: none; border: none; color: var(--yellow); font-weight: 700; font-size: .85rem; padding: 0; transition: var(--t); }
.btn-text:hover { text-decoration: underline; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--yellow); padding: 72px 0; text-align: center; }
.cta-banner h2 { color: var(--dark); margin-bottom: .9rem; }
.cta-banner p { color: rgba(44,44,44,.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2rem; }

/* ===== PARTNERS ===== */
.partners { padding: 48px 0; border-top: 1px solid var(--border); }
.partners-lbl { text-align: center; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); margin-bottom: 2rem; }
.partners-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; }
.partner { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 1.1rem; color: rgba(44,44,44,.2); transition: var(--t); }
.partner:hover { color: var(--dark); }

/* ===== SERVICE DETAIL (Nos Métiers) ===== */
.service-row { display: flex; gap: 3rem; align-items: center; margin-bottom: 5rem; }
.service-row.rev { flex-direction: row-reverse; }
.service-row-img { width: 48%; flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; }
.service-row-img img { width: 100%; height: 300px; object-fit: cover; }
.service-row-txt { width: 52%; }
.service-row-txt h2 { margin-bottom: .6rem; }
.service-row-list { margin-top: 1.2rem; }
.service-row-list li { display: flex; align-items: center; gap: .75rem; font-size: .93rem; color: var(--dark); padding: .3rem 0; }
.service-row-list li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }
@media (max-width: 768px) {
  .service-row, .service-row.rev { flex-direction: column; }
  .service-row-img, .service-row-txt { width: 100%; }
}

/* ===== MACHINE CARD ===== */
.machine-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--white); transition: var(--t); }
.machine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.machine-img { aspect-ratio: 1; overflow: hidden; }
.machine-img img { width: 100%; height: 100%; object-fit: cover; }
.machine-body { padding: 1rem 1.25rem; }
.machine-body h3 { font-size: .88rem; margin-bottom: .25rem; }
.machine-body p  { font-size: .78rem; }

/* ===== TIMELINE ===== */
.timeline { max-width: 680px; margin: 0 auto; }
.tl-item { display: flex; gap: 1.5rem; }
.tl-left { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: .72rem; color: var(--dark); flex-shrink: 0; }
.tl-line { width: 2px; flex: 1; background: var(--border); margin-top: 6px; }
.tl-body { padding-bottom: 2.5rem; }
.tl-body h3 { font-size: 1rem; margin-bottom: .25rem; }
.tl-body p  { font-size: .88rem; }

/* ===== VALUE / BENEFIT CARD ===== */
.val-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; text-align: center; background: var(--white); transition: var(--t); }
.val-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.val-card h3 { margin-bottom: .5rem; }

/* ===== TEAM CARD ===== */
.team-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; background: var(--white); transition: var(--t); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.team-avatar span { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--yellow); }
.team-card h3 { font-size: 1rem; margin-bottom: .25rem; }

/* ===== JOB CARD ===== */
.job-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--white); transition: var(--t); }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.job-head h3 { font-size: 1rem; }
.job-badge { font-size: .72rem; font-weight: 700; color: var(--yellow); background: rgba(245,166,35,.1); padding: 3px 10px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }
.job-loc { display: flex; align-items: center; gap: .4rem; font-size: .83rem; color: var(--muted); margin-bottom: .75rem; }
.job-loc svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; }

/* ===== CERT BADGE ===== */
.cert { border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem 1.2rem; font-size: .83rem; font-weight: 600; background: var(--white); }

/* ===== FILTER (Réalisations) ===== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { padding: .45rem 1.2rem; border-radius: 99px; border: none; font-size: .83rem; font-weight: 600; background: var(--gray); color: var(--muted); transition: var(--t); }
.filter-btn.active { background: var(--yellow); color: var(--dark); }
.filter-btn:hover:not(.active) { background: rgba(245,166,35,.2); }

/* ===== FORMS ===== */
.form-grid { display: grid; gap: 1rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: .93rem; color: var(--dark);
  background: var(--white); transition: var(--t); outline: none;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field label { display: block; font-size: .83rem; font-weight: 600; color: var(--dark); margin-bottom: .4rem; }

/* ===== CONTACT INFO ===== */
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.contact-icon { width: 44px; height: 44px; background: rgba(245,166,35,.12); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 19px; height: 19px; stroke: var(--yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-lbl { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: .82rem; margin-bottom: .2rem; }
.contact-val { font-size: .88rem; color: var(--muted); }
.emergency { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.2); border-radius: var(--radius); padding: 1rem; display: flex; gap: .75rem; margin-top: 1.5rem; }
.emergency svg { width: 19px; height: 19px; stroke: #dc2626; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.emergency-lbl { font-weight: 700; font-size: .83rem; margin-bottom: .2rem; }
.emergency-val { font-size: .83rem; color: var(--muted); }

/* ===== MAP ===== */
.map-wrap { height: 400px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== ALERT ===== */
.alert { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: .9rem; }
.alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #166534; font-weight: 600; }
.alert-error   { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.2); color: #dc2626; }

/* ===== FOOTER ===== */
#colophon { background: var(--dark); color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 3rem; padding: 72px 0 48px; }
.footer-brand p { font-size: .83rem; line-height: 1.7; margin-bottom: 1.4rem; }
.footer-logo { font-family: 'Montserrat', Arial, sans-serif; font-weight: 900; font-size: 1.25rem; color: var(--white); margin-bottom: 1rem; display: block; }
.footer-logo .dash { color: var(--yellow); }
.socials { display: flex; gap: .6rem; }
.social { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: var(--t); }
.social:hover { background: var(--yellow); }
.social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.7); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social:hover svg { stroke: var(--dark); }
.footer-col h4 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 800; font-size: .95rem; color: var(--white); margin-bottom: 1.1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.5); transition: var(--t); }
.footer-links a:hover { color: var(--yellow); }
.footer-contacts li { display: flex; gap: .65rem; font-size: .83rem; margin-bottom: .8rem; align-items: flex-start; }
.footer-contacts li svg { width: 16px; height: 16px; stroke: var(--yellow); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .78rem; }
.footer-bottom a { color: rgba(255,255,255,.35); transition: var(--t); }
.footer-bottom a:hover { color: var(--yellow); }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px)  { .footer-grid { grid-template-columns: 1fr; } }

/* ===== BACK TO TOP ===== */
#btt { position: fixed; bottom: 1.75rem; right: 1.75rem; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); border: none; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--t); z-index: 998; }
#btt.show { opacity: 1; visibility: visible; }
#btt svg { width: 18px; height: 18px; stroke: var(--dark); fill: none; stroke-width: 2.5; }

/* ===== 404 ===== */
.not-found-wrap { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.not-found-wrap .big { font-size: 6rem; color: var(--yellow); font-family: 'Montserrat', Arial, sans-serif; font-weight: 900; line-height: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: 52px 0; }
  .hero { min-height: 85vh; }
  .page-hero { height: 240px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
