/* ==========================================================================
   THEME: KORBEN (STRUCTURE/SHAPE OPTION A)
   Inspiration: korben.info shapes with CriloCom original colors
   ========================================================================== */

/* Variables (CSS Custom Properties)
   We keep the color palette neutral/professional (Option A) but adapt typography and shapes. */
:root {
  --bg-primary: #f4f5f7; /* Slightly darker background outside cards */
  --bg-secondary: #ffffff; /* White background for cards */
  --text-primary: #181e2c; /* Deep dark text, clear contrast */
  --text-secondary: #374151; /* Dark gray for secondary text */
  --border-color: #e5e7eb;
  --link-color: #0056b3; /* CriloCom accent adapted */
  --link-hover: #003d82;
  --accent-color: #0056b3; /* Main accent for buttons/borders */
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0f172a; /* Deep slate background */
  --bg-secondary: #1e293b; /* Slightly lighter for cards */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border-color: #334155;
  --link-color: #60a5fa;
  --link-hover: #93c5fd;
  --accent-color: #3b82f6;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Global Typography */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 1.125rem; /* Larger base font for readability */
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800; /* Extra bold titles */
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: none; /* Removed default bottom border */ }
h3 { font-size: 1.5rem; }

/* The Korben-style Section Title: Left thick border */
.main-content h2, .main-content h3 {
  position: relative;
  padding-left: 1rem;
}

.main-content h2::before, .main-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 5px;
  background-color: var(--accent-color);
  border-radius: 2px;
}


a {
  color: var(--link-color);
  text-decoration: none; /* Clean links */
  font-weight: 600;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Header */
.page-header {
  background: var(--bg-secondary); /* Solid background for header */
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.5rem 10%;
  text-align: center;
}

.project-name {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-primary);
  font-size: 2.5rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.project-name::before { display: none; } /* Remove vertical bar from main title */

.project-tagline {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Components */
.btn, .btn-primary, button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px; /* Slightly rounded */
    font-weight: 700;
    font-family: var(--font-ui);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover, .btn-primary:hover, button:hover {
    background-color: var(--link-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.breadcrumb-auto {
  background-color: transparent;
  border: none;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  padding: 0;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.breadcrumb-auto a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-auto a:hover {
  color: var(--link-color);
}

.breadcrumb-auto span {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.back-button {
  background-color: transparent;
  color: var(--text-secondary);
  border: none;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 2rem;
}

.back-button:hover {
  background-color: transparent;
  color: var(--link-color);
  text-decoration: underline;
}

/* Boxed Cards (The core of the Korben look) */
.card, .service-card, .formation-card, .glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 1.5rem;
    overflow: hidden;
}

/* Remove glassmorphism blur for this theme */
.glass-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card:hover, .service-card:hover, .formation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
}

.formation-thumbnail {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem; /* Pull image to edges */
    width: calc(100% + 3rem);
    border-radius: 12px 12px 0 0;
    max-width: none;
}

/* Footer */
.site-footer-custom {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-links a {
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

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

.footer-copyright {
  margin-top: 2rem;
  color: var(--text-secondary);
}

/* Inputs & Forms */
input[type="text"], input[type="search"], select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

input[type="text"]:focus, input[type="search"]:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}
