/* Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
}

/* Container */
.container {
  max-width: 1200px;
  margin: auto;
}

/* ================= HEADER ================= */

.header {
  background: #0b1f3a;
  padding: 15px 0;
}

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

.logo {
  height: 50px;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
}

nav a.active {
  border-bottom: 2px solid orange;
}

/* Buttons */
.btn-primary {
  background: #ff5a2c;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid #ff5a2c;
  color: #ff5a2c;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
}

/* ================= HERO ================= */

.hero {
  background: #ff5a1f;
  color: white;
  text-align: center;
  padding: 100px 20px;
}

/* ================= CONTENT ================= */

.content {
  padding: 100px 20px;
}

.grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}

/* ================= 3D BOOK ================= */

.book-3d {
  perspective: 1000px;
}

.book {
  transform: rotateY(-15deg);
  transition: 0.5s;
}

.book img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

.book:hover {
  transform: rotateY(0deg) scale(1.05);
}

/* ================= TEXT ================= */

.text p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}

/* Buttons */
.buttons {
  margin-top: 30px;
}

/* ================= FOOTER ================= */

.footer {
  background: #0b1f3a;
  color: white;
  text-align: center;
  padding: 30px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}


.site-footer {
  background: #0f1f2e;
  color: #fff;
  padding: 60px 0 20px;
  font-size: 14px;
}

.footer-container {
  width: min(1100px, 90%);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Colonnes */
.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
}

.footer-logo {
  color: #ff5a1f;
  font-weight: 800;
}

.footer-col p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Navigation */
.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #fff;
  opacity: 0.8;
  transition: 0.2s;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: #ff5a1f;
}

/* Bas */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1100px, 90%);
  margin-left: auto;
  margin-right: auto;
}

.footer-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: #ff5a1f;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-links a {
    margin: 0 10px;
  }
}

/*Bouton chatbot*/

.chatbot-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 68px;
  height: 68px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a2f, #ff5a1f);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 30px rgba(255, 90, 31, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.chatbot-fab:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 18px 38px rgba(255, 90, 31, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.chatbot-fab:active {
  transform: translateY(-1px) scale(0.98);
}

.chatbot-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-icon svg {
  width: 100%;
  height: 100%;
}

.chatbot-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #38d39f;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 211, 159, 0.12);
}

.chatbot-fab::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: rgba(255, 90, 31, 0.12);
  z-index: -1;
  animation: chatbotPulse 2.2s infinite;
}

@keyframes chatbotPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .chatbot-fab {
    width: 60px;
    height: 60px;
    right: 18px;
    bottom: 18px;
  }

  .chatbot-icon {
    width: 26px;
    height: 26px;
  }

  .chatbot-dot {
    width: 12px;
    height: 12px;
    top: 8px;
    right: 8px;
  }
}