/*
 * Thème du site, tiré de la maquette figée (rezokaraib-materials/site_test, décision 010, lot D1).
 * Bootstrap 5.3 reste la base : ses variables reçoivent les couleurs et les formes de la maquette.
 * Ce fichier ajoute seulement ce que Bootstrap n'a pas (en-tête, cartes d'annonce, boîtes, étapes…).
 */

:root {
  --yellow: #ffc800;
  --yellow-dark: #e6b400;
  --yellow-pale: #fff6d1;
  --yellow-line: #f0e2a8;
  --cream: #fffcf2;
  --ink: #2a2416;
  --ink-hover: #423921;
  --ink-soft: #5e5642;
  --line: #eee6cc;
  --font-title: "Bitter", georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --radius-m: 16px;
  --radius-l: 24px;
  --page-width: 1180px;
  --header-height: 76px;
  --topbar-height: 42px;

  --bs-body-font-family: var(--font-text);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-body-color: var(--ink);
  --bs-body-color-rgb: 42, 36, 22;
  --bs-body-bg: #fff;
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--ink-soft);
  --bs-heading-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: var(--radius-l);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 42, 36, 22;
  --bs-link-hover-color: var(--ink);
  --bs-link-hover-color-rgb: 42, 36, 22;
  --bs-primary: var(--yellow);
  --bs-primary-rgb: 255, 200, 0;
  --bs-primary-bg-subtle: var(--yellow-pale);
  --bs-primary-border-subtle: var(--yellow-line);
  --bs-primary-text-emphasis: var(--ink);
  --bs-dark: var(--ink);
  --bs-dark-rgb: 42, 36, 22;
  --bs-focus-ring-color: rgba(255, 200, 0, 0.6);
}

/* Les anciennes feuilles fixent encore leur police sur body : le thème, chargé après, la remplace. */
body {
  font-family: var(--font-text);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Les anciennes pages enlevaient le soulignement par !important ; le thème le fait sans, une classe peut le remettre. */
a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (min-width: 1200px) {
  .container {
    max-width: calc(var(--page-width) + var(--bs-gutter-x));
  }
}

/* Largeur des pages refaites, comme la maquette : 1180 px, 16 px de marge sur les petits écrans. */
.page-width {
  width: min(var(--page-width), 100% - 32px);
  margin-inline: auto;
}

/* Grilles de la maquette ; elles basculent aux mêmes largeurs qu'elle (voir la fin du fichier). */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

/* Boutons : pilules jaune, sombre ou contour. */
.btn {
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 15px;
  --bs-btn-font-weight: 600;
  --bs-btn-font-size: 1rem;
  --bs-btn-line-height: 1;
  --bs-btn-border-width: 2px;
  --bs-btn-border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-sm {
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 9px;
  --bs-btn-font-size: 0.92rem;
}

.btn-primary {
  --bs-btn-color: var(--ink);
  --bs-btn-bg: var(--yellow);
  --bs-btn-border-color: var(--yellow);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--yellow-dark);
  --bs-btn-hover-border-color: var(--yellow-dark);
  --bs-btn-active-color: var(--ink);
  --bs-btn-active-bg: var(--yellow-dark);
  --bs-btn-active-border-color: var(--yellow-dark);
  --bs-btn-disabled-color: var(--ink);
  --bs-btn-disabled-bg: var(--yellow);
  --bs-btn-disabled-border-color: var(--yellow);
  --bs-btn-focus-shadow-rgb: 255, 200, 0;
}

.btn-dark {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ink-hover);
  --bs-btn-hover-border-color: var(--ink-hover);
  --bs-btn-active-bg: var(--ink-hover);
  --bs-btn-active-border-color: var(--ink-hover);
}

.btn-outline-dark {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
}

.link-strong {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* Champs de formulaire. */
.form-control,
.form-select {
  line-height: normal;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow);
}

.form-label,
.col-form-label {
  font-weight: 600;
  font-size: 0.93rem;
}

/* Champ de la maquette : 6 px entre le libellé, le champ et l'aide, 14 px entre deux champs. */
.form-step .form-label {
  display: block;
  margin-bottom: 6px;
}

.form-step .mb-3 {
  margin-bottom: 14px !important;
}

.form-step .form-text {
  margin-top: 6px;
}

/* La maquette signale les étapes facultatives dans leur titre, pas d'astérisque sur les libellés. */
.form-step .asteriskField {
  display: none;
}

.form-step .form-check-label {
  font-size: 0.93rem;
}

.form-text {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.form-check-input:checked {
  background-color: var(--ink);
  border-color: var(--ink);
}

.form-check-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow);
}

.input-group-text {
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Pastilles et statuts : badges Bootstrap aux couleurs du site. */
.badge {
  --bs-badge-padding-x: 12px;
  --bs-badge-padding-y: 4px;
  --bs-badge-font-size: 0.82rem;
  --bs-badge-font-weight: 600;
  --bs-badge-color: var(--ink);
  --bs-badge-border-radius: 999px;
}

/* Le Bootstrap du site écrit en blanc sur le jaune : la maquette écrit en encre. */
.badge.text-bg-primary {
  color: var(--ink) !important;
  background-color: var(--yellow) !important;
}

.box-yellow .badge.text-bg-primary,
.listing-card-image-empty .badge.text-bg-primary {
  background-color: #fff !important;
}

.badge.bg-white {
  border: 1.5px solid var(--line);
}

/* Les pastilles de la maquette gardent la hauteur de ligne du texte (Bootstrap la met à 1). */
.listing-card .badge,
.badges .badge,
.box .badge {
  line-height: 1.6;
}

/* Statut dans un tableau : pastille un peu plus petite. */
.table-plain .badge {
  --bs-badge-font-size: 0.8rem;
  --bs-badge-padding-x: 10px;
  --bs-badge-padding-y: 3px;
  line-height: 1.6;
}

/* Pagination en pastilles séparées. */
.pagination {
  --bs-pagination-color: var(--ink);
  --bs-pagination-hover-color: var(--ink);
  --bs-pagination-hover-bg: #fff;
  --bs-pagination-hover-border-color: var(--yellow);
  --bs-pagination-focus-color: var(--ink);
  --bs-pagination-focus-box-shadow: 0 0 0 3px var(--yellow);
  --bs-pagination-active-color: var(--ink);
  --bs-pagination-active-bg: var(--yellow);
  --bs-pagination-active-border-color: var(--yellow);
  --bs-pagination-disabled-color: var(--ink-soft);
  --bs-pagination-disabled-bg: transparent;
  --bs-pagination-border-color: var(--line);
  gap: 6px;
  justify-content: center;
  margin-top: 36px;
}

.panel .pagination {
  margin-top: 16px;
}

.pagination .page-link {
  white-space: nowrap;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border-width: 1.5px;
  border-radius: 999px !important;
  margin-left: 0 !important;
  font-weight: 600;
}

/* Fil d'Ariane. */
.breadcrumb {
  color: var(--ink-soft);
  --bs-breadcrumb-divider: "/";
  --bs-breadcrumb-divider-color: var(--ink-soft);
  --bs-breadcrumb-item-active-color: var(--ink-soft);
  --bs-breadcrumb-margin-bottom: 16px;
  --bs-breadcrumb-item-padding-x: 6px;
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* Téléphone : un long fil se replie mal ; seul reste le lien vers la page parente, « ← Services ». */
@media (max-width: 680px) {
  .breadcrumb-item:not(:has(+ .active)) {
    display: none;
  }

  .breadcrumb-item:has(+ .active)::before {
    content: "←";
    float: none;
    padding: 0 6px 0 0;
  }
}

/* Avatar : photo ou initiales (composant <c-avatar>). */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--yellow);
  color: var(--ink);
  font: 700 0.8rem/1 var(--font-title);
}

.avatar-xs {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
}

.avatar-sm {
  width: 38px;
  height: 38px;
}

.avatar-md {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 1.6rem;
}

.avatar-xl {
  width: 116px;
  height: 116px;
  font-size: 2.1rem;
  font-weight: 800;
  border: 5px solid #fff;
}

/* Barre du haut, en-tête et menu. */
.topbar {
  position: relative;
  z-index: 1030;
  background: var(--yellow-pale);
  font-size: 0.86rem;
}

.topbar .page-width {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: var(--topbar-height);
}

.topbar-slogan {
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.topbar-links > a,
.topbar-links .dropdown-toggle {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
}

.topbar-links > a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Maquette notifications.html : la cloche, un bouton rond, et sa pastille noire posée en haut à droite. */
.topbar-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.topbar-bell:hover {
  background: var(--yellow-line);
}

.topbar-bell svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.topbar-bell .count-pill {
  position: absolute;
  top: -3px;
  right: -9px;
  margin-left: 0;
  border: 2px solid var(--yellow-pale);
  line-height: 1.3;
}

/* Menu du compte : un chevron qui se retourne à l'ouverture, à la place du triangle de Bootstrap. */
.topbar-links .profile-button {
  gap: 8px;
  padding: 3px 6px 3px 3px;
  border-radius: 999px;
}

.topbar-links .profile-button:hover,
.topbar-links .profile-button[aria-expanded="true"] {
  background: var(--yellow-line);
}

.profile-button::after {
  width: 7px;
  height: 7px;
  margin: 0;
  border: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.profile-button[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Messages après une action (maquette alertes.html) : en bas à droite ; la pile laisse passer les clics. */
.site-alerts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, 100% - 32px);
  pointer-events: none;
}

.site-alert {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  /* Trait de couleur plein : arrondi très léger, sinon le trait suivrait la courbe des coins. */
  border-left: 4px solid var(--alert-color);
  border-radius: 6px;
  padding: 9px 8px 9px 12px;
  box-shadow: 0 12px 32px rgba(42, 36, 22, 0.14);
  color: var(--ink);
  font-size: 0.95rem;
}

.site-alert.show {
  animation: site-alert-in 0.25s ease-out;
}

.site-alert-success {
  --alert-color: #2e7d4f;
  --alert-pale: #e6f4ec;
}

.site-alert-error {
  --alert-color: #b42318;
  --alert-pale: #fdecea;
}

.site-alert-info {
  --alert-color: var(--ink);
  --alert-pale: var(--yellow-pale);
}

.site-alert-warning {
  --alert-color: #b54708;
  --alert-pale: #fef0e1;
}

.site-alert-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--alert-pale);
  color: var(--alert-color);
  font: 700 0.85rem/1 var(--font-text);
}

.site-alert-text {
  margin: 0;
  line-height: 1.4;
}

.site-alert-close {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.site-alert-close:hover {
  background: var(--yellow-pale);
  color: var(--ink);
}

.site-alert-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--alert-color);
  opacity: 0.35;
  transform-origin: left;
  animation: site-alert-timer 5s linear forwards;
}

.site-alert:hover .site-alert-timer {
  animation-play-state: paused;
}

@keyframes site-alert-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes site-alert-timer {
  to {
    transform: scaleX(0);
  }
}

@media (max-width: 680px) {
  .site-alerts {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }
}

/* Sans animation : la barre reste invisible mais continue de compter, le message se ferme quand même. */
@media (prefers-reduced-motion: reduce) {
  .site-alert.show {
    animation: none;
  }

  .site-alert-timer {
    visibility: hidden;
  }
}

.site-header .page-width {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}

.logo-name {
  font: 800 1.9rem/0.9 var(--font-title);
  color: var(--yellow);
  letter-spacing: -0.01em;
}

.logo-sub {
  font: 600 1.05rem/1 var(--font-script);
  color: var(--yellow);
  align-self: flex-end;
  margin: -2px -14px 0 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.site-nav > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: normal;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.site-nav > a:hover {
  background: var(--yellow-pale);
}

.site-nav > a[aria-current="page"] {
  background: var(--yellow);
}

.site-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .btn {
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 12px;
  --bs-btn-font-size: 0.95rem;
}

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* Menu ouvert : les trois traits deviennent une croix (maquette menu-telephone.html). */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav > .site-nav-action {
  display: none;
}

/* En-tête de page et sections. */
.page-header {
  background: var(--yellow-pale);
  padding: 36px 0 44px;
}

.page-header h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 800;
}

.page-intro {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 60ch;
}

.page-header-split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.page-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.page-eyebrow {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.search-pill {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  margin-top: 24px;
  max-width: 640px;
}

.search-pill input {
  line-height: normal;
  flex: 1;
  min-width: 0;
  border: 0;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
}

.search-pill input:focus {
  outline: none;
}

.search-pill:focus-within {
  box-shadow: 0 0 0 4px var(--yellow);
}

.page-body {
  padding-top: 44px;
  padding-bottom: 88px;
}

/* Page d'une annonce : le fil d'Ariane remplace l'en-tête de page, le contenu remonte. */
.page-body-tight {
  padding-top: 28px;
}

/* Bootstrap ajoute une marge sous les titres ; la maquette n'en met pas à ces endroits. */
.page-header h1,
.call-banner h2,
.empty-state h2,
.box-yellow h2 {
  margin-bottom: 0 !important; /* la classe mb-2 du bouton est en !important */
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin: 0;
}

/* Sections de l'accueil : la maquette y met des titres plus grands que sur les pages intérieures. */
.band-pale {
  background: var(--yellow-pale);
  padding: 88px 0;
}

.band {
  padding: 88px 0;
}

.band-flush-top {
  padding-top: 0;
}

.band .section-head,
.band-pale .section-head {
  margin-bottom: 36px;
}

.band .section-title,
.band-pale .section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  max-width: 24ch;
}

.section-title-spaced {
  margin-bottom: 28px;
}

.section-intro {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 58ch;
}

.band-pale .listing-card {
  border-color: transparent;
}

.band-pale .listing-card:hover {
  border-color: var(--yellow);
}

/* Carte d'une annonce (mission ou service). */
.listing-card {
  height: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: border-color 0.2s;
}

.listing-card:hover {
  border-color: var(--yellow);
  color: var(--ink);
}

.listing-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--yellow-pale) center / cover no-repeat;
}

/* L'image remplit le cadre 16/9 sans l'agrandir, comme l'image de fond de la maquette. */
.listing-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-card-image-empty {
  background: var(--yellow);
  display: grid;
  place-items: center;
}

.listing-card-image-empty .trade-icon {
  background: #fff;
}

.listing-card-image .badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.listing-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.listing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0;
}

.listing-card-meta > span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.listing-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Étiquettes de compétences (maquette freelance.html, .tags ; sur une carte, .tags-mini). */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  background: var(--yellow-pale);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.tags-sm span {
  padding: 3px 10px;
  font-size: 0.8rem;
}

.profile-role {
  font: 600 1.15rem var(--font-title);
  margin: 4px 0 0;
}

.roles.roles-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 640px) {
  .roles.roles-3 {
    grid-template-columns: 1fr;
  }
}

/* Carte d'un freelance (maquette freelances.html, .carte-free) : sans image, la photo et le métier en tête. */
.freelancer-card {
  padding: 24px;
  gap: 12px;
}

.freelancer-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.freelancer-card .avatar {
  width: 60px;
  height: 60px;
  font-size: 1.1rem;
}

.freelancer-card-trades {
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin: 0;
}

.freelancer-card .rating {
  font-size: 0.9rem;
  gap: 4px;
}

.freelancer-card .rating svg {
  width: 16px;
  height: 16px;
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.place::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* Un nom ou un lieu long tient sur une ligne, coupé par « … », et laisse sa place au prix. */
.author > div {
  min-width: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-place {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card-foot .price {
  flex-shrink: 0;
  white-space: nowrap;
}

.price {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.25;
  margin: 0;
}

.price strong {
  display: block;
  font: 700 1.1rem var(--font-title);
  color: var(--ink);
}

/* Barre de filtres et résultats. */
.filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 15;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 14px 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-bar .form-control,
.filter-bar .form-select {
  width: auto;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-bar .form-select {
  padding-right: 36px;
}

.filter-bar .form-control {
  max-width: 150px;
}

.link-reset {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  margin-left: 6px;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.results-bar p {
  margin: 0;
}

.results-bar .form-select {
  width: auto;
  font-weight: 500;
  font-size: 0.95rem;
  padding-right: 36px;
}

/* Menus déroulants de la barre de filtres (maquette : .deroulant) : des cases à cocher, le nombre coché. */
.filter-dropdown {
  position: relative;
}

.filter-dropdown > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  white-space: nowrap;
}

.filter-dropdown > summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: translateY(-2px) rotate(45deg);
}

.filter-dropdown[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.filter-dropdown > summary:hover,
.filter-dropdown[open] > summary {
  border-color: var(--yellow);
}

.filter-dropdown.is-active > summary,
.filter-bar .form-select.is-active {
  background-color: var(--yellow);
  border-color: var(--yellow);
}

.filter-count {
  background: var(--ink);
  color: #fff;
  font-size: 0.74rem;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}

.filter-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 16;
  width: 260px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 10px 16px;
  box-shadow: 0 16px 36px rgb(42 36 22 / 14%);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.filter-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  margin: 0;
}

@media (max-width: 680px) {
  .filter-dropdown-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    width: auto;
    max-height: 60vh;
    overflow-y: auto;
  }
}

.results-bar strong {
  color: var(--ink);
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--yellow-line);
  border-radius: var(--radius-l);
}

.empty-state h2 {
  font-size: 1.3rem;
}

.empty-state p {
  color: var(--ink-soft);
  margin: 8px 0 18px;
}

.call-banner {
  background: var(--yellow);
  border-radius: var(--radius-l);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.call-banner h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
}

.call-banner p {
  margin: 6px 0 0;
  max-width: 52ch;
}

/* Page d'une annonce : contenu et colonne latérale. */
.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius-l);
  background: var(--yellow-pale);
}

.detail-title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  margin: 18px 0 0;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.meta-line {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin: 24px 0 0;
}

.facts > div {
  padding: 14px 16px;
  box-shadow: 0 0 0 0.75px var(--line);
}

.facts dt {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.facts dd {
  margin: 2px 0 0;
  font: 700 1rem var(--font-title);
}

.text-block {
  margin-top: 36px;
  color: var(--ink-soft);
}

.text-block:first-child {
  margin-top: 0;
}

.text-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.text-block li::marker {
  color: var(--yellow-dark);
}

/* Mise en forme d'une description écrite en Markdown (page d'annonce et aperçu du formulaire). */
.text-block h3,
.markdown-preview h3,
.text-block h4,
.markdown-preview h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--ink);
}

.text-block h4,
.markdown-preview h4 {
  font-size: 1rem;
}

.text-block blockquote,
.markdown-preview blockquote {
  border-left: 3px solid var(--yellow);
  padding-left: 14px;
  margin: 0 0 1rem;
}

/* Un tableau large défile dans son cadre au lieu de faire déborder la page sur téléphone. */
.text-block table,
.markdown-preview table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

.text-block th,
.text-block td,
.markdown-preview th,
.markdown-preview td {
  border: 1px solid var(--line);
  padding: 6px 10px;
}

/* Champ « Description » : la barre de mise en forme colle au-dessus de la zone de texte, comme chez ComeUp. */
.markdown-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1.5px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--cream);
}

.markdown-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.markdown-button {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  gap: 6px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 0.95rem var(--font-text);
  cursor: pointer;
}

.markdown-button:hover,
.markdown-button:focus-visible {
  background: var(--yellow-pale);
}

.markdown-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.markdown-quote-mark {
  font: 700 1.6rem/1 var(--font-title);
  padding-top: 8px;
}

.markdown-field .form-control {
  border-radius: 0 0 12px 12px;
}

.markdown-field textarea {
  overflow: hidden;
  resize: none;
}

.markdown-counter {
  margin: 6px 0 0;
  text-align: right;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.markdown-counter-short {
  color: var(--bs-danger);
}

/* Sélecteur d'émojis : fenêtre posée sous le bouton par markdown_field.js. */
.markdown-emoji-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.markdown-emoji-popover emoji-picker {
  --border-size: 0;
  --indicator-color: var(--yellow);
  --input-border-color: var(--line);
  --input-border-radius: 12px;
  --outline-color: var(--yellow);
}

.markdown-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--yellow-pale);
}

.markdown-tab {
  padding: 4px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.9rem var(--font-text);
  cursor: pointer;
}

.markdown-tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
}

.markdown-button:disabled,
markdown-toolbar[inert] .markdown-button {
  opacity: 0.35;
  cursor: default;
}

/* L'aperçu prend la place de la zone de texte, dans le même cadre. */
.markdown-preview {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--ink-soft);
}

.markdown-empty {
  margin: 0;
}

/* Offre d'un prestataire : liste côté client et carte dans la discussion (décision 010). */
.offer-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
  margin-top: 14px;
  color: var(--ink);
}

.offer-lines-title {
  font-weight: 700;
  font-size: 0.93rem;
  margin: 10px 0 4px;
}

.offer-lines {
  margin: 0;
  padding-left: 20px;
}

.offer-lines-out {
  color: var(--ink-soft);
}

.offer-message {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.section-note {
  font-size: 0.93rem;
}

/* Une ancienne feuille (nicepage) trace un trait gris à droite de toute balise aside. */
.aside {
  border: 0;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.box {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
}

.box h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.box .btn {
  width: 100%;
}

.box .btn + .btn,
.box form + .btn,
.box .btn + form {
  margin-top: 10px;
}

.box-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
}

.box-label {
  font-size: 0.92rem;
  margin: 0;
}

.box-amount {
  font: 800 2.2rem/1.1 var(--font-title);
  margin: 4px 0 18px;
}

.box-amount small {
  font-size: 1rem;
  font-weight: 600;
}

.box-note {
  font-size: 0.85rem;
  margin: 12px 0 0;
  text-align: center;
}

.person {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.person-name {
  font-weight: 700;
  margin: 0;
}

.person-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.person-facts li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.person-facts strong {
  color: var(--ink);
  text-align: right;
}

/* Offres reçues sur une mission (maquette site_test/offres.html, lot R5). */
.offers-head {
  margin: 6px 0 22px;
}

.offers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.offers-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.offers-tab {
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.offers-tab[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.offers-sort .form-select {
  width: auto;
  min-width: 200px;
}

.offer-full {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 22px 24px;
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  background: #fff;
}

.offer-full.is-shortlisted {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-pale);
}

.offer-full-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.offer-full-head .person {
  min-width: 0;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.offer-meta .rating {
  font-size: 0.86rem;
}

.offer-meta .rating svg {
  width: 15px;
  height: 15px;
}

.offer-price {
  text-align: right;
  margin: 0;
}

.offer-price strong {
  display: block;
  font: 700 1.4rem var(--font-title);
}

.offer-price span {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.offer-full .offer-message {
  color: var(--ink-soft);
  margin: 0;
  overflow-wrap: anywhere;
}

.offer-deliverables {
  font-size: 0.93rem;
}

.offer-deliverables p {
  font-weight: 600;
  margin: 0 0 4px;
}

.offer-deliverables ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.offer-full-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.offer-full-actions form {
  margin: 0;
}

.offer-full-actions .btn {
  --bs-btn-padding-x: 18px;
  --bs-btn-padding-y: 11px;
  --bs-btn-font-size: 0.93rem;
}

.offer-full-actions .offer-pay {
  margin-left: auto;
}

.btn-shortlist {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--line);
  --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: var(--yellow-pale);
  --bs-btn-hover-border-color: var(--yellow);
  --bs-btn-hover-color: var(--ink);
  /* porteur/style.css retire le contour de tout <button> avec !important. */
  border: 2px solid var(--bs-btn-border-color) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-shortlist:hover {
  --bs-btn-border-color: var(--bs-btn-hover-border-color);
}

.btn-shortlist svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--yellow-dark);
  stroke-width: 2;
}

.btn-shortlist[aria-pressed="true"] {
  --bs-btn-bg: var(--yellow-pale);
  --bs-btn-border-color: var(--yellow);
}

.btn-shortlist[aria-pressed="true"] svg {
  fill: var(--yellow-dark);
}

.offers-empty {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
}

.tips {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  display: grid;
  gap: 8px;
}

@media (max-width: 640px) {
  .offer-full {
    padding: 18px;
  }

  .offer-price {
    text-align: left;
  }

  .offer-full-actions .offer-pay {
    margin-left: 0;
    width: 100%;
  }
}

/* Avis clients (maquette : .note-avis, .avis). */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.rating svg {
  width: 18px;
  height: 18px;
  fill: var(--yellow-dark);
}

.rating-count,
.rating-empty {
  color: var(--ink-soft);
  font-weight: 500;
}

.review {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.review-head {
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
}

.review-head small {
  font-weight: 500;
  color: var(--ink-soft);
}

.review p {
  color: var(--ink-soft);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

/* Formulaires en étapes. */
.form-step {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  margin: 0 0 18px;
  min-width: 0;
}

.form-step > legend {
  float: left;
  width: 100%;
  padding: 0;
  font: 800 1.3rem var(--font-title);
  margin-bottom: 18px;
}

.form-step > legend + * {
  clear: both;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Blocs de « Publier un besoin », repris de la maquette (publier.html). */
.with-unit {
  position: relative;
}

.with-unit input {
  padding-right: 40px;
}

.with-unit .unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--ink-soft);
  pointer-events: none;
}

/* Options d'un service (maquette competence.html) : une ligne par option, case ou compteur, la ligne choisie en jaune pâle. */
.options-intro {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.extras {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.extra {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  transition: border-color 0.15s, background 0.15s;
}

label.extra {
  cursor: pointer;
}

.extra.chosen {
  border-color: var(--yellow-dark);
  background: var(--yellow-pale);
}

.extra-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.extra-text strong {
  display: block;
  font-weight: 600;
}

.extra-text small,
.extra-explanation {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.extra-explanation {
  display: block;
  margin-top: 4px;
}

.extra-price {
  font-weight: 700;
  white-space: nowrap;
}

.tick {
  appearance: none;
  margin: 0;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--ink-soft);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tick:hover {
  border-color: var(--ink);
  background: var(--yellow-pale);
}

.tick:checked {
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%232A2416' stroke-width='3'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: var(--yellow-dark);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* porteur style.css enlève la bordure de tout bouton avec !important. */
.stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line) !important;
  background: #fff;
  color: var(--ink);
  font: 600 1.05rem/1 var(--font-text);
  display: grid;
  place-items: center;
  padding: 0;
}

.stepper button:hover:not(:disabled) {
  background: var(--yellow-pale);
  border-color: var(--yellow-dark) !important;
}

.stepper button:disabled {
  opacity: 0.35;
}

/* Le nombre s'écrit aussi au clavier ; les flèches du navigateur font doublon avec − et +. */
.stepper input {
  width: 32px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

@media (max-width: 560px) {
  .extra {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
    padding: 12px 14px;
  }

  .extra-price {
    grid-column: 2;
    font-size: 0.92rem;
  }
}

/* Encadré « Tarif » d'un service : prix de base, résumé des options choisies, total. */
.order-recap {
  list-style: none;
  padding: 0;
  margin: -4px 0 14px;
  font-size: 0.92rem;
}

.order-recap li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.order-recap a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1.5px solid rgba(42, 36, 22, 0.18);
  padding-top: 12px;
  margin-bottom: 14px;
}

.order-total-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.order-total-value {
  text-align: right;
  line-height: 1.2;
}

.order-total-value strong {
  display: block;
  font: 800 1.35rem var(--font-title);
}

.order-total-value small {
  font-size: 0.82rem;
}

/* Téléphone : l'encadré Tarif passe sous la description ; une barre fixe garde le total et « Commander » à l'écran. */
.order-bar {
  display: none;
}

@media (max-width: 1000px) {
  .order-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(42, 36, 22, 0.08);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .order-bar .order-total-value {
    text-align: left;
  }

  .order-bar .order-total-value strong {
    font-size: 1.2rem;
  }

  .box .order-bar .btn {
    width: auto;
    padding: 12px 20px;
    white-space: nowrap;
  }

  body:has(.order-bar) {
    padding-bottom: 76px;
  }
}

/* Options d'un service (formulaire, maquette proposer.html) : une carte par option, numérotée. */
.service-options {
  margin-top: 8px;
}

#option-rows {
  counter-reset: option;
}

.option-row {
  counter-increment: option;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 16px 2px;
  margin-bottom: 12px;
  background: #fff;
}

.option-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.93rem;
}

.option-row-head > span::after {
  content: " " counter(option);
}

.option-row-head .option-delete {
  margin: 0;
  font-weight: 600;
}

.option-row-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0 12px;
}

.option-row-fields > div,
.option-row > div:last-child {
  margin-bottom: 12px;
}

.option-counter {
  text-align: right;
  margin: 2px 0 0;
}

@media (max-width: 680px) {
  .option-row-fields {
    grid-template-columns: 1fr 1fr;
  }

  .option-row-fields > div:first-child {
    grid-column: 1 / -1;
  }
}

/* Choix en cartes de la maquette (« Type de mission ») : un bouton radio caché, la carte cochée en jaune. */
.roles {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.roles legend {
  float: none; /* Bootstrap fait flotter la légende : elle prendrait la première case de la grille */
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 8px;
  padding: 0;
}

.role {
  position: relative;
  display: block;
  cursor: pointer;
}

.role input {
  position: absolute;
  opacity: 0;
}

.role > span {
  display: block;
  height: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px;
}

.role strong {
  display: block;
  font-size: 0.95rem;
}

.role small {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.35;
  margin-top: 2px;
}

.role input:checked + span {
  border-color: var(--yellow);
  background: var(--yellow-pale);
  box-shadow: inset 0 0 0 1px var(--yellow);
}

.role input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .roles {
    grid-template-columns: 1fr;
  }
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.93rem;
  margin: 4px 0 18px;
  cursor: pointer;
}

.check-line input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--ink);
  flex-shrink: 0;
}

.drop-zone {
  position: relative;
  display: block;
  border: 2px dashed var(--yellow-line);
  border-radius: var(--radius-m);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  background: var(--cream);
}

.drop-zone:hover,
.drop-zone:focus-within {
  border-color: var(--yellow-dark);
}

.drop-zone input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.drop-zone svg {
  width: 32px;
  height: 32px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto 8px;
  display: block;
}

.drop-zone strong {
  display: block;
}

.drop-zone small {
  color: var(--ink-soft);
}

.drop-zone-name {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.preview-title {
  font: 700 1rem var(--font-title);
  margin-bottom: 10px;
}

.preview .listing-card {
  pointer-events: none;
}

.message-ok {
  background: var(--yellow-pale);
  border-radius: var(--radius-l);
  padding: 32px;
  text-align: center;
}

.message-ok h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.message-ok p {
  color: var(--ink-soft);
  margin: 8px 0 18px;
}

.tips ul {
  padding-left: 20px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.tips li {
  margin: 6px 0;
}

.tips li::marker {
  color: var(--yellow-dark);
}

/* Blocs de choix (mission ou service). */
.choice-block {
  height: 100%;
  border-radius: var(--radius-l);
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--yellow-pale);
}

.choice-block h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0;
}

.choice-block p {
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
}

.choice-block .btn {
  margin-top: 8px;
}

.choice-block-strong {
  background: var(--yellow);
}

.choice-block-strong p {
  color: var(--ink);
}

.choice {
  padding: 0 0 88px;
}

/* Tableau de bord. */
.panel {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px;
  min-width: 0;
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.panel-head a {
  font-size: 0.92rem;
}

/* La colonne masquée (lecteurs d'écran) est positionnée : sans cela elle élargit la page sur téléphone. */
.table-responsive {
  position: relative;
}

.table-plain {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
  margin: 0;
  min-width: 520px;
}

.table-plain > :not(caption) > * > * {
  padding: 12px 6px;
  border-bottom-width: 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
}

.table-plain > thead > tr > th {
  border-top: 0;
}

.table-plain th {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.table-plain td {
  font-size: 0.94rem;
  vertical-align: middle;
}

.table-plain td a,
.table-plain td .btn-link {
  font-weight: 600;
}

/* Un bouton d'une ligne (« Mettre en pause ») a l'air des liens voisins. */
.table-plain td .btn-link {
  --bs-btn-font-size: inherit;
  text-decoration: none;
}

/* Mon espace (maquette espace.html). */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px;
}

.tile-strong {
  background: var(--yellow);
  border-color: var(--yellow);
}

.tile-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.tile-value {
  font: 800 2rem/1.15 var(--font-title);
  margin: 6px 0 0;
}

.tile small {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tile-strong .tile-label,
.tile-strong small {
  color: var(--ink);
}

/* Les tableaux ont une largeur minimale : sans minmax(0, …), ils élargissent la page sur téléphone. */
.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.space-grid > .panel + .panel {
  margin-top: 0;
}

.panel-full {
  margin-top: 18px;
}

.panel-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.sub-text {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.panel > p.sub-text {
  margin-bottom: 4px;
}

.chart {
  --chart-bar: #b58900;
  position: relative;
}

.chart-figures summary {
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
}

.chart-figures table {
  width: 100%;
  font-size: 0.92rem;
  margin-top: 8px;
}

.chart-figures th,
.chart-figures td {
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}

.chart-figures th:last-child,
.chart-figures td:last-child {
  text-align: right;
}

.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.line-list li > a {
  font-weight: 600;
  white-space: nowrap;
}

.line-amount {
  font: 700 1rem var(--font-title);
  white-space: nowrap;
  text-align: right;
}

.line-amount small {
  display: block;
  font: 500 0.8rem var(--font-text);
  color: var(--ink-soft);
}

.mission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 170px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.mission-row h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.progress-line {
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow-pale);
  overflow: hidden;
}

.progress-line::-webkit-progress-bar {
  background: var(--yellow-pale);
}

.progress-line::-webkit-progress-value {
  background: var(--yellow-dark);
  border-radius: 999px;
}

.progress-line::-moz-progress-bar {
  background: var(--yellow-dark);
  border-radius: 999px;
}

.progress-caption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 5px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Mon espace à menu (lot L7, maquette mon-espace.html) : menu à gauche, pastilles sur téléphone. */
.space-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.space-menu {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.space-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.space-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-soft);
}

.space-menu a:hover {
  background: var(--yellow-pale);
  color: var(--ink);
}

.space-menu a[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
}

.space-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.space-menu-count {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.space-menu-split {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}

.space-title {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 6px;
}

.space-intro {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.space-tabs {
  margin-bottom: 16px;
}

.space-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--ink-soft);
}

.space-empty strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.space-empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.space-none {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

/* Une ligne de Mes achats, Mes ventes ou Mes annonces : grille sur ordinateur, carte sur téléphone (revue n° 14). */
.space-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px 150px 96px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.space-row h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.space-row h3 a {
  text-decoration: none;
}

.space-row h3 a:hover {
  text-decoration: underline;
}

.space-row .progress-line {
  margin-top: 8px;
}

.space-row-who,
.space-row-next {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.space-row-next strong {
  color: var(--ink);
  font-weight: 600;
}

.space-row-alert,
.space-row-alert strong {
  color: #b42318;
}

.space-row-amount {
  font: 700 1rem var(--font-title);
  text-align: right;
  white-space: nowrap;
  margin: 0;
}

.publication-row {
  grid-template-columns: minmax(0, 1fr) 190px 130px 150px;
}

.space-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 0.9rem;
}

.space-row-actions a,
.space-row-actions .btn-link {
  font-weight: 600;
  font-size: inherit;
  color: var(--ink);
  text-decoration: underline;
  white-space: nowrap;
}

/* Revue n° 17 : un bloc vide du tableau de bord garde sa hauteur naturelle. */
.space-content .space-grid {
  align-items: start;
}

.space-row-actions form {
  display: inline;
}

.todo-list li {
  align-items: flex-start;
}

.todo-list .btn {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.todo-what {
  font-weight: 600;
}

.todo-alert {
  color: #b42318;
  font-weight: 600;
}

.tiles.tiles-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wallet-withdraw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wallet-withdraw p {
  color: var(--ink-soft);
  margin: 0;
}

.wallet-withdraw-note {
  max-width: 320px;
}

.wallet-withdraw-off {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.wallet-credit {
  color: #1e6b3a;
}

@media (max-width: 1000px) {
  .space-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .space-menu {
    position: static;
  }

  .space-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .space-menu a {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.9rem;
  }

  .space-menu a[aria-current="page"] {
    border-color: var(--yellow);
  }

  .space-menu svg {
    display: none;
  }

  .space-menu-split {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .space-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .space-row > :first-child,
  .space-row-next {
    grid-column: 1 / -1;
  }

  .space-row-amount {
    text-align: right;
  }

  .publication-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tiles.tiles-3 {
    grid-template-columns: 1fr;
  }

  .space-row-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.completion ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.completion li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 0.94rem;
}

.completion li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--yellow-dark);
}

.completion li.done {
  color: var(--ink-soft);
}

.completion li.done::before {
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%232A2416' stroke-width='3'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  border-color: var(--yellow);
}

@media (max-width: 1000px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }

  .space-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .mission-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .tile-value {
    font-size: 1.6rem;
  }
}

/* Profil public. */
.profile-header {
  background: var(--yellow-pale);
  padding: 32px 0 40px;
}

.profile-line {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 0;
}

.profile-bio {
  font: 600 1.15rem var(--font-title);
  margin: 4px 0 0;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  align-items: center;
}

/* Accueil. */
.hero {
  padding: 56px 0 80px;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: end;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  margin: 0;
}

.highlight {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 4px;
}

.hero-lead {
  margin: 22px 0 0;
  font: 600 clamp(1.2rem, 2vw, 1.5rem) / 1.4 var(--font-title);
  max-width: 30ch;
}

.search-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero .search-pill {
  margin-top: 0;
  max-width: none;
}

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

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 72px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font: 800 1.4rem var(--font-title);
}

.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.steps p {
  color: var(--ink-soft);
  margin: 0;
}

.tabs-pill {
  --bs-nav-link-color: var(--ink);
  --bs-nav-link-hover-color: var(--ink);
  display: inline-flex;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 44px;
}

.tabs-pill .nav-link {
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: normal;
  padding: 10px 20px;
}

/* porteur/css/base.css colore tout onglet actif en bleu avec !important. */
.tabs-pill .nav-link.active {
  background: var(--yellow);
  color: var(--ink) !important;
  border-bottom: 0 !important;
}

/* Pied de page. */
.site-footer {
  background: var(--yellow-pale);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.site-footer p {
  color: var(--ink-soft);
  margin: 18px 0 0;
  max-width: 32ch;
  font-size: 0.97rem;
}

.site-footer h4 {
  font: 700 1rem var(--font-title);
  letter-spacing: normal;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 8px 0;
}

.site-footer li a {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.site-footer li a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-bug {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 20px 22px;
  align-self: start;
}

.footer-bug h4 {
  margin-bottom: 6px;
}

.site-footer .footer-bug p {
  margin: 0;
  font-size: 0.94rem;
  max-width: none;
}

.footer-bug a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--yellow-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Écrans moyens et petits : mêmes largeurs de bascule que la maquette (1000 px et 680 px). */
@media (max-width: 1000px) {
  .site-nav {
    display: none;
  }

  .site-nav.show {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
  }

  .burger {
    display: block;
  }

  .topbar-slogan {
    display: none;
  }

  .topbar .page-width {
    justify-content: flex-end;
  }

  .hero-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1rem;
  }

  .band,
  .band-pale {
    padding: 64px 0;
  }

  .band-flush-top {
    padding-top: 0;
  }

  .hero {
    padding: 36px 0 56px;
  }

  .choice {
    padding-bottom: 64px;
  }

  .site-header-actions .btn {
    display: none;
  }

  .site-nav > .site-nav-action {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }

  .topbar-links {
    gap: 14px;
  }

  .search-pill {
    flex-direction: column;
    border-radius: var(--radius-m);
    padding: 12px;
  }

  .search-pill input {
    padding: 8px 6px;
  }

  .grid-2,
  .grid-3,
  .steps,
  .fields-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    position: static;
  }

  .form-step {
    padding: 20px;
  }

  .form-actions .btn {
    width: 100%;
  }

  .choice-block,
  .call-banner {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Blog : liste, article, newsletter et section de l'accueil (maquettes blog.html, article.html, accueil). */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  font: 500 0.95rem var(--font-text);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--yellow);
  color: var(--ink);
}

.chip[aria-current] {
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 600;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  height: auto;
  margin-bottom: 36px;
}

.featured-card .listing-card-image {
  aspect-ratio: auto;
  min-height: 340px;
}

.featured-card .listing-card-body {
  padding: 36px;
  justify-content: center;
  gap: 12px;
}

.featured-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  margin: 0;
}

.featured-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.article-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

.article-meta-foot {
  margin-top: auto;
  padding-top: 10px;
}

.newsletter {
  background: var(--yellow);
  border-radius: var(--radius-l);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
}

.newsletter h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  margin: 0;
}

.newsletter p {
  margin: 6px 0 0;
}

.newsletter form {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  font: 400 1rem var(--font-text);
  background: transparent;
  color: var(--ink);
}

.newsletter input:focus {
  outline: none;
}

.newsletter form:focus-within {
  box-shadow: 0 0 0 3px var(--ink);
}

/* La maquette garde la bordure de 2 px du bouton (50 px de haut) ; porteur style.css l'enlève avec !important. */
.newsletter .btn {
  border-style: solid !important;
  border-width: 2px !important;
}

.newsletter-thanks,
.newsletter-error {
  font-weight: 600;
  margin-top: 10px;
}

.reading {
  max-width: 740px;
  margin-inline: auto;
}

.reading .badge {
  line-height: 1.6;
}

.reading h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  margin: 16px 0 0;
}

.article-lead {
  font: 600 1.25rem/1.5 var(--font-title);
  margin: 16px 0 0;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.byline strong {
  color: var(--ink);
  display: block;
}

.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-l);
  margin: 28px 0 8px;
}

.article-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.article-body {
  margin-top: 28px;
}

.article-body > p,
.article-body > ul,
.article-body > ol {
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 0;
}

.article-body > * + p,
.article-body > * + ul,
.article-body > * + ol {
  margin-top: 18px;
}

.article-body > h2 + p,
.article-body > h3 + p {
  margin-top: 0;
}

.article-body > h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 40px 0 14px;
}

.article-body > h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 5px solid var(--yellow);
  font: 600 1.35rem/1.45 var(--font-title);
}

.article-body blockquote p {
  margin: 0;
}

.article-body blockquote cite {
  display: block;
  font: 500 0.95rem var(--font-text);
  color: var(--ink-soft);
  margin-top: 10px;
  font-style: normal;
}

.key-points {
  background: var(--yellow-pale);
  border-radius: var(--radius-l);
  padding: 28px;
  margin: 36px 0;
}

.key-points h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.key-points ul {
  margin: 0;
  padding-left: 20px;
}

.key-points li {
  margin: 6px 0;
}

.key-points li::marker {
  color: var(--yellow-dark);
}

.share {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.share a,
.share .share-copy {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: 500 0.9rem/1.6 var(--font-text);
}

.share a:hover,
.share .share-copy:hover {
  border-color: var(--yellow);
  color: var(--ink);
}

/* porteur style.css enlève la bordure de tout bouton avec !important. */
.share .share-copy {
  border-style: solid !important;
  border-width: 1.5px !important;
}

.related {
  background: var(--yellow-pale);
  padding: 72px 0;
}

.subscription-box {
  max-width: 560px;
  margin-inline: auto;
}

.subscription-box h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.blog-teasers {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.blog-teaser {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.blog-teaser:hover {
  color: var(--ink);
}

.blog-teaser-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--yellow-pale);
}

.blog-teaser:first-child .blog-teaser-image {
  aspect-ratio: 16 / 11;
}

.blog-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-teaser-category {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-teaser-category::before {
  content: "";
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
}

.blog-teaser h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.blog-teaser:first-child h3 {
  font-size: 1.6rem;
}

.blog-teaser:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.blog-teaser-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 1000px) {
  .featured-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-card .listing-card-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .newsletter {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-teasers {
    grid-template-columns: 1fr 1fr;
  }

  .blog-teaser:first-child {
    grid-column: span 2;
  }
}

/* Messagerie, reprise de la maquette (messages.html) : conversations à gauche, discussion à droite. */
.inbox-section {
  padding: 24px 0 56px;
}

.inbox {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  height: calc(100vh - 140px);
  min-height: 540px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
}

.conversations {
  border-right: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.conversations-head {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.conversations-head h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.conversation-search {
  width: 100%;
  font: 400 0.95rem var(--font-text);
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.conversation-search:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow);
}

.conversation-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.conversation-list li[hidden] {
  display: none;
}

.conversation {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.conversation:hover {
  background: var(--yellow-pale);
  color: inherit;
}

.conversation[aria-current="true"] {
  background: var(--yellow-pale);
  box-shadow: inset 4px 0 0 var(--yellow);
}

.conversation .avatar,
.discussion-head .avatar {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
}

.conversation-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.conversation-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.conversation-line strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-line time {
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.conversation-mission,
.conversation-preview {
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-mission {
  font-size: 0.8rem;
  font-weight: 600;
}

.conversation-preview {
  font-size: 0.88rem;
}

.conversation-empty {
  padding: 20px 12px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.unread {
  background: var(--yellow);
  min-width: 12px;
  height: 12px;
  border-radius: 999px;
  align-self: center;
}

.thread,
.discussion {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.discussion {
  flex: 1;
}

.thread-empty {
  flex: 1;
  display: grid;
  place-items: center;
  background: var(--cream);
}

.discussion-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.discussion-name {
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.discussion-status {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 0;
}

.back-button {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow-pale);
  place-items: center;
  flex-shrink: 0;
}

.back-button svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discussion-ad {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px 14px 6px 6px;
  max-width: 330px;
  color: inherit;
}

.discussion-ad:hover {
  border-color: var(--yellow);
  color: inherit;
}

.discussion-ad .mini {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--yellow-pale);
  overflow: hidden;
  flex-shrink: 0;
}

.discussion-ad .mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discussion-ad .mini-text {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.3;
}

.discussion-ad .mini-text > span {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discussion-ad .mini-text small {
  color: var(--ink-soft);
}

.discussion-ad .mini-text small strong {
  font-weight: 400;
}

/* Maquette devis.html, version A : l'offre en une barre fine ; détail et formulaire dans un volet. */
.discussion {
  position: relative;
}

.offer-bar {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--yellow-pale);
  border-bottom: 1px solid var(--yellow-line);
}

.offer-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--yellow);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.offer-summary {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.offer-summary strong {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 1rem;
}

.offer-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.offer-bar-actions .btn {
  padding: 9px 18px;
  font-size: 0.9rem;
}

.offer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: min(440px, 100%);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 28px rgba(42, 36, 22, 0.08);
  display: flex;
  flex-direction: column;
}

.offer-panel[hidden] {
  display: none;
}

.offer-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.offer-panel-head h2 {
  font-size: 1.15rem;
  margin: 0;
}

.offer-panel-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow-pale);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.offer-panel-close svg,
.plus-menu svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
}

.offer-panel-body[hidden] {
  display: none;
}

.offer-panel .offer-actions {
  margin-top: 18px;
}

/* Maquette : le prix reste à droite de la personne, la ligne « envoyée · expire » passe à la ligne. */
.offer-panel .offer-full-head {
  flex-wrap: nowrap;
  margin-bottom: 14px;
}

.panel-backdrop {
  display: none;
}

.composer-bar {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 14px 16px 6px;
  border-top: 1px solid var(--line);
}

.composer-bar .composer {
  flex: 1;
  min-width: 0;
  padding: 0;
  border-top: 0;
}

.plus-menu {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  z-index: 6;
  width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 12px 30px rgba(42, 36, 22, 0.14);
  padding: 6px;
}

.plus-menu[hidden] {
  display: none;
}

.plus-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.plus-menu button:hover {
  background: var(--yellow-pale);
}

.plus-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--yellow-pale);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.plus-menu-icon.strong {
  background: var(--yellow);
}

/* Fichier choisi dans le menu « + », avant l'envoi. */
.attachment-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--yellow-pale);
}

.attachment-form[hidden] {
  display: none;
}

.attachment-preview {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview small {
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: 6px;
}

.attachment-form .btn {
  padding: 9px 16px;
  font-size: 0.9rem;
}

/* Fichier dans le fil (maquette messages.html, .fichier). */
.attachment-file {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.attachment-file svg {
  width: 30px;
  height: 30px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.attachment-file small {
  display: block;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.attachment-photo img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
}

.bubble .attachment-photo + p,
.bubble .attachment-file + p {
  margin-top: 8px;
}

.plus-menu strong {
  display: block;
  font-size: 0.95rem;
}

.plus-menu small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.plus-button svg {
  transition: transform 0.15s;
}

.icon-button.plus-button[aria-expanded="true"] {
  background: var(--ink);
}

.icon-button.plus-button[aria-expanded="true"] svg {
  stroke: #fff;
  transform: rotate(45deg);
}

@media (max-width: 680px) {
  .offer-panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 88%;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 30px rgba(42, 36, 22, 0.18);
  }

  .panel-backdrop:not([hidden]) {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(42, 36, 22, 0.35);
  }

  .offer-bar {
    padding: 8px 12px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .offer-summary .detail-long {
    display: none;
  }

  .offer-summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Le motif d'un refus se lit en entier, sur plusieurs lignes. */
  .offer-bar.is-refused .offer-summary {
    white-space: normal;
  }

  .offer-pill {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .offer-bar-actions {
    gap: 6px;
  }

  .offer-bar-actions .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .offer-bar-actions .see-long {
    display: none;
  }

  .messages-thread {
    padding: 18px 14px;
    gap: 12px;
  }
}

.messages-thread {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cream);
}

/* « Messages plus anciens » en haut du fil ; un lot ne change pas la mise en page du fil. */
.timeline-batch {
  display: contents;
}

.older-messages {
  align-self: center;
}

.older-messages button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.older-messages button[disabled] {
  color: var(--ink-soft);
  cursor: wait;
}

.day-separator,
.order-step {
  align-self: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 10px 0;
}

.order-step a {
  margin-left: 6px;
}

.bubble {
  max-width: min(70%, 520px);
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.97rem;
  line-height: 1.55;
}

.bubble p {
  margin: 0;
  overflow-wrap: anywhere;
}

.bubble time {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 4px;
  text-align: right;
}

.bubble.them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.bubble.me {
  align-self: flex-end;
  background: var(--yellow);
  border-bottom-right-radius: 6px;
}

.bubble.me time {
  color: var(--ink);
}

.composer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  padding: 14px 16px 6px;
  border-top: 1px solid var(--line);
}

.composer textarea {
  flex: 1;
  resize: none;
  font: 400 1rem/1.4 var(--font-text);
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  max-height: 140px;
  color: var(--ink);
}

.composer textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow);
}

.composer-error {
  width: 100%;
  margin: 0;
  font-size: 0.84rem;
  color: var(--bs-danger);
}

.icon-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--yellow-pale);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.send-button {
  background: var(--yellow);
}

.icon-button:hover {
  background: var(--yellow-dark);
}

.safety-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 4px 16px 12px;
  margin: 0;
}

@media (max-width: 1000px) {
  .inbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .inbox[data-view="list"] .thread,
  .inbox[data-view="discussion"] .conversations {
    display: none;
  }

  .back-button {
    display: grid;
  }

  .discussion-ad {
    display: none;
  }
}

@media (max-width: 680px) {
  .newsletter {
    padding: 28px;
  }

  .newsletter form {
    flex-direction: column;
    border-radius: var(--radius-m);
    padding: 12px;
  }

  .blog-teasers {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-teaser:first-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .inbox {
    height: calc(100vh - 110px);
    border-radius: var(--radius-m);
  }

  .bubble {
    max-width: 85%;
  }
}

/* Page d'une commande (maquette site_test/commande.html, lot L8) : avancement, où en est-on, puis deux colonnes
   de largeur fixe ; à droite l'action attendue en gros bouton et les autres en liens. */
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 26px;
}

.order-head .badge {
  font-size: 0.9rem;
  padding: 6px 14px;
  margin-top: 6px;
  line-height: 1.6;
}

.order-badge-alert {
  background: #fdecea;
  color: var(--ink);
}

.order-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 0;
  counter-reset: order-step;
}

.order-progress li {
  position: relative;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding-top: 38px;
}

.order-progress li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line);
}

.order-progress li:first-child::before {
  display: none;
}

.order-progress li::after {
  counter-increment: order-step;
  content: counter(order-step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font: 700 0.85rem var(--font-title);
}

.order-progress li.is-done,
.order-progress li.is-current {
  color: var(--ink);
}

.order-progress li.is-done::before,
.order-progress li.is-current::before {
  background: var(--yellow);
}

.order-progress li.is-done::after {
  content: "✓";
  background: var(--yellow);
  border-color: var(--yellow);
}

.order-progress li.is-current {
  font-weight: 700;
}

.order-progress li.is-current::after {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Trait de couleur plein, arrondi très léger, comme les messages du site. */
.order-status {
  border-left: 4px solid var(--yellow);
  border-radius: 6px;
  background: var(--yellow-pale);
  padding: 16px 18px;
  margin-bottom: 28px;
}

.order-status-alert {
  border-left-color: #b42318;
  background: #fdecea;
}

.order-status-closed {
  border-left-color: var(--line);
  background: var(--cream);
}

.order-status strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.order-status p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

.order-status-quote {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #fff;
  border-radius: 10px;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.order-status-quote footer {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.order-section + .order-section {
  margin-top: 32px;
}

.order-section > h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.order-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-steps li {
  position: relative;
  padding: 0 0 18px 26px;
}

.order-steps li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow-dark);
}

.order-steps li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.order-steps li:last-child::after {
  display: none;
}

.order-steps-what {
  font-weight: 600;
}

.order-steps-who {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.order-steps p {
  margin: 6px 0 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.order-todo-wait {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.order-todo-more {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

/* Les actions secondaires : des liens, pas des boutons pleine largeur. */
.box .btn-order-link,
.box .btn-order-link-danger,
.pending-email .btn-order-link-danger {
  width: auto;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-soft);
}

.box .btn-order-link-danger,
.pending-email .btn-order-link-danger {
  color: #b42318;
}

.box .btn-order-link:hover,
.box .btn-order-link-danger:hover,
.pending-email .btn-order-link-danger:hover {
  color: var(--ink);
}

.order-discuss {
  margin-top: 16px;
}

/* Paramètres du compte : la nouvelle adresse qui attend son lien, et ses deux boutons. */
.pending-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 18px;
}

.pending-email p {
  flex-basis: 100%;
  margin-bottom: 0;
}

.order-section .box .btn {
  width: auto;
}

@media (max-width: 1000px) {
  .order-layout .aside {
    order: -1;
  }
}

@media (max-width: 680px) {
  .order-progress li {
    font-size: 0.76rem;
  }
}

/* ===== Pages D3 : en-tête, pied de page, à propos, contact, mentions légales, connexion, profil ===== */

.count-pill {
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
}

.footer-social-icon svg {
  width: 19px;
  height: 19px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:hover .footer-social-name {
  text-decoration: underline;
  text-decoration-color: var(--yellow-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Bandes des pages intérieures : un peu moins hautes que celles de l'accueil. */
.strip {
  padding: 80px 0;
}

.strip-pale {
  background: var(--yellow-pale);
  padding: 80px 0;
}

.strip-faq {
  padding-top: 24px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-columns h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.two-columns p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

.two-columns p + p {
  margin-top: 12px;
}

.photo-block {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  background-size: cover;
  background-position: center;
}

.pillar {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar h3 {
  font-size: 1.25rem;
  margin: 6px 0 0;
}

.pillar p {
  color: var(--ink-soft);
  margin: 0;
}

.pillar .link-strong {
  margin-top: auto;
  padding-top: 8px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--yellow);
  display: grid;
  place-items: center;
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value {
  border-top: 4px solid var(--yellow);
  padding-top: 16px;
}

.value h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.value p {
  color: var(--ink-soft);
  margin: 0;
}

.islands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.islands span {
  background: #fff;
  border: 1.5px solid var(--yellow-line);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact. */
.form-box {
  padding: 32px;
}

.form-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.mail-link {
  font: 700 1.1rem var(--font-title);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  word-break: break-all;
}

.box-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.box .footer-social {
  margin-top: 0;
}

.faq-group {
  background: var(--yellow-pale);
  border-radius: var(--radius-l);
  padding: 24px 26px;
}

.faq-group h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.faq-group details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-group summary {
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-group summary::-webkit-details-marker {
  display: none;
}

.faq-group summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.faq-group details[open] summary::after {
  content: "\2013";
}

.faq-group details p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 8px 0 0;
}

/* Mentions légales. */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.toc a {
  background: #fff;
  border: 1.5px solid var(--yellow-line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.toc a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

.notice {
  background: var(--yellow-pale);
  /* Trait de couleur plein : arrondi très léger, sinon le trait suivrait la courbe des coins. */
  border-left: 5px solid var(--yellow);
  border-radius: 6px;
  padding: 18px 22px;
}

.notice h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.notice p {
  margin: 0;
}

/* Lot pause : l'encadré « Vous êtes indisponible » de Mon espace, son bouton à droite. */
.notice-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* Sur la carte jaune du tarif, l'encadré jaune pâle ne se verrait pas. */
.box-yellow .notice {
  background: #fff;
  border-left-color: var(--ink);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.box-yellow .notice p {
  font-size: 0.93rem;
}

.availability {
  background: #fff;
  border: 1.5px solid var(--yellow-dark);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 3px 12px;
  border-radius: 999px;
}

.availability-line {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.to-fill {
  background: var(--yellow);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
  margin-top: 44px;
}

.legal-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-section p {
  color: var(--ink-soft);
  margin: 0;
}

.legal-section p + p,
.legal-section dl + p {
  margin-top: 12px;
}

.legal-facts {
  margin: 12px 0 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.legal-facts div {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 12px;
  padding: 11px 16px;
}

.legal-facts div + div {
  border-top: 1px solid var(--line);
}

.legal-facts dt {
  font-weight: 600;
  font-size: 0.93rem;
}

.legal-facts dd {
  margin: 0;
  color: var(--ink-soft);
}

/* Connexion, inscription et autres pages du compte. */
.auth-section {
  padding: 48px 0 88px;
  background: var(--yellow-pale);
}

.auth {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 1040px;
  background: #fff;
  border: 1.5px solid var(--yellow-line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.auth-card {
  padding: 40px;
}

.auth-tabs {
  display: flex;
  background: var(--yellow-pale);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tabs a {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
}

.auth-tabs a[aria-current="page"] {
  background: var(--yellow);
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.auth-lead {
  color: var(--ink-soft);
  margin: 6px 0 22px;
}

.label-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.label-line a {
  font-size: 0.88rem;
  text-decoration: underline;
}

.auth-switch {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.auth-switch a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
}

.auth-visual {
  background: var(--yellow);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-visual h2 {
  font-size: 2rem;
  font-weight: 800;
}

.auth-visual ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.auth-visual li {
  margin: 6px 0;
}

.auth-photo {
  flex: 1;
  min-height: 220px;
  border-radius: var(--radius-m);
  background-size: cover;
  background-position: center;
}

/* Profil public. */
.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.box-amount small {
  font-size: 1rem;
  font-weight: 600;
}

/* Accueil : liens « Populaire » et missions à la une. */
.popular {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.popular a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.featured {
  margin-top: 56px;
}

.featured-title {
  font: 700 1.3rem var(--font-title);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
}

@media (max-width: 1000px) {
  .auth {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .auth-visual {
    display: none;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .strip,
  .strip-pale {
    padding: 56px 0;
  }

  .strip-faq {
    padding-top: 24px;
  }

  .auth-card,
  .form-box {
    padding: 24px;
  }

  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .profile-actions {
    margin-left: 0;
  }

  .featured {
    margin-top: 40px;
  }
}

@media (max-width: 520px) {
  .topbar-join {
    display: none;
  }
}

.photo-block {
  background-image: url("img/about.31d35da40561.jpg");
}

.auth-photo {
  background-image: url("img/sign-in.d9e234ed7dc7.jpg");
}

/* Corrections après captures côte à côte (D3). */
.form-box .asteriskField,
.auth-card .asteriskField {
  display: none;
}

.check-line a {
  text-decoration: underline;
}

.auth-tabs a {
  line-height: normal;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .profile-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .profile-line > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Page de paiement (R6, maquette paiement.html) : la case d'acceptation, puis les boutons de paiement. */
.offer-deliverables-out li::marker {
  content: "– ";
}

.checkout-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 14px;
  padding: 14px;
  background: var(--yellow-pale);
  border-radius: var(--radius-m);
  font-size: 0.93rem;
  cursor: pointer;
}

.checkout-consent .form-check-input {
  flex-shrink: 0;
  margin-top: 3px;
}

.checkout-or {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 12px 0;
}

.checkout-paypal-label {
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}

.checkout-paypal.is-disabled {
  opacity: 0.4;
}

/* porteur/style.css retire le contour de tout <button> avec !important : les boutons « Refuser l'offre » le gardent. */
.offer-full-actions button.btn,
.offer-actions button.btn,
.offer-bar-actions button.btn,
.attachment-form button.btn {
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color) !important;
  margin-bottom: 0 !important; /* la classe mb-2 du bouton est en !important */
}

/* R7 : « Demander un devis » (maquettes competence.html et devis.html) */
.box button.btn,
.quote-dialog button.btn,
.realisation-dialog button.btn,
.realisation-foot button.btn {
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color) !important;
}

.quote-dialog {
  --bs-modal-width: 600px;
}

.quote-card {
  max-width: min(80%, 540px);
  background: #fff;
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.95rem;
}

.quote-card.them {
  align-self: flex-start;
}

.quote-card.me {
  align-self: flex-end;
}

.quote-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 1rem var(--font-title);
  margin: 0 0 8px;
}

.quote-card-title svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linejoin: round;
}

.quote-card-need {
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.quote-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  font-size: 0.9rem;
}

.quote-card dt {
  font-weight: 400;
  color: var(--ink-soft);
}

.quote-card dd {
  margin: 0;
  font-weight: 700;
}

/* Sans formulaire d'offre dans le volet (offre déjà en cours, freelance en pause…), le bouton ne mènerait nulle part. */
.quote-card-reply {
  display: none;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

body:has([data-panel-pane="new"]) .quote-card-reply {
  display: block;
}

.quote-card-reply p {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.quote-card time {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 8px;
  text-align: right;
}

.priced-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.priced-lines th {
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 6px 8px;
  border-bottom: 1.5px solid var(--line);
}

.priced-lines td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.priced-lines .number {
  text-align: right;
  white-space: nowrap;
}

.priced-lines tfoot td {
  font-weight: 700;
  border-bottom: 0;
}

.priced-lines .column-quantity {
  width: 76px;
}

.priced-lines .column-unit-price {
  width: 112px;
}

.priced-lines .column-total {
  width: 96px;
}

.priced-lines .column-remove {
  width: 36px;
}

.priced-lines-input {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  margin: 0 0 14px;
}

.priced-lines-input legend {
  float: none;
  width: auto;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0 6px;
  margin: 0;
}

.priced-lines-input .form-control {
  padding: 8px 10px;
  font-size: 0.95rem;
}

.priced-lines-input .remove-line {
  border: 0 !important;
  background: none;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-soft);
  padding: 4px;
  cursor: pointer;
}

.priced-lines-input .link-button {
  border: 0 !important;
  background: none;
  padding: 6px 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .priced-lines .column-quantity {
    width: 58px;
  }

  .priced-lines .column-unit-price {
    width: 84px;
  }

  .priced-lines .column-total {
    display: none;
  }
}

/* Le formulaire des lignes vit dans le volet de l'offre (440 px au plus, ordinateur comme téléphone) : une ligne est
   un petit bloc. Le libellé prend toute la largeur ; quantité, prix unitaire et total en dessous, chacun avec son nom
   (maquette devis.html du 18/11, humain A). L'en-tête du tableau reste pour les lecteurs d'écran. */
.priced-lines-input .priced-lines thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.priced-lines-input .priced-lines tbody tr {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: end;
  gap: 8px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* « width: auto » et « display: block » annulent la règle téléphone du tableau en lecture (largeurs fixes, total caché). */
.priced-lines-input .priced-lines td {
  width: auto;
  padding: 0;
  border-bottom: 0;
}

.priced-lines-input .priced-lines td:first-child {
  grid-column: 1 / -1;
}

.priced-lines-input .priced-lines td[data-label]::before {
  content: attr(data-label);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 4px;
  text-align: left;
}

.priced-lines-input .priced-lines td.column-total {
  display: block;
  min-width: 80px;
  padding-bottom: 10px;
}

.priced-lines-input .priced-lines td.column-total::before {
  text-align: right;
}

.priced-lines-input .priced-lines td.column-remove {
  padding-bottom: 6px;
}

/* Les flèches des champs de nombre mangent la place d'un montant comme « 1250.50 ». */
.priced-lines-input input[type="number"] {
  appearance: textfield;
}

.priced-lines-input input[type="number"]::-webkit-inner-spin-button,
.priced-lines-input input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

/* ===== Panneau des notifications (maquette notifications.html) ===== */

/* porteur/css/base.css fixe la largeur à 350px avec !important. */
.notification-panel.offcanvas-end {
  width: min(380px, 100%) !important;
}

.notification-panel .offcanvas-header {
  padding: 22px 22px 14px !important; /* porteur/style.css impose 0.5rem avec !important */
}

.notification-panel .offcanvas-title {
  font-size: 1.45rem;
}

.notification-tabs {
  display: flex;
  background: var(--yellow-pale);
  margin: 0 22px 12px;
}

.notification-tabs .nav-item {
  flex: 1;
}

.notification-tabs .nav-link {
  width: 100%;
  padding: 9px 14px;
}

/* Sans marge basse : « Voir plus » colle au bas du panneau ; la dernière notification garde son espace. */
.notification-panel .offcanvas-body {
  padding: 4px 14px 0;
}

.notification-list > :last-child:not(.notification-more) {
  margin-bottom: 22px;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notification {
  display: block;
  padding: 12px 14px;
  border-left: 3px solid transparent;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.notification-list li + li {
  margin-top: 4px;
}

.notification:hover {
  background: var(--yellow-pale);
  color: inherit;
}

.notification.unseen {
  background: var(--yellow-pale);
  border-left-color: var(--yellow);
}

/* Deux lignes au plus, coupées une seule fois, à la fin. */
.notification-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.93rem;
  line-height: 1.45;
}

.notification.unseen .notification-text {
  font-weight: 600;
}

.notification time {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.notification-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.notification-empty strong {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}

/* « Voir plus » : les 20 suivantes s'ajoutent en dessous ; la liste ne bouge que sur un clic. */
/* « Voir plus » : une barre plate collée au bas du panneau, la liste défile au-dessus (maquette notifications.html). */
.notification-more {
  position: sticky;
  bottom: 0;
  margin: 8px -14px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.notification-more button {
  width: 100%;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
}

.notification-more button:hover {
  background: var(--yellow-pale);
}

.notification-more button[disabled] {
  background: transparent;
  color: var(--ink-soft);
  cursor: wait;
}

.notification-more .loading,
.notification-more .htmx-request .idle,
.older-messages .loading,
.older-messages .htmx-request .idle {
  display: none;
}

.notification-more .htmx-request .loading,
.older-messages .htmx-request .loading {
  display: inline;
}

.notification-more p {
  margin: 0;
  padding: 15px 16px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ===== Métiers du digital (maquettes metiers.html, metier.html et bloc de l'accueil) ===== */
.trade-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trade-summary a {
  background: #fff;
  border: 1.5px solid var(--yellow-line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.trade-summary a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

.trade-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trade-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-tagline {
  font: 600 1.12rem/1.4 var(--font-title);
  margin: 8px 0 0;
}

.trade-count {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.trade-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 36px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.trade-block + .trade-block {
  margin-top: 20px;
}

.trade-block h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 16px 0 0;
}

.trade-intro {
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.trade-panel {
  background: var(--yellow-pale);
  border-radius: var(--radius-m);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.trade-panel h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.trade-panel ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.trade-panel li {
  margin: 4px 0;
}

.trade-panel li::marker {
  color: var(--yellow-dark);
}

.trade-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.trade-examples span {
  background: #fff;
  font-size: 0.86rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.trade-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--yellow-line);
  padding-top: 18px;
}

.trade-actions .price,
.trade-card-foot .price {
  text-align: left;
}

.trade-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.trade-buttons .btn {
  padding: 11px 18px;
  font-size: 0.93rem;
}

.trade-head {
  display: flex;
  gap: 20px;
  align-items: center;
}

.trade-head .trade-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.trade-head .trade-icon svg {
  width: 36px;
  height: 36px;
}

/* Une description d'annonce (Markdown) garde les marges de Bootstrap ; la page d'un métier suit la maquette. */
.trade-detail p {
  margin: 0;
}

.trade-detail p + p {
  margin-top: 10px;
}

.trade-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trade-benefit {
  background: var(--yellow-pale);
  border-radius: var(--radius-m);
  padding: 18px 20px;
}

.text-block .trade-benefit h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.trade-benefit p {
  font-size: 0.94rem;
}

/* Les tableaux d'une description (Markdown) ont des bordures et défilent : celui des prix suit la maquette. */
.text-block .trade-prices {
  display: table;
  width: 100%;
  margin: 0;
}

.text-block .trade-prices th,
.text-block .trade-prices td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 4px;
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.text-block .trade-prices th {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.text-block .trade-prices td:last-child,
.text-block .trade-prices th:last-child {
  text-align: right;
  white-space: nowrap;
}

.text-block .trade-prices td:last-child {
  font: 700 1rem var(--font-title);
}

.trade-prices small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.text-block .trade-note {
  font-size: 0.88rem;
  margin-top: 10px;
}

.trade-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.trade-faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.trade-faq summary::-webkit-details-marker {
  display: none;
}

.trade-faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
}

.trade-faq details[open] summary::after {
  content: "\2013";
}

.trade-faq details p {
  margin-top: 8px;
}

.trade-avatars {
  display: flex;
  margin: 4px 0 14px;
}

.trade-avatars .avatar {
  border: 3px solid #fff;
}

.trade-avatars .avatar + .avatar {
  margin-left: -10px;
}

.trade-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trade-links li {
  border-top: 1px solid var(--line);
}

.trade-links a {
  display: block;
  padding: 9px 0;
  font-weight: 500;
}

.trade-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

.trade-card {
  height: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.trade-card:hover {
  border-color: var(--yellow);
  color: var(--ink);
}

.trade-card h3 {
  font-size: 1.3rem;
  margin: 6px 0 0;
}

.trade-card-text {
  color: var(--ink-soft);
  margin: 0;
}

/* Accueil, « Des freelances » : la carte des métiers, un peu plus serrée (maquette simelo-accueil.html). */
.home-freelancer {
  padding: 24px;
  gap: 12px;
}

.home-freelancer h3 {
  font-size: 1.2rem;
  margin: 0;
}

.home-freelancer .trade-card-text {
  margin-top: 2px;
}

.trade-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .trade-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .trade-block {
    padding: 24px;
  }

  .trade-benefits {
    grid-template-columns: minmax(0, 1fr);
  }

  .trade-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Lot réalisations : étape des paramètres (maquette parametres.html) */
.realisation-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.realisation-list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1.5px solid var(--line);
}

.realisation-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.realisation-list img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--yellow-pale);
}

.realisation-list strong {
  display: block;
  font-size: 0.97rem;
}

.realisation-list small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.realisation-actions {
  display: flex;
  gap: 16px;
}

.realisation-actions button {
  border: 0;
  background: none;
  padding: 0;
  font: 600 0.92rem var(--font-text);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
}

.realisation-actions .is-danger {
  color: var(--bs-danger);
  text-decoration-color: var(--bs-danger-border-subtle);
}

.realisation-empty {
  padding: 18px;
  border-radius: var(--radius-m);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.realisation-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.realisation-dialog {
  --bs-modal-width: 620px;
}

.realisation-dialog .drop-zone {
  padding: 20px;
}

/* Choix de plusieurs images (composant cotton image_picker) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-grid:not(:has(.image-tile:not([hidden]))) {
  display: none;
}

.image-tile {
  position: relative;
}

.image-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: var(--yellow-pale);
  display: block;
}

.image-tile.is-thumbnail::after {
  content: "Vignette";
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.image-tile button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgb(42 36 22 / 75%);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

/* Bloc de la page publique (maquette freelance.html) */
.realisations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.realisation {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font: inherit;
  color: var(--ink);
}

.realisation-image {
  position: relative;
  display: block;
}

.realisation-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--yellow-pale);
  display: block;
  transition: opacity 0.2s;
}

.realisation:hover .realisation-image img {
  opacity: 0.88;
}

.realisation-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgb(42 36 22 / 75%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.realisation strong {
  display: block;
  font-size: 0.93rem;
  margin-top: 8px;
}

.realisation small {
  display: block;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.88rem;
}

/* Fenêtre d'images (composant cotton gallery) */
.gallery-dialog {
  --bs-modal-width: 860px;
}

.gallery-dialog .modal-header {
  align-items: flex-start;
}

.gallery-subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.gallery-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.93rem;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  background: var(--cream);
  overflow: hidden;
}

.gallery-stage .carousel-inner,
.gallery-stage .carousel-item {
  height: 100%;
}

.gallery-stage .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 10px rgb(42 36 22 / 18%);
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgb(42 36 22 / 75%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 999px;
  z-index: 2;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex: 0 0 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
  opacity: 0.7;
  overflow: hidden;
}

.gallery-thumbs button[aria-current] {
  border-color: var(--ink);
  opacity: 1;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 680px) {
  .realisation-list li {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .realisation-actions {
    grid-column: 2;
  }

  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .realisations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Lot galerie d'un service (maquette competence.html : la couverture et trois vignettes) */
.detail-gallery-open,
.detail-thumbs button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.detail-thumbs button {
  position: relative;
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.detail-thumbs-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgb(42 36 22 / 55%);
  color: #fff;
  font: 700 1.3rem var(--font-title);
}

/* Centre d'aide (maquettes aide.html, aide-article.html) */
.help-search input {
  padding: 10px 0;
}

.pillar .trade-links {
  margin-top: 4px;
}

.help-call {
  margin-top: 0;
}

.help-body {
  margin-top: 0;
}

/* Liste numérotée du texte : les étapes à pastilles jaunes de la maquette (.etapes-liste). */
.help-body > ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.help-body > ol li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin: 16px 0;
}

.help-body > ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font: 800 0.95rem var(--font-title);
  color: var(--ink);
}

.help-body > ol li strong {
  display: block;
  color: var(--ink);
}

/* « > » du texte : l'encadré « Les règles à connaître » de la maquette (.retenir), comme .key-points. */
.help-body blockquote {
  background: var(--yellow-pale);
  border-radius: var(--radius-l);
  border-left: 0;
  padding: 28px;
  margin: 36px 0;
  font: inherit;
}

.help-body blockquote h2,
.help-body blockquote h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.help-body blockquote ul {
  margin: 0;
  padding-left: 20px;
}

.help-body blockquote li {
  margin: 6px 0;
}

.help-body blockquote li::marker {
  color: var(--yellow-dark);
}

/* Erreur d'un champ (revue des écrans n° 25) : la même partout, texte rouge en gras sous le champ, cadre rouge autour.
   crispy et c-field-errors n'écrivent ce bloc qu'en cas d'erreur : il reste visible même quand le champ est
   enveloppé (description avec sa barre d'outils, montant avec son unité), où Bootstrap le cachait. */
.invalid-feedback {
  display: block;
  color: #b42318;
}

.drop-zone.is-invalid {
  border-color: #b42318;
}

.check-line.is-invalid input[type="checkbox"] {
  outline: 2px solid #b42318;
  outline-offset: 2px;
}

/* Un montant avec son unité : l'icône d'erreur de Bootstrap tombait sur le « € ». Le cadre rouge suffit. */
.with-unit .form-control.is-invalid {
  background-image: none;
}
