/* ==========================================================================
   TEKKI FOR LIFE BUSINESS — socle graphique commun (boutique + espace équipe)
   Esprit « coastal soundstage » : blanc, noir profond, titres condensés 900.
   ========================================================================== */
:root {
  /* Couleurs */
  --white: #ffffff;        /* Soprano White — fond de page */
  --mist: #f8f8f8;         /* Studio Mist — tuiles produits, champs pilule */
  --porcelain: #f1efee;    /* Warm Porcelain — bandes de transition */
  --ink: #131317;          /* Bass Black — texte, traits, boutons pleins */
  --gray: #b4bec7;         /* Countertenor Gray — bandeau d'annonce */
  --steel: #949494;        /* Steel Gray — séparateurs fins, contours inactifs */
  --charcoal: #40464b;     /* Charcoal Helper — liens secondaires */
  --black: #000000;
  --placeholder: #545454;
  --blue: #005bff;         /* Chord Blue — liens « en savoir plus » uniquement */
  --line: rgba(19, 19, 23, .14);
  --danger: #b42318;
  --warn: #b54708;
  --ok: #1a7f37;

  /* Typographie */
  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-text: 'Inter', Arial, 'Helvetica Neue', sans-serif;

  /* Mouvement */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  /* Mise en page */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 120px);
}
/* Vieux téléphones sans clamp() (iPhone sous iOS 12 ou 13, anciens Android) : marges fixes */
@supports not (width: clamp(1px, 1vw, 2px)) { :root { --gutter: 16px; --section: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--white); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typographie ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: .015em;
}
.heading {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.eyebrow {
  font: 500 12px/1.33 var(--f-text);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.muted { color: var(--charcoal); }
.link-blue { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Icônes ---------- */
.i {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.i--fill { fill: currentColor; stroke: none; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }

/* ---------- Boutons (coins 2px, label qui « roule » au survol) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: var(--white); color: var(--ink);
  font: 500 15px/1.5 var(--f-text); letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease), opacity .3s;
}
.btn::before {
  content: ''; position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .6s var(--ease);
}
.btn:hover::before { transform: scaleY(1); transform-origin: 50% 100%; }
.btn:hover { color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink::before { background: var(--white); }
.btn--ink:hover { color: var(--ink); }
.btn--outline { background: transparent; }
.btn--light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--light::before { background: var(--white); }
.btn--light:hover { color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn .i { transition: transform .5s var(--ease); }
.btn:hover .i--nudge { transform: translateX(4px); }

.roll { position: relative; display: inline-block; overflow: hidden; height: 1.5em; vertical-align: top; }
.roll > span { position: relative; display: block; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; width: 100%; }
.btn:hover .roll > span, .roll-host:hover .roll > span { transform: translateY(-100%); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1.5 var(--f-text); letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease);
}
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow .i { transition: transform .5s var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

.u-link {
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.u-link:hover { background-size: 100% 1px; background-position: 0 100%; }

/* Bouton icône circulaire */
.icon-btn {
  position: relative;
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, color .3s, transform .5s var(--ease);
}
.icon-btn:hover { background: var(--mist); }
.icon-btn--ring { border-color: var(--ink); background: var(--white); }
.icon-btn--ring:hover { background: var(--ink); color: var(--white); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Badges & pastilles ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 88px;
  background: var(--ink); color: var(--white);
  font: 500 12px/1.33 var(--f-text); letter-spacing: .02em; white-space: nowrap;
}
.badge--light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.badge--muted { background: var(--gray); color: var(--ink); }
.badge--mist { background: var(--mist); color: var(--ink); }

/* ---------- Champs ---------- */
.pill-field {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  background: var(--mist); border: 1px solid transparent; border-radius: 9999px;
  transition: border-color .3s, background-color .3s;
}
.pill-field:focus-within { border-color: var(--ink); background: var(--white); }
.pill-field input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 14px 0; color: var(--black); }
.pill-field input::placeholder { color: var(--placeholder); }

.field { display: grid; gap: 6px; }
.field__label { font: 500 13px/1.3 var(--f-text); letter-spacing: .02em; }
.field__label em { font-style: normal; color: var(--charcoal); font-weight: 400; }
.field__hint { font-size: 12px; line-height: 1.4; color: var(--charcoal); }
.field__error { font-size: 12px; line-height: 1.4; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border: 1px solid var(--steel); border-radius: 2px;
  background: var(--white); color: var(--black);
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23131317' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

/* Choix sous forme de pilules (paiement, options, filtres) */
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--steel); border-radius: 9999px;
  font: 500 14px/1.2 var(--f-text);
  cursor: pointer; user-select: none;
  transition: background-color .3s, color .3s, border-color .3s;
}
.choice span:hover { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Interrupteur */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  width: 40px; height: 24px; flex: none; border-radius: 99px;
  background: var(--gray); position: relative; transition: background-color .3s;
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  transition: transform .45s var(--ease-back);
}
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Sélecteur de quantité */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--steel); border-radius: 9999px; height: 40px;
}
.qty button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; transition: background-color .25s; }
.qty button:hover { background: var(--mist); }
.qty button:disabled { opacity: .3; pointer-events: none; }
.qty output, .qty input { min-width: 28px; width: 34px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; border: 0; background: none; padding: 0; }

/* ---------- Divers ---------- */
.spinner {
  width: 18px; height: 18px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: tfl-spin .7s linear infinite;
}
@keyframes tfl-spin { to { transform: rotate(360deg); } }

.skel {
  background: linear-gradient(100deg, #f1f1f1 30%, #fafafa 50%, #f1f1f1 70%);
  background-size: 300% 100%;
  animation: tfl-shimmer 1.5s ease-in-out infinite;
}
@keyframes tfl-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

img.is-broken { opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
