:root {
  --bg: #0c1222;
  --bg-card: #141d33;
  --bg-soft: #1a2744;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --urgent: #f59e0b;
  --urgent-bg: rgba(245, 158, 11, 0.12);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --topbar-h: 2.75rem;
  --header-h: 5.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  padding-top: 0;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Barre urgence sticky (plus de contenu masque) */
.site-top-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  min-height: var(--topbar-h);
  padding: 0.5rem 1rem;
  background: #b45309;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.site-top-bar a {
  color: #fff;
  text-decoration: none;
}
.site-top-bar a:hover {
  text-decoration: underline;
}
.topbar-sep {
  opacity: 0.7;
  user-select: none;
}

/* Header */
.site-header {
  position: sticky;
  top: var(--topbar-h, 2.75rem);
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(12, 18, 34, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.logo-img {
  height: 52px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.logo-text {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.logo span { color: var(--accent-light); }

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-main a:hover { color: var(--text); text-decoration: none; }
/* Tel deja dans la barre orange */
.site-header .btn-urgent { display: none !important; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-urgent {
  background: linear-gradient(135deg, var(--urgent), #d97706);
  color: #0c1222;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-glow), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--urgent-bg);
  color: var(--urgent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-trust strong { color: var(--text); display: block; }
.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  position: relative;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  object-position: top center;
}
.hero-visual.img-fallback .img-placeholder { display: block; }
.hero-visual:not(.img-fallback) .img-placeholder { display: none; }
.hero-visual .img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.merged-block {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.merged-block h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
.merged-block p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.gallery-section {
  padding: 3rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.5rem 0.65rem;
  text-align: center;
}

/* Sections */
section { padding: 3rem 0; }
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin: 0 0 2rem; max-width: 640px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
a.card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover { text-decoration: none; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* SEO blocks */
.seo-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.seo-block h2 { margin-top: 0; font-size: 1.35rem; }
.seo-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-soft);
  border-radius: 6px;
  color: var(--muted);
  border: 1px solid var(--border);
}
.tag a { color: var(--accent-light); }

/* Crosslinks */
.crosslinks {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.crosslinks h3 { font-size: 1rem; margin: 0 0 1rem; color: var(--muted); }
.crosslinks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 { color: var(--text); margin: 0 0 0.75rem; font-size: 0.95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Local / lists */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.link-grid {
  columns: 3;
  column-gap: 1.5rem;
  font-size: 0.88rem;
}
@media (max-width: 768px) { .link-grid { columns: 2; } }
@media (max-width: 480px) { .link-grid { columns: 1; } }
.link-grid a { display: block; margin-bottom: 0.35rem; }

.urgency-banner:not(.site-top-bar) {
  text-align: center;
  padding: 0.75rem;
  background: var(--urgent-bg);
  color: var(--urgent);
  font-weight: 600;
  font-size: 0.9rem;
}

.content-narrow { max-width: 820px; }
.img-placeholder {
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
