/* ─── Variables & Reset ────────────────────────────────────────────────────── */
:root {
  --pa-primary:    #e63946;
  --pa-dark:       #0f1e33;
  --pa-gray:       #f4f4f4;
  --pa-text:       #333333;
  --pa-border:     #e0e0e0;
  --pa-radius:     8px;
  --pa-shadow:     0 2px 12px rgba(0,0,0,.08);
  --pa-transition: .2s ease;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--pa-text);
  background: #ffffff;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
#header,
header.header {
  background: var(--pa-dark);
}

.navbar {
  background: var(--pa-dark) !important;
  padding: .75rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--pa-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 0;
  margin-top: 4rem;
  border-top: 3px solid var(--pa-primary);
}

footer.site-footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--pa-transition);
}

footer.site-footer a:hover {
  color: var(--pa-primary);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Brand */
.site-footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: .75rem;
}

.site-footer__tagline {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
}

/* Colonnes */
.site-footer__col-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin: 0 0 1rem;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.site-footer__links li a {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.site-footer__links li a::before {
  content: '›';
  color: var(--pa-primary);
  font-size: 1rem;
  line-height: 1;
}

.site-footer__links li a:hover {
  color: #fff;
}

/* Barre du bas */
.site-footer__bottom {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: none !important;
  margin-top: 0 !important;
}

.site-footer__copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin: 0;
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -0.5px;
}

.navbar-brand span { color: var(--pa-primary); }

.navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  transition: color var(--pa-transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--pa-primary) !important; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
  padding-left: 1rem;
}

/* Logo navbar */
.navbar-brand {
  font-size: 0; /* hide "Pieces Auto" text */
}
.navbar-brand img {
  height: 128px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  font-size: initial;
}

.nav-btn {
  display: inline-block;
  padding: .4rem 1rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.nav-btn--login {
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.3);
}
.nav-btn--login:hover { background: rgba(255,255,255,.1); color: #fff !important; }

.nav-btn--register {
  background: var(--pa-primary);
  color: #fff !important;
  border: 1px solid var(--pa-primary);
}
.nav-btn--register:hover { background: #c62a38; border-color: #c62a38; }

.nav-btn--account {
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.3);
}
.nav-btn--account:hover { background: rgba(255,255,255,.1); color: #fff !important; }

.nav-btn--logout {
  color: rgba(255,255,255,.6) !important;
  font-weight: 400;
  font-size: .8rem;
}
.nav-btn--logout:hover { color: var(--pa-primary) !important; }

/* ─── Navbar toggler (burger) ───────────────────────────────────────────────── */
.navbar-toggler {
  border: 2px solid rgba(255,255,255,.4) !important;
  border-radius: 8px !important;
  padding: .45rem .6rem !important;
  background: rgba(255,255,255,.05) !important;
  transition: background .2s, border-color .2s;
}
.navbar-toggler:hover,
.navbar-toggler:focus {
  background: rgba(255,255,255,.12) !important;
  border-color: var(--pa-primary) !important;
  box-shadow: none !important;
  outline: none !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,.85%29' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  width: 1.3em;
  height: 1.3em;
}

/* Menu déroulant mobile */
@media (max-width: 991px) {
  .navbar-brand img {
    height: 52px;
  }

  #CollapsingNavbar {
    background: var(--pa-dark);
    margin-top: .5rem;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }

  #CollapsingNavbar .navbar-nav {
    gap: .25rem;
    margin-bottom: .75rem;
  }

  #CollapsingNavbar .nav-link {
    padding: .6rem .75rem !important;
    border-radius: 7px;
    font-size: .95rem;
  }

  #CollapsingNavbar .nav-link:hover,
  #CollapsingNavbar .nav-link.active {
    background: rgba(255,255,255,.06);
  }

  .navbar-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 0 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .nav-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: .5rem .75rem;
    font-size: .82rem;
  }

  .lang-switcher {
    width: 100%;
    justify-content: center;
    margin-bottom: .25rem;
  }
}

/* ─── Hero banner ───────────────────────────────────────────────────────────── */
.region-hero {
  background: linear-gradient(135deg, var(--pa-dark) 0%, #2d2d44 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.region-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .5rem; }
.region-hero p  { font-size: 1.1rem; opacity: .8; margin-bottom: 1.5rem; }

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb-wrapper {
  background: var(--pa-gray);
  padding: .5rem 0;
  font-size: .875rem;
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.layout-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─── Sidebar (filtres) ─────────────────────────────────────────────────────── */
#sidebar-first {
  background: #fff;
  border-radius: var(--pa-radius);
  padding: 1.25rem;
  border: 1px solid var(--pa-border);
  box-shadow: var(--pa-shadow);
}

#sidebar-first .block { margin-bottom: 1.5rem; }

#sidebar-first .block-title,
#sidebar-first h2 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pa-dark);
  border-bottom: 2px solid var(--pa-primary);
  padding-bottom: .4rem;
  margin-bottom: .75rem;
}

/* Facets links */
.facets-widget-links ul { list-style: none; padding: 0; margin: 0; }
.facets-widget-links li { margin-bottom: .3rem; }

.facets-widget-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem .5rem;
  border-radius: 4px;
  color: var(--pa-text);
  text-decoration: none;
  font-size: .875rem;
  transition: background var(--pa-transition);
}

.facets-widget-links a:hover       { background: var(--pa-gray); color: var(--pa-primary); }
.facets-widget-links a.is-active   { background: var(--pa-primary); color: #fff; font-weight: 600; }

.facets-widget-links .facet-item__count {
  font-size: .75rem;
  opacity: .7;
  background: rgba(0,0,0,.06);
  border-radius: 10px;
  padding: .1rem .4rem;
}

.facets-widget-links a.is-active .facet-item__count {
  background: rgba(255,255,255,.2);
  opacity: 1;
}

/* Checkboxes facets */
.facets-widget-checkbox ul  { list-style: none; padding: 0; margin: 0; }
.facets-widget-checkbox li  { margin-bottom: .35rem; }
.facets-widget-checkbox label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  cursor: pointer;
}

/* ─── Cartes annonces ───────────────────────────────────────────────────────── */
.view-annonces .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Card wrapper */
.annonce-card {
  background: #fff;
  border-radius: var(--pa-radius);
  border: 1px solid var(--pa-border);
  box-shadow: var(--pa-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

.annonce-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

/* Image zone */
.annonce-card__img-link { display: block; }

.annonce-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pa-gray);
}

.annonce-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.annonce-card:hover .annonce-card__img img { transform: scale(1.05); }

.annonce-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: .8rem;
}

/* État badge overlaid on image */
.annonce-card__badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .55rem;
  border-radius: 20px;
}

.annonce-card__badge--neuf         { background: #d1fae5; color: #065f46; }
.annonce-card__badge--occasion     { background: #fef3c7; color: #92400e; }
.annonce-card__badge--reconditionné { background: #ede9fe; color: #5b21b6; }

/* Card body */
.annonce-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: .9rem 1rem;
  gap: .4rem;
}

.annonce-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: #888;
}

.annonce-card__marque { font-weight: 700; color: var(--pa-primary); }

.annonce-card__title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.annonce-card__title a {
  color: var(--pa-dark);
  text-decoration: none;
}

.annonce-card__title a:hover { color: var(--pa-primary); }

.annonce-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid #f0f0f5;
}

.annonce-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pa-primary);
}

.annonce-card__price small {
  font-size: .7rem;
  font-weight: 500;
  color: #888;
  margin-left: .3rem;
}

.annonce-card__cta {
  font-size: .78rem;
  font-weight: 700;
  color: var(--pa-primary);
  text-decoration: none;
  white-space: nowrap;
}

.annonce-card__cta:hover { text-decoration: underline; }

/* ─── Formulaire de recherche exposé ────────────────────────────────────────── */
.views-exposed-form {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--pa-border);
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Remove Bootstrap spacing overrides */
.views-exposed-form .form-item,
.views-exposed-form .mb-3 { margin-bottom: 0 !important; }

/* Labels */
.views-exposed-form label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9a9aaa;
  margin-bottom: .35rem;
}

/* Icon before each label via sibling class */
.form-item-search-api-fulltext label::before { content: '🔍'; font-size: .85rem; }
.form-item-field-marque          label::before { content: '🚗'; font-size: .85rem; }
.form-item-field-region          label::before { content: '📍'; font-size: .85rem; }
.form-item-field-etat            label::before { content: '🏷'; font-size: .85rem; }

/* Inputs & selects */
.views-exposed-form input[type="text"],
.views-exposed-form input[type="search"],
.views-exposed-form select {
  width: 100%;
  border: 1.5px solid #e5e5ef;
  border-radius: 9px;
  padding: .6rem .85rem;
  font-size: .92rem;
  color: var(--pa-dark);
  background: #f8f8fc;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}

/* Custom chevron for selects */
.views-exposed-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.2rem;
}

.views-exposed-form input:focus,
.views-exposed-form select:focus {
  outline: none;
  background: #fff;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

/* Submit button */
.views-exposed-form .form-submit {
  width: 100%;
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: .65rem 1.5rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.views-exposed-form .form-submit:hover {
  background: #c62a38;
  transform: translateY(-1px);
}
.views-exposed-form .form-submit:active { transform: translateY(0); }

/* ─── Page annonce individuelle ─────────────────────────────────────────────── */

/* Two-column layout */
.annonce-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 3rem;
}

.annonce-detail__left,
.annonce-detail__right { display: flex; flex-direction: column; gap: 1.25rem; }

/* ── Gallery ── */
.annonce-gallery {
  border-radius: 14px;
  overflow: hidden;
  background: #f4f4f8;
  border: 1px solid var(--pa-border);
}

.annonce-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1a1a2e;
  overflow: hidden;
}

.annonce-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

.annonce-gallery__thumbs {
  display: flex;
  gap: .5rem;
  padding: .6rem;
  background: #f4f4f8;
  overflow-x: auto;
  scrollbar-width: thin;
}

.annonce-gallery__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  transition: border-color .15s, opacity .15s;
  opacity: .7;
}

.annonce-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.annonce-gallery__thumb.is-active,
.annonce-gallery__thumb:hover {
  border-color: var(--pa-primary);
  opacity: 1;
}

.annonce-gallery--empty .annonce-gallery__placeholder {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: .9rem;
  border-radius: 14px;
}

/* Price block */
.annonce-detail__price {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.annonce-detail__price .field--name-field-prix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pa-primary);
  margin: 0;
}
.annonce-detail__negociable {
  display: inline-block;
  margin-top: .4rem;
  background: #fff3cd;
  color: #856404;
  border-radius: 20px;
  padding: .2rem .75rem;
  font-size: .78rem;
  font-weight: 600;
}

/* Shared block card */
.annonce-detail__block {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.annonce-detail__block-title {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9a9aaa;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #f0f0f5;
}

/* Description */
.annonce-detail__description { font-size: .95rem; line-height: 1.7; color: var(--pa-text); }

/* Specs list */
.annonce-detail__specs { margin: 0; }
.annonce-detail__spec {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid #f4f4f8;
}
.annonce-detail__spec:last-child { border-bottom: none; padding-bottom: 0; }
.annonce-detail__spec dt {
  font-size: .8rem;
  font-weight: 700;
  color: #9a9aaa;
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 120px;
  flex-shrink: 0;
}
.annonce-detail__spec dd { font-size: .95rem; color: var(--pa-dark); margin: 0; font-weight: 500; }

/* Immatriculation badge */
.annonce-detail__immat {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  background: var(--pa-dark);
  color: #fff;
  padding: .15rem .6rem;
  border-radius: 4px;
  letter-spacing: .08em;
}

/* État badges */
.annonce-etat {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}
.annonce-etat--neuf          { background: #d1fae5; color: #065f46; }
.annonce-etat--occasion       { background: #fef3c7; color: #92400e; }
.annonce-etat--reconditionné  { background: #dbeafe; color: #1e40af; }

/* OEM code */
.annonce-detail__oem {
  background: #f4f4f8;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .88rem;
}

/* Contact block */
.annonce-detail__contact {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.annonce-detail__phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pa-dark);
  text-decoration: none;
}
.annonce-detail__phone:hover { color: var(--pa-primary); }

/* Meta */
.annonce-detail__meta { font-size: .78rem; color: #aaa; text-align: right; }

/* Responsive */
@media (max-width: 900px) {
  .annonce-detail { grid-template-columns: 1fr; }
  .annonce-detail__right { order: -1; }
}

/* ─── Paginateur ────────────────────────────────────────────────────────────── */
.pager { margin: 2rem 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }

.pager__item a,
.pager__item--current .pager__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--pa-dark);
  border: 1px solid var(--pa-border);
  transition: all var(--pa-transition);
}

.pager__item a:hover                  { background: var(--pa-primary); color: #fff; border-color: var(--pa-primary); }
.pager__item--current .pager__link    { background: var(--pa-primary); color: #fff; border-color: var(--pa-primary); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: var(--pa-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

footer h4 {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .875rem;
  display: block;
  margin-bottom: .35rem;
  transition: color var(--pa-transition);
}

footer a:hover { color: var(--pa-primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
  opacity: .5;
}

/* ─── Boutons ───────────────────────────────────────────────────────────────── */
.btn-primary,
.button--primary {
  background: var(--pa-primary) !important;
  border-color: var(--pa-primary) !important;
  font-weight: 600;
}

.btn-primary:hover,
.button--primary:hover {
  background: #c62a38 !important;
  border-color: #c62a38 !important;
}

/* ─── Messages ──────────────────────────────────────────────────────────────── */
.messages--status  { border-left: 4px solid #28a745; background: #d4edda; }
.messages--warning { border-left: 4px solid #ffc107; background: #fff3cd; }
.messages--error   { border-left: 4px solid var(--pa-primary); background: #f8d7da; }

/* ─── Search form grid ───────────────────────────────────────────────────────── */
.views-exposed-form .d-flex {
  display: grid !important;
  grid-template-columns: 2.2fr 1.2fr 1.4fr 1fr auto;
  gap: .5rem 1.25rem;
  align-items: end;
  flex-wrap: unset;
}

/* Vertical divider between fields */
.views-exposed-form .d-flex > .form-item + .form-item {
  position: relative;
  padding-left: 1.25rem;
}
.views-exposed-form .d-flex > .form-item + .form-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #eee;
}

.views-exposed-form .form-actions {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 0 !important;
  padding-left: .5rem;
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .views-exposed-form .d-flex {
    grid-template-columns: 1fr 1fr;
  }
  .views-exposed-form .d-flex > .form-item + .form-item::before { display: none; }
  .views-exposed-form .d-flex > .form-item + .form-item { padding-left: 0; }
  .views-exposed-form .form-actions { padding-left: 0; }
}

@media (max-width: 768px) {
  .view-annonces .view-content {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
  }
  .region-hero h1 { font-size: 1.75rem; }
  #sidebar-first  { margin-bottom: 1.5rem; }
  .annonce-form-styled { padding: 1rem; }
  .annonce-section { padding: 1.25rem 1.25rem; }
  .annonce-section__cols { grid-template-columns: 1fr; }
  .views-exposed-form .d-flex { grid-template-columns: 1fr; }
  .views-exposed-form { padding: 1.25rem; }
}

/* ─── Formulaire dépôt annonce ──────────────────────────────────────────────── */
/* Override Bootstrap col-md-6 injected by Drupal node form */
.annonce-form-styled.node-form > .content.row { display: block !important; }
.annonce-form-styled.node-form .col-md-6.layout-region-node-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}
.annonce-form-styled.node-form .col-md-6.layout-region-node-secondary { display: none !important; }

/* ─── Formulaire demande pièce – pleine largeur ─────────────────────────────── */
.node-demande-piece-form.node-form > .content.row { display: block !important; }
.node-demande-piece-form.node-form .col-md-6.layout-region-node-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}
.node-demande-piece-form.node-form .col-md-6.layout-region-node-secondary { display: none !important; }

/* Formulaire demande – pleine largeur, sidebar masquée */
.demande-form-page #sidebar_second { display: none !important; }
.demande-form-page #main { display: block !important; }
.demande-form-page #main > .main-content {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  width: 100% !important;
}
.annonce-form-styled.node-form .col.layout-region-node-footer {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

.annonce-form-styled {
  max-width: 1100px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.annonce-section {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.annonce-section__title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pa-dark);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #f0f0f5;
}

.annonce-section__title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--pa-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Two-column grid inside sections */
.annonce-section__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

/* Field items inside sections */
.annonce-section .js-form-item { margin-bottom: 1.1rem; }
.annonce-section .js-form-item:last-child { margin-bottom: 0; }
.annonce-form-styled .js-form-item { margin-bottom: 0; }

/* Labels */
.annonce-form-styled label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9a9aaa;
  margin-bottom: .4rem;
  display: block;
}

.annonce-form-styled label.js-form-required::after {
  content: ' *';
  color: var(--pa-primary);
}

/* Inputs */
.annonce-form-styled input[type="text"],
.annonce-form-styled input[type="number"],
.annonce-form-styled textarea,
.annonce-form-styled select {
  width: 100%;
  border: 1.5px solid #e5e5ef;
  border-radius: 9px;
  padding: .65rem .9rem;
  font-size: .93rem;
  background: #f8f8fc;
  color: var(--pa-dark);
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: auto;
}

.annonce-form-styled input:focus,
.annonce-form-styled textarea:focus,
.annonce-form-styled select:focus {
  outline: none;
  background: #fff;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

.annonce-form-styled textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

/* Checkbox négociable */
.annonce-form-styled .form-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--pa-gray);
  border-radius: 8px;
}

.annonce-form-styled .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--pa-primary);
}

/* File upload */
.annonce-form-styled .form-managed-file {
  border: 2px dashed #e5e5ef;
  border-radius: 9px;
  padding: 1.5rem;
  text-align: center;
  background: #f8f8fc;
}

/* Submit button */
.annonce-form-styled .form-actions { text-align: right; margin-top: .5rem; }

.annonce-form-styled .form-actions input[type="submit"] {
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 2.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(230,57,70,.3);
  width: auto;
}

.annonce-form-styled .form-actions input[type="submit"]:hover {
  background: #c62a38;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,.4);
}
/* ─── Agents sidebar ────────────────────────────────────────────────────────── */
.block-views-blockagents-sidebar-block-1 .view-content {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.agent-card {
  background: #fff;
  border: 1px solid #e8e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.agent-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.agent-card__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--pa-dark);
}

.agent-card__ville {
  font-size: .8rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.agent-card__ville::before { content: '📍'; font-size: .75rem; }

.agent-card__btn {
  display: inline-block;
  margin-top: .5rem;
  background: var(--pa-primary);
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  transition: background .2s;
}

.agent-card__btn:hover { background: #c62a38; }

/* Statut badge dans mes demandes */
.views-field-field-demande-statut .field-content { font-weight: 600; }

/* ─── Sidebar facettes (/annonces) ──────────────────────────────────────────── */
#sidebar-second {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

#sidebar-second .block {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: var(--pa-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--pa-shadow);
}

#sidebar-second .block-title,
#sidebar-second h2 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pa-dark);
  border-bottom: 2px solid var(--pa-primary);
  padding-bottom: .4rem;
  margin-bottom: .75rem;
}

/* Facets checkboxes in sidebar-second */
#sidebar-second .facets-widget-checkbox ul { list-style: none; padding: 0; margin: 0; }
#sidebar-second .facets-widget-checkbox li { margin-bottom: .4rem; }
#sidebar-second .facets-widget-checkbox label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  cursor: pointer;
  color: var(--pa-text);
}
#sidebar-second .facets-widget-checkbox input[type="checkbox"] {
  accent-color: var(--pa-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
#sidebar-second .facets-widget-checkbox .facet-item__count {
  margin-left: auto;
  font-size: .72rem;
  color: #999;
  background: var(--pa-gray);
  border-radius: 10px;
  padding: .05rem .35rem;
}
#sidebar-second .facets-widget-checkbox li.is-active label { font-weight: 600; color: var(--pa-primary); }

/* Facets links in sidebar-second */
#sidebar-second .facets-widget-links ul { list-style: none; padding: 0; margin: 0; }
#sidebar-second .facets-widget-links li { margin-bottom: .3rem; }
#sidebar-second .facets-widget-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem .5rem;
  border-radius: 4px;
  color: var(--pa-text);
  text-decoration: none;
  font-size: .875rem;
  transition: background var(--pa-transition);
}
#sidebar-second .facets-widget-links a:hover     { background: var(--pa-gray); color: var(--pa-primary); }
#sidebar-second .facets-widget-links a.is-active { background: var(--pa-primary); color: #fff; font-weight: 600; }
#sidebar-second .facets-widget-links .facet-item__count {
  font-size: .72rem; opacity: .7;
  background: rgba(0,0,0,.06); border-radius: 10px; padding: .1rem .35rem;
}

/* "Filtres" section header on /annonces sidebar */
.facets-sidebar-header {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
  padding: .25rem .1rem;
  margin-bottom: .25rem;
}

/* Exposed filter + facets layout on /annonces */
.page-annonces #main-wrapper .container-xxl {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (max-width: 767px) {
  #sidebar-second { margin-top: 1.5rem; }
}

/* ─── Formulaire demande de pièce ───────────────────────────────────────────── */

/* Fullwidth override — Drupal injects col-md-6 on node forms */
.demande-form-styled.node-form > .content.row { display: block !important; }
.demande-form-styled.node-form .col-md-6.layout-region-node-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}
.demande-form-styled.node-form .col-md-6.layout-region-node-secondary { display: none !important; }

/* Pull footer actions out of the layout column */
.demande-form-styled.node-form .col.layout-region-node-footer {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

/* Wrapper */
.demande-form-styled {
  max-width: 720px;
  margin: 2rem auto;
}
.demande-form-styled .layout-region-node-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Badge agent */
.demande-agent-badge {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1.5px solid rgba(230,57,70,.2);
  border-radius: 12px;
  padding: 1rem 1.4rem;
  font-size: .95rem;
  color: var(--pa-dark);
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 2px 8px rgba(230,57,70,.07);
}
.demande-agent-badge::before { content: '👤'; font-size: 1.2rem; }
.demande-agent-badge strong  { color: var(--pa-primary); }

/* Section cards (wrapping via #prefix/#suffix) */
.demande-section {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.demande-section__title {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--pa-dark);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #f0f0f5;
}
.demande-section__title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--pa-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ─── Photos de la pièce – widget upload ────────────────────────────────────── */

/* Supprimer l'apparence <details> par défaut */
.field--name-field-demande-images details {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

/* Style du <summary> */
.field--name-field-demande-images details > summary {
  list-style: none;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9a9aaa;
  margin-bottom: .75rem;
  cursor: default;
  pointer-events: none;
}
.field--name-field-demande-images details > summary::-webkit-details-marker { display: none; }

/* Zone d'upload */
.field--name-field-demande-images .image-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 2px dashed var(--pa-border);
  border-radius: 12px;
  background: #f8f9fc;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  position: relative;
}

.field--name-field-demande-images .image-widget:hover {
  border-color: var(--pa-primary);
  background: #fff5f6;
}

/* Icône caméra avant la zone */
.field--name-field-demande-images .image-widget-data::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto .5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e63946' stroke-width='1.5'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Masquer le bouton Transférer (l'input file déclenche l'upload) */
.field--name-field-demande-images .js-hide { display: none !important; }

/* Styler l'input file */
.field--name-field-demande-images input[type="file"] {
  width: 100%;
  font-size: .85rem;
  color: #777;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.field--name-field-demande-images input[type="file"]::-webkit-file-upload-button {
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: .75rem;
  transition: background .2s;
}

.field--name-field-demande-images input[type="file"]::file-selector-button {
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: .75rem;
  transition: background .2s;
}

/* Label "Ajouter un nouveau fichier" */
.field--name-field-demande-images label[for*="upload"] {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--pa-dark);
  margin-bottom: .5rem;
}

/* Texte d'aide */
.field--name-field-demande-images .description {
  font-size: .75rem;
  color: #aaa;
  margin-top: .4rem;
  line-height: 1.5;
}

/* Previews après upload */
.field--name-field-demande-images .image-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--pa-border);
  max-width: 120px;
}

/* Vehicle fields grid */
.demande-vehicule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0 1.25rem;
  align-items: end;
}

/* Each cell is a flex column so the input always sits at the bottom */
.demande-vehicule-grid > .js-form-wrapper,
.demande-vehicule-grid > .field--widget-string-textfield,
.demande-vehicule-grid > .field--widget-number-integer {
  display: flex;
  flex-direction: column;
}

.demande-vehicule-grid .js-form-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Label fills remaining space so inputs align at bottom */
.demande-vehicule-grid .js-form-item label {
  flex: 1;
  display: block;
  margin-bottom: .35rem;
  line-height: 1.3;
  white-space: nowrap;
}

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

/* Field items inside sections */
.demande-section .js-form-item { margin-bottom: 1.1rem; }
.demande-section .js-form-item:last-child { margin-bottom: 0; }

/* Field items */
.demande-form-styled .js-form-item { margin-bottom: 0; }

/* Labels */
.demande-form-styled label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9a9aaa;
  margin-bottom: .4rem;
  display: block;
}
.demande-form-styled label.js-form-required::after {
  content: ' *';
  color: var(--pa-primary);
}

/* Inputs */
.demande-form-styled input[type="text"],
.demande-form-styled input[type="number"],
.demande-form-styled textarea,
.demande-form-styled select {
  width: 100%;
  border: 1.5px solid #e5e5ef;
  border-radius: 9px;
  padding: .65rem .9rem;
  font-size: .93rem;
  background: #f8f8fc;
  color: var(--pa-dark);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.demande-form-styled input:focus,
.demande-form-styled textarea:focus,
.demande-form-styled select:focus {
  outline: none;
  background: #fff;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}
.demande-form-styled textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

/* Submit */
.demande-form-styled .form-actions { text-align: right; margin-top: .5rem; }
.demande-form-styled .form-actions input[type="submit"] {
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 2.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(230,57,70,.3);
}
.demande-form-styled .form-actions input[type="submit"]:hover {
  background: #c62a38;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,.4);
}

/* Page title */
.page-node-type-demande-piece h1.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

/* ─── Pages auth (login / register) ────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8fc 0%, #f0f0f8 100%);
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--pa-border);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.auth-card__brand {
  background: var(--pa-dark);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.auth-card__logo {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.auth-card__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 .3rem;
}

.auth-card__subtitle {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin: 0;
}

.auth-card__body {
  padding: 2rem;
}

.auth-card__body h1.page-title,
.auth-card__body .page-title { display: none; }

/* Form fields */
.auth-form .js-form-item { margin-bottom: 1.25rem; }

.auth-form label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9a9aaa;
  margin-bottom: .4rem;
  display: block;
}

.auth-form label.js-form-required::after {
  content: ' *';
  color: var(--pa-primary);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  border: 1.5px solid #e5e5ef;
  border-radius: 9px;
  padding: .7rem 1rem;
  font-size: .95rem;
  background: #f8f8fc;
  color: var(--pa-dark);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

/* Password confirm widget — two stacked inputs */
.auth-form .js-form-type-password-confirm > .js-form-item { margin-bottom: .75rem; }
.auth-form .js-form-type-password-confirm > .js-form-item:last-child { margin-bottom: 0; }

.auth-form input[type="password"] {
  width: 100%;
  border: 1.5px solid #e5e5ef;
  border-radius: 9px;
  padding: .7rem 1rem;
  font-size: .95rem;
  background: #f8f8fc;
  color: var(--pa-dark);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.auth-form input[type="password"]:focus {
  outline: none;
  background: #fff;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

.auth-form .password-strength { margin-top: .4rem; }
.auth-form .password-strength__title { font-size: .72rem; color: #9a9aaa; }
.auth-form .password-confirm-match { font-size: .75rem; margin-top: .3rem; }

.auth-form .description { display: none; }

.auth-form .form-actions { margin-top: 1.5rem; }

.auth-form .form-actions input[type="submit"] {
  width: 100%;
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(230,57,70,.3);
}

.auth-form .form-actions input[type="submit"]:hover {
  background: #c62a38;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,57,70,.4);
}

.auth-form__switch {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f5;
  font-size: .875rem;
  color: #888;
}

.auth-form__switch a {
  color: var(--pa-primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-form__switch a:hover { text-decoration: underline; }

.user-login-form-register-link { display: none; }

/* ─── Dashboard (Mon espace) ────────────────────────────────────────────────── */
.dashboard {
  max-width: 860px;
  margin: 2rem auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Hero */
.dashboard__hero {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.dashboard__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard__avatar img { width: 100%; height: 100%; object-fit: cover; }

.dashboard__avatar-initials {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.dashboard__hero-info { flex: 1; }

.dashboard__name {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 .2rem;
  color: var(--pa-dark);
}

.dashboard__email {
  font-size: .875rem;
  color: #888;
  margin: 0 0 .2rem;
}

.dashboard__since {
  font-size: .78rem;
  color: #bbb;
  margin: 0;
}

.dashboard__edit-btn {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--pa-primary);
  border: 1.5px solid var(--pa-primary);
  border-radius: 8px;
  padding: .5rem 1rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}

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

/* Stats */
.dashboard__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dashboard__stat {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.dashboard__stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--pa-primary);
  line-height: 1;
}

.dashboard__stat-label {
  font-size: .8rem;
  color: #888;
}

/* Sections */
.dashboard__section-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9a9aaa;
  margin: 0 0 .9rem;
}

/* Actions grid */
.dashboard__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.dashboard__action {
  background: #fff;
  border: 1.5px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.dashboard__action:hover {
  border-color: var(--pa-primary);
  box-shadow: 0 4px 16px rgba(230,57,70,.1);
  transform: translateY(-2px);
}

.dashboard__action--primary {
  background: var(--pa-primary);
  border-color: var(--pa-primary);
}

.dashboard__action--primary .dashboard__action-label,
.dashboard__action--primary .dashboard__action-desc { color: #fff; }

.dashboard__action--primary .dashboard__action-desc { opacity: .75; }

.dashboard__action-icon { font-size: 1.5rem; margin-bottom: .1rem; }

.dashboard__action-label {
  font-size: .95rem;
  font-weight: 700;
  color: var(--pa-dark);
}

.dashboard__action-desc {
  font-size: .78rem;
  color: #888;
}

/* Account links */
.dashboard__links {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.dashboard__link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--pa-dark);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.dashboard__link:hover {
  border-color: var(--pa-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  color: var(--pa-primary);
}

.dashboard__link--danger { color: #dc2626; }
.dashboard__link--danger:hover { border-color: #dc2626; box-shadow: 0 2px 8px rgba(220,38,38,.1); color: #dc2626; }

/* Hide Drupal default tabs on user page */
.path-user .tabs { display: none; }

/* Responsive */
@media (max-width: 600px) {
  .dashboard__hero { flex-direction: column; text-align: center; }
  .dashboard__stats { grid-template-columns: 1fr; }
  .dashboard__actions { grid-template-columns: 1fr; }
}

/* ─── Mes demandes ──────────────────────────────────────────────────────────── */
.mes-demandes {
  max-width: 860px;
  margin: 2rem auto 4rem;
}

.mes-demandes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.mes-demandes__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--pa-dark);
}

.mes-demandes__new-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--pa-primary);
  color: #fff !important;
  border-radius: 9px;
  padding: .6rem 1.25rem;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(230,57,70,.25);
  white-space: nowrap;
}

.mes-demandes__new-btn:hover {
  background: #c62a38;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(230,57,70,.35);
}

/* List */
.mes-demandes__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Row card */
.demande-row {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s, border-color .2s;
}

.demande-row:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #d0d0e0;
}

.demande-row__main { flex: 1; min-width: 0; }

.demande-row__title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--pa-dark);
  margin-bottom: .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demande-row__title a {
  color: inherit;
  text-decoration: none;
}

.demande-row__title a:hover { color: var(--pa-primary); }

.demande-row__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: #888;
  flex-wrap: wrap;
}

.demande-row__marque { font-weight: 700; color: var(--pa-primary); }

.demande-row__date::before { content: '🗓 '; }

/* Status badge */
.demande-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.demande-badge--en_attente  { background: #fef9c3; color: #854d0e; }
.demande-badge--trouve      { background: #d1fae5; color: #065f46; }
.demande-badge--en_livraison{ background: #dbeafe; color: #1e40af; }
.demande-badge--livre       { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.demande-badge--annule      { background: #fee2e2; color: #991b1b; }

/* Empty state */
.mes-demandes__empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 18px;
  color: #888;
}

.mes-demandes__empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.mes-demandes__empty p { margin-bottom: 1.5rem; }

@media (max-width: 600px) {
  .demande-row { flex-direction: column; align-items: flex-start; }
  .mes-demandes__header { flex-direction: column; align-items: flex-start; }
}

/* ─── Demande row — stretched link ─────────────────────────────────────────── */
.demande-row {
  position: relative;
  cursor: pointer;
}

/* Stretch the title <a> to cover the whole card */
.demande-row__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  z-index: 1;
}

.demande-row__title a {
  color: var(--pa-dark);
  text-decoration: none;
  font-weight: 700;
}

.demande-row:hover .demande-row__title a { color: var(--pa-primary); }

/* Keep badge above the stretched link */
.demande-row__statut { position: relative; z-index: 2; }

.demande-row__arrow {
  display: inline-block;
  margin-left: .5rem;
  color: #bbb;
  font-size: .9rem;
  transition: transform .15s, color .15s;
}

.demande-row:hover .demande-row__arrow {
  transform: translateX(4px);
  color: var(--pa-primary);
}

/* ─── Demande détail ────────────────────────────────────────────────────────── */
.demande-detail {
  max-width: 760px;
  margin: 2rem auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.demande-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.demande-detail__back {
  font-size: .875rem;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  transition: color .15s;
}
.demande-detail__back:hover { color: var(--pa-primary); }

.demande-detail__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: var(--pa-dark);
}

.demande-detail__date {
  font-size: .8rem;
  color: #aaa;
  margin: -.75rem 0 0;
}

/* Timeline */
.demande-timeline {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.demande-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.demande-timeline__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f5;
  border: 2px solid #e0e0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: #aaa;
  z-index: 1;
  transition: background .2s, border-color .2s, color .2s;
}

.demande-timeline__step.is-done .demande-timeline__dot {
  background: var(--pa-primary);
  border-color: var(--pa-primary);
  color: #fff;
}

.demande-timeline__step.is-current .demande-timeline__dot {
  background: #fff;
  border-color: var(--pa-primary);
  color: var(--pa-primary);
  box-shadow: 0 0 0 4px rgba(230,57,70,.15);
}

.demande-timeline__label {
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  margin-top: .5rem;
  color: #aaa;
  line-height: 1.3;
}

.demande-timeline__step.is-done .demande-timeline__label,
.demande-timeline__step.is-current .demande-timeline__label {
  color: var(--pa-dark);
}

.demande-timeline__line {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e0e0e8;
  z-index: 0;
}

.demande-timeline__line.is-done { background: var(--pa-primary); }

.demande-detail__cancelled {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  padding: .85rem 1.2rem;
  font-weight: 600;
  font-size: .9rem;
}

/* Cards */
.demande-detail__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.demande-detail__card {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.demande-detail__card-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9a9aaa;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #f0f0f5;
}

.demande-detail__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1.5rem;
  margin: 0;
}

.demande-detail__spec { display: contents; }
.demande-detail__spec dt { font-size: .8rem; color: #999; }
.demande-detail__spec dd { font-size: .9rem; font-weight: 600; color: var(--pa-dark); margin: 0; }

.demande-detail__desc {
  font-size: .9rem;
  line-height: 1.7;
  color: #555;
}

.demande-detail__images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
  margin-top: .5rem;
}

.demande-detail__image-link {
  display: block;
  border-radius: var(--pa-radius);
  overflow: hidden;
  border: 2px solid var(--pa-border);
  transition: border-color var(--pa-transition), transform var(--pa-transition);
}

.demande-detail__image-link:hover {
  border-color: var(--pa-primary);
  transform: scale(1.03);
}

.demande-detail__image {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

/* Agent card */
.demande-detail__agent-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pa-dark);
  margin-bottom: .3rem;
}

.demande-detail__agent-ville { font-size: .85rem; color: #888; margin-bottom: .5rem; }

.demande-detail__agent-email {
  display: inline-block;
  font-size: .875rem;
  color: var(--pa-primary);
  text-decoration: none;
}
.demande-detail__agent-email:hover { text-decoration: underline; }

/* Prix card */
.demande-detail__prix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pa-primary);
}

@media (max-width: 600px) {
  .demande-timeline { flex-direction: column; gap: 1rem; }
  .demande-timeline__line { display: none; }
  .demande-detail__specs { grid-template-columns: 1fr; }
}

/* ─── Agent demande view ─────────────────────────────────────────────────── */
.agent-demande {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.agent-demande__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.agent-demande__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pa-dark);
  margin: 0 0 .25rem;
}

.agent-demande__date {
  font-size: .82rem;
  color: #aaa;
  margin: 0 0 1.5rem;
}

.agent-demande__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.agent-demande__card {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.agent-demande__card-title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #9a9aaa;
  margin: 0 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #f0f0f5;
}

.agent-demande__buyer {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.agent-demande__buyer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pa-dark);
}

.agent-demande__buyer-email {
  font-size: .85rem;
  color: var(--pa-primary);
  text-decoration: none;
}
.agent-demande__buyer-email:hover { text-decoration: underline; }

/* Action card */
.agent-demande__action-card {
  background: linear-gradient(135deg, #fff 0%, #fafafe 100%);
  border: 1.5px solid #e0e0f0;
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 1rem;
  position: sticky;
  top: 80px;
}

.agent-demande__action-hint {
  font-size: .82rem;
  color: #888;
  margin: -.4rem 0 1rem;
  line-height: 1.5;
}

/* Agent form fields */
.agent-action-form .form-item {
  margin-bottom: 1rem;
}

.agent-action-form label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #666;
  margin-bottom: .35rem;
}

.agent-action-form select,
.agent-action-form input[type="number"],
.agent-action-form textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--pa-dark);
  background: #fff;
  transition: border-color var(--pa-transition);
}

.agent-action-form select:focus,
.agent-action-form input[type="number"]:focus,
.agent-action-form textarea:focus {
  outline: none;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}

.agent-action-form .form-actions {
  margin-top: .5rem;
}

.agent-action-form .button--primary,
.agent-action-form input[type="submit"] {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--pa-transition), transform var(--pa-transition);
}

.agent-action-form .button--primary:hover,
.agent-action-form input[type="submit"]:hover {
  background: #c62b36;
  transform: translateY(-1px);
}

.agent-demande__card--prix { margin-top: 0; }
.agent-demande__prix {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pa-primary);
}

.agent-demande__timeline {
  margin-top: .5rem;
}

@media (max-width: 768px) {
  .agent-demande__layout { grid-template-columns: 1fr; }
  .agent-demande__action-card { position: static; }
}

/* ─── Acheteur response form ─────────────────────────────────────────────── */
.demande-detail__card--response {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.acheteur-response__prix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #e0e0f0;
  border-radius: 10px;
  padding: .9rem 1.2rem;
  margin-bottom: 1.2rem;
}

.acheteur-response__prix-label {
  font-size: .82rem;
  color: #888;
  font-weight: 600;
}

.acheteur-response__prix-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pa-primary);
}

.acheteur-response-form .form-radios {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1rem;
}

.acheteur-response-form .form-type-radio {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #f9f9fc;
  border: 1.5px solid #e0e0f0;
  border-radius: 8px;
  padding: .7rem 1rem;
  cursor: pointer;
  transition: border-color var(--pa-transition), background var(--pa-transition);
}

.acheteur-response-form .form-type-radio:has(input:checked) {
  border-color: var(--pa-primary);
  background: #fff5f5;
}

.acheteur-response-form .form-type-radio input[type="radio"] {
  accent-color: var(--pa-primary);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.acheteur-response-form .form-type-radio label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--pa-dark);
  cursor: pointer;
  margin: 0;
}

.acheteur-response-form .form-item-explication {
  margin-bottom: 1rem;
}

.acheteur-response-form label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #666;
  margin-bottom: .35rem;
}

.acheteur-response-form textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color var(--pa-transition);
}

.acheteur-response-form textarea:focus {
  outline: none;
  border-color: var(--pa-primary);
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
}

.acheteur-response-form input[type="submit"] {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--pa-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--pa-transition);
}

.acheteur-response-form input[type="submit"]:hover {
  background: var(--pa-primary);
}

.acheteur-response__prix-pending {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 10px;
  padding: .9rem 1.2rem;
  font-size: .88rem;
  color: #92400e;
  margin-bottom: 1rem;
}

/* ─── Language switcher ───────────────────────────────────────────────────── */
.block-language-blocklanguage-interface ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .4rem;
  align-items: center;
}

.block-language-blocklanguage-interface li a,
.block-language-blocklanguage-interface li span {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--pa-transition), background var(--pa-transition);
}

.block-language-blocklanguage-interface li.is-active span,
.block-language-blocklanguage-interface li a:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
  border-radius: 5px;
}

/* ─── RTL – Arabic ────────────────────────────────────────────────────────── */
[dir="rtl"] {
  direction: rtl;
  font-family: 'Segoe UI', 'Tahoma', 'Arial', system-ui, sans-serif;
}

[dir="rtl"] .navbar-brand { margin-left: auto; margin-right: 0; }
[dir="rtl"] .navbar-nav   { margin-left: 0 !important; margin-right: auto !important; }

[dir="rtl"] .hero__content  { text-align: right; }
[dir="rtl"] .hero__cta      { justify-content: flex-end; }

[dir="rtl"] .annonce-card,
[dir="rtl"] .demande-row,
[dir="rtl"] .demande-detail__spec { text-align: right; }

[dir="rtl"] .demande-detail__back::before { content: '→ '; }
[dir="rtl"] .demande-detail__back { direction: rtl; }

[dir="rtl"] .demande-row__arrow { transform: scaleX(-1); }

[dir="rtl"] .demande-timeline { flex-direction: row-reverse; }
[dir="rtl"] .demande-timeline__line { order: -1; }

[dir="rtl"] .auth-card { text-align: right; }
[dir="rtl"] .auth-form label { text-align: right; }

[dir="rtl"] .dashboard__actions { direction: rtl; }
[dir="rtl"] .agent-demande__layout { direction: rtl; }

[dir="rtl"] .mes-demandes__header { flex-direction: row-reverse; }

/* ─── Language switcher (navbar) ─────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .2rem;
  margin-right: .75rem;
  border-right: 1px solid rgba(255,255,255,.2);
  padding-right: .75rem;
}

.lang-switcher__item {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--pa-transition), background var(--pa-transition);
  cursor: pointer;
}

.lang-switcher__item:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.lang-switcher__item--active {
  color: #fff;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
}

/* ─── Breadcrumb + page title ─────────────────────────────────────────────── */
.breadcrumb-region {
  max-width: var(--pa-content-width, 1200px);
  margin: 0 auto;
  padding: .5rem 1rem 0;
}

nav.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  font-size: .8rem;
  color: #aaa;
}

nav.breadcrumb ol li + li::before {
  content: '/';
  margin-right: .3rem;
  color: #ccc;
}

nav.breadcrumb ol li a {
  color: #888;
  text-decoration: none;
}
nav.breadcrumb ol li a:hover { color: var(--pa-primary); }

h1.page-title,
h1.title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pa-dark);
  margin: .5rem 0 1rem;
  padding: 0 1rem;
}

/* ─── Commande depuis la France ─────────────────────────────────────────────── */
.france-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(135deg, #002395 0%, #0055a4 100%);
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0,35,149,.25);
}

.france-banner__flag { font-size: 2.75rem; line-height: 1; flex-shrink: 0; }

.france-banner__text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.france-banner__text p {
  margin: 0;
  font-size: .88rem;
  opacity: .85;
  line-height: 1.5;
}

/* Form columns pleine largeur (layout interne du node form) */
.node-commande-france-form.node-form > .content.row { display: block !important; }
.node-commande-france-form.node-form .col-md-6.layout-region-node-main {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}
.node-commande-france-form.node-form .col-md-6.layout-region-node-secondary { display: none !important; }

/* ─── Avis clients sidebar ───────────────────────────────────────────────────── */
.avis-clients {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid var(--pa-border);
}

/* En-tête */
.avis-clients__header {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.25rem 1.25rem .9rem;
  border-bottom: 1px solid var(--pa-border);
  background: linear-gradient(135deg, #f8f9fc 0%, #fff 100%);
}

.avis-clients__badge {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.avis-clients__title {
  font-size: .82rem;
  font-weight: 800;
  color: var(--pa-dark);
  margin: 0 0 .3rem;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.avis-clients__rating-global {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.avis-clients__stars-global {
  color: #f4a100;
  font-size: .85rem;
  letter-spacing: .05em;
}

.avis-clients__score {
  font-size: .82rem;
  font-weight: 800;
  color: var(--pa-dark);
}

.avis-clients__count {
  font-size: .72rem;
  color: #aaa;
}

/* Liste scrollable */
.avis-clients__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e0e0e0 transparent;
}

/* Carte avis */
.avis-client {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f5;
  transition: background .15s;
}

.avis-client:last-child { border-bottom: none; }
.avis-client:hover { background: #fafbff; }

.avis-client__top {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .55rem;
}

.avis-client__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pa-primary), #c1121f);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(230,57,70,.3);
}

.avis-client__identity {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.avis-client__nom {
  font-size: .82rem;
  font-weight: 700;
  color: var(--pa-dark);
  line-height: 1.2;
}

.avis-client__ville {
  font-size: .7rem;
  color: #aaa;
}

.avis-client__note { flex-shrink: 0; }

.avis-client__stars {
  font-size: .78rem;
  color: #f4a100;
  letter-spacing: .06em;
}

.avis-client__piece-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--pa-primary);
  background: rgba(230,57,70,.07);
  border-radius: 20px;
  padding: .15rem .65rem;
  margin-bottom: .5rem;
}

.avis-client__texte {
  font-size: .79rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 .4rem;
  font-style: italic;
  border: none;
  padding: 0;
}

.avis-client__date {
  font-size: .68rem;
  color: #ccc;
  display: block;
  text-align: right;
}

/* Garanties */
.avis-clients__guarantees {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #002395 0%, #0055a4 100%);
}

.avis-guarantee {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.avis-guarantee__icon { font-size: .95rem; flex-shrink: 0; }

.avis-guarantee__text {
  font-size: .78rem;
  color: rgba(255,255,255,.85);
}

.avis-guarantee__text strong { color: #fff; }

/* ─── Formulaire de contact ─────────────────────────────────────────────────── */
.path-contact #main-wrapper { max-width: 680px; margin: 0 auto; }
.path-contact #sidebar_second { display: none !important; }
.path-contact .main-content { max-width: 100% !important; flex: 0 0 100% !important; }

.contact-message-form {
  background: #fff;
  border: 1px solid var(--pa-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--pa-shadow);
}

.contact-message-form .js-form-item {
  margin-bottom: 1.25rem;
}

.contact-message-form label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #9a9aaa;
  margin-bottom: .4rem;
  display: block;
}

.contact-message-form label.js-form-required::after {
  content: ' *';
  color: var(--pa-primary);
}

.contact-message-form input[type="text"],
.contact-message-form input[type="email"],
.contact-message-form textarea {
  width: 100%;
  border: 1.5px solid #e5e5ef;
  border-radius: 9px;
  padding: .65rem .9rem;
  font-size: .93rem;
  background: #f8f8fc;
  color: var(--pa-dark);
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}

.contact-message-form input:focus,
.contact-message-form textarea:focus {
  outline: none;
  border-color: var(--pa-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}

.contact-message-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-message-form .form-actions {
  margin-top: 1.75rem;
}

.contact-message-form .form-submit {
  background: var(--pa-primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: .75rem 2rem;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  width: 100%;
}

.contact-message-form .form-submit:hover {
  background: #c1121f;
  transform: translateY(-1px);
}

/* ─── Pagination (Bootstrap classes) ────────────────────────────────────── */
nav[aria-label="pagination-heading"] {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pa-border);
}

.pagination {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 .75rem;
  border-radius: 6px !important;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--pa-border) !important;
  color: var(--pa-text) !important;
  background: #fff !important;
  transition: all var(--pa-transition);
  line-height: 1;
}

.pagination .page-item a.page-link:hover {
  border-color: var(--pa-primary) !important;
  color: var(--pa-primary) !important;
  background: #fff5f5 !important;
}

.pagination .page-item.active .page-link {
  background: var(--pa-primary) !important;
  border-color: var(--pa-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(230,57,70,.3);
}

/* ─── Pagination – mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  nav[aria-label="pagination-heading"] {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .pagination {
    gap: .2rem;
  }

  .pagination .page-link {
    min-width: 2.4rem;
    height: 2.4rem;
    font-size: .85rem;
    padding: 0 .5rem;
  }

  /* Hide intermediate pages, keep first/last/active/prev/next */
  .pagination .page-item:not(:first-child):not(:last-child):not(.active):not(:nth-child(2)):not(:nth-last-child(2)) {
    display: none;
  }

  /* Prev / Next: arrow only */
  .pagination .page-item:first-child .page-link span[aria-hidden],
  .pagination .page-item:last-child .page-link span[aria-hidden] {
    font-size: 0;
  }
  .pagination .page-item:first-child .page-link span[aria-hidden]::before { content: '«'; font-size: .9rem; }
  .pagination .page-item:last-child  .page-link span[aria-hidden]::before { content: '»'; font-size: .9rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Qui sommes-nous? – About page
   ═══════════════════════════════════════════════════════════════════════════ */

.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  font-family: var(--pa-font);
  color: var(--pa-text);
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: linear-gradient(135deg, #0f1e33 0%, #1a3358 60%, #002395 100%);
  border-radius: 18px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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") repeat;
  pointer-events: none;
}

.about-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.about-hero__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.about-hero__title span {
  color: var(--pa-primary);
}

.about-hero__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── Stats bar ─────────────────────────────────────────────────────────── */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.about-stat {
  background: #fff;
  border: 1.5px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
}

.about-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
}

.about-stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--pa-primary);
  line-height: 1;
  margin-bottom: .35rem;
}

.about-stat__label {
  font-size: .82rem;
  color: #6b7a8d;
  font-weight: 600;
}

/* ─── Sections ─────────────────────────────────────────────────────────── */
.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pa-dark);
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--pa-primary);
  display: inline-block;
}

.about-section p {
  font-size: .98rem;
  line-height: 1.75;
  color: #4a5568;
  margin-bottom: .9rem;
}

/* ─── Services grid ─────────────────────────────────────────────────────── */
.about-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.about-service {
  background: #fff;
  border: 1.5px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.about-service:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  border-color: var(--pa-primary);
}

.about-service__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .8rem;
}

.about-service h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pa-dark);
  margin: 0 0 .5rem;
}

.about-service p {
  font-size: .88rem;
  color: #6b7a8d;
  margin: 0;
  line-height: 1.6;
}

/* ─── Engagement ─────────────────────────────────────────────────────────── */
.about-engagement {
  background: linear-gradient(135deg, #fff8f8, #fff0f0);
  border: 1.5px solid rgba(230,57,70,.15);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  margin: 2rem 0;
}

.about-engagement h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pa-dark);
  margin-bottom: 1rem;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
}

.about-engagement p {
  font-size: .95rem;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: .7rem;
}

/* ─── Values list ────────────────────────────────────────────────────────── */
.about-values {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .93rem;
  color: #374151;
  line-height: 1.55;
  padding: .55rem .8rem;
  background: rgba(255,255,255,.65);
  border-radius: 9px;
}

.about-value::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--pa-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  margin-top: .05rem;
}

/* ─── CTA block ──────────────────────────────────────────────────────────── */
.about-cta {
  text-align: center;
  background: linear-gradient(135deg, #0f1e33 0%, #002395 100%);
  border-radius: 18px;
  padding: 3rem 2rem;
  margin-top: 3rem;
  color: #fff;
}

.about-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .7rem;
}

.about-cta p {
  color: rgba(255,255,255,.8);
  font-size: .98rem;
  margin-bottom: 1.75rem;
}

.about-cta__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--pa-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 3px 12px rgba(230,57,70,.35);
}

.btn-primary-cta:hover {
  background: #c1121f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230,57,70,.45);
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.75rem;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: background .2s, transform .15s;
}

.btn-secondary-cta:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

/* ─── RTL (Arabic) ───────────────────────────────────────────────────────── */
[dir="rtl"] .about-hero,
[lang="ar"] .about-hero {
  text-align: center;
}

[dir="rtl"] .about-section h2,
[lang="ar"] .about-section h2 {
  font-family: var(--pa-font-ar, 'Noto Sans Arabic', sans-serif);
}

[dir="rtl"] .about-values,
[lang="ar"] .about-values {
  direction: rtl;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .about-hero {
    padding: 2.5rem 1rem 2rem;
    border-radius: 12px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-services {
    grid-template-columns: 1fr;
  }

  .about-cta {
    padding: 2rem 1.25rem;
    border-radius: 12px;
  }

  .about-cta__btns {
    flex-direction: column;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Formulaire Laisser un avis
   ═══════════════════════════════════════════════════════════════════════════ */

.avis-france-form-page #sidebar_second { display: none; }
.avis-france-form-page .col-md-9,
.avis-france-form-page .col-lg-9 { flex: 0 0 100%; max-width: 100%; }

/* Expand the main layout region to full width, hide the empty secondary column */
.avis-france-form-page .layout-region-node-main {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
.avis-france-form-page .layout-region-node-secondary { display: none !important; }

.avis-france-form { max-width: 720px; margin: 0 auto; }

/* 2-column grid pour le formulaire avis : labels alignés en bas, inputs au même niveau */
.avis-france-form .demande-vehicule-grid {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.avis-france-form .demande-vehicule-grid .js-form-item {
  display: flex;
  flex-direction: column;
}

.avis-france-form .demande-vehicule-grid .js-form-item label {
  flex: 1;
  display: flex;
  align-items: flex-end;
  margin-bottom: .35rem;
  line-height: 1.3;
}

@media (max-width: 560px) {
  .avis-france-form .demande-vehicule-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CTA "Laisser un avis" in the block ────────────────────────────────── */
.avis-clients__cta {
  display: block;
  text-align: center;
  margin: 1rem .75rem .25rem;
  padding: .65rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 10px;
  color: #fff !important;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s;
}

.avis-clients__cta:hover {
  background: rgba(255,255,255,.16);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Commande depuis la France – page de détail
   ═══════════════════════════════════════════════════════════════════════════ */

.cf-detail {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.cf-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #0f1e33 0%, #1a3358 100%);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.cf-detail__header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cf-detail__flag { font-size: 2rem; }

.cf-detail__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .2rem;
}

.cf-detail__date {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* ── Status badge ────────────────────────────────────────────────────────── */
.cf-badge {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cf-badge--nouvelle     { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.cf-badge--en_cours     { background: #fff3cd; color: #856404; }
.cf-badge--devis_envoye { background: #cfe2ff; color: #084298; }
.cf-badge--confirmee    { background: #d1e7dd; color: #0a3622; }
.cf-badge--expediee     { background: #e2d9f3; color: #432874; }
.cf-badge--livree       { background: #d1e7dd; color: #0a3622; }
.cf-badge--annulee      { background: #f8d7da; color: #842029; }

/* ── Body layout ─────────────────────────────────────────────────────────── */
.cf-detail__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 720px) {
  .cf-detail__body { grid-template-columns: 1fr; }
}

/* ── Cards ───────────────────────────────────────────────────────────────── */
.cf-card {
  background: #fff;
  border: 1.5px solid var(--pa-border);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.cf-card:last-child { margin-bottom: 0; }

.cf-card__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--pa-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 1rem;
  padding-bottom: .65rem;
  border-bottom: 1.5px solid var(--pa-border);
}

/* ── Specs (véhicule) ────────────────────────────────────────────────────── */
.cf-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1.5rem;
  margin: 0;
}

.cf-spec {
  display: flex;
  flex-direction: column;
}

.cf-spec dt {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8899aa;
  margin-bottom: .15rem;
}

.cf-spec dd {
  font-size: .97rem;
  font-weight: 600;
  color: var(--pa-dark);
  margin: 0;
}

.cf-immat {
  font-family: monospace;
  background: #f0f4f8;
  border-radius: 5px;
  padding: .1rem .45rem;
  font-size: .9rem;
  color: #1a3358;
  letter-spacing: .08em;
}

/* ── Description ─────────────────────────────────────────────────────────── */
.cf-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: #4a5568;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.cf-card--contact { border-left: 4px solid var(--pa-primary); }

.cf-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.cf-contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
}

.cf-contact-item a {
  color: var(--pa-dark);
  font-weight: 600;
  text-decoration: none;
}

.cf-contact-item a:hover { color: var(--pa-primary); }

.cf-contact-icon { font-size: 1.1rem; }

/* ── Budget ──────────────────────────────────────────────────────────────── */
.cf-card--budget { border-left: 4px solid #198754; text-align: center; }

.cf-budget {
  font-size: 2rem;
  font-weight: 800;
  color: #198754;
}

/* ── Edit button ─────────────────────────────────────────────────────────── */
.cf-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--pa-dark);
  color: #fff !important;
  font-weight: 700;
  font-size: .88rem;
  padding: .75rem 1.25rem;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background .2s;
  margin-top: .5rem;
}

.cf-edit-btn:hover { background: #1a3358; }
