/* ============================================
   MS Service Ménager — Apple-Inspired Design
   ============================================ */

/* --- Custom Properties --- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gold: #C8A951;
  --gold-light: #d4ba6a;
  --gold-dark: #b8963d;
  --gray-dark: #1a1a1a;
  --gray-mid: #2a2a2a;
  --gray-light: #f5f5f7;
  --gray-text: #86868b;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-stack);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

/* --- Typography --- */
.headline-xl {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.headline-lg {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.headline-md {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline-sm {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.body-lg {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--gray-text);
}

.body-md {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-text);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-gray {
  background: var(--gray-light);
}

.section-gold {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--black) 100%);
  color: var(--white);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray-text); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-accent {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem !important;
  letter-spacing: 0;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  animation: navFadeIn 0.4s ease forwards;
}

.nav-mobile a:nth-child(1) { animation-delay: 0.1s; }
.nav-mobile a:nth-child(2) { animation-delay: 0.15s; }
.nav-mobile a:nth-child(3) { animation-delay: 0.2s; }
.nav-mobile a:nth-child(4) { animation-delay: 0.25s; }
.nav-mobile a:nth-child(5) { animation-delay: 0.3s; }
.nav-mobile a:nth-child(6) { animation-delay: 0.35s; }

@keyframes navFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.4) 0%,
    rgba(10,10,10,0.6) 40%,
    rgba(10,10,10,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: 1000px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title .gold { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero.loaded .hero-label {
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero.loaded .hero-title {
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero.loaded .hero-subtitle {
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero.loaded .hero-actions {
  animation: fadeUp 0.8s ease 0.8s forwards;
}

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

/* Sub-page Hero */
.hero-sub {
  min-height: 60vh;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-stack);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(200, 169, 81, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-dark);
  transform: scale(1.03);
}

.btn-lg {
  padding: 1.15rem 3rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Services Grid (Home) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%);
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition);
  opacity: 0;
}

.service-card:hover .service-card-desc {
  max-height: 100px;
  opacity: 1;
}

.service-card-arrow {
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-10px);
  opacity: 0;
  transition: all var(--transition);
}

.service-card:hover .service-card-arrow {
  transform: translateX(0);
  opacity: 1;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1rem;
  margin-top: 3rem;
}

.project-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.project-item.tall { grid-row: span 2; }
.project-item.wide { grid-column: span 2; }

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-item:hover img {
  transform: scale(1.06);
}

.project-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-item:hover .project-item-overlay {
  opacity: 1;
}

.project-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.project-item-cat {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* --- Testimonials --- */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  text-align: center;
  padding: 2rem 0;
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-quote {
  font-size: 1.2rem;
  color: var(--gray-text);
  line-height: 1.7;
  position: relative;
  padding: 0 2rem;
}

.testimonial-quote::before {
  content: '"';
  font-size: 6rem;
  font-weight: 700;
  color: var(--gold);
  position: absolute;
  top: -2.5rem;
  left: -0.5rem;
  line-height: 1;
  opacity: 0.3;
}

.testimonial-author {
  margin-top: 2rem;
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-top: 0.25rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(10,10,10,0.15);
  cursor: pointer;
  transition: all var(--transition);
}

.testimonial-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: clamp(6rem, 12vw, 12rem) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200,169,81,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  margin-top: 1.5rem;
  transition: all var(--transition);
}

.cta-phone:hover {
  color: var(--gold-light);
  transform: scale(1.03);
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand .gold { color: var(--gold); }

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 300px;
}

.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  padding: 0.35rem 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- Split Sections (Services page) --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-image {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content {
  padding: clamp(3rem, 6vw, 6rem);
}

.split-content .headline-md {
  margin-bottom: 1.5rem;
}

.split-content .body-lg {
  margin-bottom: 2rem;
}

.inclusions-list {
  margin-bottom: 2.5rem;
}

.inclusions-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--gray-text);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.inclusions-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.section-dark .inclusions-list li {
  border-bottom-color: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}

/* --- Filter Tabs (Realisations) --- */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--gray-text);
  border: 1.5px solid rgba(0,0,0,0.1);
  font-family: var(--font-stack);
}

.filter-tab:hover {
  border-color: var(--gold);
  color: var(--black);
}

.filter-tab.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* --- Masonry Grid (Realisations) --- */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.masonry-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
}

.masonry-item.featured {
  grid-row: span 2;
  min-height: 580px;
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.masonry-item:hover img {
  transform: scale(1.06);
}

.masonry-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.masonry-item:hover .masonry-item-overlay {
  opacity: 1;
}

.masonry-item-cat {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.masonry-item-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.masonry-item-detail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* --- About / Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.value-item {
  text-align: center;
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.section-dark .value-icon {
  background: var(--gray-mid);
}

.value-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}

.section-dark .value-desc {
  color: rgba(255,255,255,0.5);
}

/* Story section */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.story-block:nth-child(even) {
  direction: rtl;
}

.story-block:nth-child(even) > * {
  direction: ltr;
}

.story-image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Certification badge */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--gray-light);
  padding: 1.5rem 2.5rem;
  border-radius: 16px;
  margin-top: 2rem;
}

.cert-badge-icon {
  font-size: 2.5rem;
}

.cert-badge-text {
  font-size: 1rem;
  font-weight: 700;
}

.cert-badge-sub {
  font-size: 0.8rem;
  color: var(--gray-text);
}

/* --- Crest / Logo Display --- */
.crest-display {
  max-width: 280px;
  margin: 0 auto;
  padding: 3rem;
  position: relative;
}

.crest-display::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200,169,81,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-family: var(--font-stack);
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  position: absolute;
  top: 1.25rem;
  left: 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  transition: all var(--transition);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.5rem;
  font-size: 0.75rem;
  color: var(--gold);
}

.contact-info-block {
  padding: 2.5rem;
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
}

.contact-info-value a:hover {
  color: var(--gold);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--gray-mid);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 1.2rem;
  margin-top: 4rem;
}

/* --- Sticky Phone Button (Mobile) --- */
.sticky-phone {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(200,169,81,0.4);
  animation: phonePulse 2s ease-in-out infinite;
  font-size: 1.5rem;
  color: var(--black);
  transition: transform var(--transition);
}

.sticky-phone:hover {
  transform: scale(1.1);
}

@keyframes phonePulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(200,169,81,0.4); }
  50% { box-shadow: 0 4px 30px rgba(200,169,81,0.6), 0 0 0 8px rgba(200,169,81,0.1); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-image { min-height: 350px; }
  .split-reverse { direction: ltr; }
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .story-block { grid-template-columns: 1fr; gap: 2rem; }
  .story-block:nth-child(even) { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .sticky-phone { display: flex; }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/10; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .project-item.tall { grid-row: span 1; }
  .project-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .masonry-grid { grid-template-columns: 1fr; }
  .masonry-item.featured { grid-row: span 1; min-height: 300px; }
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }

  .btn-lg { padding: 1rem 2rem; font-size: 1rem; }
}

/* --- Selection --- */
::selection {
  background: rgba(200, 169, 81, 0.3);
  color: var(--black);
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-mid);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* --- Real photo gallery additions --- */
.project-item picture, .masonry-item picture { display:block; width:100%; height:100%; }
.project-item picture img, .masonry-item picture img { width:100%; height:100%; object-fit:cover; }
.masonry-item.featured picture { min-height:100%; }


/* --- Project gallery cards + modal --- */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.project-gallery-card {
  appearance: none;
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(0,0,0,0.08);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1);
  min-height: 460px;
}
.project-gallery-card.featured { grid-column: span 1; }
.project-gallery-card:hover { transform: translateY(-8px); box-shadow: 0 28px 90px rgba(0,0,0,0.16); }
.project-gallery-media { display:block; position:relative; height: 310px; overflow:hidden; background:#111; }
.project-gallery-media picture, .project-gallery-media img { display:block; width:100%; height:100%; object-fit:cover; }
.project-gallery-media img { transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease; }
.project-gallery-card:hover .project-gallery-media img { transform: scale(1.055); filter: saturate(1.05) contrast(1.03); }
.project-gallery-count {
  position:absolute; right:16px; top:16px;
  background: rgba(10,10,10,.72); color: var(--white);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  border-radius:999px; padding:.45rem .8rem;
  font-size:.78rem; font-weight:700;
}
.project-gallery-content { display:flex; flex-direction:column; gap:.45rem; padding:1.35rem; }
.project-gallery-cat { color:var(--gold); text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; font-weight:800; }
.project-gallery-title { color:var(--black); font-size:1.22rem; line-height:1.15; font-weight:800; letter-spacing:-.02em; }
.project-gallery-detail { color:var(--gray-text); font-size:.92rem; line-height:1.45; }
.project-gallery-action { margin-top:.45rem; color:var(--black); font-weight:800; font-size:.92rem; }
.project-gallery-action span { display:inline-block; transition:transform .25s ease; }
.project-gallery-card:hover .project-gallery-action span { transform:translateX(4px); }

.project-modal { position:fixed; inset:0; z-index:9999; display:none; }
.project-modal.active { display:block; }
.project-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.72); backdrop-filter: blur(18px); opacity:0; transition: opacity .28s ease; }
.project-modal.active .project-modal-backdrop { opacity:1; }
.project-modal-panel {
  position:absolute; inset: clamp(12px,3vw,34px);
  background: #f5f5f7;
  border-radius: 32px;
  overflow:auto;
  box-shadow: 0 40px 140px rgba(0,0,0,.45);
  transform: translateY(24px) scale(.985);
  opacity:0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s ease;
}
.project-modal.active .project-modal-panel { transform: translateY(0) scale(1); opacity:1; }
.project-modal-close {
  position:sticky; top:18px; float:right; margin:18px 18px 0 0; z-index:2;
  width:46px; height:46px; border-radius:999px; border:0; cursor:pointer;
  background:rgba(10,10,10,.78); color:white; font-size:2rem; line-height:1;
  backdrop-filter: blur(12px); transition: transform .2s ease, background .2s ease;
}
.project-modal-close:hover { transform:scale(1.06); background:var(--gold); color:var(--black); }
.project-modal-head {
  padding: clamp(2rem,5vw,4.5rem) clamp(1.25rem,5vw,4.5rem) 1.5rem;
  display:flex; align-items:flex-end; justify-content:space-between; gap:1.5rem;
}
.project-modal-kicker { color:var(--gold); font-weight:800; letter-spacing:.12em; text-transform:uppercase; font-size:.8rem; }
.project-modal-title { font-size: clamp(2rem,5vw,4.8rem); line-height:.98; letter-spacing:-.05em; color:var(--black); margin:.45rem 0; }
.project-modal-desc { color:var(--gray-text); font-size:1.05rem; max-width:720px; }
.project-modal-gallery {
  padding: 1rem clamp(1.25rem,5vw,4.5rem) clamp(2rem,5vw,4rem);
  columns: 3 280px;
  column-gap: 1rem;
}
.project-modal-photo {
  break-inside: avoid;
  margin: 0 0 1rem;
  border-radius: 22px;
  overflow:hidden;
  background:#ddd;
  box-shadow: 0 12px 38px rgba(0,0,0,.12);
  transform: translateY(10px);
  opacity:0;
  animation: galleryIn .45s ease forwards;
}
.project-modal-photo picture, .project-modal-photo img { display:block; width:100%; height:auto; }
@keyframes galleryIn { to { opacity:1; transform:translateY(0); } }
body.project-modal-open { overflow:hidden; }
@media (max-width: 980px) {
  .project-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-modal-head { flex-direction:column; align-items:flex-start; }
  .project-modal-cta { width:100%; justify-content:center; }
}
@media (max-width: 640px) {
  .project-gallery-grid { grid-template-columns:1fr; }
  .project-gallery-card { min-height: auto; border-radius:22px; }
  .project-gallery-media { height: 270px; }
  .project-modal-panel { inset:8px; border-radius:24px; }
  .project-modal-gallery { columns:1; }
}


/* --- Réalisations: même style que les cartes accueil “Ce que nous faisons” --- */
.project-gallery-grid {
  gap: 2rem;
}
.project-gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: auto;
}
.project-gallery-card:hover {
  transform: none;
  box-shadow: none;
}
.project-gallery-media {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  box-shadow: none;
}
.project-gallery-media picture,
.project-gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-gallery-media img {
  transition: transform var(--transition-slow);
}
.project-gallery-card:hover .project-gallery-media img {
  transform: scale(1.08);
  filter: none;
}
.project-gallery-media::after {
  content: none;
}
.project-gallery-count {
  z-index: 3;
  right: 18px;
  top: 18px;
  background: rgba(10,10,10,.58);
}
.project-gallery-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: background var(--transition);
  pointer-events: none;
}
.project-gallery-card:hover .project-gallery-content {
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.3) 60%);
}
.project-gallery-cat {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .45rem;
}
.project-gallery-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
  text-shadow: none;
}
.project-gallery-detail {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), opacity var(--transition);
  opacity: 0;
  transform: none;
  clip-path: none;
}
.project-gallery-card:hover .project-gallery-detail {
  max-height: 100px;
  opacity: 1;
  transform: none;
  clip-path: none;
}
.project-gallery-action {
  margin-top: 1rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(-10px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.project-gallery-card:hover .project-gallery-action {
  transform: translateX(0);
  opacity: 1;
}
@media (max-width: 640px) {
  .project-gallery-card { aspect-ratio: 4/5; border-radius: 20px; }
  .project-gallery-media { height: 100%; aspect-ratio: auto; }
  .project-gallery-content { padding: 1.4rem; }
  .project-gallery-detail { max-height: 100px; opacity: 1; }
  .project-gallery-action { opacity: 1; transform: none; }
}


.form-note,
.form-fallback {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(200,169,81,0.22);
  border-radius: 12px;
  background: rgba(200,169,81,0.08);
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  line-height: 1.55;
}

.form-fallback {
  margin: 1rem 0 0;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}


.form-status {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.is-pending {
  color: var(--gold);
}

.form-status.is-error {
  color: #ffb4a8;
}

button[disabled] {
  opacity: 0.72;
  cursor: wait;
}
