:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #b8744f;
  --accent-soft: #f97316;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.25);
  --shadow-card: 0 12px 24px rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f3f4f6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 42px 0;
}

.section-alt {
  background: #f9fafb;
}

.section-highlight {
  background: #0f172a;
  color: #f9fafb;
}

.section-intro {
  max-width: 640px;
  margin: 8px 0 32px;
}

.muted {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: #f9fafb;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.logo span {
  color: var(--accent-soft);
}
a.logo {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hero {
  background: radial-gradient(circle at top left, #1f2937, #020617);
  color: #f9fafb;
  padding: 40px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: #facc15;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero-sub {
  margin: 0 0 16px;
  color: #e5e7eb;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: #e5e7eb;
}

.hero-bullets li::before {
  content: "• ";
  color: var(--accent-soft);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.hero-note {
  font-size: 0.85rem;
  color: #9ca3af;
  max-width: 440px;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: #020617;
  border-radius: 24px;
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card img {
  border-radius: 18px;
  height: 260px;
  width: 100%;
  object-fit: cover;
}

.hero-price-tag {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-card-title {
  margin: 10px 4px 4px;
  font-weight: 600;
}

.hero-card-text {
  margin: 0 4px 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.btn-primary,
.btn-ghost,
.btn-link {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: #ff652f;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: #ff652f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding-inline: 18px;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.site-header .btn-ghost {
  background: #ff652f;
  color: #fff;
  border-color: #ff652f;
}

.site-header .btn-ghost:hover {
  background: #ff652f;
  border-color: #ff652f;
  color: #fff;
}

.btn-link {
  background: transparent;
  color: #e5e7eb;
  padding-inline: 0;
  padding-block: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

.btn-primary .btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
.btn-primary .btn-loader:not([hidden]) {
  display: inline-block;
}
.btn-primary .btn-text[hidden] {
  display: none;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.cards-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Section Comprendre les risques – titre + grille 3×2 */
.section-title-risques {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 28px;
}

.articles-risques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .articles-risques-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .articles-risques-grid {
    grid-template-columns: 1fr;
  }
}

/* Carte risque : image fond, overlay, titre + lien */
.landing-risque-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.landing-risque-card:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-risque-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1f2937;
}

.landing-risque-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.2) 100%);
}

.landing-risque-card-title {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.landing-risque-card-link {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  z-index: 1;
}

.landing-risque-card:hover .landing-risque-card-link {
  text-decoration: underline;
}

.landing-article-card .article-intro {
  margin-bottom: 1rem;
}

.landing-article-card .btn-primary {
  margin-top: 0.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted, #666);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Présentation article = /categories (sans kits) */
.section-risques-article.section-padding.section-offset {
  padding-top: 24px;
  padding-bottom: 24px;
}

.section-padding {
  padding: 48px 0 56px;
}

.section-offset {
  padding-top: 0;
}

.section-risques-article .stack-lg {
  display: grid;
  gap: 24px;
}

.stack-md {
  display: grid;
  gap: 20px;
}

.back-to-risques {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  margin-bottom: 12px;
  color: var(--muted, #6b7280);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-to-risques:hover {
  color: var(--accent);
  text-decoration: underline;
}

.heading-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.heading-with-icon:first-of-type {
  margin-top: 0;
}

.heading-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.heading-icon svg {
  width: 100%;
  height: 100%;
}

.section-risques-article h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.25;
}

.section-risques-article h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.section-risques-article .stack-md p,
.section-risques-article .stack-md ul {
  margin: 0 0 12px;
}

.section-risques-article .stack-md ul {
  padding-left: 1.25rem;
}

.landing-article-single .article-intro {
  margin-bottom: 1.5rem;
}

.landing-article-single .article-section {
  margin-top: 1.5rem;
}

.landing-article-single .article-section h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.landing-article-single .article-section ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.landing-article {
  padding: 24px 22px;
}

.landing-article .article-intro {
  margin-bottom: 1rem;
}

.landing-article .article-section {
  margin-top: 1.25rem;
}

.landing-article .article-section:first-of-type {
  margin-top: 0;
}

.landing-article h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.landing-article .subheading {
  margin-top: 0;
  margin-bottom: 8px;
}

.landing-article ul {
  margin: 8px 0 12px;
  padding-left: 1.2rem;
}

.list {
  padding-left: 1.2rem;
  margin: 0 0 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.step {
  display: flex;
  gap: 10px;
  align-items: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ff652f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.form-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: flex-start;
}

.form-copy h2 {
  margin-top: 0;
}

.form-bullets {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.form-bullets li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-bullets li::before {
  content: "✓ ";
  color: #22c55e;
}

.form {
  background: #020617;
  color: #e5e7eb;
}

.form .field {
  margin-bottom: 14px;
}

.form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.form .field-error {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #ff652f;
}
.form .field-error:not([hidden]) {
  display: block;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: #f9fafb;
  font: inherit;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #6b7280;
}

.form-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

.form-success {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #4ade80;
}

.form-error {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ff652f;
}

.site-footer {
  padding: 32px 0 40px;
  background: #020617;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-cta {
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 16px;
}
.footer-links a {
  color: #9ca3af;
  text-decoration: underline;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #e5e7eb;
}

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0f172a;
  color: #e5e7eb;
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-banner-text {
  margin: 0;
  font-size: 0.9rem;
  flex: 1 1 280px;
}
.cookie-banner-text a {
  color: var(--accent-soft);
  text-decoration: underline;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-btn-refuse {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}
.cookie-btn-refuse:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero-grid,
  .form-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: center;
  }

  .section,
  .hero {
    padding-inline: 0;
  }
}

@media (max-width: 768px) {
  .site-header .logo {
    margin-left: 8px;
    margin-right: 12px;
  }
  .site-header .btn-ghost {
    padding-inline: 10px;
  }
}

@media (max-width: 600px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
  .site-header .btn-ghost {
    width: auto;
  }

  .header-inner {
    padding-block: 8px;
  }
}

