/* Variables CSS - Design Premium B2B */
:root {
  --primary: #1e3a5f; /* Bleu nuit */
  --secondary: #84e291; /* Vert Hi-Perf */
  --bg-dark: #0f1b2e;
  --accent: #4a90e2;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --bg-light: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2d8659 100%);
  --gradient-soft: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header - Structure en 2 lignes */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Ligne 1 - Top Bar */
.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.header-top .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-i {
  color: var(--secondary);
}

.header-top-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-top .btn-client {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.header-top .btn-client:hover {
  background: var(--bg-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Bouton "Devenir partenaire" dans le header-top */
.header-top .nav-partner-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: #84e291;
  border: 2px solid #84e291;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  white-space: nowrap;
}

.header-top .nav-partner-btn:hover,
.header-top .nav-partner-btn:focus {
  background: #84e291;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(132, 226, 145, 0.3);
}

/* Ligne 2 - Menu Principal */
.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
}

.header-main nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.75rem 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links li {
  flex: 0 1 auto;
  text-align: center;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  padding: 1rem 1.5rem;
  display: block;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #84e291;
  border-bottom-color: #84e291;
  background-color: rgba(132, 226, 145, 0.1);
}


.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
  padding: 0.5rem;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive Header */
@media (max-width: 768px) {
  .header-top {
    padding: 0.75rem 1rem;
  }
  
  .header-top .btn-client {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
  
  .header-main {
    padding: 0;
    position: relative;
  }
  
  .header-main nav {
    flex-direction: column;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    box-shadow: var(--shadow-md);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
    z-index: 1001;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    text-align: left;
  }
  
  .nav-links a {
    padding: 0.875rem 1rem;
    color: var(--white);
    border-bottom: 1px solid var(--border);
  }
  
  .header-top-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
  }
  
  .header-top .nav-partner-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  min-width: 200px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #1e3a5f 0%, #84e291 100%);
}

.btn-primary[style*="background: #84e291"]:hover {
  background: #5ae08f !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: #84e291;
}

/* Container & Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.section-dark h2, .section-dark h3 {
  color: var(--white);
}

.section-light {
  background-color: var(--bg-light);
}

/* Hero */
.hero {
  background: var(--gradient-soft);
  padding: 6rem 0;
}

.hero-content-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hero-text {
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 0;
  text-align: center;
}

.hero-image {
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.hero-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
  background: var(--bg-light);
}

/* Styles pour les contrôles vidéo premium */
.hero-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 12px 12px;
}

.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-volume-slider,
.hero-video::-webkit-media-controls-timeline {
  filter: brightness(1.2);
}

.hero-benefits {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  flex-wrap: wrap;
}

.hero-benefit {
  padding: 1rem 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
  flex-wrap: wrap;
}

/* Comparison */
.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.comparison-column {
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.comparison-column h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.comparison-column.today h3 {
  color: #e53e3e;
}

.comparison-column.tomorrow h3 {
  color: var(--secondary);
}

.comparison-list {
  list-style: none;
}

.comparison-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
}

.comparison-list li:before {
  display: none;
}

.icon-cross,
.icon-check {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.icon-cross {
  color: #e53e3e;
}

.icon-check {
  color: var(--secondary);
}

.icon-cross::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e53e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-check::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384e291' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Accordion */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--bg-light);
}

.accordion-header:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.25rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
}

.accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Premium cards avec icônes */
.feature-card.premium-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 2.5rem;
  min-height: 280px;
  height: 100%;
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.feature-card.premium-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 0;
}

.feature-card.premium-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Why Hi-Perf Section */
.why-hiperf-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto 3rem auto;
}

.why-hiperf-text {
  display: flex;
  flex-direction: column;
}

.why-hiperf-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-hiperf-diagram img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.why-hiperf-extended {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.why-hiperf-extended p {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1400px) {
  .why-hiperf-extended {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 1024px) {
  .why-hiperf-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
  }
  
  .why-hiperf-extended {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card.featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.pricing-card h3 {
  margin-bottom: 1rem;
  text-align: center;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
  text-align: center;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
  flex: 1;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.pricing-card a.btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:hover {
  background-color: var(--bg-light);
}

.comparison-table .check {
  color: var(--secondary);
  font-weight: bold;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e53e3e;
  background-color: #fff5f5;
}

.error-message {
  display: none;
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  display: none;
}

.form-message-success {
  background-color: #f0fff4;
  color: #22543d;
  border: 1px solid #9ae6b4;
}

.form-message-error {
  background-color: #fff5f5;
  color: #742a2a;
  border: 1px solid #fc8181;
}

.form-rgpd {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  text-align: center;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

/* Demo Buttons */
.demo-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.demo-button {
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.demo-button:hover {
  background: var(--primary);
  color: var(--white);
}

/* Modal Démo Industrie */
.demo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.demo-modal.active {
  display: flex;
}

.demo-modal-overlay {
    position: absolute;
  top: 0;
    left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.demo-modal-content {
  position: relative;
    background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.demo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.demo-modal-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.demo-modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.demo-modal-close-btn {
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.demo-modal-close-btn:hover {
  background: var(--border);
}

/* D2B Cards Grid */
.d2b-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.d2b-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
    flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
  min-height: 400px;
}

.d2b-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.d2b-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  padding: 2rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.d2b-card-content {
  padding: 2rem;
  flex: 1;
}

.d2b-card-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  font-size: 1rem;
}

.d2b-card-content p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.d2b-card-footer {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: auto;
}

.d2b-card-footer svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.d2b-card-footer span {
  color: var(--white);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

@media (max-width: 768px) {
  .d2b-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .d2b-card {
    min-height: auto;
  }
  
  .d2b-card h3 {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    font-size: 1.25rem;
  }
  
  .d2b-card-content {
    padding: 1.5rem;
  }
  
  .d2b-card-footer {
    padding: 1rem 1.5rem;
  }
}

/* AI Agents Grid */
.ai-agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.ai-agent-card {
  background: var(--white);
  border-radius: 12px;
    box-shadow: var(--shadow-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  min-height: 200px;
}

.ai-agent-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.ai-agent-icon {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ai-agent-icon svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ai-agent-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.ai-agent-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.ai-agents-banner {
  background: rgba(108, 244, 160, 0.15);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ai-agents-banner p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0;
}

.ai-agents-banner .highlight-green {
  color: #84e291;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ai-agents-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ai-agent-card {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .ai-agents-banner {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .ai-agents-banner p {
    font-size: 1rem;
  }
}

/* Sectors Grid */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.sector-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
    gap: 1rem;
  transition: var(--transition);
  min-height: 80px;
}

.sector-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.sector-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(108, 244, 160, 0.15);
    display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sector-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.sector-text {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;
}

@media (max-width: 768px) {
  .sectors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sector-card {
    padding: 1.25rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Responsive - Styles supplémentaires */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-content-vertical {
    gap: 1.5rem;
  }
  
  .hero-video {
    max-height: 300px;
  }
  
  /* Contrôles vidéo mobile optimisés */
  .hero-video::-webkit-media-controls-panel {
    padding: 0.5rem;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .demo-buttons {
    flex-direction: column;
  }

  .why-hiperf-image {
    max-width: 100%;
  }

  .why-hiperf-image img {
    width: 100%;
    max-width: 100%;
  }

  .demo-button {
    width: 100%;
  }
  
  .modules-hiperf-container {
    flex-direction: column;
  }
  
  /* Formulaires responsive */
  .form-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  /* Tables responsive */
  .comparison-table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .comparison-table thead {
    display: none;
  }
  
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  
  .comparison-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--white);
  }
  
  .comparison-table td {
    padding: 0.5rem 0;
    text-align: left;
    border: none;
  }
  
  .comparison-table td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    min-width: 120px;
  }
  
  /* Cartes premium responsive */
  .feature-card.premium-card {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .feature-icon {
    margin-bottom: 1rem;
  }
  
  /* Hero benefits responsive */
  .hero-benefits {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .hero-benefit {
    width: 100%;
    text-align: center;
  }
  
  /* Footer responsive */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
  
  /* Accordéons responsive */
  .accordion-header {
    padding: 1rem;
    font-size: 0.9375rem;
  }
  
  .accordion-body {
    padding: 1rem;
    font-size: 0.9375rem;
  }
  
  /* Breadcrumb responsive */
  .breadcrumb {
    font-size: 0.8125rem;
    padding: 0.75rem 0;
  }
  
  /* CTA section responsive */
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .cta-section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  /* Pricing cards responsive */
  .pricing-card.featured {
    transform: none;
    margin-bottom: 1rem;
  }
  
  /* D2B cards responsive */
  .d2b-card {
    padding: 1.5rem;
  }
  
  .d2b-card-content {
    padding: 1.5rem;
  }
  
  /* AI agents cards responsive */
  .ai-agent-card {
    padding: 1.5rem;
  }
  
  /* Sectors grid responsive */
  .sector-card {
    padding: 1rem;
  }
}

/* Modules Hi-Perf */
.modules-hiperf-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.modules-hiperf-image {
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.modules-hiperf-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

/* Loading States */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Chatbar (barre simple au scroll) */
.chatbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 600px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f1b2e 100%);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s ease;
  display: block;
}

.chatbar.active {
  transform: translateX(-50%) translateY(0);
}

.chatbar-simple {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
}

.chatbar-simple-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

#chatbar-input-simple {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

#chatbar-input-simple::placeholder {
  color: var(--text-secondary);
}

#chatbar-input-simple:focus {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(108, 244, 160, 0.2);
}

#chatbar-send-simple {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #84e291;
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  padding: 0;
}

#chatbar-send-simple:hover {
  background: #5ae490;
  transform: scale(1.05);
}

#chatbar-send-simple svg {
  width: 20px;
  height: 20px;
}

#chatbar-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
  font-weight: 300;
}

#chatbar-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chatbar-suggestions-simple {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chatbar-suggestions-simple::-webkit-scrollbar {
  display: none;
}

.chatbar-suggestions-simple button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.chatbar-suggestions-simple button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Chat window (fenêtre complète au clic sur le bouton) */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 500px;
  max-width: calc(100vw - 40px);
  height: 78vh;
  max-height: 78vh;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-window.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Chat window styles */
.chat-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  flex-shrink: 0;
}

.chat-window-assistant {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
}

.chat-window-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.chatbot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-window-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.chat-window-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.chat-window-subtitle {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 400;
}

#chat-window-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
  font-weight: 300;
}

#chat-window-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.chat-window-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
  height: 100%;
}

.chat-window-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 0;
  scroll-behavior: smooth;
}

.chat-window-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-window-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-window-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.chat-window-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.chat-message {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  animation: fadeInMessage 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message-user {
  flex-direction: row-reverse;
}

.chat-message-bot {
  flex-direction: row;
}

.chat-message-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.8125rem;
  box-shadow: 0 2px 6px rgba(132, 226, 145, 0.25);
}

.chat-message-content {
  max-width: 70%;
  padding: 0.875rem 1.125rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chat-message-user .chat-message-content {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: var(--white);
  border-bottom-right-radius: 6px;
}

.chat-message-bot .chat-message-content {
  background: #f8f9fa;
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-window-messages .chat-window-welcome {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(132, 226, 145, 0.08) 0%, rgba(108, 244, 160, 0.05) 100%);
  border-radius: 16px;
  border: 1px solid rgba(132, 226, 145, 0.15);
}

.chat-window-welcome p {
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

.chat-window-messages .chat-window-suggestions-wrapper {
  margin-bottom: 1.5rem;
}

.chat-window-suggestions-title {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-window-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.chat-window-suggestions button {
  background: rgba(132, 226, 145, 0.08);
  color: #2c3e50;
  border: 1px solid rgba(132, 226, 145, 0.2);
  border-radius: 12px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  text-align: left;
  width: 100%;
  font-weight: 400;
  line-height: 1.4;
}

.chat-window-suggestions button:hover {
  background: rgba(132, 226, 145, 0.15);
  border-color: rgba(132, 226, 145, 0.4);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(132, 226, 145, 0.15);
}

.chat-window-input-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  flex: 0 0 auto;
  flex-shrink: 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

#chat-window-input {
  flex: 1 1 auto;
  padding: 0.875rem 1.25rem;
  height: 48px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  background: #fafbfc;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  max-width: 100%;
  line-height: 1.5;
  box-sizing: border-box;
  margin: 0;
}

#chat-window-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

#chat-window-input:focus {
  border-color: #84e291;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(132, 226, 145, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

#chat-window-send {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  flex-shrink: 0;
  flex-grow: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #84e291 0%, #6cf4a0 100%);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(132, 226, 145, 0.3);
  box-sizing: border-box;
}

#chat-window-send:hover {
  background: linear-gradient(135deg, #6cf4a0 0%, #84e291 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(132, 226, 145, 0.4);
}

#chat-window-send:active {
  transform: scale(0.96);
}

#chat-window-send svg {
  width: 18px;
  height: 18px;
}

/* Chat bubble avec animations */
#chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s;
  opacity: 0;
  overflow: visible;
}


.chat-bubble-icon {
  position: relative;
  z-index: 2;
}

.chatbot-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.chat-bubble-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e53e3e;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border: 2px solid var(--white);
}

.chat-bubble-ripple {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #e53e3e;
  opacity: 0;
  animation: ripple 2s ease-out infinite;
  transform-origin: center;
}

.chat-bubble-ripple:nth-child(3) {
  animation-delay: 0s;
}

.chat-bubble-ripple:nth-child(4) {
  animation-delay: 0.6s;
}

.chat-bubble-ripple:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

#chat-bubble:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

#chat-bubble.active {
  display: flex;
  opacity: 1;
}

@media (max-width: 768px) {
  .chatbar {
    max-width: 100%;
    border-radius: 0;
  }
  
  .chatbar-header {
    padding: 1rem;
  }
  
  .chatbar-body {
    padding: 1rem;
    max-height: 70vh;
  }
  
  .chatbar-input-wrapper {
    gap: 0.5rem;
  }
  
  #chat-input {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
  
  #chatbar-send {
    width: 40px;
    height: 40px;
  }
  
  #chatbar-send svg {
    width: 18px;
    height: 18px;
  }
  
  .chat-suggestions button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .chat-window {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ============================================
   MODE CHAT-ONLY (page dédiée /chat.html)
   ============================================ */
.chat-only {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Masquer header, footer, navigation sur chat-only */
.chat-only header,
.chat-only footer,
.chat-only nav,
.chat-only .chatbar,
.chat-only #chat-bubble {
  display: none !important;
}

/* Chat window en mode chat-only */
.chat-only .chat-window {
  position: relative;
  bottom: auto;
  right: auto;
  width: 100%;
  max-width: 420px;
  height: 600px;
  max-height: 600px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive mobile pour chat-only */
@media (max-width: 768px) {
  .chat-only .chat-window {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  
  .chat-window-header {
    padding: 1rem 1.25rem;
  }
  
  .chat-window-assistant {
    gap: 0.75rem;
  }
  
  .chat-window-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }
  
  .chat-window-title {
    font-size: 0.9375rem;
  }
  
  .chat-window-subtitle {
    font-size: 0.75rem;
  }
  
  .chat-window-messages {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  
  .chat-message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
  }
  
  .chat-window-input-wrapper {
    padding: 1rem 1.25rem;
    gap: 0.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  
  #chat-window-input {
    flex: 1 1 auto;
    padding: 0.75rem 1rem;
    height: 44px;
    font-size: 0.9375rem;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
  }
  
  #chat-window-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    margin: 0;
  }
  
  #chat-window-send svg {
    width: 16px;
    height: 16px;
  }
  
  #chat-bubble {
    bottom: 15px;
    right: 15px;
    width: 56px;
    height: 56px;
  }
  
  .chat-bubble-ripple {
    width: 18px;
    height: 18px;
    top: -3px;
    right: -3px;
  }
  
}

