/* ================================================================
   MOZ'L RÉNOV — Design System Premium
   Zéro dépendance externe — Compatible file:// protocol
   ================================================================ */

/* === VARIABLES === */
:root {
  --purple: #9D93C6;
  --purple-deep: #5C4D8A;
  --purple-light: #C4BEDD;
  --gold: #F7D25F;
  --gold-deep: #C9A227;
  --gold-light: #FBE89F;
  --cyan: #10BEE1;
  --cyan-deep: #0A7A91;
  --cyan-light: #7DDCEF;
  --mint: #AFDAC7;
  --mint-deep: #2D5A3D;
  --mint-light: #D5EDE2;
  --dark: #1A1A1A;
  --darker: #0F0F0F;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === FONT: LeagueGothic === */
@font-face {
  font-family: 'LeagueGothic';
  src: url('../fonts/LeagueGothic-Regular.ttf') format('truetype'),
       url('../fonts/LeagueGothic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; /* JS handles smooth scroll */ }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--darker); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* === LOADER === */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.15em; color: #bbb; margin-bottom: 16px; text-align: center; }
.loader-bar { width: 100px; height: 2px; background: #eee; border-radius: 1px; overflow: hidden; margin: 0 auto; }
.loader-bar-inner { height: 100%; width: 0%; background: linear-gradient(90deg, var(--purple), var(--cyan)); animation: loadBar 0.8s ease forwards; }
@keyframes loadBar { to { width: 100%; } }

/* === NAVIGATION === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.nav.nav-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--dark);
}
.nav-logo span { color: var(--cyan); }
.nav-logo-img {
  height: 38px; width: auto;
}
.nav-logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-link {
  font-size: 0.88rem; font-weight: bold; color: var(--gray-500);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--dark); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--cyan); transform: scaleX(0);
  transition: transform var(--transition-base); transform-origin: left;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 22px; border-radius: var(--radius-full);
  background: var(--cyan); color: var(--white);
  font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(16,190,225,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,190,225,0.35); }

/* Mobile nav */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
  cursor: pointer; z-index: 1001;
}
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--dark);
  transition: all var(--transition-base); border-radius: 2px;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  opacity: 0; visibility: hidden; transition: all var(--transition-base);
}
.nav-mobile.open { opacity: 1; visibility: visible; }
.nav-mobile a {
  font-size: 1.3rem; font-weight: bold; color: var(--dark);
  transition: color var(--transition-fast);
}
.nav-mobile a:hover { color: var(--cyan); }

/* === 6-BLOC GRID (HOMEPAGE ONLY) === */
#blocks-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  width: 100vw;
  height: 100vh;
  position: relative;
  z-index: 10;
}
.block {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 48px;
  overflow: hidden; cursor: pointer; text-decoration: none; color: inherit;
  transition: all var(--transition-slow);
  opacity: 0; transform: scale(0.96);
  animation: blockIn 0.6s ease forwards;
}
.block:nth-child(1) { animation-delay: 0.05s; }
.block:nth-child(2) { animation-delay: 0.1s; }
.block:nth-child(3) { animation-delay: 0.15s; }
.block:nth-child(4) { animation-delay: 0.2s; }
.block:nth-child(5) { animation-delay: 0.25s; }
.block:nth-child(6) { animation-delay: 0.3s; }
@keyframes blockIn { to { opacity: 1; transform: scale(1); } }

.block::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background var(--transition-slow); z-index: 1;
}
.block:hover::before { background: rgba(0,0,0,0.06); }
.block > * { position: relative; z-index: 2; }

.block::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 3;
}
.block:hover::after { transform: scaleX(1); }

.block-logo      { background: var(--white);  grid-column: 1; grid-row: 1; align-items: center; text-align: center; justify-content: center; }
.block-isolation  { background: var(--purple); grid-column: 2; grid-row: 1; }
.block-chauffage  { background: var(--gold);   grid-column: 1; grid-row: 2; }
.block-fenetres   { background: var(--cyan);   grid-column: 2; grid-row: 2; }
.block-aides      { background: var(--mint);   grid-column: 1; grid-row: 3; }
.block-contact    { background: #000;          grid-column: 2; grid-row: 3; color: var(--white); }

.block-title {
  font-family: 'LeagueGothic', 'Arial Narrow', Impact, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1; margin-bottom: 12px; opacity: 0.9;
}
.block-desc { font-size: 0.92rem; line-height: 1.6; opacity: 0.65; max-width: 300px; }
.block-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 100%; gap: 20px;
}
.block-content { flex: 1; min-width: 0; }
.block-img {
  flex: 0 0 auto; width: 40%; max-width: 200px; aspect-ratio: 4/3;
  border-radius: var(--radius-md); overflow: hidden;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.1);
}
.block-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.block-contact .block-img {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1);
}
.block-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  opacity: 0.5; transition: all 0.4s ease;
}
.block:hover .block-icon { opacity: 0.85; transform: scale(1.1); }
.block-arrow {
  position: absolute; bottom: 20px; right: 20px;
  width: 28px; height: 28px; opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 3;
}
.block:hover .block-arrow { opacity: 0.5; transform: translate(0, 0); }

.logo-text { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text span { color: var(--cyan); }
.logo-sub { font-size: 0.92rem; color: var(--gray-500); margin: 12px 0 20px; line-height: 1.5; }
.discover-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 500; color: var(--gray-400);
  cursor: pointer; transition: color var(--transition-base);
}
.discover-btn:hover { color: var(--cyan); }
.discover-arrow { width: 18px; height: 18px; animation: arrowBounce 2s ease-in-out infinite; }
@keyframes arrowBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* === PAGE HERO (Sub-pages) === */
.page-hero {
  padding: 160px 0 100px;
  background: var(--darker); color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(157,147,198,0.08), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(16,190,225,0.06), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
}
.page-hero-badge span { font-size: 0.82rem; color: rgba(255,255,255,0.55); font-weight: 500; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 20px; max-width: 700px;
}
.page-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 560px;
}

/* === DARK SECTIONS (main-content) === */
#main-content { background: var(--darker); color: var(--white); }
.section-dark { background: var(--darker); color: var(--white); }

.section { padding: 100px 0; position: relative; overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* === LIGHT SECTIONS (sub-pages) === */
.section-light { background: var(--white); color: var(--dark); }
.section-gray { background: var(--gray-50); color: var(--dark); }

/* === TYPOGRAPHY === */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan) 50%, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.section-badge-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.section-badge-text { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px;
}
.section-subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 560px; }
.section-subtitle-dark { font-size: 1.05rem; color: var(--gray-500); line-height: 1.7; max-width: 560px; }
.section-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.2); margin-bottom: 12px; }
.section-label-dark { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400); margin-bottom: 12px; }

/* === GLASS CARDS (dark bg) === */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); transition: all 0.4s ease;
}
.glass:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }

/* === LIGHT CARDS === */
.card-light {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-slow);
}
.card-light:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--gray-300); }

/* === REVEAL ANIMATIONS === */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }

/* === CARDS (dark bg) === */
.card {
  padding: 32px; border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* === FEATURE ITEMS === */
.feature-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item h4 { font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 0.84rem; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-2-cards { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* === STEPS === */
.step { display: flex; gap: 20px; padding-bottom: 36px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent); }
.step:last-child::before { display: none; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem; flex-shrink: 0; color: var(--white);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.6; }

/* Light steps (sub-pages) */
.step-light::before { background: linear-gradient(to bottom, var(--gray-200), transparent); }
.step-light .step-num-text { color: var(--dark); }
.step-light h3 { color: var(--dark); }
.step-light p { color: var(--gray-500); }

/* === TESTIMONIALS === */
.testimonial {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); padding: 28px; transition: all 0.4s ease;
}
.testimonial:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.testimonial-light {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px; transition: all 0.4s ease;
}
.testimonial-light:hover { border-color: var(--gray-300); box-shadow: var(--shadow-lg); }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 0.92rem; color: rgba(255,255,255,0.5); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testimonial-text-dark { font-size: 0.92rem; color: var(--gray-500); line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; color: var(--white); }
.testimonial-name { font-weight: 600; font-size: 0.88rem; }
.testimonial-loc { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.testimonial-loc-dark { font-size: 0.72rem; color: var(--gray-400); }
.star { width: 14px; height: 14px; fill: var(--gold); }

/* === FORMS === */
.form-input {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white); font-family: inherit; font-size: 0.92rem;
  transition: all var(--transition-base); outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(16,190,225,0.12); }
select.form-input { color: rgba(255,255,255,0.4); }
select.form-input option { background: #222; color: var(--white); }

/* Light form inputs */
.form-input-light {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-md);
  background: var(--gray-50); border: 1px solid var(--gray-200);
  color: var(--dark); font-family: inherit; font-size: 0.92rem;
  transition: all var(--transition-base); outline: none;
}
.form-input-light::placeholder { color: var(--gray-400); }
.form-input-light:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(16,190,225,0.12); background: var(--white); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border: none; border-radius: var(--radius-md);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition-base);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn:hover::after { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--cyan); color: var(--white); box-shadow: 0 4px 12px rgba(16,190,225,0.25); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(16,190,225,0.35); }
.btn-secondary { background: transparent; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--cyan); padding: 8px 0; }
.btn-ghost:hover { color: var(--cyan-deep); }
.btn-ghost::after { display: none; }

/* CTA button (opens modal) */
.cta-trigger { cursor: pointer; }

/* === MODAL POPUP === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 520px; position: relative;
  transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: var(--shadow-2xl);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 32px 32px 0; position: relative;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast); cursor: pointer; border: none;
}
.modal-close:hover { background: var(--gray-200); }
.modal-title { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.modal-subtitle { font-size: 0.88rem; color: var(--gray-500); }
.modal-body { padding: 24px 32px 32px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-form .btn-submit {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--white); width: 100%; padding: 16px;
  font-size: 1rem; font-weight: 600; border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: all var(--transition-base);
}
.modal-form .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,190,225,0.3); }
.modal-footer-text { text-align: center; font-size: 0.75rem; color: var(--gray-400); margin-top: 12px; }
.modal-success {
  text-align: center; padding: 40px 32px;
  display: none;
}
.modal-success.show { display: block; }
.modal-success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  display: flex; align-items: center; justify-content: center;
}
.modal-success h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.modal-success p { color: var(--gray-500); font-size: 0.92rem; }

/* Form validation */
.form-input-light.error { border-color: #EF4444; }
.form-error { font-size: 0.75rem; color: #EF4444; margin-top: -8px; display: none; }
.form-error.show { display: block; }

/* === MARQUEE === */
.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 30s linear infinite; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.marquee-item { font-size: 0.82rem; color: rgba(255,255,255,0.18); font-weight: 500; }

/* === PULSE === */
.pulse-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(16,190,225,0.5)} 70%{box-shadow:0 0 0 12px rgba(16,190,225,0)} 100%{box-shadow:0 0 0 0 rgba(16,190,225,0)} }
@keyframes ping { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.06)} }

/* === BACK TO TOP === */
#backToTop {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cyan); display: flex; align-items: center; justify-content: center;
  z-index: 50; opacity: 0; pointer-events: none;
  transition: all var(--transition-base); box-shadow: 0 8px 20px rgba(16,190,225,0.3);
  cursor: pointer; border: none;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-2px); }

/* === FOOTER === */
.footer { background: var(--darker); color: var(--white); border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 0 40px; }
.footer a { color: rgba(255,255,255,0.3); transition: color var(--transition-base); }
.footer a:hover { color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-heading { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-link { display: block; font-size: 0.85rem; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.12); }

/* === GALLERY (Réalisations) === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 4/3;
  background: var(--gray-100);
  transition: all var(--transition-slow); cursor: pointer;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px; opacity: 0; transition: opacity var(--transition-base);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay h3 { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.gallery-item-overlay p { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* === BREADCRUMB === */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.breadcrumb a { transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-separator { color: rgba(255,255,255,0.2); }

/* === FAQ ACCORDION === */
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden; transition: all var(--transition-base);
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-question {
  width: 100%; padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: 0.95rem; color: var(--dark);
  background: var(--white); transition: background var(--transition-fast);
  border: none; outline: none; text-align: left;
  font-family: inherit; line-height: 1.4;
}
.faq-question span { flex: 1; }
.faq-question:hover { background: var(--gray-50); }
.faq-arrow { width: 20px; min-width: 20px; height: 20px; transition: transform var(--transition-base); flex-shrink: 0; }
.faq-toggle { display: none; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.7; }

/* === STATS BAR === */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 40px; background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); margin-top: -60px; position: relative; z-index: 10;
}
.stats-bar-item { text-align: center; }
.stats-bar-item .stat-number { font-size: 2.2rem; font-weight: 800; color: var(--dark); }
.stats-bar-item .stat-label { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; }

/* === TAG / BADGE === */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500;
}

/* === FIXED CTA BUTTON === */
.fixed-cta {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 9990 !important;
  display: block !important;
  padding: 14px 36px;
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(16,190,225,0.4);
  transition: all var(--transition-base);
  white-space: nowrap;
}
.fixed-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,190,225,0.55);
  background: #0daacc;
}
.fixed-cta:active {
  transform: translateX(-50%) translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #blocks-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
  }
  .block-logo      { grid-column: 1; grid-row: 1; }
  .block-isolation  { grid-column: 1; grid-row: 2; }
  .block-chauffage  { grid-column: 1; grid-row: 3; }
  .block-fenetres   { grid-column: 1; grid-row: 4; }
  .block-aides      { grid-column: 1; grid-row: 5; }
  .block-contact    { grid-column: 1; grid-row: 6; }
  .block { padding: 12px 20px; min-height: 0; overflow: hidden; }
  .block-title { font-size: 1.4rem; margin-bottom: 4px; }
  .block-desc { font-size: 0.78rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .block-icon { width: 28px; height: 28px; margin-bottom: 6px; }
  .block-arrow { width: 20px; height: 20px; }
  .block-logo .logo-sub { font-size: 0.7rem; margin-top: 2px; }
  .block-logo img { max-width: 120px !important; margin-bottom: 2px !important; }
  .discover-btn { margin-top: 4px; }
  .discover-btn span { font-size: 0.75rem; }
  .block-inner { gap: 10px; }
  .block-img { width: 30%; max-width: 100px; border-radius: var(--radius-sm); }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .grid-2, .grid-2-cards { grid-template-columns: 1fr !important; }
  .grid-2 > *:first-child { order: 0 !important; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
  .page-hero { padding: 120px 0 60px; }
  .page-hero h1 { font-size: 2rem; }
  .modal-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; margin-top: -40px; padding: 24px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .breadcrumb { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .modal { margin: 10px; }
  .modal-header { padding: 24px 24px 0; }
  .modal-body { padding: 20px 24px 24px; }
}
