/* ──────────────────────────────────────────────────────────────────────────
   pages.css — Composants partagés du storefront « Equivalent ».
   Reprend l'esthétique de la homepage (accent or --color-primary, Material
   Symbols, cartes arrondies) pour TOUTES les pages front qui étendent
   layouts/equivalent.blade.php. Plain CSS, indépendant du sous-ensemble
   tw-utils.css. Préfixe : .eq-
   ────────────────────────────────────────────────────────────────────────── */

:root { --eq-gold: var(--color-primary, #c5a174); }

/* Conteneur ----------------------------------------------------------------- */
.eq-wrap { max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.eq-wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* En-tête de page ----------------------------------------------------------- */
.eq-page-head { background: linear-gradient(135deg, color-mix(in srgb, var(--eq-gold) 12%, #fff) 0%, #fff 70%); border-bottom: 1px solid #ececec; padding: 2.75rem 0 2.25rem; }
.eq-page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; color: #1a1a1a; margin: 0; }
.eq-page-head p.lead { color: #6b7280; font-size: .98rem; margin: .4rem 0 0; }

/* Fil d'ariane -------------------------------------------------------------- */
.eq-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .82rem; color: #9ca3af; margin: 0 0 .65rem; list-style: none; padding: 0; }
.eq-breadcrumb a { color: var(--eq-gold); text-decoration: none; font-weight: 600; }
.eq-breadcrumb a:hover { text-decoration: underline; }
.eq-breadcrumb .sep { color: #d1d5db; }

/* Section générique --------------------------------------------------------- */
.eq-section { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.eq-section-head { margin-bottom: 1.75rem; }
.eq-section-head .kicker { color: var(--eq-gold); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.eq-section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin: .3rem 0 0; color: #1a1a1a; letter-spacing: -.01em; }

/* Boutons ------------------------------------------------------------------- */
.eq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; border: none; cursor: pointer; transition: all .18s; line-height: 1.2; }
.eq-btn-gold { background: var(--eq-gold); color: #1a1a1a; }
.eq-btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--eq-gold) 38%, transparent); color: #1a1a1a; }
.eq-btn-dark { background: #1a1a1a; color: #fff; }
.eq-btn-dark:hover { background: #2a2a2a; color: #fff; transform: translateY(-2px); }
.eq-btn-ghost { background: #fff; color: #1a1a1a; border: 1.5px solid #e5e7eb; }
.eq-btn-ghost:hover { border-color: var(--eq-gold); color: var(--eq-gold); }
.eq-btn-soft { background: color-mix(in srgb, var(--eq-gold) 14%, #fff); color: var(--eq-gold); }
.eq-btn-soft:hover { background: color-mix(in srgb, var(--eq-gold) 22%, #fff); color: var(--eq-gold); }
.eq-btn-block { width: 100%; }
.eq-btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.eq-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Cartes -------------------------------------------------------------------- */
.eq-card { background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 1.5rem; }
.eq-card-pad-lg { padding: 2rem; }

/* Grilles ------------------------------------------------------------------- */
.eq-grid { display: grid; gap: 1.25rem; }
.eq-grid-2 { grid-template-columns: repeat(2, 1fr); }
.eq-grid-3 { grid-template-columns: repeat(3, 1fr); }
.eq-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .eq-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .eq-grid-3, .eq-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .eq-grid-2, .eq-grid-3, .eq-grid-4 { grid-template-columns: 1fr; } }

/* Carte produit ------------------------------------------------------------- */
.eq-product { display: flex; flex-direction: column; background: #fff; border: 1px solid #ececec; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: all .18s; height: 100%; }
.eq-product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.1); border-color: var(--eq-gold); }
.eq-product-img { aspect-ratio: 1/1; background: #f5f4f1 center/cover no-repeat; position: relative; }
.eq-product-img.ph { display: grid; place-items: center; color: #d1cfc8; font-size: 2.6rem; }
.eq-product-badge { position: absolute; z-index: 2; top: .5rem; left: .5rem; background: var(--eq-gold); color: #1a1a1a; font-size: .65rem; font-weight: 700; padding: .2rem .55rem; border-radius: 20px; }
.eq-product-badge.dark { background: #1a1a1a; color: #fff; left: auto; right: .5rem; }
.eq-product-body { padding: .9rem 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.eq-product-name { font-size: .92rem; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.eq-product-price { font-weight: 800; color: var(--eq-gold); margin-top: auto; }
.eq-product-price small { font-weight: 500; color: #9ca3af; font-size: .72rem; }

/* Filtres / pills ----------------------------------------------------------- */
.eq-filterbar { background: #fff; border-bottom: 1px solid #ececec; padding: .75rem 0; position: sticky; top: 0; z-index: 50; }
.eq-pill { display: inline-flex; align-items: center; gap: .35rem; border: 1.5px solid #e5e7eb; border-radius: 20px; padding: .35rem .9rem; font-size: .82rem; font-weight: 600; color: #374151; background: #fff; cursor: pointer; transition: all .15s; white-space: nowrap; text-decoration: none; }
.eq-pill:hover, .eq-pill.active { border-color: var(--eq-gold); color: var(--eq-gold); background: color-mix(in srgb, var(--eq-gold) 10%, #fff); }

/* Champs formulaire --------------------------------------------------------- */
.eq-input, .eq-select, .eq-textarea { width: 100%; border: 1.5px solid #e5e7eb; border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; color: #1a1a1a; background: #fff; transition: all .15s; }
.eq-input:focus, .eq-select:focus, .eq-textarea:focus { outline: none; border-color: var(--eq-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--eq-gold) 16%, transparent); }
.eq-label { display: block; font-size: .85rem; font-weight: 600; color: #374151; margin-bottom: .35rem; }
.eq-field { margin-bottom: 1.1rem; }

/* Tableau ------------------------------------------------------------------- */
.eq-table { width: 100%; border-collapse: collapse; }
.eq-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; font-weight: 700; padding: .6rem .75rem; border-bottom: 2px solid #f0efec; }
.eq-table td { padding: .85rem .75rem; border-bottom: 1px solid #f3f2ef; font-size: .9rem; color: #374151; vertical-align: middle; }
.eq-table tr:last-child td { border-bottom: none; }

/* Badges statut ------------------------------------------------------------- */
.eq-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.eq-badge-success { background: #dcfce7; color: #166534; }
.eq-badge-warning { background: #fef3c7; color: #92400e; }
.eq-badge-danger  { background: #fee2e2; color: #991b1b; }
.eq-badge-info    { background: #dbeafe; color: #1e40af; }
.eq-badge-gray    { background: #f3f4f6; color: #4b5563; }

/* État vide ----------------------------------------------------------------- */
.eq-empty { text-align: center; padding: 4rem 1rem; }
.eq-empty .ic { font-size: 3.5rem; color: #e5e7eb; margin-bottom: .5rem; }
.eq-empty h3 { font-size: 1.1rem; font-weight: 700; color: #6b7280; margin: 0 0 .35rem; }
.eq-empty p { color: #9ca3af; font-size: .9rem; margin: 0 0 1.25rem; }

/* Alertes ------------------------------------------------------------------- */
.eq-alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1.25rem; }
.eq-alert .material-symbols-outlined { flex-shrink: 0; }
.eq-alert-success { background: #dcfce7; color: #166534; }
.eq-alert-danger  { background: #fee2e2; color: #991b1b; }
.eq-alert-info    { background: color-mix(in srgb, var(--eq-gold) 10%, #fff); color: #1a1a1a; }

/* Récap / lignes ------------------------------------------------------------ */
.eq-summary-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; font-size: .92rem; color: #374151; }
.eq-summary-row.total { border-top: 2px solid #f0efec; margin-top: .5rem; padding-top: .9rem; font-size: 1.15rem; font-weight: 800; color: #1a1a1a; }
.eq-summary-row .amt { font-weight: 700; }

/* Helpers ------------------------------------------------------------------- */
.eq-divider { border: none; border-top: 1px solid #f0efec; margin: 1.5rem 0; }
.eq-muted { color: #9ca3af; }
.eq-gold-text { color: var(--eq-gold); }

/* Contenu riche CMS --------------------------------------------------------- */
.eq-rich h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .75rem; color: #1a1a1a; }
.eq-rich h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: #1a1a1a; }
.eq-rich p  { line-height: 1.75; color: #374151; margin: 0 0 1rem; }
.eq-rich a  { color: var(--eq-gold); }
.eq-rich ul, .eq-rich ol { padding-left: 1.5rem; line-height: 1.8; color: #374151; margin: 0 0 1rem; }
.eq-rich img { max-width: 100%; border-radius: 12px; margin: 1rem 0; }
.eq-rich blockquote { border-left: 3px solid var(--eq-gold); padding: .75rem 1.25rem; background: color-mix(in srgb, var(--eq-gold) 8%, #fff); border-radius: 0 10px 10px 0; margin: 1.5rem 0; color: #374151; }

/* Gommettes (pastilles de finition sur les tuiles de produits configurables) ------ */
.eq-gommettes { position: absolute; left: .6rem; bottom: .6rem; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; max-width: 80%; }
.eq-gommette { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .15s; }
.eq-gommette[data-gommette-image] { cursor: pointer; }
.eq-gommette:hover { transform: scale(1.25); }
.eq-gommette-more { background: rgba(255,255,255,.92); color: #374151; font-size: .62rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* Image de survol d'une tuile (image choisie dans l'admin) — masquée pendant le survol d'une gommette */
.eq-product-hover { position: absolute; inset: 0; background: #f5f4f1 center/cover no-repeat; opacity: 0; transition: opacity .25s; pointer-events: none; }
.eq-product:hover .eq-product-hover, .eq-cfgp:hover .eq-product-hover { opacity: 1; }
.gommette-active .eq-product-hover { opacity: 0 !important; }
