/* ============================================================
   GV INFORMATIQUE — ANNONCES
   Styles propres au site d'annonces, construits sur tokens.css,
   base.css et components.css (même charte que le site principal).
   Aucune valeur hors charte : couleurs, rayons et ombres viennent
   des tokens.
   ============================================================ */

/* --- Marque : deux lignes « GV Informatique » / « Annonces » --- */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub {
  font-family: var(--font-title); font-weight: 600; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--color-sky);
  margin-top: 3px;
}

/* --- Hero avec visuel (accueil) --- */
.hero--split .hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px; align-items: center;
}
.hero--split .hero-content { max-width: none; }
.hero-points {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 14px; color: rgba(255, 255, 255, .9);
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-sky); box-shadow: 0 0 0 4px rgba(78, 189, 245, .18);
  flex: none;
}
.hero-visual { position: relative; }
.hero-visual svg {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 28px 50px rgba(0, 16, 40, .35));
}
@media (max-width: 780px) {
  .hero--split .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
}

/* --- Boutons : libellé sur une ligne (évite un bouton coupé en deux) --- */
.btn { white-space: nowrap; }

/* --- Bandeau d'information (exemples, consignes) --- */
.demo-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(78, 189, 245, .10);
  border: 1px solid rgba(78, 189, 245, .38);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 26px;
  font-size: 14px; color: var(--color-signature);
}
.demo-notice svg { flex: none; margin-top: 2px; }
.demo-notice p { margin: 0; }

/* --- Grille et cartes d'annonces --- */
.ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .ad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ad-grid { grid-template-columns: 1fr; } }

.ad-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.ad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ad-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--color-bg-alt);
}
.ad-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.ad-card:hover .ad-media img { transform: scale(1.035); }
.ad-badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--color-white); box-shadow: var(--shadow-sm);
}
.badge-status--disponible { color: var(--color-success); }
.badge-status--reserve { color: var(--color-warning); }
.badge-status--vendu { color: var(--color-gray); }
.badge-example {
  display: inline-flex; align-items: center;
  font-family: var(--font-title); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--color-anthracite); color: var(--color-white);
}
.ad-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.ad-category {
  margin: 0 0 8px; font-family: var(--font-title); font-weight: 600;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-action);
}
.ad-body h3 { font-size: 19px; line-height: 1.32; margin: 0 0 8px; }
.ad-body h3 a { color: var(--color-signature); }
.ad-body h3 a:hover { color: var(--color-action); text-decoration: none; }
.ad-resume {
  flex: 1; margin: 0 0 18px; font-size: 14px; color: var(--color-text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--color-border);
}
.ad-price {
  font-family: var(--font-title); font-weight: 800; font-size: 20px;
  color: var(--color-signature);
}
.ad-price--demande { font-size: 16px; font-weight: 700; }

/* --- En-tête de section avec action à droite --- */
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.section-head-row .section-head { margin-bottom: 0; }
@media (max-width: 700px) {
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

/* --- Barre de filtres et recherche --- */
.listing-toolbar {
  display: grid; gap: 16px;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 18px 20px; margin-bottom: 28px;
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label {
  font-family: var(--font-title); font-weight: 600; font-size: 13px;
  color: var(--color-text-muted); margin-right: 4px;
}
.chip-filter {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-title); font-weight: 600; font-size: 13px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-white);
  color: var(--color-signature); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.chip-filter:hover { border-color: var(--color-action); color: var(--color-action); text-decoration: none; }
.chip-filter.is-active { background: var(--color-signature); border-color: var(--color-signature); color: var(--color-white); }
.chip-filter .chip-count { font-size: 11px; opacity: .75; }
.search-form { display: flex; gap: 8px; }
.search-form .form-input { flex: 1; min-width: 0; }
.search-form .btn { padding: .7em 1.2em; font-size: 15px; }
@media (max-width: 560px) {
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; justify-content: center; }
}
.results-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 20px;
  font-size: 14px; color: var(--color-text-muted);
}
.results-meta strong { color: var(--color-signature); font-family: var(--font-title); }
.results-reset { font-size: 14px; }

/* --- État vide --- */
.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--color-bg-alt); border: 1px dashed rgba(0, 49, 80, .25);
  border-radius: var(--radius-lg);
}
.empty-state svg { color: var(--color-action); margin-bottom: 14px; }
.empty-state h2, .empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 520px; margin: 0 auto 22px; color: var(--color-text-muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Blocs « comment ça marche » --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 26px;
}
.step-number {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-signature); color: var(--color-white);
  font-family: var(--font-title); font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 18px; margin: 16px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--color-text-muted); }
.steps--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .steps--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps--four { grid-template-columns: 1fr; } }

/* --- Encadrés --- */
.callout {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-sky);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.callout p:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { font-size: 20px; }
.notice-inline {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 14px; margin-top: 18px;
}
.notice-inline svg { flex: none; color: var(--color-action); margin-top: 2px; }
.notice-inline p { margin: 0; }

/* --- Fiche article : galerie + résumé --- */
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 44px; align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 30px; } }

.gallery-main {
  display: block; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 10px;
}
.gallery-thumb {
  display: block; overflow: hidden; aspect-ratio: 4 / 3;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--color-bg-alt); padding: 0; cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: rgba(0, 116, 217, .45); }
.gallery-thumb.is-active { border-color: var(--color-action); }
@media (max-width: 560px) { .gallery-thumbs { grid-template-columns: repeat(3, 1fr); } }

.detail-summary {
  position: sticky; top: calc(var(--header-height) + 24px);
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 28px;
}
@media (max-width: 900px) { .detail-summary { position: static; } }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-price {
  font-family: var(--font-title); font-weight: 800; font-size: 34px;
  color: var(--color-signature); margin: 0 0 4px;
}
.detail-price--demande { font-size: 24px; }
.detail-price-note { font-size: 13px; color: var(--color-text-muted); margin: 0 0 20px; }
.detail-facts {
  margin: 0 0 22px; padding: 0; border-top: 1px solid var(--color-border);
}
.detail-facts > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.detail-facts dt { color: var(--color-text-muted); }
.detail-facts dd { margin: 0; font-weight: 600; color: var(--color-signature); text-align: right; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.detail-actions .btn { justify-content: center; }
.detail-note { margin: 14px 0 0; font-size: 13px; color: var(--color-text-muted); }

/* --- Contenu bas de fiche --- */
.detail-lower {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 44px; align-items: start; margin-top: 52px;
}
@media (max-width: 900px) { .detail-lower { grid-template-columns: 1fr; gap: 30px; } }
.detail-lower h2 { margin-top: 0; }
.detail-lower h3 { margin-top: 28px; }
.prose { color: var(--color-text); line-height: 1.7; }
.prose p { margin-bottom: 1em; }
.section-link { margin-top: 28px; }

/* --- Tableau de caractéristiques --- */
.table-specs {
  width: 100%; border-collapse: collapse; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  overflow: hidden;
}
.table-specs th, .table-specs td {
  padding: 12px 16px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--color-border); vertical-align: top;
}
.table-specs th {
  width: 38%; background: var(--color-bg-alt);
  font-family: var(--font-title); font-weight: 600; color: var(--color-signature);
}
.table-specs tr:last-child th, .table-specs tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  .table-specs, .table-specs tbody, .table-specs tr, .table-specs th, .table-specs td { display: block; width: 100%; }
  .table-specs th { border-bottom: 0; }
}

/* --- Miniature d'article (contact) --- */
.article-mini {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 12px; margin-bottom: 20px;
}
.article-mini img {
  width: 88px; height: 66px; object-fit: cover; display: block;
  border-radius: var(--radius-sm); background: var(--color-white); flex: none;
}
.article-mini h3 { font-size: 15px; margin: 0 0 3px; }
.article-mini p { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.article-mini .article-mini-price { color: var(--color-signature); font-weight: 700; }
@media (max-width: 420px) {
  .article-mini { align-items: flex-start; }
  .article-mini img { width: 68px; height: 51px; }
}

/* --- FAQ --- */
.faq { max-width: 860px; }
.faq details {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 0 20px; margin-bottom: 12px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font-family: var(--font-title); font-weight: 600; color: var(--color-signature);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 22px; line-height: 1;
  color: var(--color-action); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--color-text-muted); }
.faq details p:first-of-type { margin-top: -2px; }

/* --- Liens du formulaire sur fond clair (contraste) --- */
.contact-grid .footer-form-link a { color: var(--color-action); }

/* --- Fil d'Ariane sur petit écran ---
   Sur une fiche, le titre courant est déjà dans le h1 : on évite de
   répéter un fil d'Ariane trop long sur mobile. */
@media (max-width: 560px) {
  .breadcrumb-current { display: none; }
}

/* --- Confidentialité --- */
.privacy { max-width: 820px; }
.privacy h2 { margin-bottom: 12px; }
.privacy p, .privacy li { font-size: 15px; color: var(--color-text-muted); }
.privacy ul { margin: 0 0 1em; padding-left: 20px; }

/* --- Liste de points forte (chiffres / engagements) --- */
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  position: relative; padding-left: 30px; margin-bottom: 12px;
  color: var(--color-text-muted);
}
.fact-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--color-action); font-family: var(--font-title); font-weight: 800;
}
.fact-list strong { color: var(--color-signature); }

/* --- Pied de page : mentions --- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { color: rgba(255, 255, 255, .75); }
.footer-legal a:hover { color: var(--color-sky); }
.footer-tagline { margin-bottom: 10px; }
.footer-note { margin-bottom: 0; }

/* --- Lien clair sur fond marine --- */
.link-light { color: inherit; text-decoration: underline; }
.link-light:hover { color: var(--color-sky); }

/* --- Contact : passage sur une colonne un peu plus tôt que la charte
   de base, car la colonne de gauche contient aussi la miniature d'article. --- */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Ancrages sous l'en-tête fixe --- */
#formulaire, #confidentialite { scroll-margin-top: calc(var(--header-height) + 24px); }

/* --- Petites adaptations mobiles --- */
@media (max-width: 420px) {
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; }
  .detail-summary { padding: 22px; }
  .detail-price { font-size: 28px; }
}
