/* Triplan Design System — Phase 1
 * Source: triplan.ma live Elementor kit + homepage styles, reviewed 2026-04-29.
 * Tokens are global on :root. Component classes (tp-*) are global and additive.
 * Showcase-chrome classes are scoped under .tp-ds-preview to avoid clobbering
 * Elementor / theme styles. The prototype's `*` reset and `body` rule are
 * deliberately omitted so this file is purely additive.
 */

:root {
  /* ============================================================
   * TRIPLAN DESIGN SYSTEM — V5 (repoint 2026-07-14)
   * Marque : Cyan #1BBACA · Midnight var(--tp-midnight) · Ivory #F6F3EE · Terracotta #D9784B (décoratif).
   * Les NOMS de tokens legacy (--tp-primary, --tp-900, --tp-heading-font…) sont
   * conservés et repointés vers les valeurs V5 pour que les composants existants
   * héritent du nouveau look ; les tokens nommés V5 sont ajoutés à côté.
   * Étape 1 : reprise des couleurs/fontes encore en dur dans 36 fichiers.
   * ============================================================ */

  /* ── Marque V5 ──────────────────────────────────────────── */
  --tp-cyan:        #1BBACA;   /* CTA principal, identité B2C */
  --tp-cyan-hover:  #087C89;   /* hover CTA + liens accent */
  --tp-midnight:    #0B2239;   /* structure, texte, footer, B2B, overlays */
  --tp-ivory:       #F6F3EE;   /* grandes surfaces B2C */
  --tp-terracotta:  #D9784B;   /* accent DÉCORATIF — jamais un CTA */
  --tp-cyan-soft:   #9DE2E8;   /* accent clair sur midnight */
  --tp-cyan-tint:   #DDF6F8;   /* fonds d'icône */
  --tp-on-primary:  #FFFFFF;   /* texte/icônes sur boutons cyan ou bleu */

  /* ── Alias legacy repointés (compat composants existants) ── */
  --tp-primary:       #1BBACA;   /* était #40A1B7 */
  --tp-primary-dark:  #087C89;   /* était #29525D */
  --tp-primary-light: #9DE2E8;   /* était #d0eef4 */
  --tp-primary-50:    #DDF6F8;   /* était #eaf6f9 */
  --tp-accent:        #1BBACA;   /* action → cyan (était #fb8e28) — terracotta n'est jamais un CTA */
  --tp-accent-dark:   #087C89;   /* était #d96f17 */
  --tp-accent-light:  #DDF6F8;   /* était #ffe1c4 */
  --tp-text:          var(--tp-ink);        /* alias: texte principal (indéfini avant → legacy #1A2B49) */
  --tp-secondary:     var(--tp-cyan-hover); /* alias: accent profond de marque (était #29525D) */

  /* ── États (singles conservés + paires V5) ──────────────── */
  --tp-success:  #22c55e;
  --tp-warning:  #f59e0b;
  --tp-danger:   #ef4444;
  --tp-info:     #06b6d4;
  --tp-ok-bg:   #CDEBDD; --tp-ok-fg:   #0B5C3E;   /* Départ garanti */
  --tp-warn-bg: #F4E7D2; --tp-warn-fg: #9A5B00;   /* Dernières places */
  --tp-err-bg:  #F6D8D2; --tp-err-fg:  #8A1F14;   /* Complet / erreur */

  /* ── Neutres (échelle repointée vers V5 ink/slate/ivory) ── */
  --tp-900: #0B2239;   /* midnight / ink (était #1A2B49) */
  --tp-800: #1f2937;
  --tp-700: #3A4A57;   /* slate — texte courant (était #374151) */
  --tp-600: #4b5563;
  --tp-500: #5C6B79;   /* muted — texte secondaire (était #6b7280) */
  --tp-text-muted: #5C6B79;
  --tp-400: #8A96A1;   /* faint — légendes/méta (était #9ca3af) */
  --tp-300: #E4DED3;   /* line-2 — bordures champs, chaud (était #d1d5db) */
  --tp-200: #E7E0D4;   /* line — bordures sur ivory, chaud (était #e5e7eb) */
  --tp-100: #F1ECE3;   /* cream — bandes de respiration (était #f3f4f6) */
  --tp-50:  #FBF9F5;   /* surface-2 — champs/fonds doux (était #f9fafb) */
  --tp-surface-muted: #EDE6D9;   /* surface muette chaude (était #e7ebf0) */
  --tp-white: #ffffff;

  /* Tokens neutres nommés V5 (alias explicites) */
  --tp-ink:      #0B2239;
  --tp-slate:    #3A4A57;
  --tp-muted:    #5C6B79;
  --tp-faint:    #8A96A1;
  --tp-line:     #E7E0D4;
  --tp-line-2:   #E4DED3;
  --tp-surface:  #FFFFFF;
  --tp-surface-2:#FBF9F5;
  --tp-cream:    #F1ECE3;

  /* ── Rayons (8px-grid V5) ───────────────────────────────── */
  --tp-r-sm:   0.375rem;   /* 6px */
  --tp-r-md:   0.75rem;    /* 12px — boutons/champs V5 (était 8px) */
  --tp-r-lg:   0.75rem;    /* 12px */
  --tp-r-xl:   1rem;       /* 16px */
  --tp-r-2xl:  1.5rem;     /* 24px */
  --tp-r-full: 9999px;
  --tp-card-radius:    18px;   /* cartes V5 (était 14px) */
  --tp-control-radius: 12px;   /* boutons/champs V5 (était 10px) */
  --tp-r-card-lg: 20px;        /* grandes cartes */
  --tp-r-pill:    11px;        /* pills/chips */
  --tp-r-screen:  26px;        /* plein écran */

  /* ── Ombres (accent/primary repointés cyan) ─────────────── */
  --tp-shadow-sm: 0 1px 3px rgba(15, 27, 45, 0.06);
  --tp-shadow-md: 0 6px 18px rgba(15, 27, 45, 0.09);
  --tp-shadow-lg: 0 12px 30px rgba(15, 27, 45, 0.12);
  --tp-shadow-xl: 0 20px 46px rgba(15, 27, 45, 0.16);
  --tp-shadow-accent:  0 10px 30px -5px rgba(27,186,202,0.40);   /* glow cyan (était orange) */
  --tp-shadow-primary: 0 10px 30px -5px rgba(27,186,202,0.40);   /* glow cyan (était teal) */

  /* ── Typographie V5 ─────────────────────────────────────── */
  --tp-heading-font: 'Bricolage Grotesque', system-ui, sans-serif;   /* était Poppins */
  --tp-body-font:    'Inter', system-ui, sans-serif;                 /* était Poppins */
  --tp-action-font:  'Inter', system-ui, sans-serif;                 /* était Lato */
  --tp-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --tp-font-body:    'Inter', system-ui, sans-serif;
  --tp-font-accent:  'Fraunces', Georgia, serif;                     /* italique éditorial RARE */
  --tp-font-ar:      'IBM Plex Sans Arabic', system-ui, sans-serif;

  /* ── Gabarit & espacements ──────────────────────────────── */
  --tp-content-max-width: 1200px;   /* listings (était 1440px) */
  --tp-content-narrow:    1100px;   /* contenu */
  --tp-content-text:       820px;   /* texte long */
  --tp-section-padding-x-desktop: clamp(16px, 4vw, 48px);
  --tp-section-padding-x-mobile: 16px;
  --tp-section-padding-y: clamp(44px, 7vw, 84px);
  --tp-section-spacing-y: 48px;
  --tp-section-title-size: clamp(23px, 6.5vw, 30px);   /* H2 V5 */
  --tp-section-title-size-mobile: 1.5rem;
  --tp-h1-size: clamp(30px, 8.5vw, 40px);              /* H1 V5 */
  --tp-space-1: 8px;  --tp-space-2: 12px; --tp-space-3: 16px; --tp-space-4: 24px;
  --tp-space-5: 32px; --tp-space-6: 48px; --tp-space-7: 64px;

  /* ── Motion ─────────────────────────────────────────────── */
  --tp-motion-fast: 160ms;
  --tp-motion-base: 220ms;
}

/* NAV */
.tp-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 68px; position: relative; z-index: 10; }
.tp-nav--transparent { background: transparent; }
.tp-nav--solid { background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.tp-nav--dark { background: var(--tp-900); }
.tp-nav__logo { font-family: var(--tp-heading-font); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; }
.tp-logo-icon { width: 32px; height: 32px; background: var(--tp-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--tp-midnight); font-size: 16px; }
.tp-nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.tp-nav__links a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: var(--tp-r-md); transition: background 0.15s; white-space: nowrap; }
.tp-nav--transparent .tp-nav__links a, .tp-nav--transparent .tp-nav__logo { color: #fff; }
.tp-nav--transparent .tp-nav__links a:hover { background: rgba(255,255,255,0.15); }
.tp-nav--solid .tp-nav__links a { color: var(--tp-700); }
.tp-nav--solid .tp-nav__links a:hover { background: var(--tp-50); }
.tp-nav--dark .tp-nav__links a, .tp-nav--dark .tp-nav__logo { color: #fff; }
.tp-nav--dark .tp-nav__links a:hover { background: rgba(255,255,255,0.08); }
.tp-nav__actions { display: flex; align-items: center; gap: 10px; }
.tp-nav__cta { font-size: 13px; font-weight: 600; padding: 9px 20px; border-radius: var(--tp-r-md); border: none; cursor: pointer; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s; font-family: var(--tp-body-font); }
.tp-nav__cta:hover { transform: translateY(-1px); }
.tp-nav__cta--orange { background: var(--tp-cyan); color: var(--tp-on-primary); }
.tp-nav__cta--orange:hover { background: var(--tp-cyan-hover); color: #fff; }
.tp-nav__cta--ghost { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.tp-nav__cta--outline { background: transparent; color: var(--tp-700); border: 1.5px solid var(--tp-300); }
.tp-hero-strip { background: linear-gradient(135deg, #0f1a2e 0%, #1a3a5c 60%, #0d2640 100%); position: relative; overflow: hidden; }
.tp-hero-strip::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 40px); }

/* MOBILE NAV */
.tp-nav-mobile { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: 60px; }
.tp-hamburger { width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: var(--tp-r-md); }
.tp-hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; }
.tp-hamburger--light span { background: #fff; }
.tp-hamburger--dark span { background: var(--tp-800); }
.tp-mobile-drawer { background: #fff; padding: 8px 0 16px; border-top: 1px solid var(--tp-100); }
.tp-mobile-drawer a { display: block; text-decoration: none; padding: 12px 20px; font-size: 15px; font-weight: 500; color: var(--tp-800); }
.tp-mobile-drawer-cta { margin: 12px 20px 0; display: block; text-align: center; background: var(--tp-cyan); color: var(--tp-on-primary); font-weight: 700; font-size: 15px; padding: 13px; border-radius: var(--tp-control-radius); text-decoration: none; }

/* FOOTER A — Classique */
.tp-footer-a { background: var(--tp-900); color: #fff; padding: 56px 40px 28px; }
.tp-footer-a__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.tp-footer-a__brand { font-family: var(--tp-heading-font); font-weight: 800; font-size: 24px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.tp-footer-a__tagline { font-size: 14px; color: var(--tp-400); line-height: 1.6; margin-bottom: 20px; max-width: 260px; }
.tp-footer-a__socials { display: flex; gap: 10px; }
.tp-social-icon { width: 36px; height: 36px; border-radius: var(--tp-r-md); background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: background 0.15s; }
.tp-social-icon:hover, .tp-social-icon:focus-visible { background: var(--tp-cyan-hover); color: #fff; }
.tp-footer-a__col-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tp-400); margin-bottom: 16px; }
.tp-footer-a__links { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.tp-footer-a__links a { text-decoration: none; font-size: 14px; color: var(--tp-300); transition: color 0.15s; }
.tp-footer-a__links a:hover { color: #fff; }
.tp-footer-a__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: var(--tp-500); }
.tp-footer-a__newsletter { display: flex; gap: 8px; margin-top: 12px; }
.tp-footer-a__newsletter input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--tp-r-md); color: #fff; font-size: 13px; outline: none; font-family: var(--tp-body-font); }
.tp-footer-a__newsletter input::placeholder { color: var(--tp-500); }
.tp-footer-a__newsletter button { padding: 10px 18px; background: var(--tp-cyan); color: var(--tp-on-primary); border: none; border-radius: var(--tp-control-radius); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: var(--tp-body-font); }

/* FOOTER B — Bold accent */
.tp-footer-b { background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%); color: #fff; padding: 48px 40px 28px; position: relative; overflow: hidden; }
.tp-footer-b::before { content: ''; position: absolute; top: -60px; right: -60px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(27, 186, 202,0.08) 0%, transparent 70%); pointer-events: none; }
.tp-footer-b__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.tp-footer-b__brand { font-family: var(--tp-heading-font); font-weight: 800; font-size: 28px; margin-bottom: 8px; }
.tp-footer-b__brand span { color: var(--tp-accent); }
.tp-footer-b__tagline { font-size: 14px; color: var(--tp-400); max-width: 300px; line-height: 1.6; margin-bottom: 20px; }
.tp-footer-b__links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tp-footer-b__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: var(--tp-500); }
.tp-footer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25); border-radius: var(--tp-r-full); font-size: 12px; color: #86efac; margin-bottom: 16px; }

/* BUTTONS — V5: flat cyan CTA, midnight text, calm states + focus/disabled */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: none; cursor: pointer; font-family: var(--tp-body-font); font-weight: 700; border-radius: var(--tp-control-radius); transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; text-decoration: none; }
.tp-btn:focus-visible { outline: 3px solid var(--tp-cyan-hover); outline-offset: 2px; }
.tp-btn:disabled, .tp-btn[disabled], .tp-btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.tp-btn--sm  { min-height: 40px; font-size: 13px; padding: 8px 16px; }
.tp-btn--md  { min-height: 44px; font-size: 14px; padding: 11px 22px; }
.tp-btn--lg  { min-height: 50px; font-size: 15px; padding: 14px 28px; }
.tp-btn--xl  { min-height: 54px; font-size: 16px; padding: 16px 30px; }
.tp-btn--primary, .tp-btn--blue { background: var(--tp-cyan); color: var(--tp-on-primary); }
.tp-btn--primary:hover, .tp-btn--primary:focus-visible, .tp-btn--blue:hover, .tp-btn--blue:focus-visible { background: var(--tp-cyan-hover); color: #fff; }
.tp-btn--secondary { background: var(--tp-surface); color: var(--tp-ink); border: 1.5px solid var(--tp-line); }
.tp-btn--secondary:hover, .tp-btn--secondary:focus-visible { background: var(--tp-cyan-tint); border-color: var(--tp-cyan); color: var(--tp-cyan-hover); }
.tp-btn--ghost { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.tp-btn--ghost:hover { background: rgba(255,255,255,0.2); }
.tp-btn--text { background: transparent; color: var(--tp-cyan-hover); padding-left: 0; padding-right: 0; min-height: 0; }
.tp-btn--text:hover { color: var(--tp-midnight); text-decoration: underline; }
.tp-btn--danger { background: var(--tp-danger); color: #fff; }
.tp-btn--danger:hover, .tp-btn--danger:focus-visible { background: #c93636; color: #fff; filter: none; }

/* BADGES */
.tp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--tp-r-full); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tp-badge--available { background: var(--tp-ok-bg); color: var(--tp-ok-fg); }
.tp-badge--limited   { background: var(--tp-warn-bg); color: var(--tp-warn-fg); }
.tp-badge--soldout   { background: var(--tp-err-bg); color: var(--tp-err-fg); }
.tp-badge--new       { background: var(--tp-cyan-soft); color: var(--tp-midnight); }
.tp-badge--info      { background: var(--tp-cyan-tint); color: var(--tp-cyan-hover); }
.tp-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* INPUTS */
.tp-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--tp-line-2); border-radius: var(--tp-control-radius); font-size: 15px; font-family: var(--tp-body-font); color: var(--tp-ink); background: var(--tp-surface-2); outline: none; transition: border-color 0.15s, box-shadow 0.15s; display: block; }
.tp-input:focus { border-color: var(--tp-cyan); box-shadow: 0 0 0 3px var(--tp-cyan-tint); }
.tp-input::placeholder { color: var(--tp-faint); }
.tp-input--error { border-color: var(--tp-danger); }
.tp-input--error:focus { box-shadow: 0 0 0 3px var(--tp-err-bg); }
.tp-field { display: flex; flex-direction: column; gap: 6px; }
.tp-label { font-size: 13px; font-weight: 600; color: var(--tp-700); }
.tp-hint { font-size: 12px; color: var(--tp-400); }
.tp-error { font-size: 12px; color: var(--tp-danger); }

/* CHIPS */
.tp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--tp-100); border-radius: var(--tp-r-full); font-size: 13px; font-weight: 500; color: var(--tp-700); }

/* TRIP CARD */
.tp-trip-card { border-radius: var(--tp-r-xl); overflow: hidden; background: var(--tp-white); box-shadow: var(--tp-shadow-md); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tp-trip-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-xl); }
.tp-trip-card__img { aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center; }
.tp-trip-card__img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%); }
.tp-trip-card__body { padding: 16px 18px; }
.tp-trip-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tp-trip-card__name { font-family: var(--tp-heading-font); font-size: 16px; font-weight: 700; color: var(--tp-900); line-height: 1.25; margin-bottom: 12px; }
.tp-trip-card__footer { display: flex; align-items: center; justify-content: space-between; }
.tp-trip-card__price { font-family: var(--tp-heading-font); font-size: 22px; font-weight: 800; color: var(--tp-primary); line-height: 1; }
.tp-trip-card__price-label { font-size: 11px; color: var(--tp-400); margin-top: 2px; }

/* ============================================================
 * Showcase chrome — only applies inside [triplan_design_system_preview]
 * ============================================================ */
.tp-ds-preview { font-family: var(--tp-body-font); color: var(--tp-900); background: #f0ede8; padding: 48px 40px; max-width: 1600px; margin: 0 auto; }
.tp-ds-preview * { box-sizing: border-box; }
.tp-ds-preview h1 { font-family: var(--tp-heading-font); font-size: 28px; font-weight: 800; color: var(--tp-900); margin: 0 0 6px; }
.tp-ds-preview p.tp-ds-subtitle { font-size: 14px; color: var(--tp-500); margin: 0; }
.tp-ds-preview .tp-ds-header { margin-bottom: 56px; }
.tp-ds-preview .tp-ds-section { margin-bottom: 72px; }
.tp-ds-preview .tp-ds-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tp-400); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.tp-ds-preview .tp-ds-section-label::after { content: ''; flex: 1; height: 1px; background: var(--tp-200); }
.tp-ds-preview .tp-ds-col-label { font-size: 11px; font-weight: 600; color: var(--tp-400); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.tp-ds-preview .tp-ds-card { background: #fff; border-radius: 16px; padding: 28px 32px; border: 1px solid var(--tp-200); display: flex; flex-direction: column; gap: 20px; }
.tp-ds-preview .tp-ds-card--lg { padding: 32px 36px; }
.tp-ds-preview .tp-ds-artboard { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--tp-shadow-lg); border: 1px solid var(--tp-200); }
.tp-ds-preview .tp-ds-artboard-label { font-size: 11px; font-weight: 600; color: var(--tp-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.tp-ds-preview .tp-ds-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tp-ds-preview .tp-ds-swatch-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-ds-preview .tp-ds-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tp-ds-preview .tp-ds-swatch-color { width: 48px; height: 48px; border-radius: var(--tp-r-md); box-shadow: var(--tp-shadow-sm); border: 1px solid rgba(0,0,0,0.06); }
.tp-ds-preview .tp-ds-swatch-label { font-size: 10px; font-family: monospace; color: var(--tp-500); text-align: center; }
.tp-ds-preview .tp-ds-typo-row { display: flex; align-items: baseline; gap: 24px; }
.tp-ds-preview .tp-ds-typo-meta { width: 140px; font-size: 11px; color: var(--tp-400); font-family: monospace; flex-shrink: 0; }
.tp-ds-preview .tp-ds-typo-text { line-height: 1.2; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tp-900); }
.tp-ds-preview .tp-ds-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tp-ds-preview .tp-ds-cards-row { display: flex; gap: 16px; flex-wrap: wrap; }
.tp-ds-preview .tp-ds-cards-row .tp-trip-card { width: 220px; }
.tp-ds-preview .tp-ds-btn-dark-bg { background: #1a2e4a; padding: 16px 20px; border-radius: var(--tp-r-lg); margin-top: 4px; }
.tp-ds-preview .tp-ds-code { display: inline-flex; width: fit-content; max-width: 100%; padding: 10px 12px; border-radius: var(--tp-r-md); background: var(--tp-100); color: var(--tp-900); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.tp-ds-preview .tp-ds-note { margin: 0; color: var(--tp-500); font-size: 13px; line-height: 1.5; }

/* ============================================================
 * V5 primitives — alerts, skeleton, focus baseline (Étape 2a)
 * ============================================================ */

/* Alerts */
.tp-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--tp-control-radius); font-size: 14px; font-family: var(--tp-body-font); line-height: 1.5; border: 1px solid transparent; }
.tp-alert--info    { background: var(--tp-cyan-tint); color: var(--tp-cyan-hover); border-color: var(--tp-cyan-soft); }
.tp-alert--success { background: var(--tp-ok-bg);   color: var(--tp-ok-fg); }
.tp-alert--warning { background: var(--tp-warn-bg); color: var(--tp-warn-fg); }
.tp-alert--danger  { background: var(--tp-err-bg);  color: var(--tp-err-fg); }

/* Skeleton loading — V5 shimmer (#ECE6DA -> #F4EFE6 -> #ECE6DA) */
.tp-skeleton { position: relative; overflow: hidden; background: #ECE6DA; border-radius: var(--tp-r-md); }
.tp-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, #ECE6DA 0%, #F4EFE6 50%, #ECE6DA 100%); animation: tp-skeleton-shimmer 1.4s ease-in-out infinite; }
@keyframes tp-skeleton-shimmer { 100% { transform: translateX(100%); } }

/* Focus-visible baseline for public interactive elements (a11y) */
.tp-website-page a:focus-visible,
.tp-website-page button:focus-visible,
.tp-website-page [role="button"]:focus-visible,
.tp-website-page input:focus-visible,
.tp-website-page select:focus-visible,
.tp-website-page textarea:focus-visible,
.tp-ds-preview :focus-visible { outline: 3px solid var(--tp-cyan-hover); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tp-skeleton::after { animation: none; }
  .tp-btn, .tp-input { transition: none; }
}
