@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cinzel:wght@400;500;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --bg-parchment: #faf8f5;
  --bg-dark: #12120e;
  --bg-card: #ffffff;
  
  --text-dark: #1a1a16;
  --text-muted: #5c5a52;
  --text-light: #f5f4ef;
  --text-light-muted: #b5b3a9;
  
  --primary-oak: #c5a059;
  --primary-oak-dark: #a88544;
  --accent-forest: #2a3d26;
  --accent-charcoal: #1e1e19;
  --border-plane: rgba(26, 26, 22, 0.08);
  --border-plane-dark: rgba(245, 244, 239, 0.12);
  --border-gold: rgba(197, 160, 89, 0.4);
  
  /* Fonts */
  --font-serif-display: 'Cinzel', serif;
  --font-serif-body: 'Lora', serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Dimensions & Grid */
  --header-height: 80px;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.25s ease;
}

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

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

body {
  background: var(--bg-parchment);
  color: var(--text-dark);
  font-family: var(--font-serif-body);
  font-size: 1.1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-serif-display);
  font-weight: 500;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1.5rem;
}

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

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

span.slogan-highlight {
  font-family: var(--font-serif-body);
  font-style: italic;
  color: var(--primary-oak);
  font-weight: 500;
}

/* --- Fine Technical Plan Line Details --- */
.blueprint-line {
  position: relative;
}
.blueprint-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-plane);
}

.blueprint-line-vertical {
  position: relative;
}
.blueprint-line-vertical::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 1px;
  background: var(--border-plane);
}

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

/* Section Header styling */
.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-oak);
  letter-spacing: 0.25em;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--primary-oak);
}

/* --- HEADER SECTION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-plane);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(250, 248, 245, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
  transition: var(--transition-smooth);
}

header.scrolled .logo-img {
  height: 42px;
  width: 42px;
}

.logo-text {
  font-family: var(--font-serif-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dark);
}

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

.nav-item {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-oak);
  transition: var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-dark);
}

.nav-item:hover::before {
  width: 100%;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--primary-oak);
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-oak);
  z-index: -1;
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.cta-button:hover {
  color: var(--bg-parchment);
  border-color: var(--primary-oak);
}

.cta-button:hover::after {
  transform: translateY(0);
}

/* Admin Button */
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--primary-oak);
  background: transparent;
  transition: var(--transition-smooth);
  margin-left: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.admin-button:hover {
  background: var(--primary-oak);
  color: var(--bg-parchment);
  transform: rotate(90deg);
  border-color: var(--primary-oak);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  min-height: 650px;
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Ken Burns Slideshow Background */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 2s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
}

/* Each slide gets a unique Ken Burns animation direction for variety */
.hero-slide.kb-zoom-in {
  animation: kbZoomIn 8s ease-in-out forwards;
}

.hero-slide.kb-zoom-out {
  animation: kbZoomOut 8s ease-in-out forwards;
}

.hero-slide.kb-pan-left {
  animation: kbPanLeft 8s ease-in-out forwards;
}

.hero-slide.kb-pan-right {
  animation: kbPanRight 8s ease-in-out forwards;
}

.hero-slide.kb-pan-up {
  animation: kbPanUp 8s ease-in-out forwards;
}

.hero-slide.kb-diagonal {
  animation: kbDiagonal 8s ease-in-out forwards;
}

@keyframes kbZoomIn {
  0%   { transform: scale(1); }
  100% { transform: scale(1.2); }
}

@keyframes kbZoomOut {
  0%   { transform: scale(1.25); }
  100% { transform: scale(1.05); }
}

@keyframes kbPanLeft {
  0%   { transform: scale(1.2) translateX(3%); }
  100% { transform: scale(1.2) translateX(-3%); }
}

@keyframes kbPanRight {
  0%   { transform: scale(1.2) translateX(-3%); }
  100% { transform: scale(1.2) translateX(3%); }
}

@keyframes kbPanUp {
  0%   { transform: scale(1.15) translateY(3%); }
  100% { transform: scale(1.15) translateY(-2%); }
}

@keyframes kbDiagonal {
  0%   { transform: scale(1.1) translate(-2%, 2%); }
  100% { transform: scale(1.2) translate(2%, -2%); }
}

/* Dark overlay on top of slideshow for text readability */
.hero-slideshow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 18, 14, 0.7) 0%,
    rgba(18, 18, 14, 0.6) 40%,
    rgba(18, 18, 14, 0.8) 100%
  );
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--border-plane-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-plane-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center;
  z-index: 2;
  opacity: 0.15;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 60px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title-box {
  display: inline-block;
  border: 1px solid var(--border-gold);
  padding: 0.5rem 1.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
  animation: fadeInDown 1.2s ease;
}

.hero-title-box h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary-oak);
}

.hero-main-slogan {
  font-family: var(--font-serif-display);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  background: linear-gradient(to bottom, #ffffff 30%, var(--text-light-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1.2s ease;
}

.hero-accroche {
  font-family: var(--font-serif-body);
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--text-light-muted);
  max-width: 680px;
  margin: 0 auto 3rem auto;
  font-weight: 300;
  animation: fadeInUp 1.4s ease;
}

/* Hero CTA — bouton lisible sur fond sombre */
.hero-cta {
  color: var(--text-light);
  border-color: var(--primary-oak);
  animation: fadeInUp 1.6s ease;
}

.hero-cta:hover {
  color: var(--bg-dark);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.scroll-mouse {
  width: 20px;
  height: 35px;
  border: 1.5px solid var(--text-light-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--primary-oak);
  border-radius: 1.5px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheel 2s infinite ease-in-out;
}

@keyframes mouseWheel {
  0% { top: 6px; opacity: 1; }
  50% { top: 15px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SECTION 2: PHILOSOPHIE --- */
.about {
  padding: 8rem 0;
  background: var(--bg-parchment);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: -150px;
  right: 0;
  width: 400px;
  height: 400px;
  background-image: 
    linear-gradient(var(--border-plane) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-plane) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.25;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  border: 1px solid var(--border-plane);
  padding: 2.5rem;
  background: var(--bg-card);
  box-shadow: 0 10px 40px rgba(0,0,0,0.01);
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  pointer-events: none;
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border: 1px solid var(--border-plane);
}

.artisan-overlay-tag {
  position: absolute;
  bottom: 4rem;
  left: -20px;
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 1.25rem 2rem;
  border: 1px solid var(--primary-oak);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-width: 320px;
}

.artisan-tag-title {
  font-family: var(--font-serif-display);
  font-size: 1.1rem;
  color: var(--primary-oak);
  margin-bottom: 0.25rem;
}

.artisan-tag-phrase {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-light-muted);
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-highlight {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-style: italic;
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--primary-oak);
  margin-bottom: 1rem;
}

.about-prose {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.artisan-heart {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(197, 160, 89, 0.04);
  padding: 1.5rem;
  border: 1px dashed var(--border-gold);
  margin-top: 1rem;
}

.artisan-heart-icon {
  font-size: 1.75rem;
  color: var(--primary-oak);
  line-height: 1;
}

.artisan-heart-text h4 {
  font-family: var(--font-serif-display);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

.artisan-heart-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- SECTION 3: LES PILIERS (CARDS) --- */
.pillars {
  padding: 8rem 0;
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.pillars::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(245, 244, 239, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 244, 239, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.3;
}

.pillars .section-title {
  color: var(--text-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.pillar-card {
  position: relative;
  height: 520px;
  background: var(--accent-charcoal);
  border: 1px solid var(--border-plane-dark);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
}

.pillar-card-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  opacity: 0.35;
  filter: grayscale(1);
  z-index: 1;
}

.pillar-card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 14, 0.95) 20%, rgba(18, 18, 14, 0.4) 60%, transparent 100%);
  z-index: 2;
  transition: var(--transition-smooth);
}

.pillar-card-blueprint {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  opacity: 0.15;
  z-index: 3;
  stroke: var(--text-light);
  fill: none;
  stroke-width: 1;
  transition: var(--transition-smooth);
}

.pillar-card-num {
  font-family: var(--font-serif-display);
  font-size: 2.5rem;
  color: var(--primary-oak);
  opacity: 0.2;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 3;
  transition: var(--transition-smooth);
}

.pillar-card-info {
  position: relative;
  z-index: 4;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.pillar-card-slogan {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-oak);
  letter-spacing: 0.25em;
  margin-bottom: 0.75rem;
  display: block;
}

.pillar-card-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.pillar-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light-muted);
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.pillar-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-oak);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.pillar-card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition-fast);
}

/* Hover States for Cards */
.pillar-card:hover {
  border-color: var(--primary-oak);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card:hover .pillar-card-photo {
  opacity: 0.6;
  filter: grayscale(0);
  transform: scale(1.05);
}

.pillar-card:hover .pillar-card-gradient {
  background: linear-gradient(to top, rgba(18, 18, 14, 0.98) 35%, rgba(18, 18, 14, 0.6) 70%, transparent 100%);
}

.pillar-card:hover .pillar-card-blueprint {
  opacity: 0.6;
  transform: rotate(45deg) scale(1.1);
}

.pillar-card:hover .pillar-card-num {
  opacity: 0.4;
  transform: translateY(-5px);
}

.pillar-card:hover .pillar-card-info {
  transform: translateY(0);
}

.pillar-card:hover .pillar-card-desc {
  opacity: 1;
  height: auto;
  margin-bottom: 0.5rem;
}

.pillar-card:hover .pillar-card-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.pillar-card-link:hover svg {
  transform: translateX(5px);
}

/* --- SECTION 4: CONTACT --- */
.contact {
  padding: 8rem 0;
  background: var(--bg-parchment);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(197, 160, 89, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 3fr;
  background: var(--bg-card);
  border: 1px solid var(--border-plane);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.02);
  margin-top: 4rem;
}

.contact-info-panel {
  background: var(--accent-charcoal);
  color: var(--text-light);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-info-decor {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  opacity: 0.04;
  fill: none;
  stroke: var(--text-light);
  stroke-width: 1.5;
}

.contact-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.contact-info-panel p {
  color: var(--text-light-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-detail-icon {
  font-size: 1.5rem;
  color: var(--primary-oak);
  line-height: 1;
  padding-top: 0.2rem;
}

.contact-detail-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-oak);
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-size: 1.05rem;
  font-style: normal;
}

.italian-hospitality {
  margin-top: 4rem;
  border-top: 1px solid var(--border-plane-dark);
  padding-top: 2rem;
  font-style: italic;
  color: var(--text-light-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-form-panel {
  padding: 4.5rem 3.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.form-label {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-plane);
  padding: 0.35rem 0;
  font-family: var(--font-serif-body);
  font-size: 1.05rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition-fast);
}

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

.form-input:focus, .form-textarea:focus {
  border-bottom-color: var(--primary-oak);
}

/* Floating Label on focus/populated */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-textarea:focus ~ .form-label,
.form-textarea:not(:placeholder-shown) ~ .form-label {
  top: -1.25rem;
  font-size: 0.75rem;
  color: var(--primary-oak);
  letter-spacing: 0.1em;
}

.submit-button {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  background: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--bg-dark);
  cursor: pointer;
  width: auto;
  transition: var(--transition-smooth);
}

.submit-button:hover {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--bg-dark);
}

#contact-form-status {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
#contact-form-status.success {
  color: var(--accent-forest);
}
#contact-form-status.error {
  color: #a73c3c;
}

/* --- CLIENT IMMERSIVE DYNAMIC GALLERY MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 14, 0.98);
  z-index: 1000;
  display: flex;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  color: var(--text-light);
  overflow: hidden;
}

/* Left panel: Media viewer & slider */
.modal-viewer-panel {
  position: relative;
  background: #090907;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  border-right: 1px solid var(--border-plane-dark);
}

.modal-close-trigger {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  color: var(--text-light-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.modal-close-trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.modal-close-trigger:hover {
  color: #ffffff;
}

.modal-img-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-main-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: scale(0.95);
  opacity: 0;
}

.modal-overlay.active .modal-main-image {
  transform: scale(1);
  opacity: 1;
}

.modal-main-image.zoomed {
  transform: scale(1.4);
  cursor: zoom-out;
}

.modal-zoom-hint {
  position: absolute;
  bottom: 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-light-muted);
  opacity: 0.5;
  background: rgba(0,0,0,0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

/* Nav buttons for slider inside category gallery */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(18, 18, 14, 0.4);
  border: 1px solid var(--border-plane-dark);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  transition: var(--transition-fast);
}

.gallery-nav-btn:hover {
  background: var(--primary-oak);
  border-color: var(--primary-oak);
}

.gallery-nav-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.gallery-nav-prev {
  left: 2rem;
}

.gallery-nav-next {
  right: 2rem;
}

/* Right panel: Details, Categories & Multi-card scroll */
.modal-details-panel {
  background: var(--bg-dark);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  position: relative;
}

.modal-category-group {
  margin-top: 1rem;
}

.modal-category-title-box {
  margin-bottom: 2rem;
}

.modal-cat-tag {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-oak);
  letter-spacing: 0.2em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 2.2rem;
  line-height: 1.25;
  color: #ffffff;
}

.modal-sep {
  width: 50px;
  height: 1px;
  background: var(--border-gold);
  margin: 1.5rem 0;
}

.modal-desc-box {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light-muted);
  margin-bottom: 2rem;
}

.modal-details-grid {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border-plane-dark);
  padding-top: 1.5rem;
  margin-bottom: 3rem;
}

.meta-item-label {
  color: var(--text-light-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.meta-item-value {
  color: #ffffff;
  font-weight: 500;
}

/* Gallery switcher sub-panel inside Modal */
.modal-aside-gallery {
  margin-top: 2rem;
}

.aside-gallery-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-oak);
  margin-bottom: 1rem;
  display: block;
}

.aside-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* Custom Scrollbar for side gallery */
.aside-gallery-grid::-webkit-scrollbar,
.modal-details-panel::-webkit-scrollbar {
  width: 4px;
}
.aside-gallery-grid::-webkit-scrollbar-thumb,
.modal-details-panel::-webkit-scrollbar-thumb {
  background: var(--border-plane-dark);
}

.aside-gallery-item {
  position: relative;
  aspect-ratio: 1;
  background: var(--accent-charcoal);
  border: 1px solid var(--border-plane-dark);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-fast);
}

.aside-gallery-item.active {
  border-color: var(--primary-oak);
}

.aside-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.aside-gallery-item:hover img,
.aside-gallery-item.active img {
  opacity: 1;
  transform: scale(1.05);
}

/* Modal filter tabs at top of visual panel for immersive exploration */
.modal-tabs {
  position: absolute;
  top: 2rem;
  right: 3rem;
  display: flex;
  gap: 1.5rem;
  z-index: 15;
}

.modal-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light-muted);
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.modal-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-oak);
  transition: var(--transition-fast);
}

.modal-tab-btn.active, .modal-tab-btn:hover {
  color: #ffffff;
}

.modal-tab-btn.active::after {
  width: 100%;
}

/* --- FOOTER --- */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid var(--border-plane-dark);
  padding: 5rem 0 3rem 0;
  position: relative;
}

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

.footer-col-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

.footer-logo span {
  font-family: var(--font-serif-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light-muted);
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-oak);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-col-hours p {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-plane-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-light-muted);
}

.footer-bot-links {
  display: flex;
  gap: 2rem;
}

.footer-bot-links a:hover {
  color: #ffffff;
}

/* --- RESPONSIVELENESS --- */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-image {
    height: 380px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pillar-card {
    height: 420px;
  }
  .pillar-card-desc {
    opacity: 1;
    height: auto;
    margin-bottom: 0.5rem;
  }
  .pillar-card-link {
    opacity: 1;
    transform: translateY(0);
  }
  .pillar-card-info {
    transform: translateY(0);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .modal-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1.5fr 1fr;
  }
  .modal-viewer-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-plane-dark);
    padding: 2rem;
  }
  .modal-details-panel {
    padding: 2rem;
  }
  .modal-tabs {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 2rem;
  }
  .modal-close-trigger {
    top: 1rem;
    left: 1rem;
  }
  .gallery-nav-btn {
    width: 45px;
    height: 45px;
  }
  .gallery-nav-prev { left: 1rem; }
  .gallery-nav-next { right: 1rem; }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .container { padding: 0 1.5rem; }
  .hero-main-slogan { font-size: 2.8rem; }
  .hero-accroche { font-size: 1.1rem; }
  
  header {
    height: 70px;
  }
  nav {
    display: none; /* In production a mobile menu toggles here, but we can do a neat overlay or scroll nav */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-panel {
    padding: 3rem 1.5rem;
  }
  .contact-info-panel {
    padding: 3rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ─── ADMIN PASSWORD MODAL ─── */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-box {
  background: var(--accent-charcoal);
  border: 1px solid var(--border-gold);
  padding: 3rem 2.5rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-modal-overlay.active .admin-modal-box {
  transform: translateY(0) scale(1);
}

.admin-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-oak);
}

.admin-modal-title {
  font-family: var(--font-serif-display);
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.admin-modal-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light-muted, #a09b8c);
  margin-bottom: 2rem;
}

.admin-modal-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.15em;
  text-align: center;
}

.admin-modal-input:focus {
  border-color: var(--primary-oak);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.admin-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
}

.admin-modal-error {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.75rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}

.admin-modal-error.visible {
  opacity: 1;
  height: 1.2rem;
  margin-bottom: 0.5rem;
}

.admin-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-modal-cancel,
.admin-modal-submit {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-modal-cancel {
  background: transparent;
  color: var(--text-light-muted, #a09b8c);
  border-color: rgba(255, 255, 255, 0.15);
}

.admin-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-modal-submit {
  background: var(--primary-oak);
  color: var(--bg-dark);
  border-color: var(--primary-oak);
}

.admin-modal-submit:hover {
  background: var(--primary-oak-dark, #a88544);
  border-color: var(--primary-oak-dark, #a88544);
}

/* Shake animation for wrong password */
@keyframes shakeModal {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.admin-modal-box.shake {
  animation: shakeModal 0.4s ease;
}
