@charset "UTF-8";

/* ========================================
   ANATEL INTELLIGENCE - STYLES PRINCIPAUX
   ======================================== */

/* =====================================
   1. VARIABLES CSS GLOBALES
   ===================================== */

:root {
  /* Couleurs principales */
  --primary-color: #00c6ff;
  --secondary-color: #0072ff;
  --accent-color: #00ffcc;
  
  /* Couleurs de fond */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  
  /* Couleurs de texte */
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #6b7280;
  
  /* Bordures et ombres */
  --border-color: rgba(0, 198, 255, 0.1);
  --shadow-primary: 0 10px 40px rgba(0, 198, 255, 0.1);
  --shadow-secondary: 0 4px 20px rgba(0, 0, 0, 0.3);
  
  /* Navigation */
  --nav-height: 80px;
  
  /* Variables responsive - NOUVELLES */
  --container-padding: clamp(1rem, 4vw, 2rem);
  --section-spacing: clamp(3rem, 8vw, 6rem);
  --card-padding: clamp(1rem, 3vw, 2.5rem);
  --font-size-small: clamp(0.875rem, 2vw, 1rem);
  --font-size-base: clamp(1rem, 2.5vw, 1.125rem);
  --font-size-large: clamp(1.25rem, 3vw, 1.5rem);
}

/* =====================================
   2. VARIABLES CSS POUR N8N CHAT
   ===================================== */

:root {
  /* Variables de couleur pour N8N Chat */
  --chat--color--primary: #00c6ff;
  --chat--color--primary-shade-50: #0072ff;
  --chat--color--secondary: #16213e;
  --chat--color--white: #ffffff;
  --chat--color--light-gray: #f8f9fa;
  --chat--color--gray: #6c757d;
  --chat--color--dark: #0a0a0f;
  
  /* Variables de typographie */
  --chat--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --chat--font-size: 14px;
  --chat--line-height: 1.5;
  
  /* Variables d'espacement */
  --chat--spacing: 1rem;
  --chat--border-radius: 15px;
  --chat--border-radius-small: 8px;
  
  /* Variables d'ombre */
  --chat--box-shadow: 0 10px 40px rgba(0, 198, 255, 0.2);
  --chat--box-shadow-hover: 0 15px 50px rgba(0, 198, 255, 0.4);
}

/* Variables N8N par défaut */
:root {
  --chat--color-primary: #e74266;
  --chat--color-primary-shade-50: #db4061;
  --chat--color-primary-shade-100: #cf3c5c;
  --chat--color-secondary: #20b69e;
  --chat--color-secondary-shade-50: #1ca08a;
  --chat--color-white: #ffffff;
  --chat--color-light: #f2f4f8;
  --chat--color-light-shade-50: #e6e9f1;
  --chat--color-light-shade-100: #c2c5cc;
  --chat--color-medium: #d2d4d9;
  --chat--color-dark: #101330;
  --chat--color-disabled: #777980;
  --chat--color-typing: #404040;
  --chat--spacing: 1rem;
  --chat--border-radius: .25rem;
  --chat--transition-duration: .15s;
  --chat--font-family: ( -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif );
  --chat--window--width: 400px;
  --chat--window--height: 600px;
  --chat--window--bottom: var(--chat--spacing);
  --chat--window--right: var(--chat--spacing);
  --chat--window--z-index: 9999;
  --chat--window--border: 1px solid var(--chat--color-light-shade-50);
  --chat--window--border-radius: var(--chat--border-radius);
  --chat--window--margin-bottom: var(--chat--spacing);
  --chat--header-height: auto;
  --chat--header--padding: var(--chat--spacing);
  --chat--header--background: var(--chat--color-dark);
  --chat--header--color: var(--chat--color-light);
  --chat--header--border-top: none;
  --chat--header--border-bottom: none;
  --chat--header--border-left: none;
  --chat--header--border-right: none;
  --chat--heading--font-size: 2em;
  --chat--subtitle--font-size: inherit;
  --chat--subtitle--line-height: 1.8;
  --chat--message--font-size: 1rem;
  --chat--message--padding: var(--chat--spacing);
  --chat--message--border-radius: var(--chat--border-radius);
  --chat--message-line-height: 1.5;
  --chat--message--margin-bottom: calc(var(--chat--spacing) * 1);
  --chat--message--bot--background: var(--chat--color-white);
  --chat--message--bot--color: var(--chat--color-dark);
  --chat--message--bot--border: none;
  --chat--message--user--background: var(--chat--color-secondary);
  --chat--message--user--color: var(--chat--color-white);
  --chat--message--user--border: none;
  --chat--message--pre--background: rgba(0, 0, 0, .05);
  --chat--messages-list--padding: var(--chat--spacing);
  --chat--toggle--size: 64px;
  --chat--toggle--width: var(--chat--toggle--size);
  --chat--toggle--height: var(--chat--toggle--size);
  --chat--toggle--border-radius: 50%;
  --chat--toggle--background: var(--chat--color-primary);
  --chat--toggle--hover--background: var(--chat--color-primary-shade-50);
  --chat--toggle--active--background: var(--chat--color-primary-shade-100);
  --chat--toggle--color: var(--chat--color-white);
  --chat--textarea--height: 50px;
  --chat--textarea--max-height: 30rem;
  --chat--input--font-size: inherit;
  --chat--input--border: 0;
  --chat--input--border-radius: 0;
  --chat--input--padding: .8rem;
  --chat--input--background: var(--chat--color-white);
  --chat--input--text-color: initial;
  --chat--input--line-height: 1.5;
  --chat--input--placeholder--font-size: var(--chat--input--font-size);
  --chat--input--border-active: 0;
  --chat--input--left--panel--width: 2rem;
  --chat--button--color: var(--chat--color-light);
  --chat--button--background: var(--chat--color-primary);
  --chat--button--padding: calc(var(--chat--spacing) * 1 / 2) var(--chat--spacing);
  --chat--button--border-radius: var(--chat--border-radius);
  --chat--button--hover--color: var(--chat--color-light);
  --chat--button--hover--background: var(--chat--color-primary-shade-50);
  --chat--close--button--color-hover: var(--chat--color-primary);
  --chat--input--send--button--background: var(--chat--color-white);
  --chat--input--send--button--color: var(--chat--color-light);
  --chat--input--send--button--background-hover: var(--chat--color-primary-shade-50);
  --chat--input--send--button--color-hover: var(--chat--color-secondary-shade-50);
  --chat--input--file--button--background: var(--chat--color-white);
  --chat--input--file--button--color: var(--chat--color-secondary);
  --chat--input--file--button--background-hover: var(--chat--input--file--button--background);
  --chat--input--file--button--color-hover: var(--chat--color-secondary-shade-50);
  --chat--files-spacing: .25rem;
  --chat--body--background: var(--chat--color-light);
  --chat--footer--background: var(--chat--color-light);
  --chat--footer--color: var(--chat--color-dark);
}

/* =====================================
   3. STYLES DE BASE ET RESET
   ===================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1419 50%, var(--bg-primary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: var(--font-size-base);
}

/* =====================================
   4. ANIMATIONS
   ===================================== */

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 198, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 198, 255, 0.6); }
}

/* =====================================
   5. NAVIGATION
   ===================================== */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  height: var(--nav-height);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  height: 100%;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =====================================
   6. SECTIONS ET LAYOUT
   ===================================== */

section {
  scroll-margin-top: var(--nav-height);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at center, rgba(0, 198, 255, 0.1) 0%, transparent 70%);
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section {
  margin-bottom: var(--section-spacing);
  animation: fadeInUp 0.8s ease-out;
  padding-top: clamp(1rem, 3vw, 2rem);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================
   7. BOUTONS
   ===================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: var(--font-size-base);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 198, 255, 0.2);
}

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

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

/* =====================================
   8. CARTES ET GRILLES
   ===================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: var(--card-padding);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary-color);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================================
   9. SERVICES
   ===================================== */

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 3rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.service-icon {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.service-content h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =====================================
   10. SECTION À PROPOS
   ===================================== */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-primary);
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.info-value {
  color: var(--text-primary);
  text-align: right;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 255, 204, 0.1));
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.contact-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 20px;
}

/* =====================================
   11. SECTION CONTACT
   ===================================== */

.contact-section {
  background: var(--bg-secondary);
  border-radius: 30px;
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.05) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.contact-content {
  position: relative;
  z-index: 1;
}

/* =====================================
   12. FOOTER
   ===================================== */

footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =====================================
   13. ANIMATIONS DE SCROLL
   ===================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   14. RESPONSIVE DESIGN - MOBILE FIRST
   ===================================== */

/* Mobile Menu Styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-color);
  }

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

  .nav-links li {
    margin: 1rem 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: 100vh;
    padding: var(--nav-height) 1rem 2rem;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Buttons Mobile */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    margin: 0.5rem 0;
  }

  /* Main Content Mobile */
  main {
    padding: 2rem 1rem;
  }

  .section {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Cards Grid Mobile */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  /* About Section Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .info-value {
    text-align: left;
  }

  /* Services Mobile */
  .services-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-item {
    padding: 1rem;
  }

  /* Contact Section Mobile */
  .contact-section {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  /* Footer Mobile */
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Chat Widget Mobile Improvements */
  .n8n-chat-widget .chat-container {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 100px) !important;
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    border-radius: 10px;
  }

  .n8n-chat-widget .chat-toggle {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .n8n-chat-widget .welcome-text {
    font-size: 18px;
  }

  .n8n-chat-widget .new-chat-btn {
    padding: 14px 16px;
    font-size: 13px;
  }
}

/* Extra Large Screens (Desktop) */
@media (min-width: 1400px) {
  .nav-container,
  main,
  .footer-content {
    max-width: 1400px;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

/* Large Screens (Desktop) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Screens (Tablet Landscape) */
@media (min-width: 1025px) and (max-width: 1199px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  main {
    padding: 3rem 1.5rem;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  main {
    padding: 3rem 1.5rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  /* Améliorations supplémentaires */
  .hero {
    padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  }
  
  .contact-section {
    padding: 3rem 2rem;
  }
  
  .service-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* Large Mobile */
@media (min-width: 481px) and (max-width: 768px) {
  .hero h1 {
    font-size: clamp(2.25rem, 6vw, 2.75rem);
  }
  
  .btn {
    max-width: 320px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-section {
    margin: 0 0.5rem;
    padding: 2.5rem 1.5rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  /* Variables responsive pour petits écrans */
  :root {
    --nav-height: 70px;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .hero {
    padding: calc(var(--nav-height) + 1rem) 1rem 2rem;
    min-height: calc(100vh - var(--nav-height));
  }
  
  .hero-content {
    padding: 0 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card {
    padding: 1rem;
  }

  .info-card {
    padding: 1rem;
  }

  .contact-section {
    padding: 1.5rem 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: none;
    margin: 0.75rem 0;
  }
  
  .card,
  .info-card {
    padding: 1.25rem;
  }
  
  .service-item {
    padding: 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .n8n-chat-widget .welcome-text {
    font-size: 16px;
  }
  
  /* Amélioration du chat widget pour très petits écrans */
  .n8n-chat-widget .chat-container {
    width: calc(100vw - 10px) !important;
    height: calc(100vh - 60px) !important;
    bottom: 5px !important;
    right: 5px !important;
    left: 5px !important;
  }
  
  .n8n-chat-widget .chat-toggle {
    width: 45px;
    height: 45px;
    bottom: 10px;
    right: 10px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .contact-section {
    padding: 1.25rem 0.75rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 0.5rem) 1rem 1rem;
  }
  
  .section {
    margin-bottom: 3rem;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .n8n-chat-widget .chat-container {
    height: calc(100vh - 80px) !important;
  }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-icon,
  .service-icon {
    transform: scale(0.9);
  }
}

/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in {
    animation: none;
  }
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #ffffff;
    --bg-primary: #0a0a0f;
  }
}

/* Amélioration pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .card:hover,
  .service-item:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .nav-links a::after {
    display: none;
  }
}

/* =====================================
   15. MODALE FORMULAIRE N8N
   ===================================== */

.form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

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

.form-modal-content {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  width: 600px;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-primary);
  animation: slideInUp 0.4s ease-out;
  overflow: hidden;
}

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

.form-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.form-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.form-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
  transform: rotate(90deg);
}

.form-iframe-container {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.form-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive pour la modale */
@media (max-width: 768px) {
  .form-modal-content {
    width: 95vw;
    height: 90vh;
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .form-iframe-container {
    height: calc(100% - 80px);
  }
  
  .form-modal-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .form-modal-content {
    width: 98vw;
    height: 95vh;
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .form-iframe-container {
    height: calc(100% - 70px);
  }
}

/* =====================================
   16. STYLES POUR N8N CHAT WIDGET
   ===================================== */

/* Conteneur principal du chat */
.n8n-chat {
  --chat--color--primary: var(--primary-color) !important;
  --chat--color--primary-shade-50: var(--secondary-color) !important;
  --chat--color--secondary: var(--bg-card) !important;
  --chat--color--white: var(--text-primary) !important;
  --chat--color--light-gray: var(--bg-secondary) !important;
  --chat--color--gray: var(--text-muted) !important;
  --chat--color--dark: var(--bg-primary) !important;
  
  --chat--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  --chat--font-size: 14px !important;
  --chat--line-height: 1.5 !important;
  
  --chat--spacing: 1rem !important;
  --chat--border-radius: 15px !important;
  --chat--border-radius-small: 8px !important;
  
  --chat--box-shadow: var(--shadow-primary) !important;
  --chat--box-shadow-hover: 0 15px 50px rgba(0, 198, 255, 0.4) !important;
}

/* Bouton de toggle du chat */
.n8n-chat .chat-toggle {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  border: none !important;
  box-shadow: var(--shadow-primary) !important;
  transition: all 0.3s ease !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
}

.n8n-chat .chat-toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 50px rgba(0, 198, 255, 0.4) !important;
}

/* Fenêtre de chat */
.n8n-chat .chat-window {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-primary) !important;
  backdrop-filter: blur(10px) !important;
  width: 400px !important;
  height: 600px !important;
}

/* En-tête du chat */
.n8n-chat .chat-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  padding: 1.5rem !important;
  border-radius: 20px 20px 0 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.n8n-chat .chat-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  margin: 0 !important;
}

.n8n-chat .chat-subtitle {
  font-size: 0.9rem !important;
  opacity: 0.9 !important;
  margin-top: 0.5rem !important;
}

/* Corps du chat */
.n8n-chat .chat-body {
  background: var(--bg-card) !important;
  padding: 1rem !important;
  height: calc(100% - 140px) !important;
  overflow-y: auto !important;
}

/* Messages */
.n8n-chat .chat-message {
  margin-bottom: 1rem !important;
  animation: fadeInUp 0.3s ease-out !important;
}

.n8n-chat .chat-message.user {
  text-align: right !important;
}

.n8n-chat .chat-message.bot {
  text-align: left !important;
}

.n8n-chat .message-content {
  display: inline-block !important;
  padding: 0.75rem 1rem !important;
  border-radius: 15px !important;
  max-width: 80% !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

.n8n-chat .chat-message.user .message-content {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  color: white !important;
  border-bottom-right-radius: 5px !important;
}

.n8n-chat .chat-message.bot .message-content {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-bottom-left-radius: 5px !important;
}

/* Zone de saisie */
.n8n-chat .chat-input-container {
  padding: 1rem !important;
  border-top: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  border-radius: 0 0 20px 20px !important;
}

.n8n-chat .chat-input {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 25px !important;
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  resize: none !important;
  outline: none !important;
  transition: all 0.3s ease !important;
}

.n8n-chat .chat-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1) !important;
}

.n8n-chat .chat-input::placeholder {
  color: var(--text-muted) !important;
}

/* Bouton d'envoi */
.n8n-chat .send-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-left: 0.5rem !important;
}

.n8n-chat .send-button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.3) !important;
}

/* Indicateur de frappe */
.n8n-chat .typing-indicator {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  color: var(--text-muted) !important;
  font-style: italic !important;
  font-size: 0.85rem !important;
}

.n8n-chat .typing-dots {
  display: flex !important;
  gap: 0.25rem !important;
}

.n8n-chat .typing-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: var(--primary-color) !important;
  animation: typingDot 1.4s infinite ease-in-out !important;
}

.n8n-chat .typing-dot:nth-child(2) {
  animation-delay: 0.2s !important;
}

.n8n-chat .typing-dot:nth-child(3) {
  animation-delay: 0.4s !important;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: scale(0.8) !important;
    opacity: 0.5 !important;
  }
  30% {
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}

/* Scrollbar personnalisée */
.n8n-chat .chat-body::-webkit-scrollbar {
  width: 6px !important;
}

.n8n-chat .chat-body::-webkit-scrollbar-track {
  background: var(--bg-secondary) !important;
  border-radius: 3px !important;
}

.n8n-chat .chat-body::-webkit-scrollbar-thumb {
  background: var(--primary-color) !important;
  border-radius: 3px !important;
}

.n8n-chat .chat-body::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color) !important;
}

/* Responsive pour le chat widget */
@media (max-width: 768px) {
  .n8n-chat .chat-window {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 100px) !important;
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    border-radius: 15px !important;
  }
  
  .n8n-chat .chat-toggle {
    width: 50px !important;
    height: 50px !important;
    bottom: 15px !important;
    right: 15px !important;
  }
  
  .n8n-chat .chat-header {
    padding: 1rem !important;
    border-radius: 15px 15px 0 0 !important;
  }
  
  .n8n-chat .chat-title {
    font-size: 1.1rem !important;
  }
  
  .n8n-chat .chat-subtitle {
    font-size: 0.85rem !important;
  }
  
  .n8n-chat .message-content {
    max-width: 90% !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .n8n-chat .chat-window {
    width: calc(100vw - 10px) !important;
    height: calc(100vh - 60px) !important;
    bottom: 5px !important;
    right: 5px !important;
    left: 5px !important;
    border-radius: 10px !important;
  }
  
  .n8n-chat .chat-toggle {
    width: 45px !important;
    height: 45px !important;
    bottom: 10px !important;
    right: 10px !important;
  }
  
  .n8n-chat .chat-header {
    padding: 0.75rem !important;
    border-radius: 10px 10px 0 0 !important;
  }
  
  .n8n-chat .chat-title {
    font-size: 1rem !important;
  }
  
  .n8n-chat .chat-subtitle {
    font-size: 0.8rem !important;
  }
}

/* Print Styles */
@media print {
  nav,
  .mobile-menu-btn,
  .n8n-chat-widget {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero,
  .section {
    page-break-inside: avoid;
  }
}
