/*
Theme Name: The Monocle Bear
Theme URI: https://themonoclebear.com
Author: The Monocle Bear
Author URI: https://themonoclebear.com
Description: AI, by Design. Human, by instinct. — Custom one-page theme for The Monocle Bear AI Lab.
Version: 1.0.0
License: Proprietary
License URI: https://themonoclebear.com/mentions-legales
Text Domain: themonoclebear
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --bg: #0e2a3a;
  --bg-dark: #091e2c;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text: #e8edf2;
  --text-muted: #8fa4b8;
  --accent: #42c6d4;
  --accent-dim: #2a9aa6;
  --accent-hover: #5dd8e4;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(66, 198, 212, 0.4);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --section-padding: 2.5rem 2rem;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ========================================
   Navigation
   ======================================== */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(14, 42, 58, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.nav-brand a { color: inherit; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.nav-social a {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--text); }
.nav-subscribe {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.nav-subscribe:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ========================================
   Section Commons
   ======================================== */
.section-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}
.section-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding-top: 7rem;
}
.hero-grid {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
}
.hero-image {
  flex: 0 0 220px;
}
.hero-image img {
  width: 220px;
  height: auto;
}
.hero-content {
  flex: 1 1 0%;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero-content h1 .accent { color: var(--accent); }
.hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.hero-text p.break { margin-bottom: 1.4rem; }
.hero-text strong { color: var(--text); font-weight: 500; }
.hero-tag {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ========================================
   Services / Pillars
   ======================================== */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.pillar:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.pillar-icon {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.pillar > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.pillar-details {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}
.pillar-details li {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
  padding-left: 1.2rem;
  position: relative;
}
.pillar-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-dim);
}

/* ========================================
   Approche
   ======================================== */
.narrative { margin: 2rem 0; }
.narrative p {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.narrative p.gap { margin-bottom: 1.6rem; }
.narrative p strong { color: var(--text); font-weight: 600; }
.narrative p em { color: var(--accent); font-style: normal; font-weight: 500; }

.steps { margin: 2.5rem 0; }
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  align-items: flex-start;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  min-width: 32px;
  padding-top: 0.2rem;
}
.step-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Separator
   ======================================== */
.sep {
  width: 40px;
  height: 2px;
  background: var(--accent-dim);
  margin: 4rem 0;
  opacity: 0.6;
}

/* ========================================
   Données sensibles (two-column with image)
   ======================================== */
.donnees-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.donnees-image img {
  max-width: 300px;
  width: 100%;
}

/* ========================================
   Sectors
   ======================================== */
.sectors {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.sector {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.8rem;
  flex: 1;
  min-width: 200px;
}
.sector h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.sector p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ========================================
   Stack Grid
   ======================================== */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.stack-item h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.stack-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========================================
   About
   ======================================== */
.about-block {
  border-left: 2px solid var(--accent-dim);
  padding-left: 2rem;
  margin: 2rem 0;
}

/* ========================================
   Contact
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}
.contact-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}
.contact-text .section-label,
.contact-text .section-title {
  text-align: left;
}
.contact-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s;
  text-align: center;
  min-width: 280px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s;
  text-align: center;
}
.btn-secondary:hover { background: var(--accent-hover); }

.contact-extras {
  text-align: center;
  margin-top: 2rem;
}
.contact-extras > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.contact-extras-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========================================
   Trusted By
   ======================================== */
.trusted {
  text-align: center;
  padding: 3rem 2rem;
}
.trusted h4 {
  font-style: italic;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trusted-logos img {
  max-height: 45px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.trusted-logos img:hover { opacity: 1; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--bg-dark);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-col p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}
.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col .label {
  font-weight: 600;
  color: var(--text);
}
.footer-col .brand-note {
  font-style: italic;
  font-size: 0.85rem;
}
.footer-ai-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }

/* ========================================
   Blog Archive
   ======================================== */
.blog-page { padding-top: 6rem; }
.blog-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}
.blog-card-meta span { color: var(--accent); }
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.blog-card-title a { color: var(--text); transition: color 0.2s; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.blog-card-link {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.blog-card-link:hover { color: var(--accent-hover); }
.blog-pagination {
  margin-top: 3rem;
  text-align: center;
}
.blog-pagination .nav-links a,
.blog-pagination .nav-links span {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.blog-pagination .nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.blog-pagination .nav-links .current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ========================================
   Single Post
   ======================================== */
.single-post { padding-top: 6rem; }
.single-header { margin-bottom: 2rem; }
.single-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.single-back:hover { color: var(--accent-hover); }
.single-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 0.8rem;
}
.single-featured {
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.single-featured img { width: 100%; height: auto; }
.single-content {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.single-content p { margin-bottom: 1.4rem; }
.single-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}
.single-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
}
.single-content a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.single-content a:hover { color: var(--accent-hover); }
.single-content blockquote {
  border-left: 2px solid var(--accent-dim);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.single-content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}
.single-content pre {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.single-content pre code { background: none; padding: 0; }
.single-content ul, .single-content ol {
  margin: 1rem 0 1.4rem 1.5rem;
}
.single-content li { margin-bottom: 0.4rem; }
.single-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1.5rem 0;
}
.single-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.single-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(66, 198, 212, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}
.single-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.single-nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.single-nav-link:hover { color: var(--accent); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
  }
  .hero-image { flex: 0 0 auto; order: -1; }
  .hero-image img { width: 160px; margin: 0 auto; }
  .hero-tag { text-align: center; }
  .donnees-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .donnees-image img { max-width: 250px; margin: 0 auto; }
  .contact-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-image img { margin: 0 auto; }
  .contact-text .section-label,
  .contact-text .section-title { text-align: center; }
  .contact-buttons { align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --section-padding: 4rem 1.5rem; }
  .pillars { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .site-nav { padding: 0.8rem 1.2rem; }
  .nav-links { display: none; }
  .sectors { flex-direction: column; }
  .btn-primary { min-width: auto; width: 100%; }
  .single-nav { flex-direction: column; }
}
