/*
Theme Name: Construction Roger Mercier
Theme URI: https://constructionrm.ca
Description: Thème WordPress sur mesure pour Construction Roger Mercier Inc. — Entrepreneur général en construction et rénovation, Sherbrooke et Estrie. Site multi-pages responsive (Accueil, À propos, Services, Réalisations, Contact).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crm-theme
*/

/* ============================================
   DESIGN SYSTEM — Palette Charcoal & Muted Gold
   ============================================ */

:root {
  /* Colors */
  --crm-gold: #996600;
  --crm-gold-light: #B37A1A;
  --crm-gold-dark: #7A5200;
  --crm-charcoal: #1a1a1a;
  --crm-charcoal-light: #2a2a2a;
  --crm-foreground: #1C1917;
  --crm-muted: #78716C;
  --crm-border: #E7E5E4;
  --crm-bg: #FAFAF9;
  --crm-bg-alt: #F5F5F4;
  --crm-white: #FFFFFF;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 8rem);
  --container-px: clamp(1rem, 3vw, 1.5rem);
  --container-max: 1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--crm-foreground);
  background-color: var(--crm-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--crm-foreground);
}

::selection {
  background-color: rgba(153, 102, 0, 0.2);
}

/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--crm-gold);
  color: var(--crm-white);
  border-color: var(--crm-gold);
}
.btn-primary:hover {
  background: var(--crm-gold-dark);
  border-color: var(--crm-gold-dark);
  transform: translateX(2px);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
}
.btn-outline:hover {
  background: var(--crm-foreground);
  color: var(--crm-white);
  border-color: var(--crm-foreground);
}

.btn-outline-white {
  background: transparent;
  color: var(--crm-white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--crm-white);
  color: var(--crm-foreground);
  border-color: var(--crm-white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--crm-gold);
  border-color: var(--crm-gold);
}
.btn-outline-gold:hover {
  background: var(--crm-gold);
  color: var(--crm-white);
  border-color: var(--crm-gold);
}

.btn-white {
  background: var(--crm-white);
  color: var(--crm-foreground);
  border-color: var(--crm-white);
}
.btn-white:hover {
  background: var(--crm-gold);
  color: var(--crm-white);
  border-color: var(--crm-gold);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
}

/* ============================================
   TOP BAR
   ============================================ */

.topbar {
  background: var(--crm-foreground);
  color: var(--crm-white);
  padding: 0.75rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.topbar a:hover {
  color: var(--crm-gold);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar__contact {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.topbar__contact a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--crm-gold);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.topbar__info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar__info span {
  opacity: 0.7;
}
.topbar__hours {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.topbar__separator {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  vertical-align: middle;
}
.topbar__socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.topbar__socials a {
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.topbar__socials a:hover {
  color: var(--crm-gold);
}
.topbar__socials a::before {
  display: none;
}

@media (max-width: 991px) {
  .topbar { display: none; }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--crm-white);
  transition: all 0.4s ease;
  padding: 1.25rem 0;
}
.site-header.scrolled {
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s;
}
.site-logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.main-nav a {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(28, 25, 23, 0.7);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--crm-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--crm-gold);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--crm-foreground);
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 992px) {
  .header__cta { display: block; }
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 200;
    text-align: center;
    overflow-y: auto;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }
  .mobile-toggle {
    display: block;
    z-index: 201;
  }
}

/* Mobile nav extras (CTA, socials, phone — only inside mobile menu) */
.mobile-nav-extra {
  display: none;
}
@media (max-width: 991px) {
  .mobile-nav-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--crm-border);
  }
  .mobile-nav-socials {
    display: flex;
    gap: 1rem;
  }
  .mobile-nav-socials a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--crm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crm-muted);
    font-size: 1rem !important;
    padding: 0 !important;
  }
  .mobile-nav-socials a::after { display: none !important; }
  .mobile-nav-socials a:hover {
    background: var(--crm-gold);
    border-color: var(--crm-gold);
    color: var(--crm-white);
  }
  .mobile-nav-phone {
    font-family: var(--font-display);
    font-size: 1.1rem;
  }
  .mobile-nav-phone a {
    color: var(--crm-gold) !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
  }
  .mobile-nav-phone a::after { display: none !important; }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--crm-charcoal);
  color: var(--crm-white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero:hover .hero__bg {
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent 40%, rgba(0,0,0,0.4));
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  border-left: 2px solid rgba(153, 102, 0, 0.8);
  padding: 1.5rem 0 1.5rem 2rem;
  backdrop-filter: blur(2px);
  background: rgba(0,0,0,0.1);
}
.hero__tag {
  display: block;
  color: var(--crm-gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--crm-white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
}
.hero__desc {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 540px;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0.6;
  animation: pulse 2s infinite;
}
.hero__scroll span {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, white, transparent);
  margin: 0 auto;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.3; }
}

/* ============================================
   ABOUT / PHILOSOPHY SECTION
   ============================================ */

.about-section {
  padding: var(--section-py) 0;
  background: var(--crm-white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.about__tag {
  color: var(--crm-gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}

.about__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 2rem;
  line-height: 1.15;
}
.about__title em {
  color: var(--crm-muted);
  font-style: italic;
}

.about__text {
  color: var(--crm-muted);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.about__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}
.about__features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: rgba(28, 25, 23, 0.8);
}
.about__features li .icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(153, 102, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crm-gold);
  flex-shrink: 0;
  transition: all 0.3s;
}
.about__features li:hover .icon-circle {
  background: var(--crm-gold);
  color: white;
}

.about__link {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.about__link .line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s;
}
.about__link:hover .line {
  width: 64px;
}
.about__link:hover {
  color: var(--crm-gold);
}

.about__image-wrap {
  position: relative;
}
.about__image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__image-deco {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 50%;
  height: 50%;
  border: 1px solid rgba(153, 102, 0, 0.2);
  z-index: 0;
}
.about__stat {
  position: absolute;
  bottom: 2rem;
  left: -2.5rem;
  background: var(--crm-white);
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border-left: 4px solid var(--crm-gold);
  z-index: 2;
}
.about__stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}
.about__stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--crm-muted);
}

@media (max-width: 767px) {
  .about__stat { left: 0; bottom: -1rem; }
  .about__image-deco { display: none; }
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services-section {
  padding: var(--section-py) 0;
  background: var(--crm-bg-alt);
}
.services__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 4rem;
}
.services__tag {
  color: var(--crm-gold);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}
.services__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}
.services__divider {
  display: none;
  flex: 1;
  height: 1px;
  background: var(--crm-border);
  margin: 0 3rem;
  align-self: center;
}
@media (min-width: 768px) {
  .services__divider { display: block; }
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--crm-border);
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--crm-white);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  border-bottom: 1px solid var(--crm-border);
}
@media (min-width: 768px) {
  .service-card {
    border-right: 1px solid var(--crm-border);
    border-bottom: none;
  }
  .service-card:nth-child(2n) { border-right: none; }
}
@media (min-width: 1024px) {
  .service-card:nth-child(2n) { border-right: 1px solid var(--crm-border); }
  .service-card:last-child { border-right: none; }
}

.service-card:hover {
  background: var(--crm-white);
}
.service-card__icon {
  color: var(--crm-gold);
  opacity: 0.8;
  margin-bottom: 2rem;
  transition: opacity 0.3s;
}
.service-card:hover .service-card__icon {
  opacity: 1;
}
.service-card__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}
.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.service-card:hover .service-card__title {
  transform: translateX(0.5rem);
}
.service-card__desc {
  color: var(--crm-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  opacity: 0.6;
  transition: opacity 0.5s;
}
.service-card:hover .service-card__desc {
  opacity: 1;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--crm-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}
.service-card:hover::after {
  transform: scaleX(1);
}

/* ============================================
   PROCESS / HOW WE WORK
   ============================================ */

.process-section {
  padding: var(--section-py) 0;
  background: var(--crm-white);
}
.process__title {
  text-align: center;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 4rem;
}
.process__title span {
  color: var(--crm-gold);
}

.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .process__grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  text-align: center;
  position: relative;
}
.process-step__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(28, 25, 23, 0.04);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: color 0.3s;
  user-select: none;
}
.process-step:hover .process-step__number {
  color: rgba(153, 102, 0, 0.1);
}
.process-step__title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.process-step__desc {
  font-size: 0.85rem;
  color: var(--crm-muted);
}

/* ============================================
   PROJECTS / PORTFOLIO
   ============================================ */

.projects-section {
  padding: 0;
}
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
}
@media (min-width: 768px) {
  .projects__grid { grid-template-columns: 1fr 1fr; }
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s;
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  transition: background 0.5s;
}
.project-card:hover .project-card__overlay {
  background: rgba(0,0,0,0.2);
}
.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3rem;
  color: var(--crm-white);
  width: 100%;
}
.project-card__category {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: block;
}
.project-card__title {
  font-size: 1.75rem;
  color: var(--crm-white);
  margin-bottom: 1rem;
}
.project-card__line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
}

.projects__cta {
  background: var(--crm-foreground);
  color: var(--crm-white);
  padding: 4rem 0;
  text-align: center;
}
.projects__cta p {
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* ============================================
   TESTIMONIAL SECTION
   ============================================ */

.testimonial-section {
  padding: var(--section-py) 0;
  background: var(--crm-white);
  text-align: center;
}
.testimonial__quote-mark {
  color: var(--crm-gold);
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--crm-foreground);
}
.testimonial__author {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.testimonial__role {
  color: var(--crm-muted);
  font-size: 0.75rem;
}

/* ============================================
   CTA / CONTACT SECTION
   ============================================ */

.cta-section {
  padding: var(--section-py) 0;
  background: var(--crm-charcoal);
  color: var(--crm-white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
}
.cta-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
.cta-section__content {
  position: relative;
  z-index: 2;
}
.cta-section__tag {
  display: block;
  color: var(--crm-gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  color: var(--crm-white);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.cta-section__phone {
  text-align: left;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.cta-section__phone-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 0.25rem;
}
.cta-section__phone-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--crm-white);
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.contact-form-section {
  padding: var(--section-py) 0;
  background: var(--crm-white);
}
.contact-form-section h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s;
  margin-bottom: 0.5rem;
}
.contact-info__item:hover {
  background: var(--crm-bg-alt);
}
.contact-info__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(153, 102, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crm-gold);
  flex-shrink: 0;
  transition: all 0.3s;
}
.contact-info__item:hover .contact-info__icon {
  background: var(--crm-gold);
  color: var(--crm-white);
}
.contact-info__label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.contact-info__value {
  color: var(--crm-muted);
}
.contact-info__value a {
  color: var(--crm-muted);
}
.contact-info__value a:hover {
  color: var(--crm-gold);
}

.map-container {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0.5rem;
  margin-top: 2rem;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
  transition: filter 0.5s;
}
.map-container:hover iframe {
  filter: grayscale(0);
}

/* WPForms Override Styles */
.wpforms-container .wpforms-field-label {
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: var(--crm-muted) !important;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container textarea {
  border: none !important;
  border-bottom: 1px solid var(--crm-border) !important;
  border-radius: 0 !important;
  padding: 0.75rem 0 !important;
  background: transparent !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.3s !important;
}
.wpforms-container input:focus,
.wpforms-container textarea:focus {
  border-bottom-color: var(--crm-gold) !important;
  box-shadow: none !important;
}
.wpforms-container .wpforms-submit {
  background: var(--crm-gold) !important;
  border: none !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-size: 0.75rem !important;
  padding: 1rem 2rem !important;
  border-radius: 0 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
}
.wpforms-container .wpforms-submit:hover {
  background: var(--crm-gold-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(153, 102, 0, 0.3) !important;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--crm-charcoal);
  color: var(--crm-white);
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 992px) {
  .footer__grid--4col { grid-template-columns: 2fr 1fr 1.2fr 1.5fr; }
}

.footer__brand p {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 0.875rem;
  font-weight: 300;
  max-width: 360px;
  margin-top: 1.5rem;
}
.footer__logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}
.footer__nav {
  list-style: none;
}
.footer__nav li {
  margin-bottom: 0.75rem;
}
.footer__nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}
.footer__nav a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}
.footer__nav a:hover {
  color: var(--crm-gold);
}

.footer__contact-list {
  list-style: none;
}
.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}
.footer__contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--crm-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer__contact-list a {
  color: rgba(255,255,255,0.6);
}
.footer__contact-list a:hover {
  color: var(--crm-white);
}

/* Social Icons */
.footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.footer__social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.footer__social-icon:hover {
  background: var(--crm-gold);
  border-color: var(--crm-gold);
  color: var(--crm-white);
}

/* Une question ? box */
.footer__cta-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.footer__question-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 1.5rem;
}
.footer__question-title {
  font-family: var(--font-display);
  color: var(--crm-gold);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.footer__question-box p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer__question-link {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--crm-white);
  transition: color 0.3s;
}
.footer__question-link:hover {
  color: var(--crm-gold);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  gap: 1rem;
}
.footer__bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer__bottom a:hover {
  color: var(--crm-white);
}
.footer__legal {
  display: flex;
  gap: 2rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-page {
  padding: var(--section-py) 0;
  background: var(--crm-white);
}
.legal-page__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--crm-border);
}
.legal-page__header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.legal-page__content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--crm-muted);
  line-height: 1.9;
}
.legal-page__content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--crm-foreground);
}
.legal-page__content p {
  margin-bottom: 1rem;
}
.legal-page__content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.legal-page__content li {
  margin-bottom: 0.5rem;
}

/* ============================================
   WORDPRESS DEFAULTS (Admin bar, etc.)
   ============================================ */

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ============================================
   PAGE HEADERS (multi-page)
   ============================================ */

.page-header {
  padding: 6rem 0 5rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.page-header__desc {
  font-size: 1.1rem;
  color: var(--crm-muted);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}
.page-header--dark {
  background: var(--crm-foreground);
  color: var(--crm-white);
}
.page-header--dark .page-header__desc { color: rgba(255,255,255,0.6); }
.page-header--gold {
  background: var(--crm-gold);
  color: var(--crm-white);
}
.page-header--gold .page-header__desc { color: rgba(255,255,255,0.9); }
.page-header--muted {
  background: var(--crm-bg-alt);
}
.text-gold { color: var(--crm-gold); }

/* ============================================
   VALUES SECTION (About page)
   ============================================ */

.values-section {
  padding: var(--section-py) 0;
  background: var(--crm-bg-alt);
}
.values__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: center;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 767px) {
  .values__grid { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--crm-white);
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.value-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.value-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(153, 102, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crm-gold);
  margin: 0 auto 1.5rem;
  transition: all 0.3s;
}
.value-card:hover .value-card__icon {
  background: var(--crm-gold);
  color: var(--crm-white);
}
.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.value-card p {
  color: var(--crm-muted);
  font-size: 0.9rem;
}

/* ============================================
   SERVICE DETAIL (Services page)
   ============================================ */

.services-detail-section {
  padding: var(--section-py) 0;
  background: var(--crm-white);
}
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
@media (max-width: 767px) {
  .service-detail { grid-template-columns: 1fr; }
}
.service-detail--reverse .service-detail__content { order: 2; }
.service-detail--reverse .service-detail__image { order: 1; }
@media (max-width: 767px) {
  .service-detail--reverse .service-detail__content { order: 1; }
  .service-detail--reverse .service-detail__image { order: 2; }
}

.service-detail__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(153, 102, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crm-gold);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.service-detail h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.service-detail p {
  color: var(--crm-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.service-detail__list {
  list-style: none;
  margin-bottom: 2rem;
}
.service-detail__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--crm-foreground);
}
.service-detail__list li svg { color: var(--crm-gold); flex-shrink: 0; }
.service-detail__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--crm-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  transition: all 0.3s;
}
.service-detail__link:hover { transform: translateX(0.5rem); }

.service-detail__image {
  position: relative;
}
.service-detail__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}
.service-detail__image-deco {
  position: absolute;
  inset: -1rem;
  background: rgba(153, 102, 0, 0.05);
  border-radius: 0.5rem;
  transform: rotate(3deg);
  z-index: 0;
  transition: transform 0.5s;
}
.service-detail:hover .service-detail__image-deco { transform: rotate(6deg); }

/* ============================================
   PROJECTS GALLERY (Réalisations page)
   ============================================ */

.filter-bar {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 0;
}
.filter-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.filter-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--crm-border);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover { background: var(--crm-bg-alt); }
.filter-btn--active {
  background: var(--crm-gold);
  color: var(--crm-white);
  border-color: var(--crm-gold);
}
.filter-bar__count {
  font-size: 0.8rem;
  color: var(--crm-muted);
}

.projects-gallery-section {
  padding: var(--section-py) 0;
  background: var(--crm-white);
}
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 991px) {
  .projects-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .projects-gallery { grid-template-columns: 1fr; }
}

.project-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.3s;
}
.project-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.project-gallery-card.is-hidden { display: none; }

.project-gallery-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.project-gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
  filter: brightness(0.95);
}
.project-gallery-card:hover .project-gallery-card__image img {
  transform: scale(1.1);
  filter: brightness(1);
}
.project-gallery-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  z-index: 2;
}

.project-gallery-card__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--crm-white);
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s;
}
.project-gallery-card:hover .project-gallery-card__hover {
  opacity: 1;
  transform: translateY(0);
}
.project-gallery-card__type {
  color: var(--crm-gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.project-gallery-card__hover h3 {
  font-size: 1.3rem;
  color: var(--crm-white);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.project-gallery-card__hover p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.project-gallery-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CONTACT PAGE GRID
   ============================================ */

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
@media (max-width: 991px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}

/* Project card link on homepage */
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--crm-white);
  transition: color 0.3s;
}
.project-card__link:hover { color: var(--crm-gold); }

/* ============================================
   GLOBAL RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet: 768px - 991px */
@media (max-width: 991px) {
  .about__grid,
  .service-detail,
  .service-detail--reverse,
  .contact-page-grid { grid-template-columns: 1fr; }

  .service-detail--reverse .service-detail__content { order: 1; }
  .service-detail--reverse .service-detail__image { order: 2; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid .service-card:nth-child(2n) { border-right: none; }
  .services__divider { display: none; }
  .services__header { flex-direction: column; align-items: flex-start; }

  .footer__grid--4col { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .projects__grid { grid-template-columns: 1fr; }

  .process__grid { grid-template-columns: repeat(2, 1fr); }

  .about__image-deco { display: none; }
  .about__stat { left: 0; }

  .hero__content { padding-left: 1.5rem; }
  .hero__title { font-size: clamp(2rem, 5vw, 3.5rem); }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  .about__grid { gap: 2rem; }

  .services__grid { grid-template-columns: 1fr; }
  .services__grid .service-card { border-right: none; border-bottom: 1px solid var(--crm-border); }
  .services__grid .service-card:last-child { border-bottom: none; }

  .process__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .projects-gallery { grid-template-columns: 1fr; }

  .values__grid { grid-template-columns: 1fr; }

  .footer__grid--4col { grid-template-columns: 1fr; gap: 2rem; }
  .footer__cta-block { order: -1; }

  .hero { min-height: 90vh; }
  .hero__content { padding: 1rem 0 1rem 1.25rem; }
  .hero__desc { font-size: 0.95rem; }
  .hero__buttons { flex-direction: column; gap: 0.75rem; }
  .hero__buttons .btn { width: 100%; text-align: center; justify-content: center; }
  .hero__scroll { display: none; }

  .cta-section__buttons { flex-direction: column; align-items: center; }
  .cta-section__phone { border-left: none; padding-left: 0; text-align: center; }

  .page-header { padding: 4rem 0 3rem; }
  .page-header h1 { font-size: 1.75rem; }

  .service-detail__image-deco { display: none; }

  .contact-info__item { padding: 0.5rem; }

  .filter-bar { top: 54px; }
  .filter-bar__inner { flex-direction: column; align-items: flex-start; }

  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }

  .site-logo img { height: 36px; }
}

/* Small phones: < 480px */
@media (max-width: 479px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero__title { font-size: 2rem; }
  .process__grid { grid-template-columns: 1fr; }
  .filter-btns { gap: 0.25rem; }
  .fbtn, .filter-btn { padding: 0.35rem 0.75rem; font-size: 0.6rem; }
}

/* ============================================
   CORRECTIONS — Mars 2026
   ============================================ */

/* Text color utilities */
.text-white { color: var(--crm-white) !important; }

/* Page header dark — ensure all h1 text is white */
.page-header--dark h1 { color: var(--crm-white); }
.page-header--dark h1 .text-gold { color: var(--crm-gold); }

/* Page header gold — NOS in dark, SERVICES in white */
.page-header--gold h1 { color: var(--crm-charcoal); }
.page-header--gold h1 .text-white { color: var(--crm-white) !important; }

/* Hero content — align LEFT like AnyGen */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: clamp(2rem, 8vw, 10rem);
  padding-right: 2rem;
}

/* About page — gold frame TOP LEFT of photo */
.about__image-deco--gold {
  top: -1.5rem;
  left: -1.5rem;
  bottom: auto;
  width: 45%;
  height: 45%;
  border: 2px solid var(--crm-gold);
}

/* About image — zoom on hover */
.about__image img {
  transition: transform 0.7s ease;
}
.about__image:hover img {
  transform: scale(1.05);
}

/* Ensure mailto links work properly */
.contact-info__value a[href^="mailto:"],
.footer__contact-list a[href^="mailto:"] {
  cursor: pointer;
  text-decoration: none;
}
.contact-info__value a[href^="mailto:"]:hover,
.footer__contact-list a[href^="mailto:"]:hover {
  color: var(--crm-gold);
  text-decoration: underline;
}

/* Footer credit — Option A: centered line below */
.footer__credit {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__credit a {
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer__credit a:hover {
  color: var(--crm-gold);
}
