/* ==========================================================================
   Windkair — design system de la maquette
   Tokens extraits du Figma "Windkair website".
   TOUTE couleur passe par un token : jamais de valeur en dur dans les regles.

   FICHIER REPRIS TEL QUEL, A NE PAS DIVERGER DE SA SOURCE.
   C'est le design system de l'e-shop Windkair : il est destine a etre
   resynchronise avec lui. Les corrections propres a ce site vivent dans
   `site.css`, jamais ici.

   Consequence assumee (decision produit) : ce fichier garde ses deux blocs
   `[data-theme="dark"]` (les tokens sombres plus bas, et le filtre du logo)
   alors que le site est en THEME CLAIR UNIQUEMENT. Ils sont INERTES — plus
   aucun attribut `data-theme` n'est pose, donc aucun de leurs selecteurs ne
   matche jamais. Les retirer ferait diverger ce fichier de sa source pour un
   gain nul. Ne pas les « nettoyer » en les prenant pour de l'oubli.
   ========================================================================== */

:root,
[data-theme="light"] {
  --brand: #1f6b7a;
  --brand-strong: #17545f;
  --brand-soft: #eff5f7;

  --bg: #ffffff;
  --bg-alt: #f7f9fa;
  --surface: #ffffff;
  --surface-cream: #faf8f5;
  --surface-muted: #eff5f7;

  --text: #1a2634;
  --text-2: #707070;
  --text-on-brand: #ffffff;

  --border: #e0e0e0;
  --border-strong: #cbced2;
  --divider: rgba(0, 0, 0, 0.08);

  --footer-bg: #1a2634;
  --footer-text: #9eabb8;
  --footer-divider: rgba(255, 255, 255, 0.12);

  --ok: #1f7a4d;
  --ok-soft: #e8f5ee;
  --warn: #9a6a12;
  --warn-soft: #fdf3e0;
  --danger: #b3261e;
  --danger-soft: #fdecea;

  --shadow-card: 0 4px 16px rgba(15, 18, 20, 0.05);
  --shadow-header: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 12px 32px rgba(15, 18, 20, 0.14);
}

[data-theme="dark"] {
  --brand: #2f95a8;
  --brand-strong: #3fb0c4;
  --brand-soft: #14242b;

  --bg: #0e1419;
  --bg-alt: #121a21;
  --surface: #172029;
  --surface-cream: #1c2027;
  --surface-muted: #14242b;

  --text: #eef2f5;
  --text-2: #9fb0bd;
  --text-on-brand: #06171c;

  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --divider: rgba(255, 255, 255, 0.1);

  --footer-bg: #0a1015;
  --footer-text: #8fa0ad;
  --footer-divider: rgba(255, 255, 255, 0.1);

  --ok: #5fcf95;
  --ok-soft: #10281c;
  --warn: #e0b062;
  --warn-soft: #2a2113;
  --danger: #f08b83;
  --danger-soft: #2b1512;

  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-header: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* --- echelles ------------------------------------------------------------ */
:root {
  --font-heading: "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-pill: 999px;

  /* padding horizontal : fidele au Figma (1440px) et degressif en dessous */
  --page-px: clamp(20px, 4.45vw, 64px);
  --main-px: clamp(20px, 11.1vw, 160px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.wk-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  height: 80px;
  padding-inline: var(--page-px);
  background: var(--surface);
  box-shadow: var(--shadow-header);
}

.wk-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wk-logo span { color: var(--brand); }

/* Logo image (export Figma 360x180). En thematique sombre le lettrage
   « Wind » est trop fonce pour rester lisible : on eclaircit l'ensemble. */
.wk-logo-img { height: 56px; width: auto; }
.wk-logo-img--footer { height: 30px; filter: brightness(0) invert(1); }
[data-theme="dark"] .wk-logo-img { filter: brightness(0) invert(1); }

.wk-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 16px;
  font-weight: 300;
  white-space: nowrap;
}
.wk-nav a { color: var(--text); }
.wk-nav a:hover { color: var(--brand); }
.wk-nav a.is-active { color: var(--brand); font-weight: 600; }

.wk-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.wk-account {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.wk-account:hover { color: var(--brand); }
.wk-account .wk-ico { width: 20px; height: 20px; }

.wk-cart { position: relative; display: block; width: 28px; height: 24px; }
.wk-cart .wk-ico { width: 22px; height: 22px; margin-top: 2px; }
.wk-cart-count {
  position: absolute;
  top: 0;
  left: 14px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

/* les icones SVG monochromes suivent le theme */
.wk-ico {
  display: block;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.wk-ico--user {
  -webkit-mask-image: url("../img/icon-user.svg");
  mask-image: url("../img/icon-user.svg");
}
.wk-ico--cart {
  -webkit-mask-image: url("../img/icon-cart.svg");
  mask-image: url("../img/icon-cart.svg");
}

/* ==========================================================================
   Layout de page
   ========================================================================== */
.wk-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 48px var(--main-px) 80px;
}
.wk-main--narrow { --main-px: clamp(20px, 16vw, 280px); }

.wk-page-head { display: flex; flex-direction: column; gap: var(--space-sm); }
.wk-page-head p { color: var(--text-2); }

.wk-section { display: flex; flex-direction: column; gap: var(--space-xl); }

.wk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  align-items: start;
}
.wk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* deux colonnes contenu + panneau lateral (panier, checkout) */
.wk-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--space-2xl);
  align-items: start;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.wk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.wk-btn--primary {
  background: var(--brand);
  color: var(--text-on-brand);
  padding: var(--space-lg) var(--space-2xl);
  font-size: 18px;
}
.wk-btn--primary:hover { background: var(--brand-strong); }

.wk-btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
  padding: var(--space-sm) var(--space-lg);
  font-size: 14px;
}
.wk-btn--secondary:hover { border-color: var(--brand); color: var(--brand); }

.wk-btn--ghost {
  background: transparent;
  color: var(--brand);
  padding: var(--space-sm) var(--space-md);
  font-size: 15px;
}
.wk-btn--ghost:hover { background: var(--brand-soft); }

.wk-btn--danger {
  background: var(--danger);
  color: #fff;
  padding: var(--space-md) var(--space-xl);
  font-size: 15px;
}

/* variante header : plus compacte, radius 10 (cf. Figma) */
.wk-btn--header {
  background: var(--brand);
  color: var(--text-on-brand);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px;
}
.wk-btn--header:hover { background: var(--brand-strong); }

.wk-btn--block { width: 100%; }
.wk-btn[disabled],
.wk-btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Badges & pastilles
   ========================================================================== */
.wk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.wk-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.wk-tag--ok { background: var(--ok-soft); color: var(--ok); }
.wk-tag--warn { background: var(--warn-soft); color: var(--warn); }
.wk-tag--danger { background: var(--danger-soft); color: var(--danger); }
.wk-tag--neutral { background: var(--surface-muted); color: var(--text-2); }

/* ==========================================================================
   Cartes
   ========================================================================== */
.wk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}
.wk-card--flat { box-shadow: none; }
.wk-card--cream {
  background: var(--surface-cream);
  border: 0;
  border-radius: var(--radius-2xl);
  box-shadow: none;
  padding: 40px 48px;
}

/* carte produit — grille boutique */
.wk-product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 16px 16px 18px;
}
.wk-product-card .wk-thumb { width: 100%; }
.wk-product-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.wk-product-card .wk-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
}

.wk-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  overflow: hidden;
}
.wk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.wk-thumb--cover img { object-fit: cover; }
.wk-thumb svg { width: 72px; height: 72px; color: var(--brand); }

.wk-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}
.wk-price { flex: 1; font-size: 16px; font-weight: 500; color: var(--text); }
.wk-price--muted { color: var(--text-2); }
.wk-price-ht { font-size: 13px; color: var(--text-2); white-space: nowrap; }

/* ==========================================================================
   Formulaires
   ========================================================================== */
.wk-form { display: flex; flex-direction: column; gap: var(--space-lg); }
.wk-field { display: flex; flex-direction: column; gap: 6px; }
.wk-field label { font-size: 14px; font-weight: 500; color: var(--text); }
.wk-field .wk-hint { font-size: 13px; color: var(--text-2); }
.wk-field .wk-error { font-size: 13px; color: var(--danger); }

.wk-input,
.wk-select,
.wk-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
}
.wk-input:focus,
.wk-select:focus,
.wk-textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  border-color: var(--brand);
}
.wk-input::placeholder { color: var(--text-2); opacity: .8; }
.wk-textarea { min-height: 96px; resize: vertical; }
.wk-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }

.wk-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.wk-check input { margin-top: 3px; accent-color: var(--brand); }

/* option selectionnable (livraison, paiement, adresse enregistree) */
.wk-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.wk-option:hover { border-color: var(--border-strong); }
.wk-option.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.wk-option input { margin-top: 3px; accent-color: var(--brand); }
.wk-option-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wk-option-title { font-size: 15px; font-weight: 500; }
.wk-option-desc { font-size: 13px; color: var(--text-2); }

/* ==========================================================================
   Stepper (tunnel & configurateur)
   ========================================================================== */
.wk-steps {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.wk-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}
.wk-step-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
}
.wk-step.is-current { color: var(--text); font-weight: 500; }
.wk-step.is-current .wk-step-num { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }
/* etape franchie : pastille brand pleine (cf. Figma), et trait de liaison colore */
.wk-step.is-done .wk-step-num { background: var(--brand); border-color: var(--brand); color: var(--text-on-brand); }
.wk-step-sep { width: 32px; height: 1px; background: var(--border-strong); }
.wk-step.is-done + .wk-step-sep { background: var(--brand); }

/* ==========================================================================
   Recapitulatif / lignes de commande
   ========================================================================== */
.wk-summary { display: flex; flex-direction: column; gap: var(--space-md); }
.wk-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 15px;
  color: var(--text-2);
}
.wk-summary-row strong { color: var(--text); font-weight: 500; }
.wk-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.wk-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--divider);
}
.wk-line:last-child { border-bottom: 0; }
.wk-line .wk-thumb { width: 96px; height: 96px; flex: none; }
.wk-line-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wk-line-title { font-size: 16px; font-weight: 500; }
.wk-line-meta { font-size: 13px; color: var(--text-2); }

.wk-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.wk-qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--surface);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.wk-qty button:hover { background: var(--surface-muted); }
.wk-qty span { min-width: 32px; text-align: center; font-size: 15px; font-weight: 500; }

/* ==========================================================================
   Tableaux (commandes, abonnements)
   ========================================================================== */
.wk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wk-table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.wk-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
.wk-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Espace compte — sidebar + contenu
   ========================================================================== */
.wk-account-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: start;
}
/* Figma : liste de liens nue, sans carte ni bordure — seule l'entree active
   porte une pastille. 260px pour que « Mes balises & abonnements » tienne
   sur une seule ligne. */
.wk-account-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wk-account-nav a {
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-2);
  white-space: nowrap;
}
.wk-account-nav a:hover { background: var(--surface-muted); color: var(--text); }
.wk-account-nav a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }

/* ==========================================================================
   Divers
   ========================================================================== */
.wk-breadcrumb { display: flex; gap: var(--space-sm); font-size: 13px; color: var(--text-2); }
.wk-breadcrumb a:hover { color: var(--brand); }

.wk-notice {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  font-size: 14px;
  color: var(--text-2);
}
.wk-notice--ok { background: var(--ok-soft); color: var(--ok); }
.wk-notice--warn { background: var(--warn-soft); color: var(--warn); }
.wk-notice--danger { background: var(--danger-soft); color: var(--danger); }

.wk-prose { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 760px; }
.wk-prose h2 { font-size: 22px; margin-top: var(--space-lg); }
.wk-prose p, .wk-prose li { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.wk-prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-sm); }
/* le reset global neutralise les liens : dans un corps de texte il faut les voir */
.wk-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .15s ease; }
.wk-prose a:hover { text-decoration-color: currentColor; }

.wk-divider { height: 1px; background: var(--divider); border: 0; margin: 0; }

/* modale factice (suppression d'adresse, etc.) */
.wk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  background: rgba(10, 16, 21, 0.5);
}
.wk-modal {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}
.wk-modal-actions { display: flex; justify-content: flex-end; gap: var(--space-md); }

/* ==========================================================================
   Footer
   ========================================================================== */
.wk-footer {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 56px var(--page-px) 32px;
  background: var(--footer-bg);
}
.wk-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
.wk-footer-brand { display: flex; flex-direction: column; gap: var(--space-md); width: 340px; max-width: 100%; }
.wk-footer-brand .wk-logo { color: #fff; }
.wk-footer-brand p { font-size: 14px; color: var(--footer-text); }
.wk-footer-col { display: flex; flex-direction: column; gap: 14px; }
.wk-footer-col strong { font-size: 15px; font-weight: 500; color: #fff; }
.wk-footer-col a { font-size: 14px; color: var(--footer-text); }
.wk-footer-col a:hover { color: #fff; }
.wk-footer hr { height: 1px; border: 0; background: var(--footer-divider); }
.wk-footer-legal { font-size: 13px; color: var(--footer-text); }

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.wk-row { display: flex; align-items: center; gap: var(--space-md); }
.wk-row--between { justify-content: space-between; }
.wk-row--end { justify-content: flex-end; }
.wk-col { display: flex; flex-direction: column; gap: var(--space-md); }
.wk-col--sm { gap: var(--space-sm); }
.wk-col--lg { gap: var(--space-xl); }
.wk-wrap { flex-wrap: wrap; }
.wk-grow { flex: 1; }
.wk-muted { color: var(--text-2); }
.wk-small { font-size: 13px; }
.wk-strong { font-weight: 500; color: var(--text); }
.wk-center { text-align: center; }
.wk-italic-brand { font-style: italic; font-weight: 500; color: var(--brand); }

/* ==========================================================================
   Menu burger — le bouton est injecte par app.js, aucun markup a ajouter
   dans les pages. Masque au-dessus de 860px.
   ========================================================================== */
.wk-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}
.wk-burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: background-color .15s ease;
}
.wk-burger span::before,
.wk-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform .18s ease;
}
.wk-burger span::before { top: -6px; }
.wk-burger span::after { top: 6px; }
.wk-header.is-open .wk-burger span { background: transparent; }
.wk-header.is-open .wk-burger span::before { transform: translateY(6px) rotate(45deg); }
.wk-header.is-open .wk-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* palier intermediaire : on comprime le header (gouttiere de nav, libelle du
   compte, bouton) avant de basculer en burger */
@media (max-width: 1240px) {
  .wk-nav { gap: 24px; font-size: 15px; }
  .wk-account { font-size: 0; gap: 0; }
  .wk-account .wk-ico { width: 22px; height: 22px; }
  .wk-btn--header { padding: 10px 18px; font-size: 15px; }
}

@media (max-width: 1100px) {
  .wk-split { grid-template-columns: minmax(0, 1fr); }
  .wk-account-layout { grid-template-columns: minmax(0, 1fr); }
  .wk-grid, .wk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-card--cream { padding: var(--space-2xl); }
}

/* tablette / petit desktop : la nav passe en panneau deroulant.
   Seuil a 1024px : en dessous, les 5 entrees + « Mon compte » + panier +
   bouton « Commander » ne tiennent plus sur la ligne et debordaient. */
@media (max-width: 1024px) {
  .wk-burger { display: inline-flex; order: -1; flex: none; }
  .wk-header { gap: var(--space-md); }
  .wk-logo { flex: 1; min-width: 0; }
  .wk-actions { gap: var(--space-lg); flex: none; }
  .wk-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm) var(--page-px) var(--space-lg);
    background: var(--surface);
    box-shadow: var(--shadow-header);
  }
  .wk-header.is-open .wk-nav { display: flex; }
  .wk-nav a { padding: var(--space-md) 0; border-bottom: 1px solid var(--divider); }
  .wk-nav a:last-child { border-bottom: 0; }
  /* on ne garde que l'icone du compte : le libelle ne tient plus */
  .wk-account { font-size: 0; gap: 0; }
  .wk-account .wk-ico { width: 22px; height: 22px; }
  .wk-btn--header { padding: 10px 16px; font-size: 15px; }
}

/* sous 560px le CTA du header ne tient plus : chaque page porte deja son
   propre appel a l'action, on le retire plutot que de tout comprimer */
@media (max-width: 560px) {
  .wk-btn--header { display: none; }
  .wk-logo { font-size: 20px; }

  /* Options selectionnables : le prix reste sur la meme rangee que le titre
     et lui laisse ~90px, ce qui casse le libelle sur 8 lignes. On le renvoie
     sur sa propre ligne et on reduit la vignette. */
  .wk-option { flex-wrap: wrap; }
  .wk-option .wk-option-body { min-width: 0; }
  .wk-option .wk-option-price { flex: 1 0 100%; text-align: right; }
  .wk-option .wk-option-img { width: 56px; height: 56px; object-fit: contain; }

  /* lignes d'options complementaires : le libelle prend toute la largeur,
     le tag et le prix passent dessous */
  .wk-addon-row { flex-wrap: wrap; row-gap: var(--space-sm); }
  .wk-addon-row .wk-addon-body { min-width: 0; flex: 1 0 100%; }
}

@media (max-width: 720px) {
  .wk-grid, .wk-grid--2, .wk-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .wk-field-row { grid-template-columns: minmax(0, 1fr); }

  /* le bloc creme (mise en avant) passe en colonne */
  .wk-card--cream { flex-direction: column; align-items: stretch; gap: var(--space-xl); }
  .wk-card--cream .wk-thumb { width: 100% !important; height: 220px !important; }

  /* lignes de panier / commande */
  .wk-line { flex-wrap: wrap; }
  .wk-line .wk-thumb { width: 72px; height: 72px; }

  /* stepper compact */
  .wk-steps { gap: var(--space-sm); }
  .wk-step-sep { width: 16px; }
  .wk-step { font-size: 13px; }

  /* tableaux : defilement horizontal plutot que debordement de page */
  .wk-table { display: block; overflow-x: auto; white-space: nowrap; }

  .wk-footer-top { flex-direction: column; gap: var(--space-xl); }
  .wk-footer-brand { width: 100%; }
}

@media (max-width: 480px) {
  .wk-main { gap: var(--space-2xl); padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }

  /* Garde-fous anti-debordement : un libelle long ne doit jamais pousser
     la page au-dela du viewport (bouton de renouvellement, ligne de panier). */
  .wk-btn { white-space: normal; }
  .wk-line-body, .wk-option-body, .wk-summary-row { min-width: 0; }

  /* Ligne de panier : titre / quantite / prix tiennent sur une seule rangee
     et s'ecrasent. Le titre prend toute la largeur, quantite et prix passent
     dessous. */
  .wk-line-body > .wk-row--between { flex-wrap: wrap; row-gap: var(--space-md); }
  /* !important : ces colonnes portent un flex:1 en attribut inline */
  .wk-line-body > .wk-row--between > .wk-col:first-child { flex: 1 0 100% !important; }
  .wk-line { gap: var(--space-md); }
  .wk-line > .wk-thumb { width: 64px !important; height: 64px !important; }
  .wk-btn--primary { padding: var(--space-md) var(--space-xl); font-size: 16px; }
  .wk-modal { padding: var(--space-xl); }
  .wk-line .wk-thumb { width: 56px; height: 56px; }
}
