/* style.css for Quantum Architecture - Unified Theme */

/* --- Base Styles & CSS Variables --- */
:root {
  --bg-color: #ffffff; /* Fallback background color (white) */
  /* !!! CRITICAL FOR 404 ERROR: Check this path carefully !!! */
  /* If style.css is in the ROOT folder, use: url('images/fondenorbronze-écritureblanche.jpg') */
  /* If style.css is in a CSS folder (e.g., /css/), use: url('../images/fondenorbronze-écritureblanche.jpg') */
  --bg-image-url: url('../images/fondenorbronze-écritureblanche.jpg'); /* ADJUST PATH AS NEEDED */

  --text-color: #000000; /* Black text */
  --header-bg: #000000; /* Black Header */
  --header-link-color: #ffffff; /* White links in header */
  --primary-accent: #b8860b; /* DarkGoldenrod */
  --secondary-accent: #333333; /* Dark Gray */
  --card-bg: rgba(255, 255, 255, 0.88); /* Semi-transparent white for cards */
  --card-border: rgba(184, 134, 11, 0.4); /* Goldish border */
  --card-hover-border: rgba(184, 134, 11, 0.8);
  --card-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  --footer-bg: rgba(255, 255, 255, 0.9); /* Semi-transparent white footer */
  --footer-text-color: #555555; /* Dark gray footer text */
  --font-main: 'Montserrat', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-color); /* Default text is black */
  /* Applying the background image */
  background-color: var(--bg-color); /* Fallback */
  background-image: var(--bg-image-url);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px; /* Approximate height of fixed header */
  padding-bottom: 80px; /* Approximate height of footer */
}

/* --- Header (Sticky, Black Background) --- */
header {
  background: var(--header-bg); /* Solid black background */
  padding: 1rem 0; /* Adjusted padding */
  border-bottom: 1px solid var(--primary-accent); /* Gold border */
  text-align: center;
  position: fixed; /* Header fixe */
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-container {
  text-align: center;
  margin-bottom: 0.5rem; /* Reduced margin */
}

.quantum-image-logo { /* Style for the image logo */
    max-height: 65px; /* Consistent height */
    display: block;
    margin: 0 auto;
    background: none;
}

/* --- Navigation (White Text, Gold Hover) --- */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  gap: 0.5rem 1rem; /* Spacing between links */
}

nav a {
  color: var(--header-link-color); /* White text for links */
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0; /* Gap handles spacing */
  font-weight: 600; /* Slightly less bold than 700 */
  letter-spacing: 0.5px; /* Reduced spacing */
  /* text-transform: uppercase; /* Removed for cleaner look */
  font-size: 0.9rem;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent; /* Underline space */
  position: relative; /* For pseudo-element if needed later */
}

nav a:hover, nav a.active {
  color: var(--primary-accent); /* Gold text on hover/active */
  border-bottom-color: var(--primary-accent); /* Gold underline on hover/active */
}

/* --- Main Content Container (No Background) --- */
.container {
  max-width: 1100px; /* Consistent width */
  margin: 0 auto; /* Centering */
  padding: 3rem 2rem; /* Padding inside container */
  /* REMOVED background-color: #db9b4f; */
  /* REMOVED color: #000000; (Inherited from body) */
  /* REMOVED border-radius, box-shadow (Applied to cards instead) */
  flex-grow: 1; /* Allows container to fill space for sticky footer */
  position: relative;
  z-index: 1;
}

/* --- General Content Styles (Inside .container) --- */
.container h1, .container h2, .container h3, .container h4, .container h5, .container h6 {
  color: var(--text-color); /* Black titles */
  margin-bottom: 1.5rem; /* Consistent bottom margin */
}

/* Page Title Style (Can be used for H1 generally) */
.page-title {
    text-align: center;
    color: var(--text-color); /* Black title */
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* Section Title Style (Can be used for H2 generally) */
.section-title {
    text-align: center;
    color: var(--text-color); /* Black title */
    font-size: 2rem; /* Slightly smaller than page title */
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    /* Optional border */
    /* border-bottom: 1px solid rgba(0,0,0,0.2); */
    /* padding-bottom: 0.5rem; */
}

.container p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-color); /* Black paragraphs */
  font-weight: 400; /* Normal weight */
}
.container a:not(nav a):not(.btn):not(.button) { /* Links within content, excluding nav and buttons */
    color: var(--primary-accent); /* Gold links */
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.container a:not(nav a):not(.btn):not(.button):hover {
    color: var(--secondary-accent); /* Dark gray on hover */
}

/* --- Content Card Style (Semi-Transparent White) --- */
/* This style applies to .content-card used in legal.html, whitepaper.html, etc. */
.content-card {
  background-color: var(--card-bg); /* Semi-transparent white */
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem; /* Add space between cards if stacked */
}
.content-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.92);
}

/* --- Specific Card Styles (e.g., for Legal Page) --- */
.legal-card h2, .summary-card h2, .about-text-card h2, .team-section h2 { /* Titles within cards */
  color: var(--primary-accent); /* Gold titles */
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--card-border);
}

.legal-card h3 { /* Subheadings in legal cards */
    color: var(--secondary-accent); /* Dark gray */
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-card ul { /* Lists in legal cards */
  list-style: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-bottom: 1.3rem;
}
.legal-card ul li {
    margin-bottom: 0.5rem;
}

/* --- Product Card Styles (From products.html) --- */
.card-container { /* Container for product cards */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
  margin: 2.5rem 0; /* Consistent margin */
}

.card { /* Individual product card - inherits .content-card styles if used together */
  background-color: var(--card-bg); /* Use semi-transparent white */
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.92);
}

.card .card-image {
   height: 200px;
   overflow: hidden;
   background-color: rgba(230, 230, 230, 0.5); /* Light placeholder bg */
}
.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card-content { /* Content area within product card */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card h3 { /* Product title */
    color: var(--primary-accent);
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}
.card p.description { /* Product description */
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* --- Unified Button Style (Adopted from Whitepaper/Legal) --- */
.button, .btn { /* Apply to both .button and .btn classes */
  display: inline-block;
  background: var(--primary-accent); /* Gold background */
  color: #ffffff; /* White text */
  padding: 12px 30px; /* Consistent padding */
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  font-weight: 600; /* Consistent weight */
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-top: 1rem; /* Add some top margin */
}
.button:hover, .btn:hover {
  background-color: var(--text-color); /* Black background on hover */
  color: var(--primary-accent); /* Gold text on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
/* Center button if needed */
.button-container {
    text-align: center;
    margin-top: 1rem;
}


/* --- Footer (Semi-Transparent White) --- */
footer {
  background: var(--footer-bg); /* Semi-transparent white */
  color: var(--footer-text-color); /* Dark gray text */
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--card-border); /* Gold border */
  position: relative; /* Changed from absolute for flexbox body */
  /* bottom: 0; Removed */
  width: 100%;
  z-index: 500;
  margin-top: auto; /* Pushes footer down with flexbox body */
}

footer p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

footer a {
  color: var(--primary-accent); /* Gold links */
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--text-color); /* Black on hover */
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {
  body {
    padding-top: 80px; /* Adjust if header height changes */
  }
  .container {
    padding: 2rem 1rem;
  }
  nav {
    gap: 0.5rem 0.8rem; /* Smaller gap */
  }
  nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  .page-title {
      font-size: 1.8rem;
  }
  .section-title {
      font-size: 1.6rem;
      margin-bottom: 2rem;
  }
  .content-card {
      padding: 1.5rem;
  }
  .legal-card h2, .summary-card h2, .about-text-card h2, .team-section h2 {
      font-size: 1.4rem;
  }
  .card-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .button, .btn {
      padding: 10px 25px;
      font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .card-container {
     /* Force single column on very small screens */
     grid-template-columns: 1fr;
  }
  nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}
