/* ========================================
   3W Capital — styles autonomes
   ======================================== */

:root {
  --color-primary: #47b475;
  --color-primary-dark: #398f5d;
  --color-dark: #292929;
  --color-text: #666;
  --color-heading: #222;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --layout-max-width: 880px;
  --prose-max-width: 620px;
  --font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

::selection {
  background: rgba(71, 180, 117, 0.25);
  color: var(--color-heading);
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
  color: #666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout ---- */

.nav-container:empty {
  display: none;
}

.main-container {
  clear: both;
}

.container {
  position: relative;
  width: 100%;
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 24px;
  z-index: 3;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row > [class*="col-"] {
  padding: 0 15px;
  width: 100%;
}

@media (min-width: 768px) {
  .col-sm-6  { width: 50%; }
  .col-sm-8  { width: 66.666%; }
  .col-sm-12 { width: 100%; }
}

@media (min-width: 992px) {
  .col-md-7 { width: 58.333%; }
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-light);
  color: #292929;
  margin-bottom: 24px;
  margin-top: 0;
}

h1 { font-size: 56px; line-height: 1.15; }
h2 { font-size: 40px; line-height: 1.2; }
h3 { font-size: 32px; line-height: 1.25; }
h4 { font-size: 24px; line-height: 1.3; }
h5 { font-size: 15px; line-height: 1.5; font-weight: var(--font-weight-regular); }
h6 { font-size: 12px; line-height: 1.5; font-weight: var(--font-weight-medium); }

.uppercase {
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
}

h1.uppercase {
  letter-spacing: 17px;
  margin-right: -17px;
}

.hero-title {
  letter-spacing: 0;
  margin-right: 0;
  font-style: normal;
}

.hero-logo {
  display: inline-flex;
  align-items: flex-end;
  letter-spacing: 0;
  margin-right: 0.12em;
}

.hero-logo-three,
.hero-logo-w {
  font-weight: var(--font-weight-semibold);
  line-height: 0.88;
}

.hero-logo-three {
  transform: translateY(0.04em);
}

.hero-title-rest {
  letter-spacing: 17px;
  margin-right: -17px;
}

h5.uppercase {
  letter-spacing: 2px;
  margin-right: -2px;
}

.heading-display {
  font-size: 56px;
  line-height: 64px;
}

.bold  { font-weight: var(--font-weight-semibold) !important; }
.thin  { font-weight: var(--font-weight-light) !important; }

.mb0  { margin-bottom: 0 !important; }
.mb16 { margin-bottom: 16px; }
.mb32 { margin-bottom: 32px; }

@media (max-width: 767px) {
  h1, .h1, .heading-display {
    font-size: 32px;
    line-height: 1.15;
    font-weight: var(--font-weight-light);
  }

  h3 {
    font-size: 24px;
    line-height: 1.3;
  }
}

/* ---- Sections ---- */

section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.fullscreen {
  height: 100vh;
}

@media (max-width: 767px) {
  section {
    padding: 80px 0;
  }
}

/* ---- Background images ---- */

.background-image-holder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #292929;
  background-size: cover !important;
  background-position: 50% 50% !important;
}

.hero > .background-image-holder {
  background-image: url('../img/homeback.jpg');
  background-image: image-set(
    url('../img/homeback.webp') type('image/webp'),
    url('../img/homeback.jpg') type('image/jpeg')
  );
}

.mission > .background-image-holder {
  background-image: url('../img/montrealbw.jpg');
  background-image: image-set(
    url('../img/montrealbw.webp') type('image/webp'),
    url('../img/montrealbw.jpg') type('image/jpeg')
  );
}

.quotes > .background-image-holder {
  background-image: url('../img/intro1.jpg');
  background-image: image-set(
    url('../img/intro1.webp') type('image/webp'),
    url('../img/intro1.jpg') type('image/jpeg')
  );
}

.background-multiply .background-image-holder {
  background-color: #47b475 !important;
  background-blend-mode: multiply;
}

/* ---- Overlays ---- */

.overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41, 41, 41, 0.55) 0%, rgba(41, 41, 41, 0.25) 100%);
  z-index: 2;
}

.hero.overlay::before {
  background: linear-gradient(to right, rgba(41, 41, 41, 0.65) 0%, rgba(41, 41, 41, 0.2) 70%);
}

.bg-light.overlay::before {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 60%, rgba(255, 255, 255, 0.15) 100%);
}

.image-bg h1,
.image-bg h2,
.image-bg h3,
.image-bg h4,
.image-bg h5,
.image-bg h6 {
  color: #fff;
}

.image-bg p,
.image-bg span,
.image-bg li {
  color: #fff;
}

.image-bg.bg-light h1,
.image-bg.bg-light h2,
.image-bg.bg-light h3,
.image-bg.bg-light h4,
.image-bg.bg-light h5,
.image-bg.bg-light h6 {
  color: #222;
}

.image-bg.bg-light p,
.image-bg.bg-light span,
.image-bg.bg-light li {
  color: #777;
}

/* ---- Hero ---- */

.hero {
  padding: 0;
  display: flex;
  align-items: center;
}

.hero .container {
  width: 100%;
}

.hero .row {
  justify-content: center;
}

.hero .row > [class*="col-"] {
  width: 100%;
  max-width: var(--prose-max-width);
  text-align: center;
}

.hero-content {
  animation: fadeUp 0.9s var(--transition) both;
}

.hero-accent {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  margin: 20px auto 24px;
}

.hero-scroll {
  display: inline-flex;
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition);
  animation: scrollHint 2s ease-in-out infinite;
}

.hero-scroll:hover {
  color: var(--color-primary);
}

.hero-scroll-icon {
  width: 28px;
  height: 28px;
}

@keyframes scrollHint {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.image-bg h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* ---- Mission ---- */

.mission .row {
  justify-content: center;
}

.mission .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mission .mission-lead {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.5;
  font-weight: var(--font-weight-light);
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  max-width: var(--prose-max-width);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mission-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.5rem;
  padding: 0;
  max-width: var(--prose-max-width);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  list-style: none;
}

.mission-pillars li {
  flex: 1 1 0;
  min-width: 160px;
  padding: 0.75rem 1.75rem;
  font-size: clamp(0.7rem, 1.4vw, 0.8125rem);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.mission-pillars li:first-child,
.mission-pillars li:last-child {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.mission-pillars li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
  .mission-pillars {
    flex-direction: column;
    margin-top: 2rem;
    gap: 0;
  }

  .mission-pillars li {
    min-width: 0;
    padding: 0.85rem 0;
    text-align: center;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mission-pillars li:first-child {
    border-top: none;
    padding-top: 0;
  }
}

.mission .container {
  animation: fadeUp 0.9s 0.15s var(--transition) both;
}

/* ---- Citations ---- */

.quotes .row {
  justify-content: center;
}

.quotes .col-md-7,
.quotes .col-sm-8 {
  width: 100%;
  max-width: var(--prose-max-width);
}

.quotes .col-md-7 {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.quote-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
  border-left: 3px solid var(--color-primary);
  animation: fadeUp 0.9s var(--transition) both;
}

.quote-block:nth-child(2) {
  animation-delay: 0.15s;
}

.quote-block .icon {
  color: var(--color-primary);
  opacity: 0.85;
}

.image-bg.bg-light .quote-block .icon {
  color: var(--color-primary);
}

.image-bg.bg-light .quote-block h3 {
  line-height: 1.45;
  font-weight: var(--font-weight-light);
}

/* ---- Footer ---- */

.site-footer {
  padding: 28px 0;
  background: var(--color-dark);
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer .legal-entity {
  font-weight: var(--font-weight-regular);
  opacity: 0.8;
}

.site-footer .footer-rights::before {
  content: '·';
  margin: 0 0.45em;
  opacity: 0.55;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--color-primary);
}

/* ---- Animations ---- */

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

/* ---- Accessibilité & contenu sémantique caché ---- */

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

/* ---- Vertical alignment ---- */

.v-align-transform {
  position: relative;
  transform: translate3d(0, -50%, 0);
  top: 50%;
  z-index: 3;
}

/* ---- Parallax ---- */

.parallax > .background-image-holder {
  height: 100vh;
  top: -50vh;
}

/* Sans JS parallax : sections non plein écran utilisent un fond normal */
section:not(.fullscreen).parallax > .background-image-holder {
  top: 0 !important;
  height: 100% !important;
  background-attachment: scroll !important;
}

.parallax:first-child > .background-image-holder {
  top: 0;
}

.main-container > .parallax:first-of-type .background-image-holder,
.main-container > section:first-of-type + .parallax .background-image-holder {
  top: 0;
}

@media (max-width: 767px) {
  .parallax > .background-image-holder {
    top: 0 !important;
    transform: none !important;
  }
}

/* Parallax fixe désactivé — meilleures perfs de défilement */

/* ---- Icons (remplace Themify Icons) ---- */

.icon {
  display: inline-block;
  vertical-align: middle;
  color: #fff;
}

.icon-sm {
  width: 32px;
  height: 32px;
}

.image-bg.bg-light .icon {
  color: #292929;
}

@media (max-width: 767px) {
  .icon-sm {
    width: 18px;
    height: 18px;
  }
}

/* ---- Spacing utilities ---- */

.pt240 { padding-top: 240px; }
.pb240 { padding-bottom: 240px; }
.pt160 { padding-top: 160px; }
.pb160 { padding-bottom: 160px; }

@media (max-width: 767px) {
  .pt-xs-180 { padding-top: 180px; }
  .pb-xs-180 { padding-bottom: 180px; }
  .pt-xs-80  { padding-top: 80px; }
  .pb-xs-80  { padding-bottom: 80px; }

  .quotes .col-md-7 {
    gap: 36px;
  }

  .quote-block {
    padding-left: 16px;
  }

  h1.uppercase {
    letter-spacing: 8px;
    margin-right: -8px;
  }

  .hero-title-rest {
    letter-spacing: 8px;
    margin-right: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .mission .container,
  .quote-block {
    animation: none;
  }

  .hero-scroll {
    animation: none;
  }

  .parallax > .background-image-holder {
    background-attachment: scroll !important;
  }
}

/* ---- Langue ---- */

.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(41, 41, 41, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 4px;
}

.lang-switcher-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lang-switcher-btn:hover,
.lang-switcher-btn.is-active {
  color: #fff;
}

.lang-switcher-btn.is-active {
  background: rgba(71, 180, 117, 0.35);
}

/* ---- Consentement Loi 25 ---- */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 16px 20px;
  background: rgba(41, 41, 41, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent-banner p {
  flex: 1 1 280px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.consent-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.consent-link:hover {
  color: var(--color-primary);
}

.consent-accept {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--color-primary);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.consent-accept:hover {
  background: var(--color-primary-dark);
}

/* ---- Page légale ---- */

.legal-page {
  padding: 120px 0 80px;
  background: #fff;
}

.legal-page .container {
  max-width: 720px;
}

.legal-back {
  margin-bottom: 32px;
}

.legal-back a {
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.legal-back a:hover {
  color: var(--color-primary);
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 12px;
  color: #999;
  margin-bottom: 32px;
}

.legal-page section {
  padding: 0;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 12px;
}

.legal-page p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Footer ---- */

.site-footer .footer-links {
  margin-top: 12px;
}

.site-footer .footer-links a {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer .footer-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .lang-switcher {
    top: 12px;
    right: 12px;
  }

  .consent-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page {
    padding: 100px 0 60px;
  }
}
