/* ════════════════════════════════════════════════════════════════════
   Vue textile — habillage Dropcom
   Chargé APRÈS textile-vue.css (feuille de Master Print, laissée telle quelle)
   et icones.css. Tout ce qui est propre à dropcom.fr est ici : en cas de
   nouvelle version du gabarit, on remplace textile-vue.css et on garde ce fichier.

   1. Réglages du gabarit aux couleurs de la charte (src/app/globals.css)
   2. Teintes écrites en dur dans le gabarit (rose, violet) ramenées à la charte
   3. Ajustements propres au site (en-tête collant, boutons, titres)
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Réglages ─────────────────────────────────────────────────── */
.tx-vue {
  /* Sarcelle Dropcom. brand-700 et non brand-500 : texte blanc lisible sur les boutons (6,1:1). */
  --tx-accent:        #166b73;
  --tx-accent-dark:   #13545b;
  --tx-accent-tint:   #ecf7f8;

  --tx-ink:           #16282c;
  --tx-text:          #33454a;
  --tx-muted:         #66777a;
  --tx-border:        #dde8ea;
  --tx-bg-soft:       #f5fafb;
  --tx-radius:        12px;

  /* Teinte d'accompagnement : l'orange Dropcom, en clair */
  --tx-tint:          #fdf1e8;
  --tx-tint-ink:      #9e460f;
  --tx-tint-strong:   #b85312;
  --tx-tint-border:   #f3c9a9;

  --tx-hero-bg:       linear-gradient(135deg, #ecf7f8 0%, #f6fbfc 55%, #fff 100%);
  --tx-hero-glow:     radial-gradient(520px 300px at 88% 40%, rgba(31, 151, 161, .20), transparent 70%),
                      radial-gradient(420px 280px at 68% 10%, rgba(106, 197, 210, .22), transparent 70%),
                      radial-gradient(300px 220px at 96% 95%, rgba(244, 123, 55, .16), transparent 70%);
  --tx-banner-bg:     linear-gradient(90deg, #fef5ee, #f1f9fa);
  --tx-banner-border: #f1e3d8;
  --tx-panel-head-bg: linear-gradient(135deg, #ecf7f8, #f6fbfc);
  --tx-title-bar:     linear-gradient(180deg, #1f97a1, #f47b37);

  /* Bouton d'appel : celui du site (.btn-primary) */
  --tx-cta-bg:        #b85312;
  --tx-cta-ink:       #fff;
  --tx-cta-ring:      0 0 0 0 transparent;

  /* En-tête du site, collant (Header.tsx) : 69 px sur téléphone, 109 px dès 1024 px (menu + bandeau
     des rubriques). Les colonnes collantes du gabarit (filtres, photo du produit) s'arrêtent dessous. */
  --tx-sticky-top:    69px;

  --tx-font:          var(--font-inter), ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 1024px) { .tx-vue { --tx-sticky-top: 109px; } }

/* ── 2. Teintes en dur du gabarit ────────────────────────────────── */
.tx-vue .tx-hero__pill { border-color: #cfe6ea; box-shadow: 0 2px 8px rgba(22, 107, 115, .08); }
.tx-vue .tx-hero__sub { color: var(--tx-text); }

/* Bande des avantages : quatre pastilles, sarcelle et orange en alternance */
.tx-vue .tx-infoband__item i { background: #ecf7f8; color: #166b73; }
.tx-vue .tx-infoband__item:nth-child(2) i { background: #fdf1e8; color: #b85312; }
.tx-vue .tx-infoband__item:nth-child(3) i { background: #ecf7f8; color: #166b73; }
.tx-vue .tx-infoband__item:nth-child(4) i { background: #fdf1e8; color: #b85312; }

.tx-vue .textile-sidebar__head { border-bottom-color: #dcecef; }
/* Le gabarit dessine ce picto avec un caractère Font Awesome : remplacé par un masque (curseurs). */
.tx-vue .textile-sidebar__head h3::before {
  content: ""; font-family: inherit; color: transparent;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b85312' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H3'/%3E%3Cpath d='M12 19H3'/%3E%3Cpath d='M14 3v4'/%3E%3Cpath d='M16 17v4'/%3E%3Cpath d='M21 12h-9'/%3E%3Cpath d='M21 19h-5'/%3E%3Cpath d='M21 5h-7'/%3E%3Cpath d='M8 10v4'/%3E%3Cpath d='M8 12H3'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.tx-vue .tx-card__flag { background: linear-gradient(135deg, #f47b37, #e2641f); }
.tx-vue .tx-card__quick { box-shadow: 0 8px 18px rgba(184, 83, 18, .28); }
.tx-vue .txa-stock--blue, .tx-vue .txa-th-sup { color: #1a858e !important; }
.tx-vue .txa-recap { border-color: #d2edf0; }
.tx-vue .txa-delai--rush .txa-delai__days, .tx-vue .txa-delai--rush .txa-delai__label, .tx-vue .txa-delai--rush.is-on i { color: #e2641f; }
.tx-vue .txa-delai--rush.is-on { border-color: #e2641f; background: #fdf1e8; }
.tx-vue .txa-delai__badge { background: #e2641f; }

/* ── 3. Ajustements propres au site ──────────────────────────────── */
/* Largeur : celle du site (.container-x, 1200 px), pour que le contenu s'aligne sur l'en-tête et
   le pied de page. Le gabarit monte à 1500 puis 1760 px sur grand écran. */
.tx-vue .tx-container { max-width: 1200px; padding: 0 1.25rem; }
/* Colonne de filtres + grille dans 1200 px : quatre cartes par rangée au plus, trois à côté des filtres. */
@media (min-width: 1400px) {
  .tx-vue .textile-catalog { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .tx-vue .textile-section__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
}
/* Liens simples posés par le serveur dans la grille avant que le script ne tourne. */
.tx-vue .tx-secours-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; padding: 8px 0; font-size: 14px; }
.tx-vue .tx-secours-liste a { color: var(--tx-accent); }
.tx-vue .tx-secours-liste a:hover { text-decoration: underline; }

/* Titres : la police de titres du site (Poppins, posée par globals.css sur h1…h4). */
.tx-vue .tx-hero__title, .tx-vue .tx-section-head h2, .tx-vue .txa-title { letter-spacing: -.02em; }

/* Boutons d'action : mêmes codes que .btn-primary du site. */
.tx-vue .txa-btn-cart { background: #b85312; box-shadow: 0 10px 24px -10px rgba(184, 83, 18, .6); }
.tx-vue .txa-btn-cart:not(:disabled):hover { background: #9e460f; }
.tx-vue .tx-card__quick:hover, .tx-vue .textile-sidebar__apply:hover { background: #9e460f; }

/* Sélection et focus aux couleurs de la charte. */
.tx-vue ::selection { background: #6ac5d2; color: #103f45; }
.tx-vue :focus-visible { outline: 2px solid #1f97a1; outline-offset: 2px; }

/* Case « En stock uniquement » : le stock n'est pas connu hors impression à la demande,
   la case est donc retirée de l'écran (elle reste dans la page, décochée, pour le script). */
.tx-vue .textile-filters__chk[hidden] { display: none !important; }

/* Contenu de secours rendu par le serveur dans la fiche (remplacé par le script) : lisible sans JavaScript. */
.tx-vue .tx-secours { max-width: 860px; margin: 0 auto; padding: 32px 20px 56px; }
.tx-vue .tx-secours h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--tx-ink); line-height: 1.2; margin-bottom: 6px; }
.tx-vue .tx-secours__marque { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-muted); }
.tx-vue .tx-secours__desc { margin-top: 14px; white-space: pre-line; color: var(--tx-text); }
.tx-vue .tx-secours img { margin-top: 18px; border-radius: 14px; max-height: 420px; width: auto; }
.tx-vue .tx-secours__attente { margin-top: 22px; display: flex; align-items: center; gap: 10px; color: var(--tx-muted); font-size: 14px; }

/* Pastille d'un coloris servie en image : un filet léger, sinon un coloris blanc disparaît sur fond blanc. */
.tx-vue .txa-color__dot img { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(22, 40, 44, .14); outline: 1px solid rgba(22, 40, 44, .10); outline-offset: -1px; }
