/* ChantierOuvert — identité visuelle BTP */
:root {
  --bg: #f3f1ec;
  --bg-warm: #ebe6dc;
  --bg-card: #ffffff;
  --ink: #12161c;
  --ink-muted: #5a6570;
  --line: rgba(18, 22, 28, 0.1);
  --line-strong: rgba(18, 22, 28, 0.16);
  --accent: #d97706;
  --accent-hot: #ea580c;
  --accent-deep: #9a3412;
  --accent-soft: #fff7ed;
  --accent-glow: rgba(234, 88, 12, 0.22);
  --teal: #0d9488;
  --teal-soft: #ecfdf5;
  --success: #15803d;
  --warning: #b45309;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 22, 28, 0.05);
  --shadow: 0 8px 32px rgba(18, 22, 28, 0.08);
  --shadow-hover: 0 20px 48px rgba(18, 22, 28, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* L’attribut hidden doit primer sur des règles comme .nav-list li { display: flex } (menu compte hors connexion). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .step-card,
  .feature-card,
  .project-card,
  .nav-list a {
    transition: none !important;
  }

  .btn-primary:hover,
  .btn-ghost:hover,
  .step-card:hover,
  .feature-card:hover,
  .project-card:hover {
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(234, 88, 12, 0.07), transparent 50%),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(13, 148, 136, 0.06), transparent 45%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
  overflow: visible;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.header-nav-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 0.35rem;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

#nav-principale {
  flex: 1;
  min-width: 0;
}

.header-nav-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.nav-list--session {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
}

@media (min-width: 769px) {
  #nav-principale {
    flex: 1 1 auto;
    width: auto;
  }
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
}

.logo::before {
  content: "";
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    linear-gradient(145deg, var(--accent-hot) 0%, var(--accent-deep) 100%);
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.logo span {
  background: linear-gradient(120deg, var(--accent-hot), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.nav-toggle:hover {
  box-shadow: var(--shadow-sm);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
}

.nav-list li {
  display: flex;
}

.nav-list--primary {
  width: 100%;
}

.nav-spacer {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0.75rem;
  min-height: 0;
  pointer-events: none;
}

.nav-li-account {
  align-items: center;
}

.nav-account-dropdown {
  position: relative;
  z-index: 3;
}

.nav-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(220px, 42vw);
  padding: 0.45rem 0.75rem 0.45rem 0.95rem;
  margin: 0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.nav-account-trigger:hover {
  background: var(--accent-soft);
  border-color: rgba(234, 88, 12, 0.35);
}

.nav-account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account-chevron {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.65rem;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.2s var(--ease-out);
}

.nav-account-chevron.is-open {
  transform: rotate(180deg);
}

.nav-account-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 220px;
  padding: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 5000;
}

.nav-account-link {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.nav-account-link:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.nav-account-link--danger {
  color: #b91c1c;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.nav-account-link--danger:hover {
  background: #fef2f2;
  color: #991b1b;
}

.nav-account-sub {
  margin: 0;
  padding: 0.5rem 0.75rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.nav-account-sub--warn {
  color: #991b1b;
  background: #fef2f2;
  border-top: 1px solid var(--line);
}

.nav-account-sub--warn a {
  color: var(--accent-deep);
  font-weight: 700;
}

.profil-abonnement-card {
  margin-bottom: 1.25rem;
}

.profil-abonnement-status {
  margin: 0.75rem 0;
  line-height: 1.5;
}

.hub-subscription-banner {
  margin-bottom: 1rem;
}

.subscription-lapsed-banner {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.subscription-lapsed-empty {
  grid-column: 1 / -1;
}

.subscription-gate-card {
  max-width: 42rem;
}

.nav-list a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease-out), color 0.2s;
}

.nav-list a.nav-link-deconnexion {
  color: #b91c1c;
}

.nav-list a.nav-link-deconnexion:hover {
  background: #fef2f2;
  color: #991b1b;
}

.nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  text-decoration: none;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-hot) 0%, var(--accent-deep) 100%) !important;
  color: #fff !important;
  padding: 0.5rem 1.15rem !important;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #f97316 0%, var(--accent-hot) 100%) !important;
  color: #fff !important;
  filter: brightness(1.03);
  text-decoration: none;
}

.badge-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border-radius: 999px;
  border: 1px solid var(--line);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav-cluster {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .header-nav-tools {
    width: 100%;
    justify-content: flex-end;
    order: 1;
  }

  #nav-principale {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    display: none;
  }

  #nav-principale.is-open {
    display: block;
  }

  #nav-principale .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0 0.5rem;
    gap: 0.35rem;
  }

  .nav-list a {
    border-radius: var(--radius-sm);
  }

  #nav-principale .nav-spacer {
    display: none;
  }

  .nav-account-panel {
    right: 0;
    left: 0;
    min-width: unset;
  }

  .nav-account-trigger {
    max-width: none;
  }
}

/* ——— Hero (accueil) ——— */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  top: -35%;
  right: -15%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2312161c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr min(380px, 38%);
  }
}

.hero-copy {
  max-width: 38rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--teal);
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--teal-soft);
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  color: var(--ink);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--accent-hot) 0%, var(--accent) 45%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 48ch;
  margin: 0 0 1.85rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-panel {
  position: relative;
}

.hero-panel-inner {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--shadow-inset);
  position: relative;
  overflow: hidden;
}

.hero-panel-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent), var(--teal));
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-metric {
  padding: 1rem 1.05rem;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-warm) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.hero-metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-panel-foot {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.hero-panel-photo {
  margin: -1.75rem -1.75rem 1.15rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: min(240px, 34vh);
  background: var(--bg);
}

.hero-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.home-media-credit {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.home-media-credit a {
  color: var(--accent-deep);
  font-weight: 600;
}

/* ——— Sections ——— */
.page-main > .section:first-of-type:not(.hero) {
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
  position: relative;
}

.page-main > .section:first-of-type:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1140px);
  height: 180px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(234, 88, 12, 0.06), transparent 70%);
  pointer-events: none;
}

.section {
  padding: clamp(3rem, 6vw, 4rem) 0;
  position: relative;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-hot);
  margin: 0 0 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

h1.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.section-intro {
  color: var(--ink-muted);
  margin: 0;
  max-width: 52ch;
  font-size: 1.02rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hot) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--accent-glow);
  filter: brightness(1.05);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  background: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ——— Cards ——— */
.steps-grid,
.feature-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card,
.feature-card {
  background: var(--bg-card);
  padding: 1.65rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s;
  position: relative;
}

.step-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--accent-hot), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.step-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(234, 88, 12, 0.22);
}

.step-card:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.35rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  background: linear-gradient(160deg, var(--accent-hot), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-card h3,
.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.step-card p,
.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-card.step-card--visual,
.feature-card.feature-card--visual {
  padding: 0;
  overflow: hidden;
}

.step-card--visual::before,
.feature-card--visual::before {
  left: 0;
  right: 0;
}

.step-card-cover,
.feature-card-cover {
  position: relative;
  height: clamp(128px, 22vw, 172px);
  background: var(--bg);
}

.feature-card-cover {
  height: clamp(118px, 19vw, 152px);
}

.step-card-cover img,
.feature-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step-card-body,
.feature-card-body {
  padding: 1.2rem 1.5rem 1.6rem;
}

/* CTA bandeau */
.cta-band {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 50%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 50%, rgba(234, 88, 12, 0.2), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.15), transparent 40%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  z-index: 1;
}

.cta-band .section-label {
  color: #fb923c;
}

.cta-band .section-title {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band .section-intro {
  color: #cbd5e1;
  margin-inline: auto;
  max-width: 42ch;
}

.cta-band .btn-primary {
  margin-top: 1.35rem;
}

/* ——— Project cards (catalogue : une colonne, pleine largeur) ——— */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
}

.project-grid > .empty-state {
  width: 100%;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem 1.15rem;
  width: 100%;
  max-width: 100%;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.2s;
}

.project-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Colonne photo à droite : ~25 % plus large qu’avant, hauteur = bloc texte */
.project-card-media-aside {
  flex: 0 0 clamp(110px, 22.5vw, 175px);
  width: clamp(110px, 22.5vw, 175px);
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.project-card-carousel-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.project-card-carousel-wrap .project-card-carousel {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  outline: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-card-carousel-wrap .project-card-carousel::-webkit-scrollbar {
  display: none;
}

.project-card-carousel:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent-hot);
}

.project-card-carousel-track {
  display: flex;
  height: 100%;
  min-height: 6.875rem;
}

.project-card-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 6.875rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--bg);
}

.project-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-carousel-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.1rem;
  pointer-events: none;
  z-index: 2;
}

.project-card-carousel-btn {
  pointer-events: auto;
  flex-shrink: 0;
  width: 1.85rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(15, 18, 28, 0.52);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.project-card-carousel-btn:hover {
  background: rgba(15, 18, 28, 0.72);
}

.project-card-carousel-btn:focus-visible {
  outline: 2px solid var(--accent-hot);
  outline-offset: 1px;
}

.project-card-carousel-btn-icon {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  margin-top: -0.08em;
  user-select: none;
}

@media (max-width: 520px) {
  .project-card--with-media {
    flex-wrap: wrap;
  }

  .project-card--with-media .project-card-media-aside {
    order: -1;
    flex: 1 1 100%;
    width: 100%;
    max-height: 11.25rem;
    flex-direction: column;
  }

  .project-card--with-media .project-card-carousel-track {
    min-height: 8.75rem;
  }

  .project-card--with-media .project-card-slide {
    min-height: 8.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card-carousel-wrap .project-card-carousel {
    scroll-behavior: auto;
  }
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(234, 88, 12, 0.2);
}

.project-card h2 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.tag-muted {
  background: var(--bg);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.status-ouvert {
  color: var(--success);
  font-weight: 700;
  font-size: 0.78rem;
}

.status-clos {
  color: var(--ink-muted);
}

.project-excerpt {
  color: var(--ink-muted);
  font-size: 0.94rem;
  margin: 0;
  flex: 1;
  line-height: 1.6;
}

.project-card .btn-primary {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ——— Forms ——— */
.form-page {
  max-width: 640px;
  margin: 0 auto;
}

.form-page--wide {
  max-width: 720px;
}

/** Profil entrepreneur : même largeur que `.container` (plus de limite 640px). */
.form-page--full-width {
  max-width: none;
}

body[data-page="profil"] .section-head,
body[data-page="contact"] .section-head {
  max-width: min(56rem, 100%);
}

@media (min-width: 880px) {
  body[data-page="profil"] .trade-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  body[data-page="profil"] #trades-profile.trade-checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.form-footer-actions {
  margin-top: 2rem;
}

.auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

/* ——— Session entrepreneur (profil) ——— */
.session-bar {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.session-bar-inner {
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.session-bar--guest {
  margin: 0;
  background: #f8fafc;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
}

.session-bar--ok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  color: var(--ink);
}

.session-bar--warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  color: #78350f;
}

/* Badge mode serveur (app.js) */
.server-mode-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  max-width: min(320px, calc(100% - 2rem));
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.form-card {
  background: var(--bg-card);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.3rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.72rem 0.95rem;
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fafaf9;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover {
  border-color: rgba(18, 22, 28, 0.22);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-hot);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-row textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row-remember {
  margin-top: 0.25rem;
}

.remember-login-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.remember-login-label input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-hot);
}

.form-row-remember small {
  display: block;
  margin-top: 0.45rem;
  margin-left: 1.6rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.form-row small {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.fieldset-trades {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.1rem;
  margin: 0 0 1.3rem;
  background: #fafaf9;
}

.fieldset-trades legend {
  font-weight: 800;
  padding: 0 0.45rem;
  font-size: 0.88rem;
}

.trade-checks {
  display: grid;
  gap: 0.55rem;
}

.trade-checks label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.35rem 0;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.trade-checks label:hover {
  background: rgba(255, 255, 255, 0.8);
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.65rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.filters-bar .form-row {
  margin: 0;
  flex: 1;
  min-width: 160px;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.35rem;
  font-size: 0.94rem;
  line-height: 1.55;
  border: 1px solid transparent;
}

.alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: #bfdbfe;
  color: #1e3a5f;
}

.alert-warn {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  color: #78350f;
}

.alert-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-color: #86efac;
  color: #14532d;
}

/* Confirmation d’enregistrement profil (sous le bouton, toujours visible après clic) */
.profil-save-feedback {
  margin-top: 1.1rem;
  padding: 1.05rem 1.2rem;
  border-radius: var(--radius);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 2px solid transparent;
  animation: profil-save-pop 0.4s ease;
}

@keyframes profil-save-pop {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.profil-save-feedback--success {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 55%, #fff 100%);
  border-color: #34d399;
  color: #064e3b;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.18);
}

.profil-save-feedback-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #059669;
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.profil-save-feedback-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.profil-save-feedback-text strong {
  font-size: 1.05rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.profil-save-feedback-sub {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  color: #0f3d2e;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px dashed var(--line-strong);
}

/* ——— Detail page ——— */
.detail-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr min(400px, 36%);
    align-items: start;
  }
}

.detail-main {
  background: var(--bg-card);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 5.25rem;
  align-self: start;
}

.detail-sidebar-card {
  background: var(--bg-card);
  padding: 1.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-sidebar-card--bids .sidebar-title {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.detail-sidebar .section-title {
  font-size: 1.15rem;
}

.detail-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.project-map-bubble {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1rem 1rem;
  background: linear-gradient(165deg, rgba(13, 148, 136, 0.06) 0%, var(--bg-card) 50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.project-map-bubble-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 0.6rem;
}

.project-map-postal {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.project-map-note {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.project-detail-map {
  height: min(150px, 26vh);
  min-height: 120px;
  max-width: min(100%, 360px);
  margin-inline: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 0;
}

.project-detail-map .leaflet-container {
  font-family: var(--font);
  z-index: 0;
}

.project-map-footnote {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.project-map-footnote a {
  color: var(--accent-deep);
}

/* ——— Footer ——— */
.site-footer {
  background: linear-gradient(180deg, #0f1419 0%, #0a0d11 100%);
  color: #94a3b8;
  padding: 2.25rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  margin: 0;
  font-size: 0.88rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.35rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.page-main {
  flex: 1;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.link-back:hover {
  text-decoration: none;
}

/* ——— Utility ——— */
.mt-0 {
  margin-top: 0;
}

.text-muted {
  color: var(--ink-muted);
}

/* ——— Filtres catalogue ——— */
.filters-bar--extended .form-row {
  min-width: 180px;
}

@media (min-width: 900px) {
  .filters-bar--extended {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
  }
}

/* ——— Médias projet ——— */
.fieldset-media input[type="file"] {
  padding: 0.5rem 0;
  font-size: 0.88rem;
  border: none;
  background: transparent;
}

.project-media-block {
  margin: 1.75rem 0;
}

.project-media-title {
  font-size: 1.05rem !important;
  margin-bottom: 0.85rem !important;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.project-gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.project-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.project-pdf-block {
  margin: 1.5rem 0 0;
}

.project-pdf-link {
  display: inline-flex;
}

.project-description {
  white-space: pre-wrap;
  margin: 0 0 1rem;
  line-height: 1.65;
}

.block-title {
  font-size: 1.08rem !important;
  margin-top: 1.75rem !important;
}

.status-attribue {
  color: #7c3aed;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ——— Session client & soumissions ——— */
.client-session-card {
  background: linear-gradient(135deg, #f8fafc 0%, var(--accent-soft) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.client-session-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.client-session-text {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.client-session-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.client-session-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
}

.bid-status {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.bid-status--pending {
  background: #e0f2fe;
  color: #0369a1;
}

.bid-status--acceptee {
  background: #dcfce7;
  color: #166534;
}

.bid-status--refusee {
  background: #f1f5f9;
  color: #64748b;
}

/* Tableau soumissions (grille type feuille de calcul) */
.bids-sheet-wrap {
  margin-top: 0.35rem;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.bids-sheet-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bids-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.bids-sheet th,
.bids-sheet td {
  border: 1px solid #64748b;
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.bids-sheet thead th {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bids-sheet thead th:first-child {
  border-top-left-radius: calc(var(--radius-sm) - 1px);
}

.bids-sheet thead th:last-child {
  border-top-right-radius: calc(var(--radius-sm) - 1px);
}

.bids-sheet tbody tr:nth-child(even) {
  background: #f8fafc;
}

.bids-sheet-row--winner td {
  background: #fffbeb !important;
}

.bids-sheet-cell--strong {
  font-weight: 800;
  font-family: var(--font-display);
}

.bids-sheet-cell--meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  max-width: 14rem;
}

.bids-sheet-cell--message {
  white-space: pre-wrap;
  max-width: 24rem;
  font-size: 0.8rem;
  line-height: 1.5;
}

.bids-sheet-cell--money {
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent-hot);
  white-space: nowrap;
}

.bids-sheet-cell--num {
  white-space: nowrap;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.bids-sheet--public .bids-sheet-cell:first-child {
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--ink);
}

.bids-vitrine-link {
  color: var(--accent-hot);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid transparent;
}

.bids-vitrine-link:hover {
  border-bottom-color: var(--accent-hot);
  text-decoration: none;
}

.bids-vitrine-hint {
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  margin: 0 0 0.85rem !important;
}

/* Vitrine publique (soumission) — largeur + colonnes + bulles */
.vitrine-page-section .vitrine-page-shell {
  width: min(1320px, 100% - 2rem);
  max-width: none;
}

.vitrine-back {
  margin: 0 0 1rem;
}

/* Retour (gauche) + titre vitrine centré sur la page, même hauteur */
.vitrine-page-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.vitrine-page-topbar-start {
  justify-self: start;
  min-width: 0;
}

.vitrine-page-topbar .vitrine-back {
  margin: 0;
}

.vitrine-page-topbar .vitrine-page-head {
  margin-bottom: 0;
  max-width: none;
  justify-self: center;
  text-align: center;
}

.vitrine-page-topbar-end {
  min-width: 0;
}

/* Une seule ligne : « Vitrine » + nom, même corps et même hauteur de ligne */
.vitrine-page-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.65rem;
  row-gap: 0.15rem;
}

.vitrine-page-kicker {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin: 0;
}

.vitrine-page-title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 720px) {
  .vitrine-page-topbar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    row-gap: 0.65rem;
  }

  .vitrine-page-topbar-start {
    justify-self: stretch;
    width: 100%;
  }

  .vitrine-page-topbar-start .vitrine-back {
    text-align: left;
  }

  .vitrine-page-topbar-end {
    display: none;
  }
}

.vitrine-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

/* Description (gauche) + note (droite, même largeur que l’ancienne colonne photos) */
.vitrine-desc-note-row {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .vitrine-desc-note-row {
    grid-template-columns: minmax(0, 1fr) min(420px, 38%);
  }
}

.vitrine-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.vitrine-bubble--compact {
  padding: 0.85rem 1rem 1rem;
}

.vitrine-bubble--compact .vitrine-bubble-title {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.vitrine-bubble--compact .vitrine-rating-big {
  margin-bottom: 0.25rem;
}

.vitrine-bubble--compact .vitrine-rating-num {
  font-size: 1.75rem;
}

.vitrine-bubble--compact .vitrine-rating-slash {
  font-size: 1rem;
}

.vitrine-bubble--compact .vitrine-rating-stars {
  margin: 0.2rem 0 0.35rem;
}

.vitrine-bubble--compact .vitrine-rating-stars .star {
  font-size: 1rem;
}

.vitrine-bubble--compact .vitrine-rating-meta {
  font-size: 0.8rem;
  line-height: 1.4;
}

.vitrine-contact-list {
  margin: 0;
  padding: 0;
}

.vitrine-contact-item {
  margin: 0 0 0.7rem;
}

.vitrine-contact-item:last-child {
  margin-bottom: 0;
}

.vitrine-contact-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 0.2rem;
}

.vitrine-contact-value {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.vitrine-contact-value a {
  font-weight: 600;
}

.vitrine-contact-hours {
  white-space: pre-wrap;
}

.vitrine-bubble {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.vitrine-bubble-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.vitrine-bubble-body,
.vitrine-bubble-empty,
.vitrine-bubble-alert {
  margin: 0;
}

.vitrine-bubble-empty {
  font-size: 0.95rem;
}

.vitrine-rating-big {
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.vitrine-rating-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  color: var(--ink);
}

.vitrine-rating-num--empty {
  color: var(--ink-muted);
}

.vitrine-rating-slash {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-left: 0.15rem;
}

.vitrine-rating-stars {
  margin: 0.35rem 0 0.5rem;
}

.vitrine-rating-meta {
  margin: 0;
  font-size: 0.9rem;
}

.vitrine-page-text {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.98rem;
}

/* Galerie sous description + note (pleine largeur du shell) */
.vitrine-bubble--photos .vitrine-page-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.vitrine-page-gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.vitrine-page-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.bids-sheet--owner {
  min-width: 640px;
}

.bids-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.winner-card--public .winner-title {
  margin-bottom: 0;
}

.winner-card--public {
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(160deg, #f5f3ff 0%, #fff 55%);
}

.btn-sm {
  padding: 0.45rem 0.95rem !important;
  font-size: 0.85rem !important;
}

.winner-card {
  margin-top: 2rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent-hot);
  background: linear-gradient(160deg, #fff7ed 0%, #fff 55%);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.winner-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-hot);
}

.winner-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.winner-meta {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.winner-message {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.95rem;
}

.sidebar-title {
  font-size: 1.08rem !important;
  margin-top: 0 !important;
}

.sidebar-text {
  font-size: 0.9rem !important;
  margin: 0 0 0.75rem !important;
}

/* ——— Mes soumissions ——— */
.submission-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .submission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.submission-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.submission-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.submission-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.submission-title a {
  color: var(--ink);
  text-decoration: none;
}

.submission-title a:hover {
  color: var(--accent-hot);
}

.submission-meta {
  margin: 0 0 0.5rem !important;
  font-size: 0.82rem !important;
}

.submission-amount {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-hot);
  font-family: var(--font-display);
}

.submission-excerpt {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ——— Espace entrepreneur (hub) ——— */
.hub-dashboard-top .hub-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hub-avis-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hub-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: var(--accent-hot, #ea580c);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.hub-vitrine-panel {
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.hub-vitrine-panel .hub-showcase-root {
  margin-bottom: 0;
}

.hub-showcase-root {
  margin-bottom: 2rem;
  scroll-margin-top: 6rem;
}

.entrepreneur-avis-root {
  margin-bottom: 2rem;
}

.hub-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

.hub-showcase-text {
  white-space: pre-wrap;
  line-height: 1.65;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.hub-showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.hub-showcase-gallery-item {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.hub-showcase-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.hub-reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
}

.hub-reviews-avg-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hub-reviews-stars .star {
  font-size: 1.15rem;
}

.star {
  color: #cbd5e1;
}

.star--on {
  color: #f59e0b;
}

.star--off {
  color: #e2e8f0;
}

.hub-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hub-review-item {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.hub-review-item:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.hub-review-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.hub-review-stars-inline .star {
  font-size: 1rem;
}

.hub-review-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hub-review-sat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.hub-review-sat--ok {
  background: #dcfce7;
  color: #166534;
}

.hub-review-sat--bad {
  background: #fee2e2;
  color: #991b1b;
}

.hub-review-comment {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hub-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.hub-review-photo-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.hub-review-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-preview-label {
  margin: 1rem 0 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.showcase-photo-count {
  font-weight: 800;
  color: var(--accent-hot);
}

.showcase-preview-empty {
  font-size: 0.88rem !important;
  margin: 0 !important;
  padding: 0.85rem 1rem;
  background: var(--bg-muted, #f1f5f9);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
}

.showcase-photos-status {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.showcase-photos-status--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.showcase-photos-status--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.showcase-photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.showcase-thumb {
  position: relative;
  width: 128px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--bg-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-thumb--new {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
  animation: showcase-thumb-pop 0.45s ease;
}

@keyframes showcase-thumb-pop {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.showcase-thumb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: #16a34a;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.showcase-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase-thumb .btn {
  width: 100%;
  border-radius: 0;
  font-size: 0.75rem;
  padding: 0.35rem !important;
}

.client-review-card {
  margin-top: 2rem;
  padding: 1.5rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.client-review-card--done {
  border-color: rgba(13, 148, 136, 0.35);
  background: linear-gradient(160deg, #ecfdf5 0%, #fff 55%);
}

.client-review-intro {
  margin: 0 0 1.25rem !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.review-rating-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.review-rating-fieldset legend {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-stars-row {
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  align-items: center;
}

.review-star-label {
  cursor: pointer;
  line-height: 1;
}

.review-star-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.review-star-char {
  font-size: 1.85rem;
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.review-star-label:has(input:checked) .review-star-char,
.review-star-label:has(input:focus-visible) .review-star-char {
  color: #f59e0b;
}

.review-sat-legend {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-satisfaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.review-sat-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.hub-stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hub-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.hub-stat-card--accent {
  border-color: rgba(234, 88, 12, 0.25);
  background: linear-gradient(160deg, #fff7ed 0%, #fff 70%);
}

.hub-stat-card--teal {
  border-color: rgba(13, 148, 136, 0.25);
  background: linear-gradient(160deg, #ecfdf5 0%, #fff 70%);
}

.hub-stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.hub-stat-label {
  margin: 0.5rem 0 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.hub-stat-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.hub-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.hub-section-intro {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.hub-submissions-wrap {
  margin-bottom: 0.5rem;
}

.hub-table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hub-table th,
.hub-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.hub-table th {
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: #fafaf9;
}

.hub-table tr:last-child td {
  border-bottom: none;
}

.hub-table a {
  font-weight: 600;
  color: var(--ink);
}

.hub-table a:hover {
  color: var(--accent-hot);
}

.hub-table-num {
  font-weight: 700;
  font-family: var(--font-display);
  white-space: nowrap;
}

.hub-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.hub-empty p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.hub-recent-section {
  padding-top: 2.5rem;
}

.hub-recent-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hub-recent-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.hub-recent-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(234, 88, 12, 0.18);
}

.hub-recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.hub-recent-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hub-recent-title a {
  color: var(--ink);
  text-decoration: none;
}

.hub-recent-title a:hover {
  color: var(--accent-hot);
}

.hub-recent-date {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hub-recent-excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ——— Carte entrepreneur (rayon km) ——— */
.contractor-map-card {
  margin: 2rem 0 1.75rem;
  padding: 1.35rem 1.4rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contractor-map-card-head {
  margin-bottom: 1.1rem;
}

.contractor-map-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contractor-map-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.contractor-map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .contractor-map-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.contractor-map-control {
  flex: 1;
  min-width: min(100%, 220px);
}

.contractor-map-control label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.contractor-map-control input[type="range"] {
  width: 100%;
  max-width: 320px;
  accent-color: var(--accent-hot);
}

.contractor-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.contractor-map-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.contractor-map-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent-hot);
}

.contractor-leaflet-map {
  height: min(420px, 55vh);
  min-height: 280px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 0;
}

.contractor-map-summary {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.contractor-map-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
}

.contractor-map-footnote a {
  color: var(--accent-hot);
}

.tag-in-radius {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.35);
}

.catalog-coverage-banner {
  margin: 1.25rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.catalog-coverage-banner a {
  font-weight: 700;
}

.profil-coverage-fieldset .profil-coverage-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.profil-coverage-mode-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.profil-coverage-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}

.profil-coverage-radio input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-hot);
}

.profil-panel-coverage {
  margin-top: 0.5rem;
}

.profil-map-section {
  margin-top: 0.5rem;
}

.profil-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.profil-leaflet-map {
  margin-top: 0.25rem;
}

.profil-map-toolbar--wrap {
  flex-wrap: wrap;
  align-items: flex-end;
}

.profil-map-draw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.profil-map-draw-hint {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.profil-leaflet-map.profil-map--pencil .leaflet-container {
  cursor: crosshair !important;
}

.profil-map-dot-anchor {
  background: transparent !important;
  border: none !important;
}

.profil-map-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.profil-map-dot-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
  text-align: center;
  max-width: 6.5rem;
  user-select: none;
  letter-spacing: -0.02em;
}

.profil-map-dot-point {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.coverage-region-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1rem;
}

@media (min-width: 520px) {
  .coverage-region-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .coverage-region-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.coverage-region-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.coverage-region-label input {
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent-hot);
}

/* ——— Page contact ——— */
.contact-aside-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-aside-grid {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 2rem;
  }
}

.contact-info-card {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(160deg, #fff7ed 0%, var(--bg-card) 55%);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-info-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-info-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-info-line {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-info-line:last-child {
  margin-bottom: 0;
}

.contact-info-line a {
  color: var(--accent-hot);
  font-weight: 600;
}
