:root {
  --bg: #f5f7fa;       /* fond général clair */
  --panel: #ffffff;    /* panneaux blancs */
  --text: #1a1a1a;     /* texte principal foncé */
  --accent: #007BFF;   /* bleu vif */
  --muted: #555;       /* texte secondaire gris */
  --glass: rgba(0, 0, 0, 0.03);
  --radius: 12px;
  --maxwidth: 1100px;
  --card-shadow: 0 4px 16px rgba(0,0,0,0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
.small { font-size: 12px; }

/* Layout container */
main {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 48px 24px;
}

/* Topbar */
.topbar {
  position: fixed;
  left: 0; right: 0; top: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 120;
}
.nav-inner {
  width: 100%;
  max-width: var(--maxwidth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  pointer-events: all;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; flex-direction: column; justify-content: center; }
.site-name { font-weight: 700; letter-spacing: 1px; }
.nav-right a { color: var(--text); margin-left: 18px; font-weight: 600; }

/* Hero */
.hero {
  min-height: 86vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 12px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 56px);
  margin: 0 0 12px;
  color: var(--text);
}
.slogan {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.1rem;
}
.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #66a6ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

/* Sections */
section { padding: 84px 0; }
.panel {
  background: var(--panel);
  margin: 20px 0;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
}
.about-illu img { max-width: 100%; border-radius: 10px; display: block; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,123,255,0.15);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0,123,255,0.1);
  margin-bottom: 12px;
  color: var(--accent);
}

/* Projects */
.projects { position: relative; }
.projects .bg-parallax {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,123,255,0.08), transparent 50%);
}
.swiper { z-index: 10; padding: 24px 0; }
.project-card {
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: var(--card-shadow);
}
.project-thumb {
  height: 160px;
  border-radius: 8px;
  background: #f0f4f9;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

/* Contact */
.contact-form { display: grid; gap: 12px; max-width: 640px; }
.field {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 10px;
  color: var(--text);
}
.btn-send {
  padding: 12px 18px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,123,255,0.25);
}

/* Bouton flottant */
#chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Fenêtre de chat */
#chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none; /* fermé au départ */
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

#chat-header {
  background: #007BFF;
  color: white;
  padding: 12px;
  text-align: center;
  font-weight: bold;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  clear: both;
}

.user {
  background: #DCF8C6;
  float: right;
  text-align: right;
}

.bot {
  background: #F1F0F0;
  float: left;
  text-align: left;
}

#chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

#userInput {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
}

#sendButton {
  background: rgba(0,123,255,0.25);
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
}




/* Footer */
footer {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
footer .social { margin: 0 6px; color: var(--accent); }

/* Helpers */
.muted { color: var(--muted); }
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,123,255,0.08);
  font-weight: 600;
  margin-right: 8px;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .nav-right a { margin-left: 12px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 28px; }
}
