/* Qualicontrol France - CSS Fallbacks */
body { font-family: 'Public Sans', 'Roboto', sans-serif; margin: 0; padding: 0; }

.bg-mesh {
    background-color: #182c67;
    background-image: radial-gradient(at 0% 0%, rgba(255,255,255,0.1) 0, transparent 50%), radial-gradient(at 100% 100%, rgba(0,0,0,0.2) 0, transparent 50%);
}

/* Arbitrary Tailwind values fallbacks */
.bg-\[\#0a1f44\] { background-color: #0a1f44 !important; }
.bg-\[\#182b65\] { background-color: #182b65 !important; }
.bg-\[\#f42126\] { background-color: #f42126 !important; }
.bg-\[\#FEEAEB\], .bg-\[\#feeaeb\] { background-color: #FEEAEB !important; }
.bg-\[\#F5F5F5\], .bg-\[\#f5f5f5\] { background-color: #F5F5F5 !important; }
.text-\[\#0a1f44\] { color: #0a1f44; }
.text-\[\#182b65\] { color: #182b65; }
.text-\[\#f42126\] { color: #f42126; }
.text-\[\#333333\] { color: #333333; }
.border-\[\#182b65\] { border-color: #182b65; }

/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Deep blue for footer */
.bg-deep-blue { background-color: #0a1f44 !important; }
.bg-footer-dark { background-color: #0a1f44 !important; }

/* Ensure footer text is always white */
footer { color: #ffffff; }
footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: #ffffff; }

/* Hero backgrounds from Stitch pages */
.hero-bg { background-color: #182b65; }
.hero-gradient { background: linear-gradient(rgba(122, 16, 18, 0.85), rgba(24, 43, 101, 0.7)); }
.hero-overlay { background: linear-gradient(rgba(24, 44, 103, 0.75), rgba(24, 44, 103, 0.75)); }
.footer-bg { background-color: #0a1f44; }

/* Font families used across Stitch pages */
.font-poppins, h1, h2, h3 { font-family: 'Poppins', 'Public Sans', sans-serif; }
.font-roboto { font-family: 'Roboto', sans-serif; }
.hero-title { font-family: 'Poppins', sans-serif; }
.hero-subtitle { font-family: 'Roboto', sans-serif; }

/* Sticky nav fallback */
.sticky-nav { position: sticky; top: 0; z-index: 50; }

/* Map container */
.map-container svg { width: 100%; height: auto; max-width: 800px; }

/* Radio dot for contact form */
.radio-dot {
    --radio-dot-svg: url('data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27%23182b65%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e');
}

/* Secondary CTA color */
.bg-secondary { background-color: #f42126; }
.shadow-secondary\/20 { box-shadow: 0 10px 15px -3px rgba(244, 33, 38, 0.2); }

html { scroll-behavior: smooth; }

/* ============================================================
   QUALICONTROL FRANCE — Blog Article Design System
   Premium article layout inspired by AUTAF, adapted to QC brand
   ============================================================ */

/* 1. Article Wrapper */
.qc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  font-family: 'Roboto', 'Public Sans', sans-serif;
}

/* 2. Hero Banner */
.qc-hero {
  background: #182c67;
  padding: 48px 40px;
  border-radius: 16px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.qc-tag {
  background: #f42126;
  color: #fff;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Poppins', sans-serif;
}

.qc-h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.qc-hero-info {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.qc-hero-deco {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(244, 33, 38, 0.15);
  border-radius: 50%;
  top: -40px;
  right: -40px;
  pointer-events: none;
}

.qc-hero-deco::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(244, 33, 38, 0.1);
  border-radius: 50%;
  top: 30px;
  left: 30px;
}

/* 3. Table of Contents */
.qc-toc {
  background: linear-gradient(135deg, #e8eaf6, #f0f1f8);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(24, 44, 103, 0.08);
  margin-bottom: 40px;
}

.qc-toc a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: #182c67;
  text-decoration: none;
  font-size: 15px;
  align-items: center;
  transition: color 0.2s;
}

.qc-toc a:hover {
  color: #f42126;
}

.qc-toc-n {
  width: 28px;
  height: 28px;
  background: #182c67;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 4. Section Wrapper */
.qc-section {
  margin-bottom: 48px;
}

/* 5. H2 Heading Row */
.qc-h2-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 48px 0 20px;
}

.qc-h2-ico {
  width: 52px;
  height: 52px;
  background: #f42126;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.qc-h2 {
  font-size: 30px;
  font-weight: 700;
  color: #182c67;
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

/* 6. H3 Heading */
.qc-h3 {
  font-size: 24px;
  font-weight: 700;
  color: #182c67;
  margin: 32px 0 12px;
  font-family: 'Poppins', sans-serif;
}

/* 7. Decorative Subtitle */
.qc-sub {
  font-family: 'Poppins', sans-serif;
  color: #f42126;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 8. Paragraph */
.qc-p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

/* 9. Tip / Callout (red) */
.qc-tip {
  background: #f42126;
  padding: 28px;
  border-radius: 12px;
  color: #fff;
  margin: 24px 0;
}

.qc-tip strong {
  font-size: 18px;
  display: block;
  margin-bottom: 12px;
}

.qc-tip p {
  font-size: 15px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* 10. Tip Light (blue-gray) */
.qc-tip-light {
  background: #e8eaf6;
  padding: 28px;
  border-radius: 12px;
  color: #182c67;
  margin: 24px 0;
}

.qc-tip-light strong {
  font-size: 18px;
  display: block;
  margin-bottom: 12px;
  color: #182c67;
}

/* 11. Blockquote */
.qc-quote {
  border-left: 4px solid #f42126;
  padding: 24px 30px;
  background: rgba(24, 44, 103, 0.03);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.qc-quote p {
  font-size: 18px;
  font-style: italic;
  margin: 0;
  color: #182c67;
}

.qc-quote cite {
  font-size: 14px;
  color: #666;
  font-style: normal;
  display: block;
  margin-top: 12px;
}

/* 12. Statistics Row */
.qc-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.qc-stat {
  background: linear-gradient(135deg, #182c67, #0f1d4a);
  padding: 24px;
  border-radius: 12px;
  min-width: 160px;
  flex: 1;
  text-align: center;
}

.qc-stat b {
  font-size: 32px;
  color: #f42126;
  display: block;
}

.qc-stat span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  display: block;
  margin-top: 4px;
}

/* 13. Table */
.qc-table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
  border-collapse: collapse;
}

.qc-table th {
  background: #182c67;
  color: #fff;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.qc-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(24, 44, 103, 0.08);
  color: #333;
  font-size: 15px;
}

.qc-table tr:nth-child(even) td {
  background: rgba(24, 44, 103, 0.02);
}

/* 14. Image Container */
.qc-img {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(24, 44, 103, 0.08);
  margin: 30px 0;
}

.qc-img img {
  width: 100%;
  height: auto;
  display: block;
}

.qc-img figcaption {
  padding: 16px 20px;
  background: #f8f8f8;
  font-size: 13px;
  font-style: italic;
  color: #666;
}

/* 15. Styled Lists */
.qc-ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.qc-ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.qc-check {
  width: 28px;
  height: 28px;
  background: #f42126;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.qc-num {
  width: 28px;
  height: 28px;
  background: #182c67;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

/* 16. CTA Block */
.qc-cta-block {
  background: linear-gradient(135deg, #182c67, #0f1d4a);
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
  text-align: center;
}

.qc-cta-block h3 {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

.qc-cta-block p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.qc-cta {
  display: inline-block;
  background: #f42126;
  color: #fff;
  padding: 16px 32px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.qc-cta:hover {
  background: #d41920;
  color: #fff;
}

/* 17. Related Articles */
.qc-related {
  margin-top: 48px;
}

.qc-rel-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.qc-rel-card {
  flex: 1;
  min-width: 240px;
  border: 1px solid rgba(24, 44, 103, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(24, 44, 103, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qc-rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(24, 44, 103, 0.12);
}

.qc-rel-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.qc-rel-body {
  padding: 20px 24px;
}

.qc-rel-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #182c67;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.qc-rel-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 18. Social Share */
.qc-social {
  background: #f0f1f8;
  padding: 24px;
  text-align: center;
  margin-top: 30px;
  border-radius: 12px;
}

.qc-social-btns a {
  display: inline-flex;
  padding: 10px 20px;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  margin: 4px;
  align-items: center;
  transition: opacity 0.2s;
}

.qc-social-btns a:hover {
  opacity: 0.9;
  color: #fff;
}

.qc-social-li { background: #0077B5; }
.qc-social-fb { background: #1877F2; }
.qc-social-tw { background: #1DA1F2; }
.qc-social-em { background: #182c67; }

/* 19. Mobile Responsive */
@media (max-width: 768px) {
  .qc-hero {
    padding: 32px 20px;
  }
  .qc-h1 {
    font-size: 28px;
  }
  .qc-h2 {
    font-size: 24px;
  }
  .qc-h3 {
    font-size: 20px;
  }
  .qc-stats {
    flex-direction: column;
  }
  .qc-rel-grid {
    flex-direction: column;
  }
  .qc-hero-deco {
    display: none;
  }
  .qc-table {
    font-size: 12px;
  }
  .qc-table th,
  .qc-table td {
    padding: 10px 12px;
  }
  .qc-wrap {
    padding: 24px 16px 40px;
  }
  .qc-cta-block {
    padding: 28px 20px;
  }
  .qc-hero-info {
    flex-direction: column;
    gap: 8px;
  }
}

/* Prose styles for legal/default pages */
.prose h1 { font-size: 2.25rem; font-weight: 700; color: #182c67; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; font-weight: 700; color: #182c67; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 2px solid #f42126; padding-bottom: 0.5rem; }
.prose p { font-size: 1rem; line-height: 1.8; color: #333; margin-bottom: 1rem; }
.prose strong { color: #182c67; }
