/* Page header */
.page-header {
background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 100%);
padding: 52px 0 44px;
}
.breadcrumb {
font-size: 0.85rem;
color: #97a4ba;
margin-bottom: 14px;
}
.breadcrumb a { color: #97a4ba; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.page-header h1 { margin-bottom: 12px; color: #fff; }
.page-header .hero-sub { max-width: 720px; margin-bottom: 0; color: #b7c2d4; }

/* Toolbar / filters */
.catalogue-toolbar { padding: 32px 0 0; }
.toolbar-inner {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
padding-bottom: 24px;
border-bottom: 1px solid var(--border);
}
.toolbar-controls {
display: flex;
gap: 12px;
flex-wrap: wrap;
flex: 1;
}
.search-input {
flex: 1;
min-width: 220px;
padding: 11px 16px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 0.92rem;
font-family: inherit;
}
.select-filter {
padding: 11px 14px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 0.92rem;
font-family: inherit;
background: #fff;
color: var(--text);
min-width: 180px;
}
.search-input:focus, .select-filter:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(19,80,145,0.14);
}
.result-count { margin: 0; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }

.load-more-wrap { text-align: center; margin-top: 36px; }

/* Product grid */
.catalogue-section { padding-top: 40px; }
.catalogue-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 24px;
}
.article-card {
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius);
overflow: hidden;
display: flex;
flex-direction: column;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
border-color: var(--primary);
box-shadow: 0 12px 28px rgba(8, 21, 39, 0.08);
}
.article-image {
background: var(--bg-alt);
border-bottom: 1px solid var(--border);
}
.article-image img { width: 100%; height: auto; display: block; }
.article-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.article-brand {
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 0.72rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 6px;
}
.article-body h3 { font-size: 1rem; margin-bottom: 2px; }
.article-ref { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }
.article-price { font-weight: 700; color: var(--primary); margin-bottom: 14px; }

.catalogue-note {
text-align: center;
font-size: 0.85rem;
color: var(--muted);
margin-top: 32px;
font-style: italic;
}

/* CTA band */
.cta-band { padding: 60px 0; }
.cta-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { margin: 0; }

/* Product card as link (home page category card) */
.product-card-link { text-decoration: none; display: block; }
.card-link-text {
display: inline-block;
margin-top: 10px;
color: var(--primary);
font-weight: 600;
font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1000px) {
.catalogue-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
.catalogue-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.toolbar-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
.catalogue-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.article-body { padding: 10px 10px 12px; gap: 2px; }
.article-body h3 { font-size: 0.78rem; line-height: 1.3; }
.article-brand { font-size: 0.6rem; margin-bottom: 4px; }
.article-ref { font-size: 0.68rem; }
.article-price { font-size: 0.82rem; margin-bottom: 8px; }
.article-body .btn { padding: 8px 10px; font-size: 0.78rem; }
}

/* --- Amelioration design fiches produits (designation complete + alignement) --- */
.article-card {
border-radius: 14px;
box-shadow: 0 1px 2px rgba(8, 21, 39, 0.05);
}
.article-card:hover {
transform: translateY(-3px);
box-shadow: 0 14px 30px rgba(8, 21, 39, 0.12);
}
.article-image {
aspect-ratio: 4 / 3;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.article-image img {
width: auto;
max-width: 100%;
height: auto;
max-height: 100%;
object-fit: contain;
}
.article-body {
flex: 1;
gap: 6px;
}
.article-brand {
display: inline-block;
background: var(--bg-alt);
padding: 3px 9px;
border-radius: 999px;
margin-bottom: 8px;
}
.article-body h3 {
font-size: 0.95rem;
font-weight: 600;
line-height: 1.45;
color: var(--dark);
white-space: normal;
overflow: visible;
overflow-wrap: anywhere;
word-break: break-word;
margin: 0 0 8px;
}
.article-ref {
font-size: 0.78rem;
color: var(--muted);
margin-bottom: 6px;
}
.article-price {
margin-top: auto;
padding-top: 6px;
font-size: 1rem;
}
.article-body .btn {
margin-top: 10px;
}

/* Re-assert mobile sizing (doit rester apres les regles ci-dessus pour gagner la cascade) */
@media (max-width: 480px) {
.article-body h3 {
font-size: 0.78rem;
line-height: 1.3;
}
}

/* Cartes cliquables vers la fiche produit */
.article-card { cursor: pointer; }

/* Page detail produit (produit.html) */
.back-link {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 16px;
color: #b7c2d4;
text-decoration: none;
font-size: 0.88rem;
}
.back-link:hover { color: #fff; text-decoration: underline; }
.back-arrow {
color: #ff8a00;
font-size: 1.6rem;
font-weight: 700;
-webkit-text-stroke: 1px #ff8a00;
line-height: 1;
animation: back-arrow-blink 1.2s ease-in-out infinite;
}
@keyframes back-arrow-blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.2; }
}
.produit-section { padding: 40px 0 60px; }
.produit-loading { text-align: center; color: var(--muted); padding: 60px 0; }
.produit-error { text-align: center; padding: 60px 0; }
.produit-error h1 { margin-bottom: 12px; }
.produit-error p { color: var(--muted); margin-bottom: 24px; }
.produit-detail {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
align-items: start;
}
.produit-image {
background: var(--bg-alt);
border: 1px solid var(--border);
border-radius: var(--radius);
display: flex;
align-items: center;
justify-content: center;
padding: 32px;
}
.produit-image img {
max-width: 100%;
max-height: 420px;
object-fit: contain;
}
.produit-info h1 {
font-size: 1.5rem;
line-height: 1.4;
margin: 10px 0 16px;
}
.produit-ref { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.produit-price { font-weight: 700; color: var(--primary); font-size: 1.25rem; margin-bottom: 28px; }
.btn-devis {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: #fff;
border: none;
border-radius: 999px;
padding: 16px 34px;
font-size: 1.02rem;
letter-spacing: 0.3px;
box-shadow: 0 10px 24px rgba(19, 80, 145, 0.3);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-devis:hover { color: #fff; }
.btn-devis:hover {
transform: translateY(-3px);
box-shadow: 0 14px 30px rgba(19, 80, 145, 0.4);
}
.btn-devis:active {
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(19, 80, 145, 0.32);
}
.article-body .btn-devis {
padding: 12px 18px;
font-size: 0.88rem;
box-shadow: 0 6px 14px rgba(19, 80, 145, 0.25);
}
.article-body .btn-devis:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(19, 80, 145, 0.32);
}
@media (max-width: 800px) {
.produit-detail { grid-template-columns: 1fr; gap: 24px; }
}
#produitContactForm { scroll-margin-top: 24px; }
.produit-contact { max-width: 560px; margin: 0 auto; }
.produit-contact h2 { margin-bottom: 24px; }
