/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --primary: #00bcd4;
  --primary-dark: #0097a7;
  --primary-light: #b3ecf2;
  --primary-pale: #e8f9fc;

  --dark: #0a1f2e;
  --mid-dark: #003344;
  --text: #334155;
  --text-light: #64748b;

  --white: #ffffff;
  --bg: #f0f9fb;
  --bg-alt: #f8fffe;

  --shadow: 0 4px 20px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --transition: 0.3s ease;
  --navbar-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-alt);
  color: var(--text);
  line-height: 1.7;
  padding-top: var(--navbar-h);
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  line-height: 1.25;
}

a { text-decoration: none; }

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 2px;
  margin: 14px auto 18px;
}

.subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--navbar-h);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  transition: background var(--transition), box-shadow var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 30px rgba(0, 150, 180, 0.12);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}

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

.nav-links .nav-cta {
  background: var(--primary);
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  margin-left: 12px;
  transition: var(--transition);
}

.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: url("assets/cover.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(0, 25, 45, 0.72) 0%,
    rgba(0, 100, 130, 0.5) 50%,
    rgba(0, 25, 45, 0.68) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  max-width: 820px;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  animation: fadeUp 0.9s 0.25s forwards;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: white;
  font-family: "Poppins", sans-serif;
}

.text-accent { color: var(--primary-light); }

.hero-content > p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  background: var(--primary);
  color: white;
  padding: 15px 36px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 8px 28px rgba(0, 188, 212, 0.42);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 188, 212, 0.55);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  padding: 15px 36px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2.5px solid rgba(255, 255, 255, 0.65);
  border-bottom: 2.5px solid rgba(255, 255, 255, 0.65);
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

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

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.stats-container {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 28px 20px;
  color: white;
  margin: 14px 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  display: inline;
}

.stat-plus {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  opacity: 0.75;
}

.stat-icon {
  font-size: 2.6rem;
  line-height: 1;
  align-self: center;
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  opacity: 0.82;
  margin-top: 5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  display: none;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section { padding: 96px 0; }

/* ============================================
   SERVICES
   ============================================ */
.services-section { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::after { transform: scaleX(1); }

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

.service-icon-wrap {
  width: 78px;
  height: 78px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary-light);
  transform: scale(1.08);
}

.service-icon-wrap img {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================
   GALLERY
   ============================================ */
.modern-gallery-section {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 96px 0;
}

.masonry {
  column-count: 3;
  column-gap: 18px;
}

.masonry-item {
  width: 100%;
  margin-bottom: 18px;
  border-radius: var(--radius);
  cursor: pointer;
  break-inside: avoid;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: block;
}

.masonry-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.load-more-wrapper {
  text-align: center;
  margin-top: 36px;
}

.load-more-btn {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  padding: 14px 42px;
  border-radius: 40px;
  font-size: 0.97rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.3);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox-modern {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox-img-modern {
  max-width: 88%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from { transform: scale(0.78); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
  position: absolute;
  top: 18px;
  right: 34px;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
  line-height: 1;
}

.close-lightbox:hover { color: var(--primary-light); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  font-size: 58px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 16px 22px;
  transform: translateY(-50%);
  user-select: none;
  transition: color var(--transition);
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--primary-light); }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ============================================
   WHY CHOOSE US
   ============================================ */
.reasons-section { background: var(--bg); }

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

.reason-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

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

.reason-icon {
  width: 74px;
  height: 74px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.reason-card:hover .reason-icon {
  background: var(--primary-light);
  transform: scale(1.08);
}

.reason-icon img {
  width: 38px;
  height: 38px;
}

.reason-card h3 {
  font-size: 1.07rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.reason-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

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

.quote-icon {
  font-size: 5.5rem;
  font-family: Georgia, serif;
  color: var(--primary-light);
  line-height: 0.65;
  margin-bottom: 16px;
  display: block;
}

.testimonial-card > p {
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
  font-size: 0.96rem;
  line-height: 1.75;
}

.testimonial-card .stars {
  margin-bottom: 18px;
  font-size: 0.9rem;
}

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

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.97rem;
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
}

.reviewer h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
}

/* Layout avis 2 colonnes */
.avis-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.avis-col-gauche {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.google-badge {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid #eee;
}

.google-badge-excellent {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.google-badge-stars {
  font-size: 1.8rem;
  color: #FBBC05;
  margin-bottom: 6px;
}

.google-badge-logo {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'Product Sans', 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

.avis-col-gauche .testimonial-card {
  padding: 18px 20px;
}

.stars-google {
  margin-bottom: 10px;
}

.stars-google-excellent {
  font-size: 0.75rem;
  font-weight: 800;
  color: #111;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.stars-google-stars {
  font-size: 1.1rem;
  color: #FBBC05;
  margin-bottom: 2px;
}

.stars-google-logo {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.avis-col-gauche .quote-icon {
  font-size: 3rem;
  margin-bottom: 6px;
}

.avis-col-gauche .testimonial-card > p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.avis-col-gauche .stars {
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.avis-col-gauche .reviewer-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.82rem;
}

.avis-col-gauche .reviewer h4 {
  font-size: 0.8rem;
}

.avis-col-droite {
  background: linear-gradient(135deg, #e8f8fa, var(--primary-pale));
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0,151,167,0.15);
  border: 2px solid rgba(0,151,167,0.12);
}

.avis-col-droite h3 {
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.avis-col-droite p {
  color: #555;
  font-size: 0.95rem;
}

.avis-col-droite img {
  width: 300px;
  height: 300px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.avis-merci {
  font-size: 0.88rem !important;
  color: #888 !important;
}

@media (max-width: 768px) {
  .avis-layout {
    grid-template-columns: 1fr;
  }
}

/* Review form card */
.add-review {
  background: linear-gradient(135deg, #f5fbfc, var(--primary-pale));
}

.add-review h3 {
  color: var(--dark);
  font-size: 1.18rem;
  margin-bottom: 18px;
}

#review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#review-form input,
#review-form select,
#review-form textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d8e8ea;
  font-size: 0.93rem;
  background: white;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
  outline: none;
  color: var(--text);
}

#review-form input:focus,
#review-form select:focus,
#review-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.14);
}

#review-form textarea { resize: none; }

.review-btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Inter", sans-serif;
}

.review-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.3);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background: linear-gradient(140deg, #f0f9fb, #e6f2f5);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-text p {
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.78;
}

.btn-about {
  display: inline-block;
  margin-top: 12px;
  background: var(--primary);
  color: white;
  padding: 13px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: var(--transition);
}

.btn-about:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 188, 212, 0.32);
}

.about-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--white);
  padding: 96px 0;
}

.contact-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-card {
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card h3 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact-card input,
.contact-card textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d8e8ea;
  font-size: 0.96rem;
  font-family: "Inter", sans-serif;
  background: var(--bg-alt);
  transition: var(--transition);
  outline: none;
  color: var(--text);
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.14);
}

.contact-card textarea { resize: vertical; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.38);
}

/* Contact info card */
.contact-info-card {
  background: linear-gradient(145deg, var(--mid-dark) 0%, #005a70 100%);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  color: white;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.contact-info-card h3 {
  font-size: 1.35rem;
  color: white;
  margin-bottom: 8px;
}

.contact-info-card > p {
  opacity: 0.75;
  font-size: 0.93rem;
  margin-bottom: 22px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  text-align: center;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  transition: var(--transition);
}

.contact-btn.phone {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-dark);
}

.contact-btn.phone:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.contact-btn.whatsapp {
  background: #25d366;
  color: white;
  margin-bottom: 26px;
}

.contact-btn.whatsapp:hover {
  background: #20b857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.88;
}

.detail-item i {
  margin-top: 3px;
  width: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 188, 212, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
}

.footer-top {
  padding: 66px 0 44px;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 44px;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.58);
  max-width: 270px;
  margin-top: 16px;
  margin-bottom: 22px;
}

.footer-logo {
  height: 46px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  transition: var(--transition);
}

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

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.footer-contact-list li i {
  color: var(--primary-light);
  margin-top: 3px;
  width: 13px;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0;
}

.footer-bottom-inner {
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.38);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 188, 212, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: var(--transition);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 76px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 188, 212, 0.52);
}

/* ============================================
   GLASS CARDS (effet glassmorphism)
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(0, 100, 130, 0.12);
}

/* Cards verre sur sections sombres */
.glass-dark {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ============================================
   HERO PARTICLES
   ============================================ */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(179, 236, 242, 0.45);
  pointer-events: none;
  z-index: 2;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0%   { transform: translateY(0) scale(1); opacity: 0.6; }
  50%  { transform: translateY(-40px) scale(1.2); opacity: 0.9; }
  100% { transform: translateY(0) scale(1); opacity: 0.6; }
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.08s, top 0.08s;
}

/* ============================================
   ANIMATED GRADIENT HERO TEXT
   ============================================ */
.text-accent {
  color: transparent;
  background: linear-gradient(90deg, #b3ecf2, #00e5ff, #b3ecf2);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   GLASS SERVICE CARDS
   ============================================ */
.services-section {
  background: linear-gradient(135deg, #e0f7fa 0%, #f0fdff 40%, #e8f9fc 100%);
}

.service-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 24px rgba(0, 150, 180, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 48px rgba(0, 150, 180, 0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ============================================
   GLASS REASON CARDS
   ============================================ */
.reasons-section {
  background: linear-gradient(135deg, #e8f6f8 0%, #f4fbfc 50%, #ddf4f7 100%);
}

.reason-card {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 24px rgba(0, 150, 180, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.reason-card:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 48px rgba(0, 150, 180, 0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ============================================
   GLASS TESTIMONIAL CARDS
   ============================================ */
.testimonials-section {
  background: linear-gradient(135deg, #f0fcfe 0%, #ffffff 50%, #e8f9fc 100%);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 24px rgba(0, 150, 180, 0.07), inset 0 1px 0 rgba(255,255,255,0.8);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.82);
}

/* ============================================
   GLASS CONTACT FORM CARD
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, #e0f7fa 0%, #f8fffe 50%, #e8f6f8 100%);
}

.contact-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 40px rgba(0, 150, 180, 0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ============================================
   ANIMATED SECTION DIVIDER
   ============================================ */
.section-divider {
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-dark), var(--primary), transparent);
  background-size: 200% auto;
  animation: dividerSlide 2.5s linear infinite;
}

@keyframes dividerSlide {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   FLOATING STATS BAR
   ============================================ */
.stats-bar {
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: statsShine 3s ease-in-out infinite;
}

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

.stat-item {
  position: relative;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
}

/* ============================================
   HERO BADGE PULSE
   ============================================ */
.hero-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179, 236, 242, 0); }
  50% { box-shadow: 0 0 0 6px rgba(179, 236, 242, 0.18); }
}

/* ============================================
   SCROLL INDICATOR GLOW
   ============================================ */
.scroll-arrow {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

/* ============================================
   GLASS CONTACT INFO CARD
   ============================================ */
.contact-info-card {
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.15);
  filter: blur(40px);
  pointer-events: none;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(0, 151, 167, 0.12);
  filter: blur(30px);
  pointer-events: none;
}

/* ============================================
   GLASS FOOTER
   ============================================ */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   SECTION BACKGROUND GLOW
   ============================================ */
.reasons-section {
  position: relative;
  overflow: hidden;
}

.reasons-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.reasons-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 151, 167, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   ICON HOVER ANIMATION
   ============================================ */
.service-icon-wrap,
.reason-icon {
  position: relative;
}

.service-icon-wrap::after,
.reason-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 188, 212, 0);
  transition: 0.4s ease;
}

.service-card:hover .service-icon-wrap::after,
.reason-card:hover .reason-icon::after {
  border-color: rgba(0, 188, 212, 0.35);
  inset: -8px;
}

/* ============================================
   GLASS BACK-TO-TOP
   ============================================ */
.back-to-top {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   ABOUT SECTION GLOW
   ============================================ */
.about-media {
  position: relative;
}

.about-media::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.12), rgba(0, 151, 167, 0.08));
  z-index: -1;
  filter: blur(20px);
}

/* ============================================
   BUTTON SHINE EFFECT
   ============================================ */
.hero-btn,
.btn-primary,
.btn-about,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.hero-btn::before,
.btn-primary::before,
.btn-about::before,
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.hero-btn:hover::before,
.btn-primary:hover::before,
.btn-about:hover::before,
.nav-cta:hover::before {
  left: 140%;
}

/* ============================================
   MASONRY GLASS OVERLAY ON HOVER
   ============================================ */
.masonry-item {
  position: relative;
}

/* ============================================
   QUOTE ICON GLOW
   ============================================ */
.quote-icon {
  text-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

/* ============================================
   LOAD MORE SHINE
   ============================================ */
.load-more-btn {
  position: relative;
  overflow: hidden;
}

.load-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.15), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.load-more-btn:hover::before {
  left: 140%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 1000px) {
  .services-grid,
  .reasons-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    gap: 4px;
    border-top: 1px solid rgba(0, 188, 212, 0.12);
  }

  .nav-links.open { display: flex; }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .stats-container { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .stat-divider { display: none; }

  .section-header h2 { font-size: 2rem; }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media { order: -1; }
}

@media (max-width: 600px) {
  .services-grid,
  .reasons-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .masonry { column-count: 1; }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lightbox-prev, .lightbox-next { font-size: 42px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn,
  .hero-btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* ===== WHATSAPP BOUTON FLOTTANT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 16px;
    right: 16px;
  }
}

/* ============================================
   CHATBOT SOFIA
   ============================================ */
.sofia-chat {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  font-family: "Inter", sans-serif;
}

.sofia-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 1.45rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.sofia-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 188, 212, 0.55);
}

.sofia-icon-close { display: none; }
.sofia-chat.open .sofia-icon-open { display: none; }
.sofia-chat.open .sofia-icon-close { display: block; }

.sofia-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sofia-pulse 2s infinite;
  border: 2px solid white;
}

@keyframes sofia-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.sofia-box {
  position: absolute;
  bottom: 76px;
  left: 0;
  width: 340px;
  max-height: 530px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform-origin: bottom left;
}

.sofia-chat.open .sofia-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.sofia-header {
  background: linear-gradient(135deg, var(--dark), var(--mid-dark));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  flex-shrink: 0;
}

.sofia-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.sofia-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.sofia-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--dark);
}

.sofia-header-info { flex: 1; }
.sofia-header-info strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.92rem;
}
.sofia-header-info span {
  font-size: 0.72rem;
  opacity: 0.72;
}

.sofia-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 6px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.sofia-close-btn:hover { color: white; }

.sofia-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  min-height: 0;
}

.sofia-messages::-webkit-scrollbar { width: 4px; }
.sofia-messages::-webkit-scrollbar-track { background: transparent; }
.sofia-messages::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 2px;
}

.sofia-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: sofia-msg-in 0.22s ease-out;
}

@keyframes sofia-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sofia-msg.bot  { align-self: flex-start; }
.sofia-msg.user { align-self: flex-end; }

.sofia-msg .bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.855rem;
  line-height: 1.55;
}

.sofia-msg.bot .bubble {
  background: var(--primary-pale);
  color: var(--dark);
  border-bottom-left-radius: 4px;
}

.sofia-msg.user .bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-bottom-right-radius: 4px;
}

.sofia-typing-wrap {
  display: flex;
  align-self: flex-start;
  animation: sofia-msg-in 0.22s ease-out;
}

.sofia-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  background: var(--primary-pale);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.sofia-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: sofia-dot 1.2s infinite;
}
.sofia-typing span:nth-child(2) { animation-delay: 0.2s; }
.sofia-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes sofia-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(-3px); }
}

.sofia-quick {
  padding: 0 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex-shrink: 0;
}

.sofia-quick button {
  padding: 7px 13px;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  background: white;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
  line-height: 1.2;
}
.sofia-quick button:hover {
  background: var(--primary);
  color: white;
}

.sofia-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #f0f4f8;
  flex-shrink: 0;
}

#sofia-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 9px 14px;
  font-size: 0.855rem;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.2s;
  color: var(--text);
  background: white;
}
#sofia-input:focus { border-color: var(--primary); }

#sofia-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}
#sofia-send:hover { transform: scale(1.1); }

@media (max-width: 768px) {
  /* Espace en bas pour que le contenu ne soit jamais caché par les boutons flottants */
  body {
    padding-bottom: 80px;
  }

  .sofia-chat {
    left: 16px;
    bottom: 16px;
  }

  .sofia-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .sofia-badge {
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .sofia-box {
    width: calc(100vw - 32px);
    max-height: calc(100svh - 120px);
    bottom: 66px;
    left: 0;
    border-radius: 16px;
  }

  .sofia-header {
    padding: 12px 14px;
  }

  .sofia-avatar {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .sofia-header-info strong {
    font-size: 0.88rem;
  }

  .sofia-messages {
    padding: 12px;
    gap: 8px;
  }

  .sofia-msg .bubble {
    font-size: 0.83rem;
    padding: 9px 12px;
  }

  .sofia-quick {
    padding: 0 10px 10px;
    gap: 6px;
  }

  .sofia-quick button {
    font-size: 0.75rem;
    padding: 6px 11px;
  }

  .sofia-input-wrap {
    padding: 8px 10px;
    gap: 7px;
  }

  #sofia-input {
    font-size: 0.83rem;
    padding: 8px 12px;
  }

  #sofia-send {
    width: 35px;
    height: 35px;
    font-size: 0.82rem;
  }
}
