/* Zontic — feuille de styles principale */

:root {
  --color-navy: #0b1f3a;
  --color-navy-light: #16305a;
  --color-teal: #14b8a6;
  --color-teal-dark: #0a7268; /* assombri par rapport à #0d9488 : ~3,75:1 sur fond clair, insuffisant pour le texte (WCAG AA 4,5:1) ; ~5,8:1 avec cette valeur */
  --color-bg: #f5f8fa;
  --color-surface: #ffffff;
  --color-text: #16202b;
  --color-text-muted: #4a5a6a;
  --color-border: #dde5ec;
  --radius-lg: 1rem;
  --radius-md: 0.6rem;
  --shadow-card: 0 6px 20px rgba(11, 31, 58, 0.08);
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3 {
  color: var(--color-navy);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--color-teal-dark);
}

a:hover {
  color: var(--color-navy);
}

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

:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 46rem;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--color-teal-dark);
}

/* En-tête */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: inline-flex;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--color-navy);
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.main-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.25rem;
}

.main-nav__list.is-open {
  display: flex;
}

.main-nav__list a {
  display: block;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] {
  color: var(--color-teal-dark);
  background: var(--color-bg);
}

@media (min-width: 720px) {
  .nav-toggle {
    display: none;
  }

  .main-nav__list {
    display: flex;
    flex-direction: row;
    position: static;
    border: 0;
    padding: 0;
    gap: 0.5rem;
  }
}

/* Boutons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-teal-dark);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-navy);
}

.btn--large {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

/* Sections génériques */

.section {
  padding: 3rem 0;
}

.section--muted {
  background: var(--color-surface);
}

.section--cta {
  text-align: center;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 60%, var(--color-teal-dark) 130%);
  color: #fff;
}

.hero h1 {
  color: #fff;
}

.hero__lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

.hero__promise {
  max-width: 40rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
}

.hero__promise a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.hero__promise a:hover {
  color: var(--color-teal);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn--ghost:hover {
  border-color: #fff;
}

/* Catégories */

.category-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.9rem;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.category-card a {
  display: block;
  padding: 1.1rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-navy);
}

.category-card a:hover {
  color: var(--color-teal-dark);
}

.category-filters {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filters a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-navy);
  font-size: 0.9rem;
}

.category-filters a[aria-current="page"] {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: #fff;
}

/* Outils */

.tool-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
}

.tool-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.2rem;
}

.tool-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-teal-dark);
  background: rgba(20, 184, 166, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.tool-card__categorie {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.tool-card__icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-teal-dark);
  margin-bottom: 0.6rem;
}

.tool-card__badge--live {
  background: var(--color-teal-dark);
  color: #fff;
}

.tool-card h2,
.tool-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.tool-card__link {
  color: var(--color-navy);
  text-decoration: none;
}

.tool-card--live .tool-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.tool-card--live:hover {
  border-color: var(--color-teal-dark);
}

.tool-card--live:hover .tool-card__link {
  color: var(--color-teal-dark);
}

.tool-card__local {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0.6rem 0 0;
}

/* Recherche */

.tools-search {
  margin: 1.5rem 0;
  max-width: 28rem;
}

.tools-search label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tools-search input[type="search"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.tools-search input[type="search"]:focus-visible {
  border-color: var(--color-teal);
}

.tools-search__status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Étapes */

.steps {
  list-style: none;
  counter-reset: steps;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.2rem;
}

.steps li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
}

/* Pied de page */

.site-footer {
  background: var(--color-navy);
  color: #d8e2ee;
  padding: 2.5rem 0;
  margin-top: 2rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer__brand img {
  filter: brightness(0) invert(1);
}

.site-footer__brand p {
  margin-top: 0.6rem;
  color: #b7c4d6;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.site-footer__nav a {
  color: #d8e2ee;
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--color-teal);
}

.site-footer__copy {
  font-size: 0.85rem;
  color: #8ea0b8;
  margin: 0;
}

@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
  }
}

/* Divers */

.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Fil d'Ariane */

.breadcrumb {
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-teal-dark);
}

.breadcrumb li[aria-current="page"] {
  color: var(--color-navy);
  font-weight: 600;
}

/* Page outil */

.tool-page__local-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  background: rgba(20, 184, 166, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tool-interface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.tool-interface h2 {
  margin-top: 0;
}

.tool-field {
  margin-bottom: 1rem;
}

.tool-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tool-field input[type="text"],
.tool-field input[type="number"],
.tool-field input[type="search"],
.tool-field select {
  width: 100%;
  max-width: 24rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.tool-field input:focus-visible,
.tool-field select:focus-visible {
  border-color: var(--color-teal);
}

.tool-field--checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tool-field--checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.tool-result {
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.tool-result__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  word-break: break-all;
}

.tool-result__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}

.tool-note {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.tool-note--confidentialite {
  border-left: 4px solid var(--color-teal);
}

.tool-note--limites {
  border-left: 4px solid var(--color-navy-light);
}

.tool-note h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.tool-note ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* FAQ */

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
  background: var(--color-surface);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--color-text-muted);
}

/* Outils sécurité : avertissements, erreurs, robustesse, QR code */

.tool-warning {
  background: #fff7e6;
  border: 1px solid #f0c96b;
  border-left: 4px solid #b8860b;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
}

.tool-warning p {
  margin: 0;
  color: #6b4e00;
}

.tool-error {
  color: #9b1c1c;
  font-weight: 600;
  min-height: 1.2rem;
  margin: 0.5rem 0;
}

.tool-error:empty {
  margin: 0;
}

.tool-strength-bar {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--color-border);
  overflow: hidden;
  margin: 0.6rem 0;
}

.tool-strength-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--color-border);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.tool-strength-bar__fill--0,
.tool-strength-bar__fill--1 {
  background: #c0392b;
}

.tool-strength-bar__fill--2,
.tool-strength-bar__fill--3 {
  background: #d98c00;
}

.tool-strength-bar__fill--4 {
  background: #d9b400;
}

.tool-strength-bar__fill--5 {
  background: #4c9a2a;
}

.tool-strength-bar__fill--6 {
  background: var(--color-teal-dark);
}

.tool-notes-list {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.qr-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.qr-preview svg {
  max-width: 220px;
  width: 100%;
  height: auto;
}

.tool-field textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
}

.tool-field textarea:focus-visible {
  border-color: var(--color-teal);
}

.tool-actions .btn[aria-pressed="true"] {
  border-color: var(--color-teal-dark);
  color: var(--color-teal-dark);
}

/* Outils Immobilier : formules, tableaux, check-list, budget travaux */

.tool-result-detail p {
  margin: 0.3rem 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.formulas-list {
  margin: 0;
}

.formulas-list dt {
  font-weight: 600;
  color: var(--color-navy);
  margin-top: 0.9rem;
}

.formulas-list dt:first-child {
  margin-top: 0;
}

.formulas-list dd {
  margin: 0.3rem 0 0;
}

.formulas-list code {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.formulas-list__note {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.tool-table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
}

.tool-table th,
.tool-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
  font-size: 0.9rem;
}

.tool-table th:first-child,
.tool-table td:first-child {
  text-align: left;
}

.tool-table thead th {
  background: var(--color-bg);
  color: var(--color-navy);
  font-weight: 600;
}

/* Check-list état des lieux */

.checklist-sections {
  margin-top: 1rem;
}

.checklist-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}

.checklist-section legend {
  font-weight: 700;
  color: var(--color-navy);
  padding: 0 0.4rem;
}

.checklist-section__list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.checklist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
}

.checklist-item:first-child {
  border-top: 0;
}

.checklist-item__check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  min-width: 12rem;
  flex: 1 1 12rem;
}

.checklist-item__etat select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-family: inherit;
}

.checklist-item__comment {
  flex: 2 1 14rem;
}

.checklist-item__comment input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Simulateur de budget travaux */

.budget-rows {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.budget-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.budget-row__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1 1 8rem;
}

.budget-row__field input,
.budget-row__field select {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
}

.budget-row__total {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 8rem;
}

.budget-row__total strong {
  color: var(--color-navy);
  font-size: 1rem;
}

.budget-row__remove {
  align-self: center;
}

/* Impression / export PDF */

@media print {
  .no-print,
  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumb,
  .tool-note--confidentialite,
  .tool-note--limites,
  section[aria-labelledby="faq-titre"],
  section[aria-labelledby="suggestions-titre"],
  .btn {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .checklist-item__comment input,
  .checklist-item__etat select {
    border: 1px solid #999;
    background: #fff;
    color: #000;
  }
}

/* Outils Photo */

.tool-privacy-notice {
  display: inline-block;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

input[type="file"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0;
  font-family: inherit;
  color: var(--color-text);
}

.image-tool {
  margin-top: 1rem;
}

.image-tool__panel {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.image-tool__panel h3 {
  margin-top: 0;
}

.image-tool__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0.5rem;
}

.image-tool__frame img {
  max-width: 100%;
  max-height: 320px;
  display: block;
}

.tool-warning-inline {
  min-height: 1.2rem;
  color: #8a5a00;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.6rem 0;
}

input[type="range"] {
  width: 100%;
  max-width: 24rem;
}

/* Outils RGPD & Documents : registre, notice, cookies, vCard, WhatsApp, QR */

.legal-record-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-record-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  background: var(--color-surface);
}

.legal-record-card h3,
.legal-record-card h4 {
  margin-top: 0;
}

.tool-checkbox-list {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-checkbox-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.legal-document-preview {
  margin: 1.2rem 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.legal-document {
  background: #ffffff;
  color: #16202b;
  padding: 1.5rem 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: auto;
}

.legal-document h1 {
  color: #16202b;
  font-size: 1.5rem;
}

.legal-document h2 {
  color: #16202b;
  font-size: 1.15rem;
  margin-top: 1.6rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

.legal-doc__disclaimer {
  background: #fff7e6;
  border: 1px solid #f0c96b;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-base);
}

.legal-doc__missing {
  color: #9b1c1c;
  font-style: italic;
}

.legal-doc__item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 0.8rem 0;
}

.legal-doc-pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  font-size: 0.85rem;
  max-height: 20rem;
  overflow-y: auto;
}

/* Outils Productivité */

.pomodoro-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.pomodoro-banner {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 1.2rem 0;
  color: #ffffff;
  background: var(--color-navy);
  transition: background-color 0.3s ease;
}

.pomodoro--travail {
  background: var(--color-navy);
}

.pomodoro--pause-courte {
  background: var(--color-teal-dark);
}

.pomodoro--pause-longue {
  background: var(--color-navy-light);
}

.pomodoro-banner__phase {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

.pomodoro-banner__display {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.pomodoro-banner__cycle {
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

.pomodoro-banner--flash {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .pomodoro-banner {
    transition: none;
  }
}

.printable-checklist {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.printable-checklist li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.printable-checklist label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.printable-calendar,
.printable-planning {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.printable-calendar caption,
.printable-planning caption {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  text-align: left;
}

.printable-calendar th,
.printable-calendar td,
.printable-planning th,
.printable-planning td {
  border: 1px solid #999;
  padding: 0.4rem;
  text-align: left;
  vertical-align: top;
}

.printable-calendar td {
  height: 4.5rem;
  width: 14.28%;
}

.printable-calendar__empty {
  background: #f2f2f2;
}

.printable-calendar__day-number {
  font-weight: 700;
}

.printable-planning td {
  height: 2rem;
}

.printable-planning th[scope="row"] {
  white-space: nowrap;
  font-weight: 600;
}

.local-tools-list {
  list-style: none;
  margin: 0.6rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.local-tools-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.9rem;
  background: var(--color-surface);
}

.local-tools-list__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-teal-dark);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

/* Guides */

.guides-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}

.guides-list__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.2rem 1.3rem;
}

.guides-list__item h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.guides-list__item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Formulaire de contact */

.contact-form {
  max-width: 34rem;
}

.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  resize: vertical;
}

.contact-form textarea:focus-visible {
  border-color: var(--color-teal);
}

.tool-error-list {
  background: #fdecec;
  border: 1px solid #f2b8b8;
  border-left: 4px solid #9b1c1c;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
}

.tool-error-list ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #9b1c1c;
}

.tool-result__value--break-all {
  word-break: break-all;
}
