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

:root {
  --navy:  #14145C;
  --rust:  #B84A25;
  --white: #FFFFFF;
  --gray:  #6B7280;
  --light: #F8F9FA;
  --border: #E5E7EB;
}

html { font-size: 16px; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: #1F2937;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Homepage : tout dans le viewport, pas de scroll */
body.home {
  height: 100dvh;
  overflow: hidden;
}

body.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

header img { height: 36px; width: auto; }

header span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ── Main (pages légales) ── */
main { flex: 1; }

/* ── Hero ── */
.hero {
  text-align: center;
}

.hero-logo { display: block; width: 72px; height: auto; margin: 0 auto 0.75rem; }

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.5rem 0;
}

.hero p {
  font-size: 1rem;
  color: var(--gray);
  max-width: 480px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Products grid ── */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card .product-tag { margin-top: auto; align-self: flex-start; }

.product-card:hover { box-shadow: 0 4px 20px rgba(20,20,92,.08); }

.product-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.product-card p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.45;
}

.product-tag {
  display: inline-block;
  margin-top: 0.6rem;
  background: #EEF2FF;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Legal pages ── */
.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-container h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.legal-intro {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section { margin-bottom: 2.5rem; }

.legal-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rust);
  display: inline-block;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin: 1.25rem 0 0.75rem;
}

.legal-section p,
.legal-section li { font-size: 0.9rem; color: #374151; margin-bottom: 0.6rem; }

.legal-section ul { list-style: none; padding: 0; }

.legal-section ul li {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-section ul li:last-child { border-bottom: none; }

.legal-label {
  font-weight: 600;
  color: #374151;
  min-width: 200px;
  flex-shrink: 0;
}

.legal-section a { color: var(--rust); text-decoration: underline; }

.bullet-list {
  list-style: disc !important;
  padding-left: 1.25rem !important;
}

.bullet-list li {
  display: list-item !important;
  border-bottom: none !important;
  padding: 0.2rem 0 !important;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.data-table th {
  background: var(--light);
  color: var(--navy);
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
}

.data-table td {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  color: #374151;
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: #FAFAFA; }

.data-note {
  margin-top: 1rem;
  font-style: italic;
  color: var(--gray) !important;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

footer p { font-size: 0.78rem; color: var(--gray); }

footer a {
  font-size: 0.78rem;
  color: var(--gray);
  text-decoration: none;
}

footer a:hover { color: var(--navy); text-decoration: underline; }

.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  body.home { height: auto; overflow: auto; }
}

@media (max-width: 480px) {
  .products { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .legal-label { min-width: 140px; }
  .data-table { font-size: 0.78rem; }
}
