/* ==========================================
   VALEURS & PATRIMOINE - DESIGN SYSTEM
   ========================================== */

/* === CSS VARIABLES === */
:root {
  /* Colors */
  --primary-color: #4169E1;
  /* Royal Blue */
  --primary-dark: #003399;
  /* Darker Royal Blue */
  --primary-light: #6495ED;
  /* Cornflower Blue */
  --accent-color: #0047AB;
  /* Cobalt */
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --text-white: #ffffff;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-overlay: rgba(0, 51, 153, 0.9);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4169E1 0%, #003399 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(65, 105, 225, 0.95) 0%, rgba(0, 51, 153, 0.9) 100%);

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

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

a:hover {
  color: var(--accent-color);
}

/* === CONTAINER & LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-alt {
  background-color: var(--bg-light);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: transform var(--transition-normal);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 60px;
  /* Increased slightly for better visibility */
  width: auto;
  object-fit: contain;
}

/* === NAVIGATION === */
.nav {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--primary-dark);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Dropdown arrow */
.nav-link .dropdown-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  min-width: 250px;
  padding: var(--spacing-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  margin-top: var(--spacing-xs);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--spacing-xs) var(--spacing-md);
  color: var(--text-dark);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.dropdown-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: calc(var(--spacing-md) + 0.5rem);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}



/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-primary);
  padding: var(--spacing-xl) var(--spacing-md);
}

/* Remove overlay - no longer needed with solid background */
.hero::before {
  display: none;
}

.hero-bg {
  display: none;
  /* No longer using background image */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #d4af37;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #c5a028 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.2);
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
  color: var(--bg-white);
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: var(--spacing-xl);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--primary-color);
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Background image for service cards */
.service-card.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.service-card.has-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  transition: background var(--transition-normal);
}

.service-card.has-bg:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

/* Content should be above overlay */
.service-card>* {
  position: relative;
  z-index: 2;
}

/* White text for cards with background images */
.service-card.has-bg h3,
.service-card.has-bg p,
.service-card.has-bg .service-link {
  color: var(--text-white);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  z-index: 3;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.75rem;
  color: var(--text-white);
}

.service-card h3 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.4;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  color: var(--primary-color);
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.service-card.has-bg .service-link {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.2);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.service-link:hover {
  gap: var(--spacing-sm);
}

/* === METHOD SECTION === */
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.method-step {
  position: relative;
  padding: var(--spacing-md);
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.method-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.method-step h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.method-step p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Blue background for method section */
.method-section-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  /* Royal blue gradient */
}

.method-section-blue h2,
.method-section-blue p {
  color: white !important;
}

/* === FOUNDER SECTION === */
.founder-section {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.founder-content {
  flex: 1;
  text-align: left;
}

.founder-photo {
  width: 300px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .founder-section {
    flex-direction: column;
  }

  .founder-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* === FAQ SECTION === */
.faq-section {
  background: var(--bg-light);
  padding: var(--spacing-xl) 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-md);
  background: none;
  border: none;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
  color: var(--primary-color);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer-content {
  padding: 0 var(--spacing-md) var(--spacing-md);
  color: var(--text-light);
  line-height: 1.8;
}

.faq-answer-content ol {
  margin-left: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.faq-answer-content li {
  margin-bottom: var(--spacing-sm);
}

/* === COMMITMENT CARDS === */
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.commitment-card {
  background: #d3d3d3;
  /* Light grey background */
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  position: relative;
}

.commitment-line {
  width: 40px;
  height: 3px;
  background-color: #c69c6d;
  /* Orange/Gold accent color */
  margin-bottom: var(--spacing-md);
}

.commitment-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* === SPLIT SECTIONS === */
.split-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-image {
  flex: 1;
}

@media (max-width: 768px) {

  .split-section,
  .split-section.reverse {
    flex-direction: column;
  }
}

.faq-answer-content strong {
  color: var(--primary-dark);
}

/* === PARTNERS SECTION === */
.partners-section {
  background: var(--bg-white);
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

.partners-intro {
  max-width: 900px;
  margin: 0 auto var(--spacing-lg);
  text-align: center;
  padding: 0 var(--spacing-md);
}

.partners-intro h2 {
  margin-bottom: var(--spacing-md);
}

.partners-intro p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.partners-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--spacing-lg) 0;
}

.partners-track {
  display: flex;
  gap: var(--spacing-xl);
  animation: scroll-partners 30s linear infinite;
  width: fit-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex-shrink: 0;
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-partners {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === FAQ SECTION === */
.footer {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid #e0e0e0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-section h4 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: var(--spacing-md);
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-light);
  display: inline;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    align-items: flex-start;
    gap: 0;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: var(--spacing-sm);
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding-left: var(--spacing-md);
    background: var(--bg-light);
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .nav-item.open .dropdown-menu {
    max-height: 500px;
  }

  .dropdown-link {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* === UTILITY CLASSES === */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}