@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================
   CSS SYSTEM DESIGN - OPTION D (MIX A + C)
   ========================================== */

:root {
  --font-title: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* HSL Color Palette - Option C Apple Grid with Turquoise Accents */
  --bg-primary: #ffffff;      /* Blanc pur */
  --bg-secondary: #f5f5f7;    /* Gris Apple Store très moderne et sobre */
  --bg-card: #ffffff;         /* Blanc pur pour les cartes */
  --bg-header: rgba(255, 255, 255, 0.85); /* Fond flou de l'en-tête */
  --text-primary: #0f172a;    /* Noir ardoise propre */
  --text-secondary: #475569;  /* Gris foncé */
  --text-muted: #94a3b8;      /* Gris clair */
  
  /* Accent Colors (Teal & Slate Tech) */
  --accent: #06b6d4;          /* Turquoise / Teal */
  --accent-hover: #0891b2;    /* Turquoise foncé au survol */
  --accent-light: #ecfeff;    /* Fond turquoise clair */
  --primary-blue: #0066cc;    /* Bleu Apple pour les liens */
  --primary-blue-light: #eff6ff;
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;    /* Bordures fines */
  --border-focus: #06b6d4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

/* Dark Mode Variables Override */
body.dark-theme {
  --bg-primary: #0b0f19;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-header: rgba(15, 23, 42, 0.85);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-light: rgba(6, 182, 212, 0.08);
  --primary-blue: #38bdf8;
  --primary-blue-light: rgba(56, 189, 248, 0.08);
  --border-color: #334155;
  --border-focus: #06b6d4;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.5);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Header & Navigation */
header {
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Double Portal (Home View Selector) */
.portal-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(circle at 50% 50%, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.portal-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1100px;
  width: 100%;
}

.portal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--border-color);
  transition: var(--transition);
}

.portal-card.info-card::before {
  background: linear-gradient(90deg, var(--primary-blue), var(--accent));
}

.portal-card.games-card::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.portal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  transition: var(--transition);
}

.info-card .portal-icon {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.games-card .portal-icon {
  background-color: #fef3c7;
  color: #d97706;
}

.portal-card:hover .portal-icon {
  transform: scale(1.1) rotate(5deg);
}

.portal-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.portal-card h2::after {
  display: none;
}

.portal-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 320px;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: auto;
}

.portal-tag {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

/* Univers Inner Layouts */
.univers-section {
  display: none; /* Managed by JS */
  padding: 4rem 0;
  animation: fadeIn 0.5s ease;
}

.univers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.btn-back {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.btn-back:hover {
  color: var(--accent);
}

/* Modular Cards Grid (Apple Store Style) */
.section-title {
  margin-bottom: 2.5rem;
}

.apple-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.apple-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Repair Diagnostic Card System */
.diagnostic-container {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 3.5rem;
}

.diagnostic-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.diag-option {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.diag-option input {
  display: none;
}

.diag-option:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.diag-option.selected {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.diag-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.diag-label {
  font-weight: 600;
  font-size: 1rem;
}

.diag-form {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: none; /* Shown when option selected */
}

.diag-form.active {
  display: block;
  animation: slideDown 0.3s ease;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* Remote Help Section */
.remote-help-card {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0c4a6e 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.remote-help-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  right: -50px;
}

.remote-content {
  max-width: 60%;
}

.remote-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.remote-content h2::after {
  background: var(--accent);
}

.remote-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.remote-buttons {
  display: flex;
  gap: 1rem;
}

.btn-remote-dl {
  background-color: white;
  color: var(--primary-blue);
  border: 1px solid white;
}

.btn-remote-dl:hover {
  background-color: #cbd5e1;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Shop Catalogue Showcase Grid */
.shop-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-image {
  height: 200px;
  width: 100%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background-color: #ffffff;
  transition: var(--transition);
}

body.dark-theme .product-image img {
  background-color: #1e293b;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-top: auto;
  margin-bottom: 1.25rem;
}

/* Blog Cards Section */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.blog-image {
  height: 180px;
  width: 100%;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--text-primary);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
}

.blog-link:hover {
  color: var(--accent-hover);
}

/* Contact & Points de vente */
.shops-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.shop-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.shop-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-hover);
}

.shop-details {
  list-style: none;
  margin: 1.5rem 0;
}

.shop-details li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.shop-hours-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.shop-hours {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.shop-hours span:nth-child(even) {
  font-weight: 600;
  text-align: right;
}

/* Gemini Chatbot UI Widget */
.chatbot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
  font-size: 1.8rem;
  border: none;
  transition: var(--transition);
}

.chatbot-button:hover {
  transform: scale(1.08) rotate(-5deg);
  background-color: var(--accent-hover);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chatbot-title h4 {
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
}

.chatbot-status {
  font-size: 0.75rem;
  background-color: rgba(255,255,255,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
}

.btn-chat-close {
  color: white;
  font-size: 1.2rem;
  opacity: 0.8;
}

.btn-chat-close:hover {
  opacity: 1;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-secondary);
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-bubble.bot {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-bubble.user {
  background-color: var(--accent);
  color: white;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chatbot-typing {
  align-self: flex-start;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border-top-left-radius: 0;
  display: none;
}

.chatbot-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  animation: bounce 1.4s infinite ease-in-out both;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

.chatbot-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  display: flex;
  gap: 0.75rem;
}

.chatbot-input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.btn-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.btn-chat-send:hover {
  background-color: var(--accent-hover);
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 8px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .portal-container {
    gap: 2rem;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .navbar {
    height: 70px;
  }
  
  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 90px 2rem 2rem;
    gap: 1.25rem;
    z-index: 100;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.15rem;
    display: block;
    padding: 0.5rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links a::after {
    display: none;
  }

  /* Hamburger Menu Open Animations */
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  #nav-tel {
    display: none;
  }
  
  .portal-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  
  .portal-card {
    padding: 2.5rem 1.5rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .remote-help-card {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    gap: 2rem;
  }
  
  .remote-content {
    max-width: 100%;
  }
  
  .remote-buttons {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .shops-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .shop-card {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .chatbot-window {
    width: 320px;
    height: 420px;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   UPGRADE FEATURES (PIMP MY SITE 2026)
   ========================================== */

/* Skeleton Loader Pulse Effect */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading-pulse 1.5s infinite ease-in-out;
  border-radius: var(--radius-sm);
}

@keyframes loading-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-title {
  height: 20px;
  margin-bottom: 12px;
  width: 80%;
}

/* Mouse cursor light glow follow-up effect */
.apple-card.glow, .portal-card.glow, .product-card.glow, .shop-card.glow, .blog-card.glow {
  position: relative;
  background: radial-gradient(circle 120px at var(--mouse-x, 0px) var(--mouse-y, 0px), var(--accent-light) 0%, var(--bg-card) 100%);
}

/* Google Reviews Slider Dots */
.slider-dots .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  background-color: var(--accent);
  transform: scale(1.25);
}

/* ==========================================
   WAVE 2 PREMIUM UPGRADE FEATURES
   ========================================== */

/* Shop status badge */
.shop-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.shop-status-badge.open {
  background-color: rgba(16, 185, 129, 0.12); /* Green */
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.shop-status-badge.closed {
  background-color: rgba(239, 68, 68, 0.12); /* Red */
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* FAQ Accordion Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  background: none;
  border: none;
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-in-out;
}

.faq-answer p {
  overflow: hidden;
  padding: 0 1.5rem 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: padding-bottom 0.3s ease-in-out;
}

/* Active FAQ Accordion State */
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
  padding-bottom: 1.25rem;
}

/* Brand logo infinite scroller keys & hover */
.brand-logo {
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-logo:hover {
  color: var(--accent) !important;
  transform: scale(1.08);
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   CONTACT TABS & SERVICE REQUEST FORM
   ========================================== */
.contact-tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0px;
}

.contact-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 1rem 1.5rem;
  position: relative;
  transition: var(--transition);
}

.contact-tab-btn:hover {
  color: var(--accent);
}

.contact-tab-btn.active {
  color: var(--accent);
}

.contact-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

/* Form Container */
.service-request-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

/* Service Request Radio Button Grid */
.service-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.service-radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.service-radio-item:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.service-radio-item input[type="radio"] {
  display: none;
}

.service-radio-item .radio-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.service-radio-item input:checked + .radio-box {
  border-color: var(--accent);
  background-color: var(--bg-primary);
}

.service-radio-item input:checked + .radio-box::after {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: block;
}

.service-radio-item input:checked ~ .radio-label {
  color: var(--text-primary);
  font-weight: 700;
}

/* Equipment Checkbox Grid */
.equip-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.equip-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.equip-checkbox-item:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.equip-checkbox-item input[type="checkbox"] {
  display: none;
}

.equip-checkbox-item .checkbox-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-secondary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.equip-checkbox-item input:checked + .checkbox-box {
  background-color: var(--accent);
  border-color: var(--accent);
}

.equip-checkbox-item input:checked + .checkbox-box::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
  display: block;
}

.equip-checkbox-item input:checked ~ .checkbox-label {
  color: var(--text-primary);
  font-weight: 700;
}

/* Dynamic field transitions */
.req-autre-field, .req-password-section {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Photo Upload Elements */
.photo-upload-btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px dashed var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.photo-upload-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}

.photo-thumb-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}

.photo-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.photo-del {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.photo-del:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .contact-tabs-header {
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: none;
  }
  
  .contact-tab-btn {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
  }
  
  .contact-tab-btn.active::after {
    display: none;
  }
  
  .contact-tab-btn.active {
    background-color: var(--accent-light);
    border-color: var(--accent);
  }

  .service-request-card {
    padding: 1.5rem;
  }
}


