/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BASE ================= */
html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", Arial, sans-serif;
  background: #000;
  overflow: hidden;
}

/* ================= CONTENEUR ================= */
.FondPortefolio {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* ================= FOND ================= */
.fondindex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ================= WIDGET CADEAU (HAUT GAUCHE) ================= */
.gift-widget {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;
  border-radius: 20px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);

  color: #111;
  text-decoration: none;

  z-index: 10000;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gift-widget:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.gift-icon {
  font-size: 26px;
}

.gift-content {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.gift-content strong {
  font-size: 14px;
}

/* ================= CHATBOT (BAS DROITE) ================= */
#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* bouton */
#chatbot-toggle {
  position: relative; /* 🔥 important pour clic */
  z-index: 10000;

  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;

  background: linear-gradient(135deg, #3A6EFF, #6F8BFF);
  color: white;
  font-size: 26px;
  cursor: pointer;

  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

/* ================= BOX ================= */
#chatbot-box {
  position: absolute;
  bottom: 80px;
  right: 0;

  width: 340px;
  height: 480px;

  display: none;
  flex-direction: column;

  border-radius: 22px;
  overflow: hidden;

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);

  opacity: 0;
  transform: translateY(15px) scale(0.98);
  transition: all 0.3s ease;
}

/* état ouvert */
#chatbot-box.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================= HEADER ================= */
#chatbot-header {
  padding: 14px;
  text-align: center;
  font-weight: 700;

  background: #f5f5f5;
  color: #111;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ================= MESSAGES ================= */
#chatbot-messages {
  flex: 1;
  padding: 16px;

  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;

  font-size: 14px;
  color: #111;
}

/* ================= BULLES ================= */

/* intro */
.message-intro {
  align-self: center;
  background: #eaf0ff;
  color: #1a2a6c;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 600;
}

/* section */
.message-section {
  align-self: center;
  background: #fff3e6;
  color: #7a4b00;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}

/* réponse → à droite en bleu */
.message-answer {
  align-self: flex-end;
  background: #3A6EFF;
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  border-bottom-right-radius: 6px;
  max-width: 80%;
}

/* ================= BOUTON RETOUR ================= */
.chatbot-back-top {
  position: absolute;
  top: 10px;
  right: 10px;

  background: #3A6EFF;
  color: white;

  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;

  cursor: pointer;
  z-index: 10;
}

/* ================= INPUT ================= */
#chatbot-input-area {
  display: flex;
  padding: 10px;
  gap: 6px;

  background: #fafafa;
  border-top: 1px solid rgba(0,0,0,0.06);
}

#chatbot-input {
  flex: 1;
  padding: 10px;

  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;

  font-size: 14px;
}

/* bouton send */
#chatbot-send {
  width: 42px;
  height: 42px;

  border: none;
  border-radius: 10px;

  background: #3A6EFF;
  color: white;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease;
}

#chatbot-send:hover {
  transform: scale(1.1);
}

/* ================= SCROLLBAR ================= */
#chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

/* ================= BULLES SPÉCIALES ================= */
.message-intro {
  align-self: center;
  background: #eaf0ff;
  color: #1a2a6c;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.message-section {
  align-self: center;
  background: #fff3e6;
  color: #7a4b00;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}

/* bouton retour */
.chatbot-back {
  margin-top: 10px;
  align-self: center;
  background: #3A6EFF;
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

/* CONTENEUR MESSAGE */
.chat-row {
  display: flex;
  margin: 6px 0;
}

/* IA (gauche) */
.chat-row.bot {
  justify-content: flex-start;
}

/* USER (droite) */
.chat-row.user {
  justify-content: flex-end;
}

/* BULLE IA */
.message-answer {
  background: #3A6EFF;
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 75%;
}

/* BULLE USER */
.message-user-grey {
  background: #e5e5ea;
  color: #111;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 75%;
}

/* ================= BLOCS ================= */
.bloc {
  position: absolute;
  width: 528px;
  height: 333px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.45s cubic-bezier(.22,1,.36,1),
    filter 0.45s ease;
}

/* 🎯 HOVER PREMIUM */
.bloc:hover {
  transform: translateY(-6px);
  filter: brightness(1.08);
}

/* animation clic */
.bloc.rotate {
  transform: scale(0.98);
}

.bloc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ================= LABEL ================= */
.label {
  position: absolute;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  text-shadow: 0 6px 20px rgba(0,0,0,0.75);
  pointer-events: none;
}

/* ================= POSITIONS ================= */
@media (min-width: 1200px) {
  .bleu1    { left: -68px; top: -20; }
  .violet1 { left: -68px; top: 313px; }
  .violet2 { left: -68px; top: 646px; }

  .rose1   { left: 917px; top: -20; }
  .orange1 { left: 917px; top: 313px; }
  .jaune1  { left: 917px; top: 646px; }
}

/* ================= OVERLAY ================= */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ================= COLOR BOX ================= */
#colorBox {
  width: 82vw;
  max-height: 85vh;
  padding: 36px;
  border-radius: 30px;
  overflow-y: auto;
  background: #111;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform 0.35s ease;
}

#overlay.active #colorBox {
  transform: scale(1);
}

/* ================= CONTENU ================= */
#contentBox {
  color: #fff;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* ================= TITRES ================= */
.title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 28px;
}

.animate-title {
  animation: fadeUp 0.6s ease forwards;
}

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

/* ================= TEXTE ================= */
.center-text { text-align: center; }
.left { text-align: left; }

/* ================= LISTES ================= */
.list-left {
  text-align: left;
  padding-left: 22px;
  margin: 16px 0 24px;
}

/* ================= BOUTON PRINCIPAL ================= */
.primary-btn {
  margin: 28px auto 0;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  background: #fff;
  color: #3A6EFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* ================= PROGRAMME ================= */
.center-buttons {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 28px;
}

.step-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  background: #fff;
}

.step-rose {
  color: #FF4FD8;
}

/* ================= CARTES ================= */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-btn {
  width: 100%;
  padding: 20px 22px;
  border-radius: 22px;
  border: none;
  background: rgba(255,255,255,0.95);
  text-align: left;
  cursor: pointer;

  font-size: 16px;
  line-height: 1.3; /* 🔥 réduit l’espace entre lignes */

  display: flex;
  flex-direction: column;

  font-weight: 400; /* base normal */
}

/* 🔥 poste (titre) */
.card-btn strong {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  margin-bottom: 2px; /* 🔥 espace très léger avec l’entreprise */
  display: block;
}

/* 🔥 supprime le <br> inutile après le titre */
.card-btn strong + br {
  display: none;
}

/* entreprise (ex: Gearbooker) */
.card-btn strong + br + * {
  font-weight: 400;
}

/* secteur */
.card-btn em {
  font-weight: 400;
  opacity: 0.65;
  font-size: 13px;
  margin-top: 4px;
}

/* Violet 1 */
.bloc.violet1 .card-btn {
  color: #7C4DFF;
}

/* Violet 2 */
.bloc.violet2 .card-btn {
  color: #9C6BFF;
  font-weight: 700;
}

/* ================= BULLES ================= */
.bubble {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  animation: fadeBubble 0.3s ease forwards;
}

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

.bubble-violet {
  color: #7C4DFF;
}

.bubble-violet2 {
  color: #9C6BFF;
}

.hidden {
  display: none;
}

/* ================= ACADÉMIQUE ================= */
#contentBox p + p {
  margin-top: 18px;
}

/* ================= RÉSEAUX SOCIAUX (CORRIGÉ) ================= */
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
}

.socials a {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.socials img:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}


/* ================= LANGUAGE SWITCH (STYLE WIDGET) ================= */
#lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

/* bouton globe */
#lang-current {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: auto;
  border-radius: 16px;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(0,0,0,0.08);

  box-shadow: 0 20px 60px rgba(0,0,0,0.15);

  font-size: 22px;
  color: #111;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#lang-current:hover {
  transform: scale(1.06);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

/* ================= MENU ================= */
.lang-menu {
  position: absolute;
  top: 65px;
  right: 0;

  display: none;
  flex-direction: column;

  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);

  min-width: max-content; /* 🔥 largeur auto selon texte */
}

.lang-menu.active {
  display: flex;
}

/* boutons langues */
.lang-menu button {
  padding: 12px 18px;
  border: none;
  background: transparent;
  cursor: pointer;

  font-size: 14px;
  text-align: left;
  color: #111;

  white-space: nowrap; /* 🔥 empêche retour à la ligne */
  
  transition: background 0.2s ease;
}

.lang-menu button:hover {
  background: #f2f2f2;
}

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

@media (max-width: 1024px) {

  #lang-switch {
    left: auto;
    right: 20px;
    top: 20px;
  }

}

@media (max-width: 600px) {

  #lang-current {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .lang-menu {
    top: 52px;
    right: 0;
    min-width: 160px;
  }

  .lang-menu button {
    font-size: 15px;
    padding: 14px 18px;
  }

}

/* ================= MOBILE LAYOUT ================= */
@media (max-width: 768px) {

  /* Conteneur mobile */
  .FondPortefolio {
    background: url("images/Portefolioinmobile.png") center / cover no-repeat;
  }

  /* Cache l’image desktop */
  .fondindex {
    display: none;
  }

  /* Dimensions communes des blocs */
  .bloc {
    width: 203px;
    height: 128px;
  }

  /* POSITIONS EXACTES */

  .bleu1 {
    left: 12px;
    top: 345px;
  }

  .rose1 {
    left: 215px;
    top: 345px;
  }

  .violet1 {
    left: 12px;
    top: 468px;
  }

  .orange1 {
    left: 215px;
    top: 468px;
  }

  .violet2 {
    left: 12px;
    top: 591px;
  }

  .jaune1 {
    left: 215px;
    top: 591px;
  }

  /* Ajustement du texte */
  .label {
    font-size: 14px;
  }
}

.seo-content {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
