/*
Theme Name: Moorea Deco
Theme URI: https://celineduvivier.com
Author: Céline Duvivier
Description: Thème architectural élégant pour Moorea Deco - conseils en décoration et aménagement d'intérieur à Cassis.
Version: 1.0
License: Private
Text Domain: moorea-deco
*/

/* =========================================
   FONTS & BASE
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --bg: #faf9f7;
  --fg: #1e2029;
  --primary: #8c6f52;
  --primary-light: #a8896c;
  --muted: #e8e4de;
  --muted-fg: #6b6860;
  --border: #ddd9d3;
  --white: #ffffff;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-heading: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}

/* =========================================
   NAVIGATION
========================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.2s;
}
.site-logo:hover { color: var(--primary); }
.site-logo strong { font-weight: 700; }

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--fg) !important; color: var(--white) !important; }
.nav-cta::after { display: none !important; }

/* Mobile menu */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--fg);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  position: absolute;
  top: 80px; left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-fg);
  transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--primary); font-weight: 600; }

/* =========================================
   FOOTER
========================================= */
#site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.85);
  padding: 5rem 0 3rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}
#site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-logo strong { font-weight: 700; }

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 240px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-list li .label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.2rem;
}
.footer-list a, .footer-list span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--primary); color: var(--white); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 1rem 2rem;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.2s;
  background: transparent;
}
.btn-outline:hover { background: var(--muted); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.btn-link:hover { color: var(--fg); border-color: var(--fg); }

/* =========================================
   HOME PAGE
========================================= */

/* Hero */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 8rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.82);
  z-index: 1;
}
@media (min-width: 768px) {
  .hero-overlay { background: rgba(250, 249, 247, 0.42); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-box {
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
  /* Architectural crosshair corners */
  position: relative;
}
.hero-box::before {
  content: '';
  position: absolute;
  width: 20px; height: 1px;
  background: rgba(0,0,0,0.2);
  top: 50%; left: -10px;
}
.hero-box::after {
  content: '';
  position: absolute;
  height: 20px; width: 1px;
  background: rgba(0,0,0,0.2);
  left: 50%; top: -10px;
}

@media (min-width: 768px) { .hero-box { padding: 3.5rem; } }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  color: var(--fg);
}
.hero-title strong { font-weight: 700; display: block; }

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-text {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Philosophy Section */
.philosophy-section {
  padding: 7rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.philosophy-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: rgba(232,228,222,0.3);
  transform: skewX(12deg) translateX(5rem);
  z-index: 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
}

.philosophy-img-wrap {
  position: relative;
}
.philosophy-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1rem;
  border: 1px solid rgba(140, 111, 82, 0.2);
  transform: rotate(-3deg);
  z-index: 0;
}
.philosophy-img-wrap img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  filter: grayscale(100%);
  transition: filter 0.7s;
}
.philosophy-img-wrap img:hover { filter: grayscale(0%); }

.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.2;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}

.philosophy-text { display: flex; flex-direction: column; gap: 1.25rem; }
.philosophy-text p {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.75;
}

.philosophy-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.philosophy-cta p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

/* Portfolio Preview */
.portfolio-section {
  padding: 7rem 0;
  background: var(--fg);
  color: var(--bg);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.portfolio-header .btn-view {
  display: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(250,249,247,0.75);
  border-bottom: 1px solid rgba(250,249,247,0.4);
  padding-bottom: 0.2rem;
  transition: color 0.2s, border-color 0.2s;
}
.portfolio-header .btn-view:hover {
  color: var(--bg);
  border-color: var(--bg);
}
@media (min-width: 768px) { .portfolio-header .btn-view { display: inline-flex; } }

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

.portfolio-item { cursor: pointer; }
.portfolio-item-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-bottom: 1.25rem;
}
.portfolio-item-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  z-index: 1;
  transition: background 0.5s;
}
.portfolio-item:hover .portfolio-item-img::before { background: transparent; }
.portfolio-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.portfolio-item:hover .portfolio-item-img img { transform: scale(1.06); }

.portfolio-item-label {
  position: absolute;
  bottom: 0; left: 0;
  padding: 1.25rem 1.5rem;
  z-index: 2;
  transform: translateY(0.75rem);
  opacity: 0;
  transition: all 0.4s;
}
.portfolio-item:hover .portfolio-item-label { transform: translateY(0); opacity: 1; }
.portfolio-item-label span {
  display: inline-block;
  background: var(--bg);
  color: var(--fg);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portfolio-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  color: var(--bg);
}
.portfolio-item p {
  font-size: 0.85rem;
  color: rgba(250,249,247,0.55);
}

.portfolio-mobile-cta {
  margin-top: 3rem;
  text-align: center;
}
@media (min-width: 768px) { .portfolio-mobile-cta { display: none; } }
.portfolio-mobile-cta a {
  font-size: 0.8rem;
  color: rgba(250,249,247,0.75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(250,249,247,0.4);
  padding-bottom: 0.2rem;
}

/* =========================================
   PROJECTS PAGE
========================================= */
.page-header {
  text-align: center;
  padding: 6rem 0 3rem;
  max-width: 800px;
  margin: 0 auto;
}
.page-header p {
  font-size: 1rem;
  color: var(--muted-fg);
  max-width: 560px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Masonry Grid */
.masonry-grid {
  columns: 1;
  column-gap: 1.5rem;
}
@media (min-width: 640px) { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--muted);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s;
}
.masonry-item:hover img { transform: scale(1.05); }

.masonry-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.masonry-item:hover .masonry-item-overlay { opacity: 1; }
.masonry-item-overlay .cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-light);
  margin-bottom: 0.4rem;
}
.masonry-item-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  font-weight: 600;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* =========================================
   SERVICES PAGE
========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.2s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover { border-color: rgba(140,111,82,0.4); }
.service-card:hover::before { transform: scaleX(1); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.service-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--primary);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.service-desc {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  min-height: 56px;
}
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.service-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.service-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem;
  border: 1px solid var(--fg);
  font-size: 0.7rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);
  background: transparent;
  transition: all 0.2s;
  margin-top: auto;
}
.service-cta:hover { background: var(--fg); color: var(--bg); }

.conditions-box {
  max-width: 768px;
  margin: 0 auto;
  background: rgba(232,228,222,0.3);
  padding: 3rem;
  border-left: 4px solid var(--primary);
}
.conditions-box h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}
.conditions-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.conditions-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
.conditions-list li::before { content: '•'; color: var(--primary); flex-shrink: 0; }

/* =========================================
   HIDDEN CLASS (for JS filtering)
========================================= */
.masonry-item[data-hidden="true"] { display: none; }

/* =========================================
   RESPONSIVE TWEAKS
========================================= */
@media (max-width: 480px) {
  .hero-box { padding: 1.75rem; }
  .hero-title { font-size: 2.4rem; }
  .page-header { padding: 4rem 0 2rem; }
}
