/* Pages département — layout conversion v2 (77–95) */

.dept-page .dept-breadcrumb {
  justify-content: flex-start;
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
}

.dept-page .dept-hero {
  text-align: left;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.5rem);
}

.dept-page .dept-hero-inner {
  text-align: left;
}

.dept-hero-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.dept-hero-main {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 40rem;
}

.dept-hero-watermark {
  flex: 0 0 auto;
  font-size: clamp(4rem, 12vw, 8.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--prob-accent);
  opacity: 0.07;
  user-select: none;
  pointer-events: none;
}

.dept-page .dept-h1,
.dept-page .dept-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.dept-delivery-note {
  display: inline-flex;
  align-items: center;
  max-width: 36rem;
  margin: 0 0 1.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--prob-border);
  background: var(--prob-bg-band);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
}

.dept-delivery-note--free {
  border-color: rgba(110, 101, 195, 0.28);
  background: var(--prob-accent-soft);
}

body.prob-site:not(.light-mode) .dept-delivery-note {
  background: rgba(255, 255, 255, 0.04);
}

body.prob-site:not(.light-mode) .dept-delivery-note--free {
  background: rgba(110, 101, 195, 0.12);
}

.dept-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.dept-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.78rem;
  color: var(--prob-text-muted);
}

.dept-tarifs-section .dept-tarifs-lead {
  width: 100%;
  max-width: var(--prob-content-wide);
  margin: 0 auto 1.35rem;
  padding: 0 var(--prob-content-wide-pad);
  box-sizing: border-box;
  text-align: center;
  font-size: 0.9rem;
  color: var(--prob-text-muted);
  line-height: 1.55;
}

.dept-tarifs-grid .product-card {
  position: relative;
}

.dept-tarif-popular-badge {
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--prob-accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-card--popular {
  border-color: rgba(110, 101, 195, 0.45);
  background: var(--prob-accent-soft);
}

.product-price-unit {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 0.15rem;
}

.dept-tarifs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  max-width: var(--prob-content-wide);
  margin: 1.35rem auto 0;
  padding: 0 var(--prob-content-wide-pad);
}

.dept-steps-section {
  padding: clamp(2.5rem, 5vw, 3.25rem) var(--prob-content-wide-pad);
}

.dept-steps-inner {
  max-width: var(--prob-content-wide);
  margin: 0 auto;
}

.dept-steps-section h2 {
  text-align: center;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 900;
  margin-bottom: 1.35rem;
}

.dept-steps-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dept-step-card {
  padding: 1.1rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--prob-border);
  background: var(--prob-white);
}

body.prob-site:not(.light-mode) .dept-step-card {
  background: rgba(255, 255, 255, 0.03);
}

.dept-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  background: var(--prob-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.dept-step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.dept-step-card p {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--prob-text-muted);
}

.dept-step-card a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--prob-accent);
  text-decoration: none;
}

.dept-cities-grid {
  justify-content: flex-start;
  gap: 0.45rem;
}

.dept-cities-grid .city-tag {
  font-size: 0.8rem;
}

.dept-essences-section {
  padding: clamp(2.5rem, 5vw, 3.25rem) var(--prob-content-wide-pad);
  background: var(--prob-bg-band);
}

.dept-essences-inner {
  max-width: var(--prob-content-wide);
  margin: 0 auto;
}

.dept-essences-section h2 {
  text-align: center;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 900;
  margin-bottom: 1.15rem;
}

.dept-essences-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dept-essence-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--prob-border);
  background: var(--prob-white);
}

body.prob-site:not(.light-mode) .dept-essence-card {
  background: rgba(255, 255, 255, 0.03);
}

.dept-essence-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.dept-essence-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--prob-text-muted);
}

.dept-bottom-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--prob-text-muted);
}

.dept-other-zones {
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--prob-content-wide-pad);
  border-top: 1px solid var(--prob-border);
}

.dept-other-zones-inner {
  max-width: var(--prob-content-wide);
  margin: 0 auto;
}

.dept-other-zones h3 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prob-text-muted);
}

.dept-zones-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.dept-zone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 5.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--prob-border);
  background: var(--prob-white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

body.prob-site:not(.light-mode) .dept-zone-card {
  background: rgba(255, 255, 255, 0.03);
}

.dept-zone-card:hover {
  border-color: rgba(110, 101, 195, 0.45);
}

.dept-zone-card--active {
  border-color: rgba(110, 101, 195, 0.55);
  background: var(--prob-accent-soft);
}

.dept-zone-card__num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--prob-accent);
}

.dept-zone-card__name {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.dept-zone-card__note {
  font-size: 0.65rem;
  color: var(--prob-text-muted);
}

@media (max-width: 900px) {
  .dept-hero-watermark {
    display: none;
  }

  .dept-steps-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .dept-hero-actions,
  .dept-tarifs-actions,
  .dept-page .cta-banner-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .dept-hero-actions .prob-btn,
  .dept-tarifs-actions .prob-btn,
  .dept-page .cta-banner-buttons .prob-btn {
    width: 100%;
    justify-content: center;
  }

  .dept-essences-grid {
    grid-template-columns: 1fr;
  }
}

/* Highlight strip under hero */
.dept-highlights {
  padding: 0 var(--prob-content-wide-pad, 1.25rem) clamp(1.5rem, 3vw, 2rem);
  margin-top: -0.25rem;
}

.dept-highlights-inner {
  max-width: var(--prob-content-wide, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.dept-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--prob-border);
  background: var(--prob-white, #fff);
  box-shadow: 0 2px 14px rgba(15, 18, 32, 0.04);
}

body.prob-site:not(.light-mode) .dept-highlight-card {
  background: rgba(255, 255, 255, 0.03);
}

.dept-highlight-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prob-text-muted);
}

.dept-highlight-card__value {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--prob-accent);
}

.dept-highlight-card__meta {
  font-size: 0.8rem;
  color: var(--prob-text-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .dept-highlights-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dept-highlights-inner {
    grid-template-columns: 1fr;
  }
}

/* Long-form SEO article (2000+ mots) */
.dept-article {
  padding: clamp(2.5rem, 5vw, 4rem) var(--prob-content-wide-pad, 1.25rem);
  background:
    linear-gradient(180deg, rgba(110, 101, 195, 0.05) 0%, transparent 18%),
    var(--prob-bg-band, #f6f5fb);
}

.dept-article-shell {
  max-width: var(--prob-content-wide, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.dept-article-toc {
  position: sticky;
  top: 6.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--prob-border);
  background: var(--prob-white, #fff);
  box-shadow: 0 2px 14px rgba(15, 18, 32, 0.04);
}

body.prob-site:not(.light-mode) .dept-article-toc {
  background: rgba(255, 255, 255, 0.03);
}

.dept-article-toc__label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--prob-text-muted);
}

.dept-article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dept-article-toc a {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--prob-text-muted);
  text-decoration: none;
  padding: 0.2rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.55rem;
  transition: color 0.15s, border-color 0.15s;
}

.dept-article-toc a:hover {
  color: var(--prob-accent);
  border-left-color: var(--prob-accent);
}

.dept-article-inner {
  min-width: 0;
  max-width: 46rem;
}

.dept-article-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prob-accent);
}

.dept-article h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  margin: 0 0 1rem;
  color: var(--prob-text, #1a1a1a);
  line-height: 1.25;
  font-weight: 900;
}

.dept-article-lead {
  font-size: 1.12rem !important;
  line-height: 1.7 !important;
  color: var(--prob-text) !important;
}

.dept-article h3 {
  font-size: 1.18rem;
  margin: 2rem 0 0.75rem;
  color: var(--prob-text, #1a1a1a);
  font-weight: 800;
  line-height: 1.3;
  scroll-margin-top: 6rem;
}

.dept-article p,
.dept-article li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--prob-text-muted, #444);
}

.dept-article p {
  margin: 0 0 1.1rem;
}

.dept-article ul,
.dept-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.dept-article li {
  margin-bottom: 0.45rem;
}

.dept-article-cities {
  columns: 2;
  column-gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.dept-article-cities li {
  break-inside: avoid;
}

.dept-article-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--prob-border);
  background: var(--prob-white, #fff);
}

.dept-article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}

.dept-article-table th,
.dept-article-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0.95rem;
  text-align: left;
}

.dept-article-table tr:last-child td {
  border-bottom: none;
}

.dept-article-table th {
  background: rgba(110, 101, 195, 0.1);
  font-weight: 700;
  color: var(--prob-text, #1a1a1a);
}

.dept-article-table tr:nth-child(even) td {
  background: rgba(110, 101, 195, 0.03);
}

.dept-article-callout {
  background: var(--prob-white, #fff);
  border-left: 4px solid var(--prob-accent);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 2px 14px rgba(15, 18, 32, 0.05);
}

body.prob-site:not(.light-mode) .dept-article-callout,
body.prob-site:not(.light-mode) .dept-article-table-wrap {
  background: rgba(255, 255, 255, 0.04);
}

.dept-article-callout p:last-child {
  margin-bottom: 0;
}

.dept-article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
}

.dept-article-links a {
  color: var(--prob-accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .dept-article-shell {
    grid-template-columns: 1fr;
  }

  .dept-article-toc {
    position: static;
  }

  .dept-article-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.75rem;
  }

  .dept-article-inner {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .dept-article-cities {
    columns: 1;
  }

  .dept-article-toc ol {
    grid-template-columns: 1fr;
  }

  .dept-article-table {
    font-size: 0.85rem;
  }

  .dept-article-table th,
  .dept-article-table td {
    padding: 0.5rem 0.6rem;
  }
}

.dept-commune-links {
  padding: 36px 20px;
  border-top: 1px solid var(--prob-border);
}

.dept-commune-links-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.dept-commune-links h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  opacity: 0.8;
}

.dept-commune-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px 12px;
}

.commune-link {
  font-size: 0.78rem;
  color: var(--prob-text-muted);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1px solid rgba(15, 18, 32, 0.06);
  transition: color 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.commune-link:hover {
  color: var(--prob-accent);
}

@media (max-width: 900px) {
  .dept-commune-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .dept-commune-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
