
:root {
  /* Colors */
  --color-primary: #000000;
  --color-secondary: #ffffff;
  --color-accent: #d4a017;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Typography */
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sorts Mill Goudy', Georgia, serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 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);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-gray-900);
    --color-bg-secondary: var(--color-gray-800);
    --color-text: var(--color-gray-100);
    --color-text-secondary: var(--color-gray-300);
    --color-border: var(--color-gray-700);
  }
}

/* ===================================
   Base Styles
   =================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
img.w-\[320px\] {
    width: 320px;
}
header.siteheader{ position:relative;}
header.siteheader:after {
    content: "";
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}
header.siteheader:before {
    content: "";
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-md);
}

/* ===================================
   Components
   =================================== */

.btn-interactive {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 600;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-interactive:hover {
  background-color: var(--color-gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-interactive:active {
  transform: translateY(0);
}

/* ===================================
   Header Styles
   =================================== */

.site-header {
  background-color: var(--color-gray-900);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem;
}

.header-bg {
  position: relative;
  background-color: var(--color-gray-900);
  background-image: url(../images/TRENZ%20PIERRE%20FOND_RVB.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.3) 30%,
    rgba(0,0,0,0.3) 70%,
    rgba(0,0,0,0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.sticky {
  position: sticky;
  top: 0;
  z-index: 50;
}

.text-white {
  color: #ffffff;
}

.p-4 {
  padding: 1rem;
}

.logo-link {
  display: block;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Primary Navigation */
.primary-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  color: inherit;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Underline animation */
.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Mobile - Navigation hidden */
@media (max-width: 768px) {
  .primary-menu {
    display: none !important;
  }
  
  .header-content {
    flex-direction: row;
  }
  
  .hidden {
    display: none !important;
  }
  
  .md\:flex {
    display: flex !important;
  }
  
  .md\:block {
    display: block !important;
  }
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:flex {
    display: flex;
  }
  
  .md\:block {
    display: block;
  }
  
  .md\:justify-start {
    justify-content: flex-start;
  }
}

.max-w-\[1248px\] {
  max-width: 1248px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mx-0 {
  margin-left: 0;
  margin-right: 0;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Footer Styles
   =================================== */

.site-footer {
  background-color: var(--color-gray-900);
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.footer-bg {
  background-color: var(--color-gray-900);
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .sm\:text-left {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:gap-4 {
    gap: 1rem;
  }
  
  .md\:py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .md\:justify-start {
    justify-content: flex-start;
  }
}

.text-center {
  text-align: center;
}

.font-semibold {
  font-weight: 600;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.border-t {
  border-top: 1px solid;
}

.border-gray-700 {
  border-color: var(--color-gray-700);
}

.pt-6 {
  padding-top: 1.5rem;
}

.underline {
  text-decoration: underline;
}

.hover\:text-gray-300:hover {
  color: var(--color-gray-300);
}

.hover\:underline:hover {
  text-decoration: underline;
}

.text-gray-400 {
  color: var(--color-gray-400);
}

.text-gray-600 {
  color: var(--color-gray-600);
}

/* ===================================
   Utilities
   =================================== */

.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.bg-beige {
  background-color: #f5f5dc;
}

.bg-gray-50 {
  background-color: var(--color-gray-50);
}

.dark .bg-gray-800 {
  background-color: var(--color-gray-800);
}

.text-amber-600 {
  color: var(--color-accent);
}

/* ===================================
   Dark Mode Classes
   =================================== */

.dark {
  --color-primary: var(--color-gray-100);
  --color-secondary: var(--color-gray-900);
  background-color: var(--color-gray-900);
  color: var(--color-gray-100);
}

.dark .bg-gray-50 {
  background-color: var(--color-gray-800);
}

.dark .text-gray-600 {
  color: var(--color-gray-300);
}

.dark .text-gray-300 {
  color: var(--color-gray-400);
}

.dark .border-gray-300 {
  border-color: var(--color-gray-600);
}

.dark .border-gray-600 {
  border-color: var(--color-gray-400);
}

/* ===================================
   Smooth Scroll
   =================================== */

html {
  scroll-behavior: smooth;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

/* ===================================
   Hero Video Section
   =================================== */

.hero-video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
}

#hero-youtube-video {
  position: absolute;
 
  left: 50%;
  top: 50% !important;
        transform: translate(-50%, -50%) !important;
  border: none;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  pointer-events: none;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: none;
  animation: bounce-slow 2s infinite;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .hero-scroll-indicator {
    display: block;
  }
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.hero-scroll-arrow {
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

@keyframes bounce-slow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(10px);
  }
  60% {
    transform: translateX(-50%) translateY(5px);
  }
}

/* Hero Content Animation */
.wp-block-cover .wp-block-group {
  position: relative;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-block-cover .wp-block-group.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-heading {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-heading.visible {
  opacity: 1;
  animation: fade-in-delayed 0.8s ease forwards;
}

@keyframes fade-in-delayed {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-out-delayed {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-in-delayed {
  animation: fade-in-delayed 0.8s ease forwards;
}

.fade-out-delayed {
  animation: fade-out-delayed 0.8s ease forwards;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .hero-video-bg-container {
    height: 50vh;
  }
  
  .wp-block-cover {
    min-height: 50vh !important;
  }
}
