/* Brains2Dev · feuille de style du site (issue de la version 3 du 5 octobre 2026)
   Polices système uniquement, aucun cookie, aucune ressource externe. */

:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --surface-alt: #ece5d6;
  --ink: #2c3e50;
  --ink-muted: #5f6b78;
  --border: #e0d8c6;
  --primary: #5b7c99;
  --primary-strong: #3f5d78;
  --primary-ink: #ffffff;
  --gold: #a87a22;
  --danger: #a33a2c;
  --success: #2f7a4b;
  --radius: 20px;
  --max: 1100px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171b21;
    --surface: #1f252d;
    --surface-alt: #262e38;
    --ink: #ece7dc;
    --ink-muted: #a9b0b8;
    --border: #323a45;
    --primary: #9bb8d1;
    --primary-strong: #c3d6e6;
    --primary-ink: #171b21;
    --gold: #e0b86a;
    --danger: #f0a397;
    --success: #8fd3a8;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--primary-strong);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* En-tête fixe */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

section[id] {
  scroll-margin-top: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.brand .two {
  color: var(--gold);
  font-style: italic;
}

.brand img {
  width: 34px;
  height: 34px;
}

.top nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.top nav a {
  color: var(--ink-muted);
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 560px) {
  .top nav {
    gap: 16px;
  }

  .top nav .optional {
    display: none;
  }
}

/* Accroche */

.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero h1 em {
  color: var(--primary);
  font-style: italic;
}

.hero p {
  margin: 0 0 30px;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-fill {
  background: var(--primary-strong);
  color: var(--primary-ink);
}

.btn-fill:hover {
  filter: brightness(1.1);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-muted);
}

.btn-line:hover {
  border-color: var(--ink);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* Téléphone : cadre autour d'une vraie capture */

.phone {
  position: relative;
  width: 260px;
  padding: 10px;
  border-radius: 40px;
  background: #1c2229;
  box-shadow: 0 30px 60px rgba(44, 62, 80, 0.25), inset 0 0 0 2px #39424d;
}

.phone::before {
  /* caméra */
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #0d1116;
  z-index: 1;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1488;
  border-radius: 31px;
  background: #fafafa;
}

.hero-phones {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  min-height: 560px;
}

.hero-phones .phone {
  position: absolute;
}

.hero-phones .phone-back {
  top: 0;
  right: 0;
  width: 230px;
  transform: rotate(5deg);
  opacity: 0.96;
}

.hero-phones .phone-front {
  top: 36px;
  left: 0;
  transform: rotate(-3deg);
}

.hero-caption {
  position: absolute;
  bottom: -8px;
  right: 8px;
  margin: 0;
  max-width: 200px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: right;
}

@media (max-width: 480px) {
  .hero-phones {
    min-height: 470px;
    max-width: 320px;
  }

  .hero-phones .phone-front {
    width: 210px;
  }

  .hero-phones .phone-back {
    width: 175px;
    right: 4px;
  }
}

/* Principes */

.principles {
  padding: 72px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
}

.section-lead {
  margin: 0 0 40px;
  max-width: 60ch;
  color: var(--ink-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Applications */

.apps {
  padding: 72px 0;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 700px) {
  .app-list {
    grid-template-columns: 1fr;
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.app-card .head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.18);
}

.app-icon img,
.app-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.app-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.2;
}

.app-card .category {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.app-card .pitch {
  margin: 0;
  color: var(--ink-muted);
}

.app-card .more {
  margin-top: auto;
  padding-top: 6px;
}

.app-card .later {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Avancement */

.progress {
  margin: 0;
}

.progress .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.progress .row strong {
  color: var(--ink);
}

.progress .bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}

.progress .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.release {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  width: fit-content;
}

.release svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-muted);
}

.soon span,
.soon a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed var(--border);
  font-size: 0.92rem;
}

.soon a {
  color: var(--ink);
  text-decoration: none;
  border-style: solid;
  background: var(--surface);
}

.soon a:hover {
  border-color: var(--primary);
}

.soon a.all {
  margin-left: auto;
  border-color: var(--primary);
  color: var(--primary-strong);
  font-weight: 600;
}

/* Statut d'une app : étiquette, badge Google Play (règles de Google : hauteur d'au moins 28 px,
   marge d'un quart de la hauteur, badge officiel non modifié), aperçus des maquettes */

.app-card .tag {
  align-self: flex-start;
  margin: -6px 0 -4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-card.is-publiee .tag {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
}

.app-card.is-en-examen .tag,
.app-card.is-en-cours .tag {
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
}

.app-card .store {
  margin: 0;
}

.play-badge {
  display: inline-block;
  margin: 15px 0;
  line-height: 0;
  border-radius: 10px;
}

.play-badge img {
  display: block;
  width: auto;
  height: 60px;
}

.play-badge.small {
  margin: 12px 0;
}

.play-badge.small img {
  height: 48px;
}

.release.is-out svg {
  color: var(--success);
}

.trademark {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.apps .trademark {
  margin-top: 18px;
}

.group-title {
  margin: 36px 0 18px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.all-apps h1.section-title {
  margin-top: 0;
}

.apercu-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 4px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  background: rgba(28, 34, 41, 0.86);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.gallery .apercu-tag {
  top: -11px;
  font-size: 0.7rem;
}

.gallery li {
  padding-top: 12px;
}

.widget-apercu {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
}

/* Contact */

.contact {
  padding: 72px 0 88px;
  background: var(--primary-strong);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .contact {
    background: var(--surface-alt);
    color: var(--ink);
  }

  .contact .intro a {
    color: var(--primary-strong) !important;
  }

  .contact .form {
    background: var(--surface);
  }
}

.contact .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.contact h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
}

.contact .intro p {
  margin: 0 0 16px;
  opacity: 0.9;
}

.contact .intro a {
  color: #ffffff;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.form .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.field .opt {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field .hint,
.field .error {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.field .error {
  color: var(--danger);
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.form .privacy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.status:empty {
  display: none;
}

.status.ok {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.status.error {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

/* Pied de page */

.foot {
  padding: 26px 0 36px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.foot nav {
  display: flex;
  gap: 16px;
}

.foot a {
  color: var(--ink-muted);
}

/* Page d'une application */

.crumbs {
  padding-top: 24px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.crumbs a {
  color: var(--ink-muted);
}

.app-hero {
  padding: 28px 0 56px;
}

.app-hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .app-hero .wrap {
    grid-template-columns: 1fr;
  }
}

.app-hero .title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.app-hero .app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.app-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.1;
}

.app-hero .category {
  margin: 4px 0 0;
  color: var(--ink-muted);
}

.app-hero .lead {
  margin: 0 0 24px;
  max-width: 54ch;
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.app-hero .facts {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin-bottom: 24px;
}

.app-hero .phone {
  justify-self: center;
  transform: rotate(2deg);
}

.features {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.feature-grid h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.feature-grid p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.screens {
  padding: 64px 0;
}

.gallery {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 8px 4px 24px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.gallery li {
  flex: none;
  scroll-snap-align: start;
}

.gallery figure {
  margin: 0;
  width: 230px;
}

.gallery .phone {
  display: block;
  width: 230px;
  padding: 8px;
  border-radius: 34px;
  box-shadow: 0 16px 32px rgba(44, 62, 80, 0.2), inset 0 0 0 2px #39424d;
}

.gallery .phone::before {
  top: 15px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
}

.gallery .phone img {
  border-radius: 27px;
}

.gallery button.zoom {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 34px;
}

.gallery figcaption {
  margin-top: 14px;
  font-size: 0.95rem;
}

.gallery figcaption strong {
  display: block;
}

.gallery figcaption span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.gallery-hint {
  margin: -8px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.widget-shot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 40px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .widget-shot {
    grid-template-columns: 1fr;
  }
}

.widget-shot img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(44, 62, 80, 0.18);
}

.widget-shot h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.widget-shot p {
  margin: 0;
  color: var(--ink-muted);
}

.note {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.app-contact {
  padding: 56px 0 72px;
  background: var(--surface-alt);
  text-align: center;
}

.app-contact h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.app-contact p {
  margin: 0 auto 24px;
  max-width: 56ch;
  color: var(--ink-muted);
}

/* Agrandissement d'une capture */

.lightbox {
  width: min(94vw, 460px);
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 15, 20, 0.82);
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox p {
  margin: 12px 0 0;
  color: #ffffff;
  text-align: center;
}

.lightbox .close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #1c2229;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Mentions légales */

.prose {
  max-width: 760px;
  padding: 40px 0 64px;
}

.prose h1 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.prose .updated {
  margin: 0 0 32px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.prose dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 20px;
  margin: 0;
}

.prose dt {
  font-weight: 600;
}

.prose dd {
  margin: 0;
}

@media (max-width: 560px) {
  .prose dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .prose dd {
    margin-bottom: 10px;
  }
}

.prose ul {
  padding-left: 1.2em;
}

/* Politique de confidentialité d'une application (générée par scripts/build-privacy.mjs) */

.policy .app-name {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.policy .app-name span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.policy .summary {
  margin: 0 0 28px;
  padding: 18px 24px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.policy .summary h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.policy .toc ol {
  margin: 0;
  padding-left: 1.4em;
  columns: 2 260px;
  column-gap: 32px;
}

.policy h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

.policy li + li {
  margin-top: 6px;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.policy th,
.policy td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.policy th {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.policy td:first-child {
  width: 42%;
}

.policy code {
  font-size: 0.78rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .policy .summary {
    padding: 14px 16px 4px;
  }

  .policy table,
  .policy tbody,
  .policy tr,
  .policy td {
    display: block;
    width: 100%;
  }

  .policy thead {
    display: none;
  }

  .policy td {
    padding: 0;
    border: 0;
  }

  .policy tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .policy td:first-child {
    width: 100%;
    margin-bottom: 4px;
  }
}

/* Guides pratiques et espace presse (générés par scripts/build-guides.mjs) */

.guides .feature-grid h3 a,
.app-guides .feature-grid h3 a {
  color: var(--ink);
}

.guides .more {
  margin: 24px 0 0;
}

/* auto-fill : une carte seule (page d'une app) garde la largeur d'une colonne */
.guide-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.guide-list li:has(.guide-thumb) {
  border-top: 0;
  padding-top: 0;
}

.guide-list .guide-thumb {
  display: block;
  margin: 0 0 14px;
}

.guide-list .guide-thumb img,
.guide-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 12px;
  background: var(--border);
}

.guide-photo {
  margin: 0 0 28px;
}

.guide-photo figcaption {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.guide-photo figcaption a {
  color: inherit;
}

.guide .lead {
  font-size: 1.12rem;
}

.guide .toc ol {
  margin: 0 0 8px;
  padding-left: 1.4em;
  columns: 2 220px;
  column-gap: 32px;
}

.guide h3 {
  margin: 20px 0 6px;
  font-size: 1.1rem;
}

.guide .table-wrap {
  margin: 16px 0;
  overflow-x: auto;
}

.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide th,
.guide td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.guide thead th {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.guide tbody th {
  font-weight: 600;
}

.guide tr.family th {
  padding-top: 20px;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.guide .when {
  display: block;
}

.guide tr.is-pont td:last-child,
.guide tr.is-viaduc td:last-child,
.guide tr.is-long td:last-child {
  color: var(--success);
  font-weight: 600;
}

.guide details {
  margin: 8px 0;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.guide summary {
  cursor: pointer;
  font-weight: 600;
}

.guide details ul {
  margin: 8px 0 0;
}

.guide .callout,
.guide .formula {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.guide .callout p {
  margin: 4px 0;
}

.guide .formula {
  font-family: var(--serif);
  font-size: 1.08rem;
}

.guide .sources {
  font-size: 0.92rem;
}

.guide-app {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin: 40px 0 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-app .kicker {
  margin: 0;
}

.guide-app h2 {
  margin: 2px 0 8px;
}

.guide-app p {
  margin: 0 0 10px;
}

.press dl {
  margin-bottom: 8px;
}

.press-apps {
  padding: 0;
  list-style: none;
}

.press-apps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.press-apps img {
  border-radius: 12px;
}

.press-apps h3 {
  margin: 0 0 4px;
}

.press-apps h3 span {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.press-apps p {
  margin: 0 0 4px;
}

@media (max-width: 560px) {
  .guide-app {
    grid-template-columns: 1fr;
  }

  .guide table,
  .guide tbody,
  .guide tr,
  .guide td,
  .guide tbody th {
    display: block;
    width: 100%;
  }

  .guide thead {
    display: none;
  }

  .guide td,
  .guide tbody th {
    padding: 2px 0;
    border: 0;
  }

  .guide tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .guide td[data-label]::before {
    content: attr(data-label) " : ";
    color: var(--ink-muted);
    font-size: 0.85rem;
  }

  .guide table.zones td[data-label]::before {
    display: block;
    margin-top: 6px;
    font-weight: 600;
  }
}

@media print {
  .top,
  .foot,
  .crumbs,
  .skip-link,
  .guide .toc,
  .guide-app {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .guide details {
    border: 0;
    padding: 0;
  }
}
