* {
  box-sizing: border-box;
  text-decoration: none;
}
* {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  outline: none;
}

::selection {
  background: rgba(162, 198, 236, 0.25);
  color: inherit;
}


html, body {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Inter, sans-serif;
}

.logo{
  width: 200px;
}

/* ===== Satoshi Font ===== */

@font-face {
  font-family: "Satoshi";
  src: url("font/Satoshi-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("font/Satoshi-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("font/Satoshi-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("font/Satoshi-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Satoshi";
  src: url("font/Satoshi-Black.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

.bold{
  font-weight: 900;
}

.FormLogo{
      width: 35px;
    padding-bottom: 20px;
}

body {
  margin: 0;

  color: #0f172a;
  height: 100vh;
}

body .acceuil{
    background: #ebf4ff;
background: linear-gradient(0deg,rgba(235, 244, 255, 1) 0%, rgba(162, 198, 236, 1) 100%);
}

/* HEADER */
header {
  height: 56px;
  margin: 20px;
  padding: 0 28px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: #0f172a;
}

.contact {
  font-size: 14px;
  text-decoration: none;
  color: #0f172a;
  opacity: 0.8;
}

/* ACCUEIL */
.home {
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-content {
  text-align: center;
  padding: 20px;
  gap: 28px;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-content h1 {
  font-size: 47px;
  font-weight: 600;
  margin-bottom: 12px;
}

.home-content p {
  font-size: 16px;
  color: #475569;
  margin-bottom: 32px;
  max-width: 480px;
  margin: 0 auto 36px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btn-primary {
  background: #0f172a;
  color: #fff;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 420px;
}

.btn-primaryFORM {
  background: #0f172a;
  color: #fff;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: auto;
}

.btn-primaryFORM:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}

.btn-secondary {
  background: transparent;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  color: #0f172a;
  width: 420px;
}


.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}


/* CHAT */
.chat-container {
  height: 90vh;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.Notice{
  font-size: 12px;
  padding: 5px 0px 5px 0px;
  opacity: 0.7;
  font-style: italic;
  font-weight: 100;
  text-align: center;
  width: 90%;
}

.chat-container iframe {
width: 70%;
    height: 90%;
    border: none;
    box-shadow: 0px 0px 20px #e8e6e6;
    border-radius: 20px;
}

.rounded-2xl .rounded-tl-sm .px-4 .py-2 .text-white{
  background-color:#0f172a!important;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  text-align: center;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.modal p {
  color: #475569;
  margin-bottom: 20px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.modal .close {
  margin-top: 16px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5vh;
  background: #f4f4f4;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #475569;
}
/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.modal p {
  color: #475569;
  margin-bottom: 20px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.modal .close {
  margin-top: 16px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
}
.ambient-bg {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  z-index: -1;
  background:
    radial-gradient(
      900px 900px at 20% 30%,
      rgba(162, 198, 236, 0.35),
      transparent 70%
    ),
    radial-gradient(
      800px 800px at 80% 60%,
      rgba(162, 198, 236, 0.25),
      transparent 70%
    );
  animation: ambientMove 28s ease-in-out infinite alternate;
}


@keyframes ambientMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-60px, -40px);
  }
}
.typing {
  font-size: 28px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.contact {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;

  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;

  cursor: pointer;
  transition: 
    background 0.2s ease,
    border 0.2s ease,
    transform 0.15s ease;
}

.contactPrimary{
  background-color:#0f172a;
  color: #fff;
}

.contact:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.contactPrimary:hover {
  background-color:#0f172a;
  border-color: rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

.contact:active {
  transform: translateY(0);
}

.hero-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 650;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 17px;
  color: #475569;
  max-width: 520px;
  margin: 0 auto 42px;
}
.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #224392;
  background: rgba(162, 198, 236, 0.35);
  border-radius: 999px;
  
  display: flex;
  flex-direction: row;
  align-items: center;
}

.hero-badge img{
  width: 20px;
  margin-right: 10px;
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}


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

.more-btn {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-btn img {
  height: 30px;
  opacity: 0.85;
}

.more-btn:active img {
  opacity: 1;
  transform: scale(0.95);
}

.modal.small {
  max-width: 320px;
  padding: 20px;
}

.menu-action {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.menu-action:hover {
  background: #f9fafb;
}
.logoHeaderMobile{
  width: 30px;
}
 .HeaderChat{
    width: 100%;
  }

@media only screen and (max-width: 768px) and (pointer: coarse) {
  .chat-container iframe{
    width: 90%;
    height: 100vh;
    margin-bottom: 30px;
    border-radius: 0px;
    position: relative;
    border-radius: 15px;
    margin: 0px;
  }
  .chat-container{
    display: flex;
    justify-content:end;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 86vh;

  }

  .Notice{
    margin:0px;
    font-size: 10px;
  }
  .btn-primary{
    width: auto;
  }
  .btn-secondary{
    width: auto;
  }
  header{
    justify-content: center;
  }
  .home-content h1{
    height: 160px;

  }
  .HeaderChat{
    display: none;
  }
  .modal {
    max-width: 320px;
  }
  .HeaderMobile{
    position: absolute;
    z-index: 1000;

  }
  .HeaderMobile{
    display:flex!important;
}
.BadgePC{
  display: none;
}
.typing{
  font-size: 10px;
}
.bodychat{
  justify-content: normal!important;
  padding-top: 20px;
}
}

.HeaderMobile{
    background: none;
    width: 90%;
    display: none;
    justify-content: end;
    margin: 0px;
    height: 50px;
    padding: 0px;
    border-radius: 0px 0px 15px 15px;
    text-align: center;
    padding: 35px 20px 0px 20px;
    align-items: center;
    padding-bottom: 20px;
}

.bodychat{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* PAGE TRANSITION */
#page-transition {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* Loader minimal */
.loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(15, 23, 42, 0.15);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
body.loading #page-transition {
  opacity: 1;
  pointer-events: all;
}

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

/* état normal */
.chat-container {
  opacity: 1;
}

/* animation déclenchée par JS */
.chat-container.animate {
  animation: iframeFadeUp 0.8s ease-out forwards;
}
