/* ==========================================================================
   KOCHI DIGITAL — GLOBAL STYLES FOR /apps/ PAGES
   Corrections responsive complètes, mobile-first, WCAG 2.1 AA
   Largeur desktop maîtrisée (max 1200px)
   ========================================================================== */

/* ==========================================================================
   PRÉVENTION DU DÉBORDEMENT HORIZONTAL (GLOBAL)
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.app-detail-hero,
.app-detail-hero *,
.legal-card,
.legal-card *,
.landlord-suite-wrapper,
.landlord-suite-wrapper * {
  max-width: 100%;
  box-sizing: border-box;
}

.app-detail-hero {
  padding: 3rem 0 2.5rem 0;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.app-detail-hero img,
.app-detail-hero svg,
.app-detail-hero video {
  max-width: 100%;
  height: auto;
}

/* Césure automatique pour textes longs */
.app-detail-title,
.app-detail-tagline,
.legal-text,
.legal-heading,
.landlord-feat-box p,
.landlord-feat-box h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Flexbox : éviter les débordements */
.app-detail-info,
.landlord-suite-header > div,
.landlord-feat-header > div {
  min-width: 0;
}

/* ==========================================================================
   HEADER CARD — APP DETAIL
   ========================================================================== */
.app-detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.app-detail-icon-lg {
  width: 88px;
  height: 88px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 3.5rem;
}

.app-detail-info {
  flex: 1;
  min-width: 0;
}

.app-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.app-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color-strong);
  color: var(--text-secondary);
  white-space: nowrap;
  max-width: 100%;
}

html.light .app-meta-tag {
  background: rgba(15, 23, 42, 0.04);
}

.app-detail-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.app-detail-tagline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* Stats Bar */
.app-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

html.light .app-detail-stats {
  background: rgba(15, 23, 42, 0.03);
}

.app-detail-stat-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  white-space: nowrap;
}

.app-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Actions */
.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

.store-buttons-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: #000000;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
}

.btn-store:hover {
  background: #1A1A1A;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   LEGAL CARD (conteneur principal)
   ========================================================================== */
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
  text-align: left;
  overflow: hidden;
  max-width: 100%;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-heading {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.legal-heading svg {
  flex-shrink: 0;
}

.legal-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-callout {
  background: var(--accent-primary-bg);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.65;
}

/* ==========================================================================
   PHONE CAROUSEL (Vertical Smartphone Showcase)
   ========================================================================== */
.phone-carousel-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.phone-portfolio-viewport {
  overflow: hidden;
  padding: 1.5rem 0.5rem 2rem 0.5rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.phone-portfolio-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.phone-slide-card-item {
  flex: 0 0 auto;
  width: 240px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* Phone Device Frame */
.phone-device-frame {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  background: #0B0E17;
  border-radius: 32px;
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 0 6px #1E293B,
    0 20px 40px -10px rgba(0, 0, 0, 0.6),
    0 8px 16px rgba(0, 0, 0, 0.4);
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-device-frame:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 2px rgba(16, 185, 129, 0.5),
    0 0 0 6px #1E293B,
    0 25px 50px -10px rgba(16, 185, 129, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.5);
}

html.light .phone-device-frame {
  background: #FFFFFF;
  box-shadow: 
    0 0 0 2px rgba(15, 23, 42, 0.1),
    0 0 0 6px #CBD5E1,
    0 20px 40px -10px rgba(15, 23, 42, 0.2);
}

.phone-device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 18px;
  background: #000000;
  border-radius: 10px;
  z-index: 5;
}

.phone-device-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #1E293B;
  position: relative;
}

.phone-device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-device-home-bar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 5;
}

/* Phone Caption */
.phone-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-display);
  max-width: 100%;
  padding: 0 0.25rem;
}

.phone-format-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.phone-format-badge.badge-jpg {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.phone-format-badge.badge-webp {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.phone-format-badge.badge-png {
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

/* Controls */
.phone-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.btn-phone-nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-phone-nav:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  transform: scale(1.08);
}

.btn-phone-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.phone-dots-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color-strong);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.phone-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent-primary);
}

.phone-indicator-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 0.5rem;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   LANDLORD SUITE WRAPPER
   ========================================================================== */
.landlord-suite-wrapper {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow: hidden;
}

html.light .landlord-suite-wrapper {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.98));
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.landlord-suite-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  max-width: 100%;
}

html.light .landlord-suite-header {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.landlord-suite-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.landlord-suite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.landlord-suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
}

.landlord-feat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  max-width: 100%;
  overflow: hidden;
}

html.light .landlord-feat-box {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.1);
}

.landlord-feat-box:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.15);
}

.landlord-feat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.landlord-feat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.landlord-feat-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.landlord-feat-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landlord-feat-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* ==========================================================================
   APP SPECS TABLE
   ========================================================================== */
.app-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  display: table;
  table-layout: fixed;
}

.app-specs-table tr {
  border-bottom: 1px solid var(--border-color);
}

.app-specs-table tr:last-child {
  border-bottom: none;
}

.app-specs-table th,
.app-specs-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.app-specs-table th {
  width: 40%;
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

html.light .app-specs-table th {
  background: rgba(15, 23, 42, 0.03);
}

.app-specs-table td {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
  max-width: 100%;
  flex-wrap: wrap;
}

.breadcrumb:hover {
  color: var(--accent-primary);
}

/* ==========================================================================
   LARGEUR DESKTOP MAÎTRISÉE
   ========================================================================== */
@media (min-width: 1200px) {
  .app-detail-hero .container {
    max-width: 1100px;
  }

  .app-detail-header-card,
  .legal-card,
  .landlord-suite-wrapper {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1400px) {
  .app-detail-hero .container {
    max-width: 1200px;
  }

  .app-detail-header-card,
  .legal-card,
  .landlord-suite-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   RESPONSIVE — TABLETTE (max 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .app-detail-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .app-detail-badges {
    justify-content: center;
  }

  .app-detail-stats {
    justify-content: center;
    gap: 1rem;
  }

  .app-detail-actions {
    justify-content: center;
    width: 100%;
  }

  .store-buttons-group {
    justify-content: center;
    width: 100%;
  }

  .app-detail-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .app-detail-hero {
    padding: 2rem 0 1.5rem 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Header card */
  .app-detail-header-card {
    padding: 1.5rem 1.15rem;
    border-radius: 1.25rem;
    gap: 1.25rem;
  }

  .app-detail-icon-lg {
    width: 76px !important;
    height: 76px !important;
    font-size: 2.75rem !important;
    border-radius: 1rem !important;
  }

  .app-detail-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .app-detail-tagline {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .app-meta-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  /* Stats */
  .app-detail-stats {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
    justify-content: space-around;
  }

  .app-detail-stat-item {
    flex: 1 1 40%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .app-stat-val {
    font-size: 0.95rem;
  }

  .app-stat-lbl {
    font-size: 0.65rem;
  }

  /* Actions */
  .app-detail-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .store-buttons-group {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .app-detail-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  /* Legal card */
  .legal-card {
    padding: 1.5rem 1.15rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
  }

  .legal-heading {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .legal-heading svg {
    width: 18px;
    height: 18px;
  }

  .legal-text {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  /* Phone carousel */
  .phone-slide-card-item {
    width: 200px;
    max-width: 200px;
  }

  .phone-device-frame {
    max-width: 200px;
    border-radius: 26px;
    padding: 6px;
  }

  .phone-device-screen {
    border-radius: 20px;
  }

  .phone-device-notch {
    width: 56px;
    height: 15px;
    top: 11px;
  }

  .phone-device-home-bar {
    width: 64px;
    height: 3px;
    bottom: 11px;
  }

  .phone-portfolio-track {
    gap: 1rem;
  }

  .phone-caption {
    font-size: 0.75rem;
  }

  .phone-carousel-controls {
    gap: 0.65rem;
  }

  .btn-phone-nav {
    width: 2.4rem;
    height: 2.4rem;
  }

  .phone-indicator-text {
    font-size: 0.72rem;
    min-width: 70px;
    padding: 0 0.25rem;
  }

  /* Landlord suite */
  .landlord-suite-wrapper {
    padding: 1.5rem 1.15rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
  }

  .landlord-suite-header {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .landlord-suite-badges {
    width: 100%;
  }

  .landlord-suite-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    flex: 1 1 auto;
    justify-content: center;
  }

  .landlord-suite-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .landlord-feat-box {
    padding: 1.25rem 1.15rem;
    border-radius: 12px;
  }

  .landlord-feat-icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .landlord-feat-box h3 {
    font-size: 1rem !important;
  }

  .landlord-feat-box p {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  /* Specs table — scroll horizontal */
  .app-specs-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    table-layout: auto;
  }

  .app-specs-table th,
  .app-specs-table td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  .app-specs-table th {
    width: auto;
    min-width: 140px;
  }

  .breadcrumb {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   RESPONSIVE — PETIT MOBILE (max 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .app-detail-header-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }

  .app-detail-icon-lg {
    width: 68px !important;
    height: 68px !important;
    font-size: 2.4rem !important;
  }

  .app-detail-title {
    font-size: 1.3rem;
  }

  .app-detail-tagline {
    font-size: 0.85rem;
  }

  .app-detail-stats {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  .app-detail-stat-item {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .app-stat-val {
    font-size: 0.9rem;
  }

  .app-stat-lbl {
    font-size: 0.6rem;
  }

  /* Phone carousel */
  .phone-slide-card-item {
    width: 175px;
    max-width: 175px;
  }

  .phone-device-frame {
    max-width: 175px;
    border-radius: 22px;
    padding: 5px;
  }

  .phone-device-screen {
    border-radius: 17px;
  }

  .phone-device-notch {
    width: 48px;
    height: 13px;
    top: 9px;
  }

  .phone-device-home-bar {
    width: 56px;
    height: 3px;
    bottom: 9px;
  }

  .phone-portfolio-track {
    gap: 0.85rem;
  }

  .phone-caption {
    font-size: 0.7rem;
    gap: 0.35rem;
  }

  .phone-format-badge {
    font-size: 0.6rem;
    padding: 0.12rem 0.4rem;
  }

  .phone-carousel-controls {
    gap: 0.5rem;
  }

  .btn-phone-nav {
    width: 2.2rem;
    height: 2.2rem;
  }

  .btn-phone-nav svg {
    width: 16px;
    height: 16px;
  }

  .phone-indicator-text {
    font-size: 0.68rem;
    min-width: 60px;
  }

  /* Landlord */
  .landlord-suite-wrapper {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }

  .landlord-feat-box {
    padding: 1rem;
  }

  .landlord-feat-box h3 {
    font-size: 0.95rem !important;
  }

  .landlord-feat-box p {
    font-size: 0.8rem;
  }

  .landlord-feat-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.5rem;
  }

  /* Legal card */
  .legal-card {
    padding: 1.25rem 1rem;
    border-radius: 1rem;
  }

  .legal-heading {
    font-size: 1rem;
  }

  .legal-text {
    font-size: 0.825rem;
  }

  /* Specs table — passage en colonnes empilées */
  .app-specs-table,
  .app-specs-table tbody,
  .app-specs-table tr {
    display: block;
    width: 100%;
  }

  .app-specs-table tr {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    background: var(--bg-secondary);
  }

  .app-specs-table th,
  .app-specs-table td {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
  }

  .app-specs-table th {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding-bottom: 0.15rem;
  }

  .app-specs-table td {
    font-size: 0.875rem;
    padding-top: 0.15rem;
    padding-bottom: 0.65rem;
  }
}

/* ==========================================================================
   RESPONSIVE — TRÈS PETIT MOBILE (max 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .container {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .app-detail-header-card {
    padding: 1rem 0.85rem;
  }

  .app-detail-icon-lg {
    width: 60px !important;
    height: 60px !important;
    font-size: 2rem !important;
  }

  .app-detail-title {
    font-size: 1.2rem;
  }

  .app-detail-tagline {
    font-size: 0.8rem;
  }

  .app-meta-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .phone-slide-card-item {
    width: 160px;
    max-width: 160px;
  }

  .phone-device-frame {
    max-width: 160px;
  }

  .legal-card {
    padding: 1rem 0.85rem;
  }

  .landlord-suite-wrapper {
    padding: 1rem 0.85rem;
  }

  .landlord-feat-box {
    padding: 0.85rem;
  }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION — Accessibilité
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   PREFERS-CONTRAST-MORE — Accessibilité renforcée
   ========================================================================== */
@media (prefers-contrast: more) {
  .app-meta-tag,
  .landlord-feat-tag,
  .phone-format-badge {
    border-width: 2px;
  }
}