/* ==========================================
   BSF MARKETING - LIGHT THEME DESIGN SYSTEM
   Soft Pearl Grey (#F8FAFC) & Reassuring Emerald (#059669)
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #059669;
  --primary-hover: #047857;
  --bg-subtle: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-secondary: #334155;
  --emerald: #059669;
  --emerald-hover: #047857;
  --emerald-light-bg: #ecfdf5;
  --emerald-light-border: #a7f3d0;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header, nav {
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--border);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--emerald);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background-color: var(--emerald-hover);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 850px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--emerald);
}

/* Status Badge & Pulse Dot */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #065F46;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #059669;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
  }
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4.5rem;
  text-align: center;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.25rem;
  }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 576px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.hero-social-proof {
  font-size: 0.875rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-social-proof .stars {
  color: #D97706;
  font-weight: 700;
}

.hero-trust-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust-list svg {
  color: var(--emerald);
}

/* Sections & Spacing */
.section-padding {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-bento {
  background-color: #F8FAFC;
}

.section-contact {
  background-color: #FFFFFF;
}

.section-faq {
  background-color: #F8FAFC;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.25rem;
  }
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Bento Cards Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: #ECFDF5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid #A7F3D0;
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.bento-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-features li {
  font-size: 0.9rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.bento-features .check {
  color: #059669;
  font-weight: 800;
  font-size: 1rem;
}

.link-arrow {
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Section Réalisations (Cas Clients) */
.realisations-section, #realisations {
  background-color: #F1F5F9 !important;
  padding: 60px 20px;
}

.trust-badge-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #065F46;
  background-color: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

/* Grille 6 cartes : 3x2 desktop, 2 cols tablette, 1 col mobile */
.cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  max-width: 1140px !important;
  margin: 30px auto 0 auto !important;
}
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr !important; }
}

/* Logos cartes */
.card-top, .realisation-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  min-height: 44px !important;
}

.client-logo {
  height: 38px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
}

.client-card, .realisation-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 16px !important;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease-in-out;
}

.client-card:hover, .realisation-card:hover {
  border-color: #CBD5E1 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-3px);
}

.client-card .badge, .service-badge {
  display: inline-block;
  align-self: flex-start;
  background: #ECFDF5;
  color: #065F46;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.client-card h3, .realisation-card h3 {
  font-size: 1.25rem;
  color: #0F172A !important;
  margin: 0 0 8px 0;
  font-weight: 700;
}

.client-card .rating, .proof-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #FEF3C7;
  color: #B45309;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 9999px;
  width: fit-content;
  margin: 6px 0 10px 0;
}

.client-card .location, .proof-location {
  font-size: 0.85rem;
  color: #64748B;
  margin: 0 0 16px 0;
}

.client-card .action, .realisation-action {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.client-card .btn-link, .realisation-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  text-decoration: none;
  color: #334155 !important;
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.client-card .btn-link:hover, .realisation-verify:hover {
  background-color: #ECFDF5 !important;
  color: #059669 !important;
  border-color: #A7F3D0 !important;
  text-decoration: none !important;
}

/* Contact Direct Section */
.contact-direct-box {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

@media (min-width: 768px) {
  .contact-direct-box {
    padding: 3.5rem 3rem;
  }
}

.contact-direct-box h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.contact-direct-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-direct-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 576px) {
  .contact-direct-buttons {
    flex-direction: row;
  }
}

/* FAQ Native Accordion (<details> & <summary>) */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

details.faq-item[open] {
  border-color: var(--border-hover);
}

summary.faq-summary {
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary.faq-summary::-webkit-details-marker {
  display: none;
}

summary.faq-summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
}

details[open] summary.faq-summary::after {
  content: '−';
  color: var(--emerald);
}

.faq-content {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Sticky Contact Flottant */
.floating-contact {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  display: flex !important;
  gap: 12px !important;
  z-index: 99999 !important;
}

.float-btn {
  padding: 12px 18px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18) !important;
  transition: transform 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.float-btn:hover {
  transform: translateY(-2px) !important;
}

.float-wa {
  background: #25D366 !important;
  color: #ffffff !important;
}

.float-call {
  background: #0F172A !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  .floating-contact {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    padding: 10px 14px !important;
    border-top: 1px solid #e2e8f0 !important;
    justify-content: space-between !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08) !important;
  }
  
  .float-btn {
    flex: 1 !important;
    text-align: center !important;
    border-radius: 8px !important;
    padding: 10px 6px !important;
    font-size: 13px !important;
  }
  
  body {
    padding-bottom: 65px !important;
  }
}

/* Footer (Dark Slate #0F172A) */
.site-footer {
  background-color: #0F172A;
  border-top: 1px solid #1E293B;
  padding: 4rem 0 2.5rem;
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: #64748B;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
