/* Theme Atlas — navy & gold corporate logistics */
:root {
  --th-navy: #0a1f44;
  --th-navy-deep: #06132b;
  --th-gold: #c4a35a;
  --th-gold-soft: #d4b978;
  --th-ink: #1a2332;
  --th-muted: #5c6b7a;
  --th-bg: #ffffff;
  --th-bg-soft: #f4f6f9;
  --th-border: #e4e8ef;
  --th-radius: 10px;
  --th-shadow: 0 12px 40px rgba(10, 31, 68, 0.08);
  --th-font: "Source Sans 3", system-ui, sans-serif;
  --th-display: "Outfit", system-ui, sans-serif;
  --th-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.th-body {
  margin: 0;
  font-family: var(--th-font);
  color: var(--th-ink);
  background: var(--th-bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
img.th-avatar { max-width: 32px !important; width: 32px !important; height: 32px !important; }
a { color: var(--th-navy); text-decoration: none; }
a:hover { color: var(--th-gold); }
.th-container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.th-main { min-height: 50vh; }

/* Navbar couleurs Atlas (structure = themes/shared/nav.css) */
.th-header { background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.th-header.is-scrolled { box-shadow: 0 4px 16px rgba(10,31,68,.08); }
.th-brand-mark { background: var(--th-navy); color: #fff; }
.th-brand-name { color: var(--th-ink); }
.th-nav-link { color: #374151; }
.th-nav-link.is-active, .th-nav-link:hover { color: var(--th-navy); }
.th-nav-phone { color: #fff; background: var(--th-navy); border: 1px solid var(--th-navy); border-radius: 6px; }
.th-nav-phone:hover { color: #fff; background: #14305f; }
.th-user-chip { border-color: #94a3b8 !important; background: #f1f5f9; }
.th-avatar-fallback { background: var(--th-navy); color: #fff; }
.th-logout-btn { color: #4b5563; border-color: #94a3b8; border-radius: 6px; background: #fff; }
.th-logout-btn:hover { color: #dc2626; border-color: #fca5a5; }
.th-login-btn { background: var(--th-navy); color: #fff !important; border: 1px solid var(--th-navy); border-radius: 6px; }
.th-login-btn:hover { background: #14305f; color: #fff !important; }
.th-admin-pill { background: #111; color: #fff !important; }
.th-nav-toggle { border-color: #d1d5db; background: #fff; }
.th-nav-toggle span { background: #374151; }
.th-nav-lang .lang-switcher-btn { background: #fff !important; color: #374151; border-color: #94a3b8 !important; border-radius: 6px; }
.th-nav-lang .lang-switcher-menu { background: #fff; border: 1px solid #e5e7eb; }
.th-nav-lang .lang-switcher-item { color: #374151; }
.th-nav-lang .lang-switcher-item:hover { background: #f9fafb; }
@media (max-width: 1100px) {
  .th-nav-links { background: #fff; border-bottom: 1px solid #e5e7eb; }
  .th-nav-links .th-nav-link { border-bottom: 1px solid #f3f4f6; }
}

.th-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.35rem; border-radius: 8px; font-weight: 700; font-size: .92rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.th-btn-primary { background: var(--th-navy); color: #fff; border-color: var(--th-navy); }
.th-btn-primary:hover { background: #14305f; color: #fff; border-color: #14305f; }
.th-btn-ghost { background: #fff; border-color: #64748b; color: var(--th-navy); }
.th-btn-ghost:hover { background: var(--th-navy); color: #fff; border-color: var(--th-navy); }
.th-btn-accent { background: var(--th-gold); color: var(--th-navy-deep); }
.th-btn-accent:hover { background: var(--th-gold-soft); color: var(--th-navy-deep); }
.th-link { font-weight: 700; color: var(--th-navy); }
.th-link:hover { color: var(--th-gold); }

/* Hero */
.th-hero {
  position: relative; min-height: min(88vh, 720px);
  display: flex; align-items: center; color: var(--th-navy);
  overflow: hidden;
}
.th-hero-media { position: absolute; inset: 0; }
.th-hero-media img, .th-hero-media video, .th-hero-fallback {
  width: 100%; height: 100%; object-fit: cover;
}
.th-hero-fallback {
  background:
    linear-gradient(120deg, rgba(10,31,68,.55), rgba(196,163,90,.25)),
    radial-gradient(circle at 20% 20%, #1b3a6b, #0a1f44 60%);
}
.th-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 42%, rgba(255,255,255,.2) 100%);
}
.th-hero-content { position: relative; z-index: 1; padding: 4rem 0 5rem; max-width: 640px; }
.th-eyebrow {
  color: var(--th-gold); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 .75rem;
}
.th-hero h1, .th-page-hero h1 {
  font-family: var(--th-display); font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12; margin: 0 0 1rem; color: var(--th-navy);
}
.th-hero-sub { font-size: 1.15rem; font-weight: 600; margin: 0 0 .75rem; }
.th-hero-desc { color: var(--th-muted); margin: 0 0 1.5rem; max-width: 34rem; }
.th-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.th-hero-track {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--th-border);
  border-radius: 12px;
  box-shadow: var(--th-shadow);
  max-width: 34rem;
}
.th-hero-track-title {
  margin: 0 0 .65rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--th-navy);
}
.th-track-form { display: flex; flex-wrap: wrap; gap: .55rem; }
.th-track-input {
  flex: 1 1 180px;
  min-width: 0;
  border: 1px solid var(--th-border);
  border-radius: 8px;
  padding: .7rem .85rem;
  font: inherit;
  background: #fff;
}
.th-track-submit { flex: 0 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.th-reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; }
.th-reveal.is-visible, .th-reveal-delay-1.is-visible, .th-reveal-delay-2.is-visible, .th-reveal-delay-3.is-visible { opacity: 1; transform: none; }
.th-reveal-delay-1 { transition-delay: .1s; }
.th-reveal-delay-2 { transition-delay: .2s; }
.th-reveal-delay-3 { transition-delay: .3s; }

/* Values bar */
.th-values { background: var(--th-navy); color: #fff; padding: 2.25rem 0; }
.th-values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.th-value-item h3 {
  font-family: var(--th-display); font-size: .95rem; letter-spacing: .08em;
  text-transform: uppercase; margin: .5rem 0 .35rem; color: var(--th-gold);
}
.th-value-item p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.78); }
.th-value-icon {
  display: block; width: 28px; height: 2px; background: var(--th-gold);
}

/* Sections */
.th-section { padding: 4.5rem 0; }
.th-section-title {
  font-family: var(--th-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--th-navy); margin: 0 0 1rem; line-height: 1.2;
}
.th-center { text-align: center; }
.th-lead { color: var(--th-muted); max-width: 46rem; margin: 0 0 2rem; }
.th-lead.th-center { margin-inline: auto; }
.th-prose { color: var(--th-muted); }
.th-lead-block { margin-bottom: 2rem; font-size: 1.05rem; }
.th-muted { color: var(--th-muted); }

.th-card {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius);
  padding: 1.5rem; box-shadow: var(--th-shadow);
  transition: transform .25s, box-shadow .25s;
}
.th-card.is-visible { animation: thRise .6s ease both; }
.th-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(10,31,68,.12); }
@keyframes thRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.th-services { background: var(--th-bg-soft); }
.th-services-grid, .th-quick-grid, .th-quality-grid, .th-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.th-service-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--th-navy); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.th-service-card h3, .th-quick-card h3, .th-card h3 {
  font-family: var(--th-display); margin: 0 0 .5rem; color: var(--th-navy); font-size: 1.15rem;
}
.th-service-card p, .th-quick-card p, .th-card p { margin: 0 0 1rem; color: var(--th-muted); }

.th-trust-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2rem; opacity: .75; filter: grayscale(1);
}
.th-trust-logos img { max-height: 48px; width: auto; }

.th-about { background: #fff; }
.th-about-grid {
  display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 1.5rem; align-items: stretch;
}
.th-about-media img, .th-about-placeholder {
  width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--th-radius);
}
.th-about-placeholder { background: linear-gradient(160deg, #d9e2ef, #0a1f44); }
.th-checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; }
.th-checklist li {
  position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--th-ink);
}
.th-checklist li::before {
  content: ""; position: absolute; left: 0; top: .45rem;
  width: .7rem; height: .7rem; border-radius: 50%; background: var(--th-gold);
}
.th-mission {
  background: var(--th-navy); color: #fff; border-radius: var(--th-radius);
  padding: 2rem; display: flex; flex-direction: column; justify-content: center;
}
.th-mission blockquote {
  margin: 0; font-size: 1.1rem; line-height: 1.55; font-style: italic;
}
.th-mission cite { margin-top: 1.5rem; color: var(--th-gold); font-style: normal; font-weight: 700; }

.th-stats {
  background: var(--th-navy-deep); color: #fff; padding: 4rem 0;
}
.th-on-dark { color: #fff; }
.th-stats .th-lead { color: rgba(255,255,255,.75); }
.th-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem;
}
.th-stat-value {
  display: block; font-family: var(--th-display); font-size: 2.4rem;
  color: var(--th-gold); line-height: 1;
}
.th-stat span { font-weight: 700; }
.th-stat p { color: rgba(255,255,255,.65); font-size: .9rem; margin: .35rem 0 0; }

.th-testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.th-quote p { font-size: 1.02rem; color: var(--th-ink); }
.th-quote footer { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--th-muted); }
.th-stars { color: var(--th-gold); letter-spacing: 2px; }

.th-why { background: var(--th-bg-soft); }
.th-faq-narrow, .th-blog-narrow { max-width: 820px; }
.th-acc-item {
  border: 1px solid var(--th-border); border-radius: 8px; background: #fff;
  margin-bottom: .65rem; padding: .85rem 1rem;
}
.th-acc-item summary { cursor: pointer; font-weight: 700; color: var(--th-navy); }
.th-acc-body { margin-top: .65rem; color: var(--th-muted); }

.th-assist { background: var(--th-gold); }
.th-assist-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 0; font-weight: 700; color: var(--th-navy-deep);
}
.th-contact-strip { background: var(--th-navy); color: #fff; padding: 1.75rem 0; }
.th-contact-strip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
}
.th-contact-strip-item { display: flex; gap: .75rem; }
.th-contact-strip-item strong { display: block; color: var(--th-gold); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.th-contact-strip-item p, .th-contact-strip-item a { margin: .2rem 0 0; color: rgba(255,255,255,.88); font-size: .92rem; }
.th-icon-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--th-gold); margin-top: .45rem; flex: 0 0 auto; }

.th-footer { background: #0b1220; color: rgba(255,255,255,.8); padding-top: 3rem; }
.th-footer a { color: #fff; }
.th-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 2rem; padding-bottom: 2.5rem; }
.th-footer h3 { color: var(--th-gold); font-family: var(--th-display); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.th-footer-links { list-style: none; padding: 0; margin: 0; }
.th-footer-links li { margin-bottom: .45rem; }
.th-footer-link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-align: left;
}
.th-footer-link-btn:hover { color: var(--th-gold, #c4a35a); }
.th-newsletter { display: grid; gap: .55rem; }
.th-newsletter input {
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06);
  color: #fff; border-radius: 8px; padding: .7rem .85rem;
}
.th-check { font-size: .82rem; display: flex; gap: .45rem; align-items: flex-start; }
.th-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); background: #060a12; }
.th-footer-bottom-inner { padding: 1rem 0; font-size: .85rem; }

.th-page-hero {
  position: relative; padding: 4rem 0 3rem; background: var(--th-bg-soft); overflow: hidden;
}
.th-page-hero.has-media { color: #fff; min-height: 280px; display: flex; align-items: flex-end; }
.th-page-hero.has-media h1, .th-page-hero.has-media .th-hero-sub, .th-page-hero.has-media .th-eyebrow { color: #fff; position: relative; z-index: 1; }
.th-page-hero-bg { position: absolute; inset: 0; }
.th-page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.th-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.th-contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.th-contact-list li { margin-bottom: 1rem; display: grid; gap: .2rem; }
.th-form { display: grid; gap: .85rem; }
.th-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.th-form input, .th-form textarea {
  border: 1px solid var(--th-border); border-radius: 8px; padding: .7rem .85rem;
  font: inherit; width: 100%;
}
.th-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.th-alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.th-alert-success { background: #e8f7ee; color: #146c2e; }
.th-alert-error { background: #fdecec; color: #9b1c1c; }

.th-blog-cover { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: 8px 8px 0 0; margin: -1.5rem -1.5rem 1rem; }
.th-blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.th-blog-show-cover { margin: 1.5rem 0; border-radius: var(--th-radius); overflow: hidden; }
.th-blog-content { font-size: 1.05rem; }
.th-pagination { margin-top: 2rem; }

@media (max-width: 960px) {
  .th-values-grid, .th-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .th-services-grid, .th-quick-grid, .th-quality-grid, .th-blog-grid { grid-template-columns: 1fr 1fr; }
  .th-about-grid, .th-contact-layout, .th-footer-grid, .th-testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .th-services-grid, .th-quick-grid, .th-quality-grid, .th-blog-grid,
  .th-values-grid, .th-stats-grid, .th-form-row { grid-template-columns: 1fr; }
  .th-hero { min-height: 70vh; }
  .th-hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)); }
  .th-brand-logo { height: 40px; max-width: min(140px, 48vw); }
  .th-track-form { flex-direction: column; }
  .th-track-submit { width: 100%; }
}

/* Icons */
.th-icon-svg { display: inline-flex; width: 28px; height: 28px; color: inherit; }
.th-icon-svg svg { width: 100%; height: 100%; }
.th-value-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: .35rem; color: var(--th-gold, #c4a35a); }
.th-service-icon { display: flex; align-items: center; justify-content: center; color: #fff; }
.th-service-icon .th-icon-svg { width: 24px; height: 24px; }
.th-section { scroll-margin-top: 5rem; }
.th-hero-content { padding-top: 3.5rem; padding-bottom: 4rem; }
.th-about-grid { align-items: start; }
.th-quick { padding-top: 3.25rem; padding-bottom: 3.25rem; }

body.th-body #ify-chat-bubble,
body.th-body #ify-chat-widget,
body.th-body .ify-widget-button,
body.th-body [class*='ify-widget'] {
  z-index: 100001 !important;
}
