/* demo.intelligenceindustrielle.com - Global styles */
:root {
  --color-navy: #1e3a5f;
  --color-navy-mid: #2d4a6f;
  --color-silver: #8b9cad;
  --color-metal: #5c6b7a;
  --color-bg: #f5f6f8;
  --color-text: #2c3e50;
  --color-text-muted: #5c6b7a;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --section-pad: 4rem 1.5rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e6ea;
  padding: 0.75rem 1.5rem;
}
.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
}
.site-header a:hover {
  color: var(--color-navy-mid);
}
.site-header .logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main a {
  font-size: 0.95rem;
}

.hero-banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 50%, #3d5a7f 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,95,0.75) 0%, rgba(45,74,111,0.6) 100%);
  z-index: 0.5;
  pointer-events: none;
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-banner .wrap {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-banner h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero-banner .lead {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
}

section {
  padding: var(--section-pad);
}
section .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}
section h2 {
  color: var(--color-navy);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  font-weight: 700;
}
section h3 {
  color: var(--color-navy-mid);
  font-size: 1.25rem;
  margin: 1.25rem 0 0.75rem;
}
section p {
  margin: 0 0 1rem;
  color: var(--color-text);
}
section ul, section ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.section-alt {
  background: #fff;
  box-shadow: 0 1px 0 #e2e6ea;
}

.page-banner {
  min-height: 280px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
  color: #fff;
  padding: 2rem 1.5rem;
}
.page-banner .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.page-banner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  opacity: 0.9;
}
.breadcrumb li {
  display: inline;
}
.breadcrumb li + li::before {
  content: ' / ';
  padding: 0 0.35rem;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  padding: 1.5rem;
}
.card h3 {
  margin-top: 0;
}

.faq-list {
  max-width: 720px;
}
.faq-list details {
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: #fff;
}
.faq-list summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
}
.faq-list details[open] summary {
  border-bottom: 1px solid #e2e6ea;
}
.faq-list .faq-answer {
  padding: 1rem 1.25rem;
}

.contact-section {
  background: var(--color-navy);
  color: #fff;
  padding: 3rem 1.5rem;
}
.contact-section h2 {
  color: #fff;
}
.contact-section a {
  color: var(--color-silver);
  text-decoration: none;
}
.contact-section a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-top: 1px solid #e2e6ea;
  background: #fff;
}
.site-footer a {
  color: var(--color-navy);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-links {
  margin-bottom: 0.75rem;
}
.footer-links a {
  margin: 0 0.5rem;
}

/* Subfolder internal links block */
.internal-links {
  margin: 2rem 0;
  padding: 1.25rem;
  background: #f0f2f5;
  border-radius: 6px;
  border-left: 4px solid var(--color-navy);
}
.internal-links h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.internal-links ul {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.internal-links a {
  color: var(--color-navy);
  text-decoration: none;
}
.internal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nav-main {
    gap: 1rem;
  }
  :root {
    --section-pad: 3rem 1rem;
  }
}
