/* ═══════════════════════════════════════════════════════════════════
   NEXSAFAR — DESIGN PREMIUM HÔTEL LUXE
   Or & Charbon · Responsive · Professionnel
═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────
   VARIABLES DESIGN SYSTEM
─────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════
   NEXSAFAR — Fonts en local (à coller en HAUT de index.css)
═══════════════════════════════════════════════════════════════════ */

/* Inter (variable font, 1 fichier pour tous les poids) */
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;  /* CRUCIAL : affiche le texte immédiatement */
}

/* Playfair Display 600 */
@font-face {
  font-family: 'Playfair Display';
  src: url('/static/fonts/playfair-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Playfair Display 700 */
@font-face {
  font-family: 'Playfair Display';
  src: url('/static/fonts/playfair-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Le reste de ton index.css continue ici... */
:root {
  /* Couleurs principales */
  --gold: #C9A962;
  --gold-light: #E5D4A8;
  --gold-dark: #A88746;
  --gold-soft: #F5EFE0;
  
  --charcoal: #1A2530;
  --charcoal-mid: #2C3E50;
  --charcoal-light: #34495E;
  
  --cream: #FAF7F0;
  --cream-soft: #FCFAF5;
  --beige: #F5F1E8;
  
  /* Status */
  --success: #2D7A4D;
  --warning: #C18133;
  --danger: #B33A3A;
  
  /* Neutres */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F4;
  --gray-200: #E5E5E5;
  --gray-300: #D1D1D1;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(26, 37, 48, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 37, 48, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 37, 48, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 37, 48, 0.12);
  --shadow-xl: 0 20px 60px rgba(26, 37, 48, 0.2);
  --shadow-gold: 0 4px 20px rgba(201, 169, 98, 0.35);
  
  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  
  /* Layout */
  --sidebar-width: 280px;
  --header-height: 68px;
  --trust-banner-height: 36px;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ───────────────────────────────────────────────────────────────────
   RESET
─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom scrollbar (élégant) */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 98, 0.4);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ───────────────────────────────────────────────────────────────────
   TRUST BANNER (en haut)
─────────────────────────────────────────────────────────────────── */
.trust-banner {
  height: var(--trust-banner-height);
  background: linear-gradient(90deg, var(--charcoal) 0%, var(--charcoal-mid) 50%, var(--charcoal) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  z-index: 1000;
}

.trust-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(201, 169, 98, 0.08) 50%, 
    transparent 100%);
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.trust-item i {
  color: var(--gold);
  font-size: 13px;
}

/* ───────────────────────────────────────────────────────────────────
   LAYOUT PRINCIPAL
─────────────────────────────────────────────────────────────────── */
.app-container {
  display: flex;
  height: calc(100vh - var(--trust-banner-height));
  overflow: hidden;
  background: var(--beige);
}

/* ───────────────────────────────────────────────────────────────────
   SIDEBAR (gauche)
─────────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid rgba(201, 169, 98, 0.1);
  transition: transform var(--transition);
  position: relative;
  z-index: 50;
}

/* Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

.logo-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.logo-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.logo-sub {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Bouton Nouveau Chat */
.btn-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
  box-shadow: var(--shadow-gold);
  margin-bottom: 24px;
}

.btn-new-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.5);
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

.btn-new-chat:active {
  transform: translateY(0);
}

/* Lien Hôtels */
.btn-hotels-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.12), rgba(201, 169, 98, 0.06));
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.btn-hotels-link:hover {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.22), rgba(201, 169, 98, 0.12));
  border-color: rgba(201, 169, 98, 0.5);
}

.btn-hotels-link i {
  font-size: 14px;
  flex-shrink: 0;
}

.btn-hotels-badge {
  margin-left: auto;
  font-size: 10px;
  background: rgba(201, 169, 98, 0.2);
  border-radius: var(--radius-full);
  padding: 2px 7px;
}

/* Sections sidebar */
.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.sidebar-section-title i {
  font-size: 11px;
}

/* Liste de conversations */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-item:hover {
  background: rgba(201, 169, 98, 0.1);
  color: var(--gold-light);
}

.conversation-item.active {
  background: rgba(201, 169, 98, 0.15);
  color: var(--gold);
  font-weight: 600;
}

.conversation-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-item-date {
  flex-shrink: 0;
  font-size: 10px;
  opacity: 0.6;
}

.conversation-item i {
  font-size: 12px;
  flex-shrink: 0;
}

/* Stats sidebar */
.sidebar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(201, 169, 98, 0.08);
  border-color: rgba(201, 169, 98, 0.3);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

/* Footer sidebar */
.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 169, 98, 0.15);
}

.sidebar-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 12px;
}

.sidebar-contact:hover {
  background: rgba(201, 169, 98, 0.15);
  transform: translateY(-1px);
}

.sidebar-contact i {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.sidebar-contact small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.sidebar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sidebar-action-btn {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.sidebar-action-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.lang-select {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.lang-select option {
  background: var(--charcoal);
  color: var(--white);
}

/* ───────────────────────────────────────────────────────────────────
   BOUTON MENU MOBILE (hidden desktop)
─────────────────────────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 50px;
  left: 14px;
  width: 44px;
  height: 44px;
  background: var(--charcoal);
  color: var(--gold);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: var(--shadow-md);
  font-size: 18px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 40;
}

/* ───────────────────────────────────────────────────────────────────
   CHAT MAIN (zone principale)
─────────────────────────────────────────────────────────────────── */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 20;
  position: relative;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 5px;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.avatar-icon {
  font-size: 22px;
}

.avatar-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid var(--white);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

.chat-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.chat-header-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
}

.chat-header-status {
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-status i {
  font-size: 7px;
  animation: pulse 2s infinite;
}

.chat-header-actions {
  display: flex;
  gap: 6px;
}

.chat-action-btn {
  width: 38px;
  height: 38px;
  background: var(--gray-100);
  color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 14px;
}

.chat-action-btn:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

/* ───────────────────────────────────────────────────────────────────
   ZONE SCROLLABLE (contient hero, partenaires, témoignages, messages)
─────────────────────────────────────────────────────────────────── */
.chat-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scroll-behavior: smooth;
}

/* ───────────────────────────────────────────────────────────────────
   HERO GALLERY (intro avec photos)
─────────────────────────────────────────────────────────────────── */
.hero-gallery {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 320px;
}

.hero-overlay {
  padding: 36px 32px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 90%;
}

.hero-subtitle strong {
  color: var(--gold-light);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(201, 169, 98, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Photos hero (mosaïque) */
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 4px;
}

.hero-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-slow);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.hero-photo:hover {
  transform: scale(1.05);
}

.hero-photo-1 {
  grid-row: 1 / 3;
  grid-column: 1;
}

.photo-caption {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.photo-caption i {
  color: var(--gold);
}

/* ───────────────────────────────────────────────────────────────────
   PARTENAIRES
─────────────────────────────────────────────────────────────────── */
.partners-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.partners-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.partners-title i {
  color: var(--gold);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.partner-card {
  padding: 12px 14px;
  background: var(--cream-soft);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
  cursor: pointer;
}

.partner-card:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.partner-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--charcoal);
}

.partner-rating {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 600;
}

.partner-rating i {
  color: var(--gold);
  font-size: 11px;
}

/* ───────────────────────────────────────────────────────────────────
   TÉMOIGNAGES (carrousel)
─────────────────────────────────────────────────────────────────── */
.testimonials-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.testimonials-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 18px;
}

.testimonials-title i {
  color: var(--gold);
}

.testimonials-carousel {
  position: relative;
  min-height: 180px;
}

.testimonial-card {
  display: none;
  animation: fadeInTestimonial 0.5s ease;
}

.testimonial-card.active {
  display: block;
}

@keyframes fadeInTestimonial {
  from { opacity: 0; transform: translateX(15px); }
  to { opacity: 1; transform: translateX(0); }
}

.testimonial-rating {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
}

.testimonial-info {
  font-size: 12px;
  color: var(--gray-500);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all var(--transition);
}

.testimonial-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 999px;
}

/* ───────────────────────────────────────────────────────────────────
   QUESTIONS RAPIDES (pinned)
─────────────────────────────────────────────────────────────────── */
.pinned-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.pinned-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.pinned-title i {
  color: var(--gold);
}

#pinned-questions-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pinned-question-card {
  background: var(--cream-soft);
  border: 1px solid var(--gray-200);
  padding: 11px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  transition: all var(--transition);
  position: relative;
}

.pinned-question-card:hover {
  background: var(--white);
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Card spéciale devis (mise en avant) */
.pinned-question-card.devis-card {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  padding-right: 38px;
}

.pinned-question-card.devis-card::after {
  content: '→';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 900;
  transition: transform var(--transition);
}

.pinned-question-card.devis-card:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--charcoal) 100%);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
}

.pinned-question-card.devis-card:hover::after {
  transform: translateY(-50%) translateX(4px);
}

/* ───────────────────────────────────────────────────────────────────
   MESSAGES CHAT
─────────────────────────────────────────────────────────────────── */
#chat-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.bot-message-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 78%;
  animation: messageIn 0.3s ease-out;
}

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

.message-block {
  position: relative;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  line-height: 1.6;
  word-wrap: break-word;
  font-size: 14px;
}

/* Icône copier — toujours visible (pas seulement au survol) */
.msg-copy-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
}

.msg-copy-btn:hover,
.msg-copy-btn.copied,
.msg-copy-btn:focus-visible {
  opacity: 1;
  transform: scale(1.08);
}

.bot-message .msg-copy-btn {
  background: rgba(0, 0, 0, 0.08);
  color: var(--charcoal);
}

.bot-message .msg-copy-btn:hover {
  background: rgba(0, 0, 0, 0.16);
}

.user-message .msg-copy-btn {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.user-message .msg-copy-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.msg-copy-btn.copied {
  color: #22c55e;
}

.bot-message {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
  border-top-left-radius: 4px;
}

.bot-message strong {
  color: var(--charcoal);
  font-weight: 700;
}

.bot-message a {
  color: var(--gold-dark);
  font-weight: 600;
  border-bottom: 1px dashed var(--gold);
}

.bot-message a:hover {
  color: var(--charcoal);
}

.bot-message img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin: 8px 0;
  clear: both;
}

/* ─── Mise en page 2 colonnes pour les réponses longues/détaillées ─── */
.bot-message-container.is-wide {
  max-width: 96%;
}

.bot-message.two-col {
  column-count: 2;
  column-gap: 32px;
}

.bot-message.two-col > :first-child {
  margin-top: 0;
}

.bot-message.two-col h1,
.bot-message.two-col h2,
.bot-message.two-col h3,
.bot-message.two-col h4,
.bot-message.two-col li,
.bot-message.two-col p,
.bot-message.two-col strong:first-child {
  break-inside: avoid;
}

.bot-message.two-col hr {
  break-before: column;
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 10px 0;
}

@media (max-width: 760px) {
  .bot-message-container.is-wide {
    max-width: 93%;
  }
  .bot-message.two-col {
    column-count: 1;
  }
}

/* ─── 2 colonnes EXPLICITES (col1 = situation, col2 = infos pratiques) ─── */
.bot-message.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.two-col-grid .col-block {
  background: var(--gray-50, #faf8f3);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.two-col-grid .col-block > :first-child {
  margin-top: 0;
}

.two-col-grid .col-block > :last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .bot-message.two-col-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Synthèse (tête) et décision (fin) : hors du flux 2 colonnes ─── */
.bot-synthesis,
.bot-decision {
  width: 100%;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.bot-synthesis {
  background: var(--gray-50, #faf8f3);
  border: 1px solid var(--gold);
  color: var(--charcoal);
  margin-bottom: 8px;
}

.bot-decision {
  background: var(--charcoal);
  color: var(--white);
  margin-top: 8px;
}

.bot-decision strong {
  color: var(--gold);
}

@media (max-width: 760px) {
  .bot-synthesis,
  .bot-decision {
    text-align: left;
  }
}

.user-message {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  align-self: flex-end;
  max-width: 78%;
  border-top-right-radius: 4px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  animation: messageIn 0.3s ease-out;
}

/* Bot HTML block (riche) */
.bot-html-block {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

/* ───────────────────────────────────────────────────────────────────
   TYPING BUBBLE
─────────────────────────────────────────────────────────────────── */
.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

.typing-status {
  margin-left: 6px;
  font-size: 13px;
  color: var(--gray-500, #8a8a8a);
  font-style: italic;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ───────────────────────────────────────────────────────────────────
   SUGGESTED ACTIONS
─────────────────────────────────────────────────────────────────── */
.suggested-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--white);
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.action-button:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* ───────────────────────────────────────────────────────────────────
   INPUT (en bas, sticky) — REDESIGN
─────────────────────────────────────────────────────────────────── */
.chat-input-area {
  flex-shrink: 0;
  background: linear-gradient(to bottom, #fff9f0 0%, #ffffff 100%);
  border-top: 2px solid rgba(201, 169, 98, 0.35);
  padding: 14px 20px 16px;
  position: relative;
  z-index: 30;
  box-shadow: 0 -8px 32px -4px rgba(201, 169, 98, 0.12), 0 -2px 8px rgba(0,0,0,0.06);
}

/* Dégradé fade en haut pour transition douce avec les messages */
.chat-input-area::before {
  content: '';
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, #fff9f0);
  pointer-events: none;
  z-index: 1;
}

/* ── Chips de suggestions rapides ────────────────────────────────── */
.quick-chips-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 800px;
  margin: 0 auto;
  /* Fade left/right pour signaler le scroll */
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.quick-chips-row::-webkit-scrollbar { display: none; }

.quick-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--white);
  border: 1.5px solid rgba(201, 169, 98, 0.45);
  color: var(--gold-dark);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.quick-chip:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(201, 169, 98, 0.4);
}

.quick-chip:active {
  transform: translateY(0);
}

/* ── Conteneur input principal ───────────────────────────────────── */
.input-container {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 8px 10px 20px;
  border: 2px solid rgba(201, 169, 98, 0.55);
  transition: all 0.25s ease;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(201, 169, 98, 0.18), 0 1px 4px rgba(0,0,0,0.06);
}

.input-container:focus-within {
  background: #ffffff;
  border-color: #C9A962;
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2), 0 6px 28px rgba(201, 169, 98, 0.28);
  transform: translateY(-1px);
}

.input-container input,
.input-container textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #1a2530;
  padding: 10px 0;
  font-weight: 400;
  font-family: inherit;
  line-height: 1.55;
}

.input-container textarea {
  resize: none;
  overflow-y: hidden;
  min-height: 24px;
  max-height: 160px;
  overflow-y: auto;
  display: block;
  transition: height 0.15s ease;
}

.input-container input::placeholder,
.input-container textarea::placeholder {
  color: #b0a08a;
  font-style: normal;
  font-weight: 400;
}

/* ── Bouton micro ────────────────────────────────────────────────── */
.icon-button {
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 98, 0.08);
  color: #C9A962;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(201, 169, 98, 0.2);
}

.icon-button:hover {
  background: rgba(201, 169, 98, 0.18);
  color: #a07030;
  border-color: rgba(201, 169, 98, 0.45);
  transform: scale(1.08);
}

/* ── Bouton envoyer ──────────────────────────────────────────────── */
.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 46px;
  padding: 0 22px;
  background: linear-gradient(135deg, #D4A843 0%, #A0701E 100%);
  color: #ffffff;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(160, 112, 30, 0.45), 0 1px 3px rgba(160,112,30,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.send-button::after {
  content: 'Envoyer';
  font-size: 13px;
}

.send-button:hover {
  background: linear-gradient(135deg, #E0B550 0%, #B07D2A 100%);
  box-shadow: 0 6px 22px rgba(160, 112, 30, 0.55), 0 1px 4px rgba(160,112,30,0.3);
  transform: translateY(-2px);
}

.send-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(160, 112, 30, 0.35);
}

/* ── Pied de l'input ─────────────────────────────────────────────── */
.input-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #a09070;
  margin-top: 9px;
  letter-spacing: 0.2px;
}

.input-hint i {
  color: #5cb85c;
  font-size: 10px;
}

/* ───────────────────────────────────────────────────────────────────
   BOUTON FLOTTANT DEVIS
─────────────────────────────────────────────────────────────────── */
.floating-devis-btn {
  position: absolute;
  bottom: 90px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-gold);
  z-index: 40;
  transition: all var(--transition);
  animation: floatPulse 3s ease-in-out infinite;
}

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

.floating-devis-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--gold-dark) 100%);
  animation: none;
}

/* ───────────────────────────────────────────────────────────────────
   OVERLAY DEVIS (modale)
─────────────────────────────────────────────────────────────────── */
.devis-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 37, 48, 0.7);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.devis-overlay.show {
  display: flex;
  animation: overlayIn 0.3s ease-out;
}

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

.devis-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border-top: 5px solid var(--gold);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.devis-header {
  padding: 24px 28px;
  border-bottom: 2px solid var(--gold-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.devis-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.devis-header h3 i {
  color: var(--gold);
}

#close-devis {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

#close-devis:hover {
  background: var(--danger);
  color: var(--white);
  transform: rotate(90deg);
}

.devis-form {
  padding: 24px 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.form-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.required {
  color: var(--danger);
}

.form-group input,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--white);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.form-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--charcoal);
  font-weight: 500;
  margin: 18px 0;
}

.form-trust i {
  color: var(--success);
  font-size: 14px;
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition);
  box-shadow: var(--shadow-gold);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.5);
}

#devis-message {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

#devis-message:not(:empty) {
  background: rgba(45, 122, 77, 0.1);
  color: var(--success);
  border: 1px solid rgba(45, 122, 77, 0.2);
}

/* ───────────────────────────────────────────────────────────────────
   NEW CHAT BUTTON STYLES (depuis new_chat_button.js)
─────────────────────────────────────────────────────────────────── */
.new-chat-btn-header {
  display: none !important; /* On utilise celui de la sidebar */
}

.new-chat-btn-inline {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-gold);
  margin: 12px 0;
}

.new-chat-btn-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 98, 0.5);
}

/* ───────────────────────────────────────────────────────────────────
   MODALE FORMULES (Bootstrap)
─────────────────────────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  color: var(--white);
  border-bottom: 3px solid var(--gold);
  padding: 18px 24px;
}

.modal-title {
  font-family: var(--font-serif);
  font-weight: 700;
}

.modal-title i {
  color: var(--gold);
  margin-right: 8px;
}

.btn-close {
  filter: invert(1) grayscale(1);
}

.modal-body {
  padding: 24px;
  background: var(--cream-soft);
}

/* ───────────────────────────────────────────────────────────────────
   STEPS (étapes numérotées dans les réponses)
─────────────────────────────────────────────────────────────────── */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

.step-bullet {
  color: var(--gold-dark);
  font-weight: 900;
  font-size: 14px;
}

.step-text {
  color: var(--charcoal);
  line-height: 1.5;
  flex: 1;
  font-size: 14px;
}

/* ───────────────────────────────────────────────────────────────────
   REACTIONS
─────────────────────────────────────────────────────────────────── */
.reaction-bar {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.reaction-btn {
  width: 32px;
  height: 32px;
  font-size: 14px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.reaction-btn:hover {
  transform: scale(1.2);
  background: var(--gold-soft);
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE - TABLET (max 1024px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-gallery {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .hero-photos {
    height: 200px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr;
  }
  
  .hero-photo-1 {
    grid-row: 1;
    grid-column: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE - MOBILE (max 768px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    /* Trust banner cachée sur mobile → hauteur 0 pour les calculs */
    --trust-banner-height: 0px;
  }

  /* Trust banner : masquée sur mobile pour libérer la hauteur */
  .trust-banner {
    display: none;
  }

  /* App container : pleine hauteur sans soustraire la trust banner */
  .app-container {
    height: 100vh;
    height: 100svh; /* safe viewport height — la plus petite sur iOS */
    height: 100dvh; /* dynamic viewport height — pour les navigateurs modernes */
  }

  /* Sidebar collapse en mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    z-index: 50;
    box-shadow: var(--shadow-xl);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  /* Bouton hamburger visible */
  .mobile-menu-btn {
    display: flex;
    top: 10px;
  }
  
  /* Chat main pleine largeur */
  .chat-main {
    width: 100%;
  }
  
  .chat-header {
    padding: 0 16px 0 64px; /* Padding gauche pour le bouton menu */
  }
  
  .chat-header-name {
    font-size: 15px;
  }
  
  .chat-action-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  
  /* Hero compact */
  .chat-scroll-area {
    padding: 14px;
  }
  
  .hero-gallery {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 16px;
  }
  
  .hero-overlay {
    padding: 24px 20px;
  }
  
  .hero-title {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .hero-photos {
    height: 140px;
  }
  
  /* Partenaires compact */
  .partners-section {
    padding: 14px;
    margin-bottom: 16px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Témoignages compact */
  .testimonials-section {
    padding: 18px;
    margin-bottom: 16px;
  }
  
  .testimonials-title {
    font-size: 15px;
  }
  
  .testimonial-text {
    font-size: 14px;
  }
  
  /* Questions épinglées */
  .pinned-section {
    padding: 14px;
    margin-bottom: 16px;
  }
  
  .pinned-question-card {
    font-size: 12px;
    padding: 9px 14px;
  }
  
  /* Messages */
  .bot-message-container {
    max-width: 90%;
  }
  
  .user-message {
    max-width: 88%;
  }
  
  .message-block {
    font-size: 13px;
    padding: 12px 14px;
  }
  
  /* Input tablet */
  .chat-input-area {
    padding: 8px 14px 12px;
  }

  .quick-chips-row {
    padding-bottom: 8px;
    gap: 6px;
  }

  .quick-chip {
    font-size: 11px;
    padding: 5px 11px;
  }

  .input-container {
    padding: 4px 4px 4px 14px;
  }

  .input-container input {
    font-size: 14px;
  }

  .input-hint {
    font-size: 10px;
    margin-top: 6px;
  }

  .input-hint span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Floating devis */
  .floating-devis-btn {
    bottom: 80px;
    right: 14px;
    padding: 11px 18px;
    font-size: 12px;
  }
  
  /* Devis modal */
  .devis-overlay {
    padding: 10px;
  }
  
  .devis-container {
    max-height: 95vh;
  }
  
  .devis-header {
    padding: 16px 20px;
  }
  
  .devis-header h3 {
    font-size: 16px;
  }
  
  .devis-form {
    padding: 16px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE - SMALL MOBILE (max 480px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }
  
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .testimonial-text {
    font-size: 13px;
  }
  
  .floating-devis-btn span {
    display: none;
  }
  
  .floating-devis-btn {
    padding: 12px;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   NEXSAFAR — STYLES V2 COMMERCIAL
   À AJOUTER À LA FIN DE index.css
═══════════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────────
   1. BANDEAU URGENCE
─────────────────────────────────────────────────────────────────── */
.urgency-banner {
  background: linear-gradient(90deg, #B33A3A 0%, #C9A962 50%, #B33A3A 100%);
  background-size: 200% 100%;
  animation: gradientFlow 5s ease infinite;
  color: white;
  padding: 8px 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  z-index: 999;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.urgency-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.urgency-content i.fa-fire {
  color: #FFD700;
  animation: flicker 1.5s infinite;
}

@keyframes flicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.urgency-cta {
  background: white;
  color: #B33A3A;
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.urgency-cta:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-1px);
}

.urgency-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.urgency-close:hover {
  background: rgba(255, 255, 255, 0.4);
}


/* ───────────────────────────────────────────────────────────────────
   2. AGENCES PARTENAIRES PRO (cliquables)
─────────────────────────────────────────────────────────────────── */
.partners-header {
  margin-bottom: 18px;
}

.partners-subtitle {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  margin-left: 24px;
  font-style: italic;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.partner-card-pro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px 14px;
  background: var(--cream-soft);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--charcoal);
  overflow: hidden;
}

.partner-card-pro:hover {
  background: var(--white);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--charcoal);
}

.partner-card-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: left 0.6s;
}

.partner-card-pro:hover::before {
  left: 100%;
}

.partner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.partner-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-serif);
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gold);
}

.partner-name-pro {
  font-weight: 700;
  font-size: 13px;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.partner-rating-pro {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.partner-rating-pro .stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1px;
}

.partner-rating-pro .rating-value {
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 700;
}

.partner-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--gray-500);
}

.partner-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.partner-features i {
  color: var(--success);
  font-size: 9px;
}

.partner-visit {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.partner-card-pro:hover .partner-visit {
  color: var(--charcoal);
}


/* ─── Compteur live ─────────────────────────────────────────────── */
.trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 12px 20px;
  margin: 10px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  font-size: 12.5px;
  color: var(--gray-500);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trust-item i {
  color: var(--gold);
  font-size: 13px;
}

.trust-rating {
  font-weight: 600;
  color: var(--gray-600, #444);
}

.trust-stars {
  color: var(--gold);
  letter-spacing: 1px;
}

.trust-sep {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .trust-banner {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

.live-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-200);
  flex-wrap: wrap;
}

.live-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
}

.live-stat strong {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-serif);
}

.live-stat i {
  color: var(--gold);
  font-size: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(45, 122, 77, 0.7); }
  50% { transform: scale(1.2); opacity: 0.8; box-shadow: 0 0 0 6px rgba(45, 122, 77, 0); }
}


/* ───────────────────────────────────────────────────────────────────
   3. SECTION "POURQUOI NEXSAFAR"
─────────────────────────────────────────────────────────────────── */
.why-section {
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.why-header {
  text-align: center;
  margin-bottom: 24px;
}

.why-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.why-title i {
  color: var(--gold);
}

.why-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  font-style: italic;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.why-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: all var(--transition);
  border-top: 3px solid var(--gold);
}

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

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 14px;
  box-shadow: var(--shadow-gold);
}

.why-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.why-card-text {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.6;
}

.why-card-text strong {
  color: var(--gold-dark);
}


/* ───────────────────────────────────────────────────────────────────
   4. SECTION "COMMENT ÇA MARCHE"
─────────────────────────────────────────────────────────────────── */
.howit-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.howit-header {
  text-align: center;
  margin-bottom: 28px;
}

.howit-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.howit-title i {
  color: var(--gold);
}

.howit-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  font-style: italic;
}

.howit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

/* Ligne de progression entre les étapes */
.howit-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 17%;
  right: 17%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  z-index: 0;
}

.howit-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.howit-number {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-gold);
  border: 3px solid white;
}

.howit-icon-box {
  width: 80px;
  height: 80px;
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--gold-dark);
  font-size: 32px;
  transition: all var(--transition);
}

.howit-step:hover .howit-icon-box {
  background: var(--gold);
  color: white;
  transform: scale(1.05);
}

.howit-step-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.howit-step-text {
  font-size: 12.5px;
  color: var(--gray-700);
  line-height: 1.6;
}


/* ───────────────────────────────────────────────────────────────────
   5. SECTION GARANTIES
─────────────────────────────────────────────────────────────────── */
.guarantees-section {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.guarantees-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.guarantees-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.guarantees-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.guarantee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.guarantee-card:hover {
  background: rgba(201, 169, 98, 0.1);
  border-color: var(--gold);
  transform: translateX(4px);
}

.guarantee-card > i {
  color: var(--gold);
  font-size: 22px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.guarantee-card strong {
  display: block;
  color: white;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.guarantee-card small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.4;
}


/* ───────────────────────────────────────────────────────────────────
   6. BOUTONS FLOTTANTS WHATSAPP + TÉLÉPHONE
─────────────────────────────────────────────────────────────────── */
.floating-contacts {
  position: absolute;
  bottom: 165px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 39;
}

.floating-contact {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  text-decoration: none;
}

.floating-contact.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  animation: wppPulse 2s infinite;
}

@keyframes wppPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.8); }
}

.floating-contact.phone {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
}

.floating-contact:hover {
  transform: scale(1.1) translateX(-3px);
  color: white;
}

.floating-contact .contact-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--charcoal);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-contact .contact-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--charcoal);
}

.floating-contact:hover .contact-tooltip {
  opacity: 1;
}


/* ───────────────────────────────────────────────────────────────────
   7. FOOTER PROFESSIONNEL
─────────────────────────────────────────────────────────────────── */
.nexsafar-footer {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 0;
  position: relative;
  z-index: 100;
}

.nexsafar-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 50%, var(--gold) 100%);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding: 40px 32px 24px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.logo-icon-footer {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-gold);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.footer-logo small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201, 169, 98, 0.3);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.footer-list a:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-list i {
  color: var(--gold);
  width: 16px;
  text-align: center;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-contact-list a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(201, 169, 98, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-center {
  display: flex;
  gap: 20px;
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-light);
}

.footer-trust i {
  color: var(--gold);
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .howit-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .howit-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Urgency banner */
  .urgency-banner {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .urgency-content {
    gap: 6px;
  }
  
  .urgency-cta {
    padding: 4px 10px;
    font-size: 11px;
  }
  
  .urgency-content span {
    max-width: calc(100% - 100px);
  }
  
  /* Partners */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .partner-card-pro {
    padding: 14px 8px 10px;
  }
  
  .partner-logo-circle {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  
  .partner-name-pro {
    font-size: 12px;
  }
  
  /* Live stats */
  .live-stats {
    gap: 14px;
    font-size: 11px;
  }
  
  /* Why */
  .why-section,
  .howit-section,
  .guarantees-section {
    padding: 20px 16px;
  }
  
  .why-title,
  .howit-title,
  .guarantees-title {
    font-size: 18px;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  /* Guarantees */
  .guarantees-grid {
    grid-template-columns: 1fr;
  }
  
  /* Floating contacts */
  .floating-contacts {
    bottom: 145px;
    right: 14px;
  }
  
  .floating-contact {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px 20px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 14px 20px;
  }
  
  .footer-bottom-center {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .partners-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .live-stats {
    flex-direction: column;
    gap: 8px;
  }
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.hero-photo picture,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-photo::before { z-index: 1; }
.hero-photo .photo-caption { z-index: 2; }
/* ═══════════════════════════════════════════════════════════════════
   NEXSAFAR — PATCH ACCESSIBILITÉ
   À AJOUTER À LA FIN de static/css/index.css
   
   Corrige les problèmes de contraste WCAG AA
   GAIN : +10 points sur le score Accessibilité
═══════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────
   1. CONTRASTE : Or sur fond clair (problème principal)
─────────────────────────────────────────────────────────────────── */

/* Notre or actuel #C9A962 sur fond blanc = ratio 2.7 (échoue WCAG AA)
   Solution : utiliser le gold-dark #A88746 (ratio 4.6 = passe WCAG AA) */

/* Liens, boutons d'action sur fond clair */
.bot-message a,
.partner-rating-pro .rating-value,
.live-stat strong,
.action-button {
  color: #876C32 !important;  /* Or assombri pour meilleur contraste */
}

/* Stars rating (rester visible mais lisible) */
.testimonial-rating,
.partner-rating-pro .stars {
  color: #B8954A;  /* Or moyen */
}

/* Texte secondaire (gray-500 trop léger sur certains fonds) */
.testimonial-info,
.partners-subtitle,
.input-hint,
.howit-step-text {
  color: #595959 !important;  /* Au lieu de gray-500 #737373 */
}

/* Captions des photos hero (texte blanc sur image sombre) */
.photo-caption {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  font-weight: 700;  /* Plus de poids = meilleure lisibilité */
}

/* Texte sur fond charbon dans la sidebar */
.conversation-item {
  color: rgba(255, 255, 255, 0.85);  /* Au lieu de 0.7 */
}

.stat-label {
  color: rgba(255, 255, 255, 0.75);  /* Au lieu de 0.6 */
}

.sidebar-contact small {
  color: rgba(255, 255, 255, 0.75);
}

/* Texte du footer */
.footer-tagline,
.footer-list a,
.footer-contact-list li {
  color: rgba(255, 255, 255, 0.85);  /* Au lieu de 0.7-0.8 */
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.75);
}


/* ───────────────────────────────────────────────────────────────────
   2. FOCUS VISIBLE (navigation clavier)
─────────────────────────────────────────────────────────────────── */

*:focus-visible {
  outline: 3px solid #876C32;
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #876C32;
  outline-offset: 2px;
}

/* Inputs : enlève l'outline par défaut, ajoute box-shadow */
.input-container input:focus,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(135, 108, 50, 0.3);
}


/* ───────────────────────────────────────────────────────────────────
   3. TAILLES MINIMALES TACTILES (mobile)
   WCAG recommande min 44×44px pour les zones cliquables
─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .icon-button,
  .send-button,
  .chat-action-btn,
  .conv-action-btn,
  .reaction-btn,
  .sidebar-action-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .pinned-question-card {
    min-height: 44px;
    padding: 12px 16px;
  }
}


/* ───────────────────────────────────────────────────────────────────
   4. SKIP LINK (accessibilité clavier)
─────────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #1A2530;
  color: #C9A962;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 8px;
}


/* ───────────────────────────────────────────────────────────────────
   5. PREFERS-REDUCED-MOTION (utilisateurs sensibles aux animations)
─────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ───────────────────────────────────────────────────────────────────
   6. SCREEN READER ONLY (texte caché visuellement mais lu par lecteurs)
─────────────────────────────────────────────────────────────────── */

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


/* ═══════════════════════════════════════════════════════════════════
   NEXSAFAR — PATCH MOBILE FINAL
   À COLLER À LA FIN de static/css/index.css
   
   Règle :
   ✅ Bandeau urgence compact mobile
   ✅ Croix toujours visible
   ✅ Input message TOUJOURS visible (jamais caché)
   ✅ Layout responsive parfait Desktop/Tablet/Mobile
═══════════════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────────────
   BANDEAU URGENCE — OVERRIDE COMPLET
─────────────────────────────────────────────────────────────────── */

.urgency-banner {
  padding: 8px 50px 8px 14px !important;
  min-height: 38px;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.urgency-content {
  flex-wrap: nowrap !important;
  gap: 10px !important;
  max-width: 100%;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.urgency-icon {
  font-size: 16px;
  flex-shrink: 0;
  animation: flicker 1.5s infinite;
  display: inline-block;
}

.urgency-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Affichage Desktop par défaut */
.urgency-text-desktop {
  display: inline;
}
.urgency-text-tablet,
.urgency-text-mobile {
  display: none;
}

/* Bouton CTA */
.urgency-cta {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.urgency-cta-text-desktop {
  display: inline;
}
.urgency-cta-text-mobile {
  display: none;
}

/* Croix de fermeture - plus grosse et visible */
.urgency-close {
  width: 30px !important;
  height: 30px !important;
  right: 10px !important;
  font-size: 14px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: white !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2;
}

.urgency-close:hover,
.urgency-close:focus {
  background: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-50%) rotate(90deg) !important;
  border-color: white !important;
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE TABLET (max 768px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  
  .urgency-banner {
    padding: 7px 44px 7px 10px !important;
    font-size: 12px !important;
    min-height: 36px;
  }
  
  .urgency-content {
    gap: 8px !important;
  }
  
  .urgency-icon {
    font-size: 14px;
  }
  
  /* Bascule texte tablet */
  .urgency-text-desktop {
    display: none !important;
  }
  .urgency-text-tablet {
    display: inline !important;
  }
  
  .urgency-cta {
    padding: 5px 12px !important;
    font-size: 11px !important;
    min-height: 28px !important;
  }
  
  .urgency-cta i {
    font-size: 10px;
  }
  
  .urgency-close {
    width: 32px !important;
    height: 32px !important;
    right: 6px !important;
    font-size: 13px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE (max 480px)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  
  .urgency-banner {
    padding: 6px 40px 6px 8px !important;
    font-size: 11px !important;
    min-height: 34px;
  }
  
  .urgency-content {
    gap: 6px !important;
    justify-content: flex-start !important;
  }
  
  .urgency-icon {
    font-size: 13px;
  }
  
  /* Texte mobile (le plus court) */
  .urgency-text-tablet {
    display: none !important;
  }
  .urgency-text-mobile {
    display: inline !important;
    font-size: 11px;
  }
  
  .urgency-text-mobile strong {
    color: #FFD700;
    font-size: 13px;
    margin-right: 4px;
  }
  
  .urgency-cta {
    padding: 4px 10px !important;
    font-size: 10.5px !important;
    min-height: 26px !important;
    gap: 4px !important;
  }
  
  /* Texte CTA mobile plus court */
  .urgency-cta-text-desktop {
    display: none !important;
  }
  .urgency-cta-text-mobile {
    display: inline !important;
  }
  
  .urgency-cta i {
    display: none !important;
  }
  
  /* Croix BIEN VISIBLE */
  .urgency-close {
    width: 34px !important;
    height: 34px !important;
    right: 4px !important;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.4) !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   EXTRA SMALL (max 360px - iPhone SE)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .urgency-banner {
    padding: 5px 38px 5px 6px !important;
    font-size: 10px !important;
  }
  
  .urgency-icon {
    font-size: 12px;
  }
  
  .urgency-text-mobile {
    font-size: 10px;
  }
  
  .urgency-text-mobile strong {
    font-size: 11px;
  }
  
  .urgency-cta {
    padding: 3px 8px !important;
    font-size: 10px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   LAYOUT : tenir compte du bandeau urgence (height calculation)
═══════════════════════════════════════════════════════════════════ */

/* Sans bandeau urgence visible */
body:not(.has-urgency) .app-container {
  height: calc(100vh - var(--trust-banner-height));
}

/* Avec bandeau urgence visible (Desktop = 38px) */
body.has-urgency .app-container {
  height: calc(100vh - var(--trust-banner-height) - 38px);
}

/* Mobile : trust-banner masquée (pas dans le DOM) → pas de soustraction pour elle,
   mais le bandeau urgence (.urgency-banner) reste visible et doit être déduit.
   --urgency-h est calculée en JS (hauteur réelle, varie selon le breakpoint).
   --real-vh (JS, via window.visualViewport) prime sur dvh/svh/vh : sur iOS
   Safari, 100dvh peut être faux au tout premier chargement (barre d'adresse
   encore visible) et le rester puisque html/body sont en overflow:hidden
   (donc jamais le scroll qui forcerait Safari à recalculer) — le contenu
   du bas (input, boutons) reste alors inaccessible en permanence. */
@media (max-width: 768px) {
  body:not(.has-urgency) .app-container {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    height: var(--real-vh, 100dvh);
  }
  body.has-urgency .app-container {
    height: calc(100vh - var(--urgency-h, 38px));
    height: calc(100svh - var(--urgency-h, 38px));
    height: calc(100dvh - var(--urgency-h, 38px));
    height: calc(var(--real-vh, 100dvh) - var(--urgency-h, 38px));
  }
}

/* Bouton menu hamburger : ne doit jamais se cacher sous le bandeau urgence */
@media (max-width: 768px) {
  body.has-urgency .mobile-menu-btn {
    top: calc(var(--urgency-h, 38px) + 8px);
  }
  body:not(.has-urgency) .mobile-menu-btn {
    top: 8px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   CHAT MAIN : structure flex pour input toujours visible
═══════════════════════════════════════════════════════════════════ */

.chat-main {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

.chat-scroll-area {
  flex: 1 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* L'INPUT TOUJOURS VISIBLE EN BAS — c'est le point clé */
.chat-input-area {
  flex-shrink: 0 !important;
  background: var(--white);
  border-top: none !important;
  box-shadow: 0 -6px 24px -2px rgba(0,0,0,0.09);
  position: relative !important;
  z-index: 35;
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE : Input parfait + boutons
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .chat-input-area {
    padding: 8px 12px 10px;
  }

  .quick-chips-row {
    padding-bottom: 8px;
    gap: 6px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .quick-chip {
    font-size: 11px;
    padding: 5px 11px;
  }

  .input-container {
    padding: 4px 5px 4px 14px;
    border-radius: 999px;
  }

  .input-container input {
    font-size: 16px !important; /* iOS no-zoom */
    padding: 9px 0;
    -webkit-appearance: none;
    appearance: none;
  }

  /* Sur mobile, le bouton "Envoyer" devient cercle */
  .send-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .send-button::after {
    display: none;
  }

  .icon-button {
    min-width: 40px !important;
    min-height: 40px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .input-hint {
    font-size: 10px;
    margin-top: 5px;
  }

  .input-hint span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   BOUTON BURGER : position correcte avec/sans bandeau
═══════════════════════════════════════════════════════════════════ */
/* Mobile : trust banner cachée → bouton menu en haut à gauche simple */
@media (max-width: 768px) {
  .mobile-menu-btn {
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR : pleine hauteur sur mobile (trust banner masquée)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar,
  body.has-urgency .sidebar,
  body:not(.has-urgency) .sidebar {
    top: 0;
    height: 100vh;
    height: 100dvh;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   BOUTONS FLOTTANTS : position OK en mobile
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Bouton devis flottant */
  .floating-devis-btn {
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: 12px;
    padding: 10px 16px;
    font-size: 12px;
  }

  /* WhatsApp + Téléphone — au-dessus du bouton devis */
  .floating-contacts {
    bottom: calc(154px + env(safe-area-inset-bottom));
    right: 12px;
    gap: 8px;
  }
  
  .floating-contact {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  
  /* Tooltips cachés en mobile */
  .floating-contact .contact-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-devis-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    bottom: 88px;
    right: 12px;
  }
  
  .floating-devis-btn span {
    display: none;
  }
  
  .floating-devis-btn i {
    font-size: 18px;
  }
  
  .floating-contacts {
    bottom: 148px;
  }
  
  .floating-contact {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   FIX iOS : empêcher zoom auto sur les inputs
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   FIX SAFARI iOS : hauteur viewport (URL bar)
═══════════════════════════════════════════════════════════════════ */
/* NOTE : -webkit-fill-available a le même type de bug que dvh sur iOS
   (mauvaise valeur au premier chargement) — on utilise --real-vh (mesuré
   en JS via visualViewport) plutôt que de s'y fier, pour ne pas rentrer
   en conflit avec le fix ci-dessus (même sélecteur, même spécificité :
   celui qui est déclaré en dernier gagnerait sinon, silencieusement). */
@supports (-webkit-touch-callout: none) {
  body:not(.has-urgency) .app-container {
    height: var(--real-vh, -webkit-fill-available);
  }
  body.has-urgency .app-container {
    height: calc(var(--real-vh, 100vh) - var(--urgency-h, 38px));
  }
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE : Animation moins agressive (perf + batterie)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Bandeau : pas d'animation gradient */
  .urgency-banner {
    animation: none !important;
    background: linear-gradient(90deg, #B33A3A 0%, #C9A962 100%) !important;
  }
}

/* Cacher temporairement la section agences partenaires */
.partners-section {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS v2 — NexSafar
   Cible : ≤768px (mobile), ≤480px (petit mobile), ≤360px (vieux Android)
   Ajouté le 2026-06-06
═══════════════════════════════════════════════════════════════════ */

/* ─── 1. VIEWPORT DYNAMIQUE (iOS Safari URL-bar) ─── */
@supports (height: 100dvh) {
  .app-container { height: 100dvh; }
}
@supports not (height: 100dvh) {
  .app-container { height: -webkit-fill-available; }
}

/* ─── 2. SAFE AREA iOS (notch + barre home) ─── */
@media (max-width: 768px) {
  .chat-input-area {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
  .app-container {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .floating-devis-btn,
  .floating-contacts {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

/* ─── 3. SIDEBAR ─── */
@media (max-width: 768px) {
  .sidebar {
    width: min(280px, 85vw);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Fermer la sidebar en cliquant ailleurs */
  .sidebar-overlay {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .sidebar-overlay.show {
    opacity: 1;
    pointer-events: all;
  }
}

/* ─── 4. CHAT HEADER ─── */
@media (max-width: 768px) {
  .chat-header {
    padding: 0 10px 0 58px;
    gap: 4px;
  }
  .chat-header-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
  }
  /* Cacher download + hotel sur très petit écran, garder volume + trash + send */
  .chat-action-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 10px;
  }
  .bot-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .avatar-icon { font-size: 18px; }
  .chat-header-name { font-size: 14px; }
  .chat-header-status { font-size: 11px; }
}

@media (max-width: 380px) {
  .chat-header { padding-left: 54px; }
  /* Masquer l'icône hôtel en header sur très petit écran (reste dans sidebar) */
  .chat-header-actions a.chat-action-btn { display: none; }
  /* Masquer aussi download */
  #downloadChat { display: none; }
}

/* ─── 5. ACTIONS SUGGÉRÉES — scroll horizontal ─── */
@media (max-width: 768px) {
  .suggested-actions {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .suggested-actions::-webkit-scrollbar { display: none; }
  .action-button {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 14px;
    min-height: 36px;
  }
}

/* ─── 6. MESSAGES ─── */
@media (max-width: 768px) {
  .bot-message-container { max-width: 93%; }
  .user-message { max-width: 86%; font-size: 14px; }
  .message-block {
    font-size: 14px;
    padding: 11px 13px;
    line-height: 1.65;
  }
  /* Blocs HTML (cartes offres) — scroll horizontal si trop larges */
  .bot-html-block,
  .bot-message table,
  .bot-message .hotel-card-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  /* Tables dans les messages */
  .bot-message table {
    font-size: 12px;
    min-width: 280px;
    display: block;
  }
  /* Cards offres intégrées */
  .bot-message div[style*="border"] {
    word-break: break-word;
  }
}

/* ─── 7. ZONE INPUT ─── */
@media (max-width: 768px) {
  .chat-input-area {
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  }
  .input-container {
    padding: 4px 4px 4px 14px;
    border-radius: 22px;
  }
  .input-container input {
    font-size: 16px; /* évite zoom iOS */
    padding: 9px 0;
  }
  .send-button {
    width: 42px;
    height: 42px;
    font-size: 15px;
    flex-shrink: 0;
  }
  .icon-button {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .input-hint {
    font-size: 10px;
    text-align: center;
    padding: 0 4px;
  }
}

/* ─── 8. HERO ─── */
@media (max-width: 768px) {
  .hero-gallery {
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .hero-overlay {
    padding: 20px 18px 22px;
  }
  .hero-title {
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.55;
  }
  .hero-cta-group { gap: 10px; }
  .btn-primary,
  .btn-secondary {
    padding: 12px 18px;
    font-size: 13px;
    min-height: 44px; /* cible tactile WCAG */
  }
}

@media (max-width: 480px) {
  /* Cacher la galerie photos sur petit écran — économise de la place */
  .hero-photos { display: none; }
  .hero-gallery { min-height: auto; }
}

/* ─── 9. QUESTIONS ÉPINGLÉES — scroll horizontal ─── */
@media (max-width: 768px) {
  .pinned-grid,
  .pinned-questions-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .pinned-grid::-webkit-scrollbar,
  .pinned-questions-list::-webkit-scrollbar { display: none; }

  .pinned-question-card {
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .pinned-section { padding: 14px 14px 10px; }
}

/* ─── 10. TÉMOIGNAGES ─── */
@media (max-width: 768px) {
  .testimonials-section { padding: 16px; }
  .testimonials-title { font-size: 14px; }
  .testimonial-text { font-size: 13px; line-height: 1.6; }
  .testimonial-author { font-size: 12px; }
  .testimonials-nav {
    gap: 12px;
    margin-top: 14px;
  }
  .testimonials-nav button {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

/* ─── 11. MODAL DEVIS ─── */
@media (max-width: 768px) {
  .devis-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .devis-container {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    width: 100%;
  }
  .devis-header { padding: 16px 18px 14px; }
  .devis-header h3 { font-size: 15px; }
  .devis-form { padding: 14px 18px 18px; }
  .form-group label { font-size: 13px; }
  .form-group input,
  .form-group select {
    font-size: 16px; /* évite zoom iOS */
    padding: 11px 14px;
  }
  .devis-submit-btn {
    padding: 13px;
    font-size: 14px;
    min-height: 48px;
  }
  /* Handle barre de drag */
  .devis-container::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(0,0,0,.15);
    border-radius: 2px;
    margin: 10px auto 0;
  }
}

/* ─── 12. CIBLES TACTILES (WCAG 2.1 — min 44×44px) ─── */
@media (max-width: 768px) {
  .chat-action-btn,
  .mobile-menu-btn,
  .send-button,
  .btn-primary,
  .btn-secondary,
  .pinned-question-card,
  .partner-card,
  .testimonials-nav button {
    min-height: 44px;
  }
  .mobile-menu-btn {
    width: 44px;
    height: 44px;
  }
}

/* ─── 13. SCROLL AREA ─── */
@media (max-width: 768px) {
  .chat-scroll-area {
    padding: 12px 12px 6px;
    -webkit-overflow-scrolling: touch;
    /* Empêche le "bounce" iOS de casser le layout */
    overscroll-behavior: contain;
  }
  #chat-box { gap: 10px; }
}

/* ─── 14. TRUST BANNER ─── */
@media (max-width: 480px) {
  .trust-banner {
    font-size: 10px;
    gap: 10px;
    padding: 0 6px;
  }
  .trust-item { gap: 4px; }
}

/* ─── 15. FLOATING BUTTONS — éviter le chevauchement input ─── */
@media (max-width: 480px) {
  .floating-devis-btn {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 10px;
  }
  .floating-contacts {
    bottom: calc(154px + env(safe-area-inset-bottom));
    right: 10px;
    gap: 6px;
  }
  .floating-contact {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }
}

/* ─── 16. TYPING BUBBLE ─── */
@media (max-width: 768px) {
  .typing-bubble { padding: 10px 14px; }
}

/* ─── 17. BOUTON NOUVEAU CHAT ─── */
@media (max-width: 768px) {
  .btn-new-chat {
    min-height: 44px;
    font-size: 13px;
  }
}

/* ─── 18. TRÈS PETIT ÉCRAN (360px — vieux Android) ─── */
@media (max-width: 360px) {
  .hero-title { font-size: 18px; }
  .hero-subtitle { font-size: 12px; }
  .chat-header-name { font-size: 13px; }
  .message-block { font-size: 13px; padding: 10px 12px; }
  .user-message { font-size: 13px; }
  .action-button { font-size: 11px; padding: 7px 11px; }
  .chat-scroll-area { padding: 10px 10px 4px; }
  .chat-input-area { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); }
}


/* ═══════════════════════════════════════════════════════════════════
   DEVIS WIZARD — styles complets
═══════════════════════════════════════════════════════════════════ */
.devis-wizard-container {
  display: flex;
  flex-direction: column;
  max-width: 860px;
  width: 95%;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
}

/* ── header & steps bar ── */
.wz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--charcoal);
  border-radius: 0;
  gap: 12px;
}
.wz-steps-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.wz-steps-bar::-webkit-scrollbar { display: none; }
.wz-step {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  white-space: nowrap;
}
.wz-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .25s;
}
.wz-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  transition: color .25s;
}
.wz-step.active .wz-num { background: var(--gold); color: var(--charcoal); }
.wz-step.active .wz-lbl { color: var(--gold); }
.wz-step.done .wz-num { background: rgba(201,169,98,.3); color: var(--gold); }
.wz-step.done .wz-lbl { color: rgba(201,169,98,.7); }
.wz-sep { color: rgba(255,255,255,.3); font-size: 14px; padding: 0 2px; }

/* ── corps scrollable ── */
.wz-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  -webkit-overflow-scrolling: touch;
}
.wz-panel { animation: fadeInUp .25s ease; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── titres ── */
.wz-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wz-title i { color: var(--gold); }
.wz-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}

/* ── grille form ── */
.wz-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.wz-fg { display: flex; flex-direction: column; gap: 5px; }
.wz-fg-wide { grid-column: span 2; }
.wz-fg label { font-size: 12px; font-weight: 600; color: var(--charcoal-mid); }
.wz-fg input, .wz-fg select, .wz-select {
  padding: 10px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  color: var(--charcoal);
  background: var(--gray-100);
  transition: border-color .2s;
  width: 100%;
}
.wz-fg input:focus, .wz-fg select:focus, .wz-select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,169,98,.12);
}
.wz-input-sm { max-width: 120px; }
.req { color: var(--danger); font-size: 11px; }
.wz-hint { font-size: 10px; color: var(--gray-400); }

/* ── badge nuits ── */
.wz-nights-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(201,169,98,.12), rgba(201,169,98,.06));
  border: 1px solid rgba(201,169,98,.3);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ── tables tarifs ── */
.wz-tarif-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--gray-200); }
.wz-tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.wz-tarif-table .wz-thead { background: var(--charcoal); }
.wz-tarif-table .wz-thead th {
  padding: 10px 14px;
  color: var(--gold);
  font-weight: 700;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.wz-tarif-table tr:not(.wz-thead) {
  border-bottom: 1px solid var(--gray-100);
}
.wz-tarif-table tr:not(.wz-thead):nth-child(even) { background: rgba(247,243,236,.6); }
.wz-tarif-table td {
  padding: 9px 14px;
  color: var(--charcoal);
}
.wz-td-prix { color: var(--gold-dark) !important; font-weight: 700; }
.wz-table-hint {
  font-size: 11px;
  color: var(--gray-400);
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.wz-table-hint i { color: var(--gold); }

/* ── loading / error ── */
.wz-loading { color: var(--gold); font-size: 13px; padding: 12px; text-align: center; }
.wz-error { color: var(--danger); font-size: 12px; padding: 10px 14px;
  background: rgba(183,28,28,.06); border-radius: 8px; }

/* ── options ── */
.wz-opts-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.wz-opt-check { cursor: pointer; display: flex; }
.wz-opt-check input { display: none; }
.wz-opt-box {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal-mid);
  transition: all .2s;
}
.wz-opt-box small { font-weight: 400; color: var(--gray-400); }
.wz-opt-check input:checked + .wz-opt-box {
  border-color: var(--gold);
  background: rgba(201,169,98,.08);
  color: var(--gold-dark);
}
.wz-opts-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

/* ── inclus / non inclus ── */
.wz-inclus-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
  font-size: 12px;
}
.wz-inclus-yes, .wz-inclus-no {
  padding: 12px 16px;
  border-radius: 10px;
}
.wz-inclus-yes { background: rgba(39,174,96,.07); border: 1px solid rgba(39,174,96,.2); }
.wz-inclus-no  { background: rgba(231,76,60,.05);  border: 1px solid rgba(231,76,60,.15); }
.wz-inclus-yes strong { color: #1a6b3a; }
.wz-inclus-no  strong { color: #8b1a1a; }
.wz-inclus-yes ul, .wz-inclus-no ul { margin: 8px 0 0 14px; padding: 0; line-height: 1.8; }

/* ── récap ── */
.wz-recap-box { background: var(--gray-100); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.recap-header p { margin: 0 0 4px; font-size: 12px; color: var(--charcoal); }
.recap-chambre {
  margin-top: 14px; padding: 14px; border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.recap-ch-name { font-weight: 700; font-size: 14px; color: var(--charcoal); margin-bottom: 4px; }
.recap-ch-sar  { font-size: 18px; font-weight: 700; color: var(--gold-dark); }
.recap-ch-pers { font-size: 12px; color: var(--gray-400); margin: 2px 0 8px; }
.recap-currencies { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; }
.curr-eur { color: #1a6b3a; } .curr-usd { color: #1a3a6b; } .curr-cad { color: #6b1a1a; }

/* ── programme ── */
.wz-programme-box { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.prog-day { padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--gray-100); border-radius: 0 10px 10px 0; }
.prog-day-title { font-weight: 700; font-size: 13px; color: var(--charcoal); margin-bottom: 2px; }
.prog-day-loc   { font-size: 11px; color: var(--gold-dark); margin-bottom: 6px; }
.prog-day-desc  { font-size: 12px; color: var(--charcoal-mid); line-height: 1.55; }

/* ── résultat PDF ── */
.wz-pdf-result {
  padding: 14px 18px; border-radius: 10px; margin-top: 14px;
  background: rgba(39,174,96,.08);
  border: 1px solid rgba(39,174,96,.2);
  font-size: 13px; color: #1a6b3a;
}
.wz-pdf-link {
  display: inline-block; margin-top: 10px;
  padding: 10px 20px;
  background: var(--gold); color: var(--charcoal);
  border-radius: 999px; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: transform .2s;
}
.wz-pdf-link:hover { transform: scale(1.04); }

/* ── footer navigation ── */
.wz-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  gap: 10px;
}
.wz-step-info { font-size: 12px; color: var(--gray-400); font-weight: 600; }
.wz-btn-prev, .wz-btn-next, .wz-btn-gen {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border: none; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.wz-btn-prev { background: var(--gray-100); color: var(--charcoal); }
.wz-btn-prev:hover { background: var(--gray-200); }
.wz-btn-next { background: var(--gold); color: var(--charcoal); }
.wz-btn-next:hover { background: var(--gold-dark); transform: translateX(2px); }
.wz-btn-gen { background: linear-gradient(135deg,#C9A962,#A8873D); color: var(--white); }
.wz-btn-gen:hover { transform: scale(1.03); }
.wz-btn-gen:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── responsive mobile ── */
@media (max-width: 600px) {
  .devis-wizard-container { width: 100%; max-height: 100dvh; border-radius: 0; }
  .wz-body { padding: 16px; }
  .wz-form-row { grid-template-columns: 1fr; }
  .wz-fg-wide { grid-column: span 1; }
  .wz-lbl { display: none; }
  .wz-inclus-box { grid-template-columns: 1fr; }
  .wz-footer { padding: 10px 14px; }
  .wz-btn-prev, .wz-btn-next, .wz-btn-gen { padding: 10px 14px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   HOTEL SUGGESTION CARDS (affichées dans le chat après le greeting)
═══════════════════════════════════════════════════════════════════ */
.hotel-suggest-container {
  max-width: 480px;
  animation: messageIn 0.4s ease-out 0.5s both;
}

.hotel-suggest-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.hotel-suggest-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hotel-suggest-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hotel-suggest-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
  border: 1.5px solid rgba(201,169,98,0.25);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
  width: 100%;
}

.hotel-suggest-card:hover {
  background: linear-gradient(135deg, rgba(201,169,98,0.15) 0%, rgba(201,169,98,0.08) 100%);
  border-color: var(--gold);
  transform: translateX(3px);
  box-shadow: 0 3px 12px rgba(201,169,98,0.2);
}

.hsc-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.hsc-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hsc-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
}

.hsc-text span {
  font-size: 11px;
  color: var(--gray-500);
}

.hsc-arrow {
  font-size: 20px;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BTN-PRIMARY PULSE (attirer l'attention sur Devis gratuit)
═══════════════════════════════════════════════════════════════════ */
.btn-primary {
  animation: devis-pulse 3.5s ease-in-out infinite;
}

@keyframes devis-pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(201,169,98,0.35);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 6px 28px rgba(201,169,98,0.65), 0 0 0 6px rgba(201,169,98,0.12);
    transform: scale(1.035);
  }
}

/* Stopper la pulse si l'user hover le bouton */
.btn-primary:hover {
  animation: none;
}

@media (max-width: 768px) {
  .hotel-suggest-container {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DESIGN PREMIUM 2.0 — Glassmorphism · Gradients profonds · Luxe
═══════════════════════════════════════════════════════════════════ */

/* ── Fond global enrichi ─────────────────────────────────────────── */
body {
  background: linear-gradient(160deg, #EDE8DC 0%, #F5EFE4 50%, #E8E0D0 100%);
  background-attachment: fixed;
}

.app-container {
  background: transparent;
}

/* ── Chat main : atmosphère dorée subtile ──────────────────────── */
.chat-main {
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(201,169,98,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(26,37,48,0.05) 0%, transparent 60%),
    linear-gradient(165deg, #FDFBF6 0%, #F8F3E8 60%, #F2EBD8 100%);
}

/* ── Sidebar : dégradé plus profond ────────────────────────────── */
.sidebar {
  background: linear-gradient(180deg, #111820 0%, #1A2530 35%, #1E2D3C 100%);
  border-right: 1px solid rgba(201,169,98,0.18);
}

.btn-new-chat {
  background: linear-gradient(135deg, #D4AE55 0%, #C9A962 45%, #A88746 100%);
  box-shadow: 0 4px 20px rgba(201,169,98,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.05);
}

.btn-new-chat:hover {
  box-shadow: 0 8px 30px rgba(201,169,98,0.65), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.stat-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,98,0.12);
}

.stat-item:hover {
  background: rgba(201,169,98,0.1);
  border-color: rgba(201,169,98,0.3);
  transform: translateY(-2px);
}

/* ── Chat header glassmorphism ──────────────────────────────────── */
.chat-header {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,169,98,0.22);
  box-shadow: 0 2px 24px rgba(26,37,48,0.07);
}

.chat-header-name {
  font-size: 18px;
  letter-spacing: 0.1px;
}

.chat-action-btn {
  background: rgba(245,241,232,0.8);
  border: 1px solid rgba(201,169,98,0.12);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: linear-gradient(135deg, #D4AE55 0%, #A88746 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(201,169,98,0.4);
  transform: translateY(-2px);
}

/* ── Hero : plus dramatique et profond ─────────────────────────── */
.hero-gallery {
  background: linear-gradient(135deg, #0C1520 0%, #1A2530 30%, #243040 65%, #172030 100%);
  box-shadow: 0 16px 52px rgba(26,37,48,0.28), 0 2px 8px rgba(201,169,98,0.12);
  border: 1px solid rgba(201,169,98,0.08);
}

.hero-title {
  font-size: 38px;
  letter-spacing: -0.8px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.hero-accent {
  background: linear-gradient(135deg, #E8C96A 0%, #F5DC90 40%, #C9A962 70%, #E8C96A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 800;
}

.btn-primary {
  background: linear-gradient(135deg, #D4AE55 0%, #C9A962 45%, #A88746 100%);
  box-shadow: 0 4px 24px rgba(201,169,98,0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 38px rgba(201,169,98,0.65), inset 0 1px 0 rgba(255,255,255,0.22);
  animation: none;
}

.btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: white;
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
}

.hero-photo {
  border-radius: 12px;
}

.hero-photo::before {
  background: linear-gradient(to top, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}

/* ── Sections principales glassmorphism ─────────────────────────── */
.partners-section,
.testimonials-section,
.pinned-section,
.howit-section {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201,169,98,0.12);
  box-shadow: 0 4px 28px rgba(26,37,48,0.07), 0 1px 4px rgba(201,169,98,0.08);
}

/* ── "Pourquoi NexSafar" fond enrichi ──────────────────────────── */
.why-section {
  background: linear-gradient(140deg,
    rgba(245,239,224,0.95) 0%,
    rgba(252,248,240,0.98) 50%,
    rgba(245,239,224,0.92) 100%
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,98,0.14);
  box-shadow: 0 4px 28px rgba(26,37,48,0.07);
}

.why-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,98,0.1);
  border-top: none;
  box-shadow: 0 2px 16px rgba(26,37,48,0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D4AE55 0%, #C9A962 50%, #A88746 100%);
  border-radius: 4px 4px 0 0;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(26,37,48,0.13), 0 4px 12px rgba(201,169,98,0.16);
  background: rgba(255,255,255,0.98);
  border-color: rgba(201,169,98,0.22);
}

.why-icon {
  width: 70px;
  height: 70px;
  font-size: 28px;
  box-shadow: 0 8px 28px rgba(201,169,98,0.45);
  transition: all 0.35s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 12px 36px rgba(201,169,98,0.6);
}

/* ── "Comment ça marche" icônes améliorées ─────────────────────── */
.howit-icon-box {
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-soft) 100%);
  border: 2px solid rgba(201,169,98,0.35);
  box-shadow: 0 4px 18px rgba(201,169,98,0.14);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.howit-step:hover .howit-icon-box {
  background: linear-gradient(135deg, #D4AE55 0%, #A88746 100%);
  color: white;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 14px 32px rgba(201,169,98,0.5);
  border-color: transparent;
}

.howit-number {
  background: linear-gradient(135deg, #D4AE55 0%, #A88746 100%);
  box-shadow: 0 4px 18px rgba(201,169,98,0.55);
  border: 3px solid rgba(255,255,255,0.9);
}

/* ── Partenaires : cartes premium ───────────────────────────────── */
.partner-card-pro {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,169,98,0.12);
  box-shadow: 0 2px 14px rgba(26,37,48,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card-pro:hover {
  background: rgba(255,255,255,0.98);
  border-color: rgba(201,169,98,0.42);
  transform: translateY(-7px);
  box-shadow: 0 22px 52px rgba(26,37,48,0.14), 0 4px 14px rgba(201,169,98,0.22);
}

.partner-logo-circle {
  background: linear-gradient(135deg, #111820 0%, #1E2D3C 100%);
  box-shadow: 0 6px 22px rgba(26,37,48,0.32);
  border: 2.5px solid rgba(201,169,98,0.75);
  transition: all 0.3s ease;
}

.partner-card-pro:hover .partner-logo-circle {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(201,169,98,0.45);
  border-color: var(--gold);
}

/* ── Messages chat modernisés ────────────────────────────────────── */
.bot-message {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,98,0.14);
  border-left: 3.5px solid var(--gold);
  box-shadow: 0 2px 18px rgba(26,37,48,0.06), 0 1px 4px rgba(201,169,98,0.07);
  border-radius: 18px;
  border-top-left-radius: 4px;
}

.user-message {
  background: linear-gradient(135deg, #0F1A24 0%, #1A2530 40%, #1E2D3C 80%, #172330 100%);
  box-shadow: 0 4px 24px rgba(26,37,48,0.28), 0 1px 4px rgba(0,0,0,0.15);
  border: 1px solid rgba(201,169,98,0.1);
  border-radius: 18px;
  border-top-right-radius: 4px;
}

/* ── Typing bubble ──────────────────────────────────────────────── */
.typing-bubble {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,98,0.14);
  border-left: 3.5px solid var(--gold);
  box-shadow: 0 2px 18px rgba(26,37,48,0.06);
  border-radius: 18px;
  border-top-left-radius: 4px;
}

/* ── Témoignages : citation décorée ────────────────────────────── */
.testimonial-text {
  position: relative;
  padding-left: 28px;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: -2px;
  top: -14px;
  font-family: var(--font-serif);
  font-size: 64px;
  color: rgba(201,169,98,0.22);
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.testimonial-avatar {
  box-shadow: 0 4px 14px rgba(201,169,98,0.4);
}

/* ── Zone input glassmorphism ─────────────────────────────────── */
.chat-input-area {
  background: rgba(252,248,242,0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(201,169,98,0.28);
  box-shadow: 0 -8px 36px rgba(26,37,48,0.06), 0 -1px 6px rgba(201,169,98,0.07);
}

.input-container {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(201,169,98,0.32);
  box-shadow: 0 4px 22px rgba(201,169,98,0.1), 0 1px 4px rgba(0,0,0,0.04);
  border-radius: 22px;
  align-items: flex-end;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-container:focus-within {
  border-color: rgba(201,169,98,0.85);
  box-shadow: 0 0 0 4px rgba(201,169,98,0.14), 0 8px 36px rgba(201,169,98,0.22);
  transform: translateY(-2px);
}

/* ── BOUTON ENVOYER — REDESIGN PREMIUM ─────────────────────────── */
.send-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  background: linear-gradient(135deg,
    #E8C96A 0%,
    #C9A962 25%,
    #A88746 55%,
    #C9A962 75%,
    #D4AE55 100%
  );
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 20px rgba(201,169,98,0.55),
    0 1px 4px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  animation: sendGlow 3s ease-in-out infinite;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Texte "Envoyer" */
.send-button::after {
  content: 'Envoyer';
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Shimmer sweep sur hover */
.send-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.send-button:hover::before {
  left: 160%;
}

.send-button:hover {
  background: linear-gradient(135deg,
    #F0D070 0%,
    #D4AE55 25%,
    #B8913A 55%,
    #D4AE55 75%,
    #E8C96A 100%
  );
  background-size: 200% 100%;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 10px 36px rgba(201,169,98,0.68),
    0 2px 8px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  animation: none;
}

/* Icône paper-plane : vole vers la droite au hover */
.send-button i {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.send-button:hover i {
  transform: translateX(4px) translateY(-2px) rotate(-30deg);
}

.send-button:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 4px 16px rgba(201,169,98,0.45),
    inset 0 2px 4px rgba(0,0,0,0.15);
  transition-duration: 0.08s;
}

@keyframes sendGlow {
  0%, 100% {
    box-shadow:
      0 4px 20px rgba(201,169,98,0.45),
      0 1px 4px rgba(0,0,0,0.1),
      inset 0 1px 0 rgba(255,255,255,0.28);
  }
  50% {
    box-shadow:
      0 6px 30px rgba(201,169,98,0.72),
      0 2px 6px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.32),
      0 0 0 3px rgba(201,169,98,0.12);
  }
}

.quick-chip {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201,169,98,0.28);
  box-shadow: 0 2px 8px rgba(26,37,48,0.05);
}

.quick-chip:hover {
  background: linear-gradient(135deg, #D4AE55 0%, #A88746 100%);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(201,169,98,0.48);
  transform: translateY(-3px);
}

/* ── Bouton devis flottant premium ─────────────────────────────── */
.floating-devis-btn {
  background: linear-gradient(135deg, #D4AE55 0%, #C9A962 42%, #A88746 100%);
  box-shadow: 0 8px 30px rgba(201,169,98,0.52), 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.14);
}

.floating-devis-btn:hover {
  background: linear-gradient(135deg, #111820 0%, #1A2530 50%, #243040 100%);
  box-shadow: 0 14px 40px rgba(26,37,48,0.4);
  border-color: rgba(201,169,98,0.32);
  transform: translateY(-5px) scale(1.05);
  animation: none;
}

/* ── Boutons flottants contact premium ─────────────────────────── */
.floating-contact.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #0EA554 100%);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

.floating-contact.phone {
  background: linear-gradient(135deg, #111820 0%, #243040 100%);
  border: 1px solid rgba(201,169,98,0.28);
  box-shadow: 0 6px 22px rgba(26,37,48,0.38);
}

.floating-contact:hover {
  transform: scale(1.13) translateX(-4px);
}

/* ── Garanties section premium ────────────────────────────────── */
.guarantees-section {
  background: linear-gradient(135deg, #0C1520 0%, #1A2530 30%, #243040 65%, #162030 100%);
  box-shadow: 0 8px 36px rgba(26,37,48,0.22);
}

.guarantee-card {
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.guarantee-card:hover {
  background: rgba(201,169,98,0.1);
  border-color: rgba(201,169,98,0.35);
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(201,169,98,0.14);
}

/* ── Bandeau urgence premium ────────────────────────────────── */
.urgency-banner {
  background: linear-gradient(90deg,
    #8C1A1A 0%, #B83030 20%,
    #C9A962 45%, #1A2530 65%,
    #C9A962 80%, #8C1A1A 100%
  );
  background-size: 300% 100%;
  animation: premiumBannerFlow 7s ease infinite;
}

@keyframes premiumBannerFlow {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── Questions rapides premium ──────────────────────────────── */
.pinned-question-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(201,169,98,0.14);
  box-shadow: 0 2px 8px rgba(26,37,48,0.04);
  transition: all 0.22s ease;
}

.pinned-question-card:hover {
  background: rgba(255,255,255,0.98);
  border-color: rgba(201,169,98,0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(201,169,98,0.22);
  color: var(--gold-dark);
}

/* ── Action buttons sidebar premium ─────────────────────────── */
.sidebar-action-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,98,0.18);
}

.sidebar-action-btn:hover {
  background: linear-gradient(135deg, #D4AE55 0%, #A88746 100%);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(201,169,98,0.45);
}

/* ── Live stats décoratif ────────────────────────────────────── */
.live-stats {
  border-top: 1px solid rgba(201,169,98,0.14);
  padding-top: 14px;
}

/* ── Scrollbar premium ───────────────────────────────────────── */
.chat-scroll-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(201,169,98,0.5) 0%, rgba(168,135,70,0.4) 100%);
}

.chat-scroll-area::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* ── Sidebar contact premium ─────────────────────────────────── */
.sidebar-contact {
  background: rgba(201,169,98,0.08);
  border: 1px solid rgba(201,169,98,0.18);
  backdrop-filter: blur(8px);
}

.sidebar-contact:hover {
  background: rgba(201,169,98,0.15);
  border-color: rgba(201,169,98,0.32);
  box-shadow: 0 4px 16px rgba(201,169,98,0.2);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 26px;
  }
  .why-card:hover {
    transform: translateY(-4px);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — Optimisé pour smartphones (iOS & Android)
   Corrections : clavier virtuel, safe-area, touch targets, dvh
═══════════════════════════════════════════════════════════════════ */

/* ── 1. Viewport dynamique (corrige iOS Safari + clavier virtuel) ── */
html, body {
  height: 100%;
  /* dvh = dynamic viewport height : s'adapte quand le clavier ouvre */
  height: 100dvh;
}

.app-container {
  /* Fallback vh puis dvh pour les navigateurs modernes */
  height: calc(100vh - var(--trust-banner-height));
  height: calc(100dvh - var(--trust-banner-height));
}

/* ── 2. Safe-area iPhone X+ (notch, home bar) ────────────────────── */
.chat-input-area {
  /* Espace sous l'input pour la barre home iPhone */
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* ── 3. Smooth scroll sur iOS ────────────────────────────────────── */
.chat-scroll-area {
  -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ≤ 768px
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Input : 16px minimum pour éviter le zoom automatique sur iOS */
  .input-container input,
  .input-container textarea {
    font-size: 16px;
  }

  /* Touch targets minimum 44px (Apple HIG) */
  .chat-action-btn,
  .mobile-menu-btn,
  .icon-button,
  .reaction-btn {
    min-width: 44px;
    min-height: 44px;
  }

  /* Bouton envoyer plus compact mais toujours tactile */
  .send-button {
    height: 44px;
    padding: 0 16px;
  }

  /* Messages plus larges sur mobile */
  .bot-message-container {
    max-width: 94%;
  }
  .user-message {
    max-width: 88%;
  }

  /* Pinned questions : scroll horizontal fluide sur touch */
  #pinned-questions-cards {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  #pinned-questions-cards::-webkit-scrollbar { display: none; }

  .pinned-question-card {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Boutons CTA hero : pleine largeur */
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SMALL MOBILE ≤ 480px — Téléphones standards (iPhone SE, Pixel)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Variables réduites */
  :root {
    --header-height: 56px;
    --trust-banner-height: 0px; /* Caché sur petit écran */
  }

  /* Masquer la trust banner sur très petit écran (gain de place) */
  .trust-banner {
    display: none;
  }

  /* Header compact */
  .chat-header {
    padding: 0 12px 0 56px;
    height: 56px;
  }
  .chat-header-name {
    font-size: 14px;
  }
  .chat-header-status {
    font-size: 11px;
  }
  /* Cacher les boutons secondaires du header */
  .chat-action-btn:not(:last-child) {
    display: none;
  }

  /* Hero ultra-compact */
  .hero-gallery {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 12px;
    border-radius: 12px;
  }
  .hero-photos {
    display: none; /* Photos cachées sur petit écran */
  }
  .hero-overlay {
    padding: 18px 16px;
  }
  .hero-title {
    font-size: 19px;
    margin-bottom: 8px;
  }
  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 14px;
  }

  /* Sections intro plus compactes */
  .partners-section,
  .testimonials-section,
  .pinned-section {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  /* Partenaires : 2 colonnes */
  .partners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .partner-card-pro {
    padding: 12px 8px;
  }

  /* Zone scroll : moins de padding latéral */
  .chat-scroll-area {
    padding: 10px 10px;
  }

  /* Messages */
  .message-block {
    font-size: 14px;
    padding: 11px 13px;
    border-radius: 12px;
  }
  .bot-message-container {
    max-width: 96%;
  }
  .user-message {
    max-width: 86%;
    font-size: 14px;
    padding: 11px 13px;
  }

  /* Input area */
  .chat-input-area {
    padding: 8px 10px max(12px, env(safe-area-inset-bottom));
  }

  /* Quick chips : police et padding plus small */
  .quick-chips-row {
    gap: 5px;
    padding-bottom: 8px;
  }
  .quick-chip {
    font-size: 11px;
    padding: 6px 10px;
    min-height: 32px;
  }

  /* Input container */
  .input-container {
    padding: 6px 6px 6px 14px;
    border-radius: 14px;
    gap: 6px;
  }
  .input-container input,
  .input-container textarea {
    font-size: 16px; /* Empêche zoom iOS */
  }

  /* Bouton envoyer : icône uniquement sur très petit écran */
  .send-button::after {
    display: none;
  }
  .send-button {
    height: 40px;
    width: 40px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    flex-shrink: 0;
  }

  /* Bouton micro */
  .icon-button {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  /* Hint bas d'input */
  .input-hint {
    font-size: 10px;
    margin-top: 5px;
  }

  /* Bouton flottant devis : icône seul */
  .floating-devis-btn {
    bottom: max(70px, calc(60px + env(safe-area-inset-bottom)));
    right: 12px;
    padding: 12px;
    width: 50px;
    height: 50px;
    justify-content: center;
    gap: 0;
  }
  .floating-devis-btn span { display: none; }

  /* Bouton menu hamburger positionné correctement */
  .mobile-menu-btn {
    top: 8px;
    left: 8px;
    width: 40px;
    height: 40px;
  }

  /* Suggestions d'actions */
  .action-button {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Typing bubble */
  .typing-bubble {
    padding: 10px 14px;
  }

  /* Reaction bar */
  .reaction-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   TRÈS PETIT MOBILE ≤ 360px (Samsung Galaxy A, anciens iPhone)
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .hero-title { font-size: 17px; }
  .hero-subtitle { font-size: 11px; }

  .message-block,
  .user-message {
    font-size: 13px;
  }

  .bot-message-container { max-width: 98%; }
  .user-message { max-width: 90%; }

  .quick-chip {
    font-size: 10.5px;
    padding: 5px 9px;
  }

  /* Input hint caché pour gagner de la place */
  .input-hint {
    display: none;
  }

  /* Partenaires : pleine largeur */
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Défilement scroll-area : rembourrage sous le dernier message ── */
#chat-box::after {
  content: '';
  display: block;
  height: 8px;
}

@media (max-width: 480px) {
  #chat-box {
    gap: 10px;
  }
  #chat-box::after {
    height: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FIX DÉFINITIF : boutons flottants (WhatsApp/téléphone/devis) ne
   doivent jamais chevaucher la barre de saisie. Plusieurs correctifs
   précédents plus haut dans ce fichier (bottom: 76px, 90px…) ont été
   silencieusement écrasés par des règles dupliquées ajoutées après eux.
   --input-area-h est mesurée en JS (hauteur réelle de #chatInputArea,
   qui varie selon breakpoint et contenu) — placé en dernier + !important
   pour rester la valeur qui gagne, quel que soit l'ordre du fichier.
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .floating-devis-btn {
    bottom: calc(var(--input-area-h, 108px) + 14px) !important;
  }
  .floating-contacts {
    bottom: calc(var(--input-area-h, 108px) + 14px + 60px) !important;
  }
}
