/* ====== BASE ====== */
/* Initialisation des marges de tous les élements html*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Définition des variables du documents*/
:root {
  --text-color: #333;
  --background-color: rgba(215, 210, 255, 0.151);
  --white: #ffffff;
  --shadow: 0 5px 25px rgba(171, 174, 185, 0.356);
  --titre-color: rgb(141, 49, 184);
  --primary-blue: rgba(9, 31, 233, 0.25);
  --hover-blue: rgba(9, 80, 233, 0.35);
  --glow-blue: rgba(9, 80, 233, 0.2);
  --bg: #0f172a;
  --card: #7d86acfd;
  --text: #f1f5f9;
  --accent: #1846df;
  --yes: #22c55e;
  --no: #ef4444;
  --border: #483861;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-color);
}

/*SOmmaire*/
.containerNav {
  background: linear-gradient(180deg, #2a82fc 0%, #360143 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 20px rgba(9, 31, 233, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  width: 100%;
}

.titreNav {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 30px;
  text-shadow:
    0 0 20px rgba(9, 80, 233, 0.8),
    0 0 40px rgba(9, 80, 233, 0.4);
  letter-spacing: 1px;
}

.navigationPage {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.navigationPage a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 15px 30px;
  color: var(--white);
  background: rgba(9, 31, 233, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px 0 var(--glow-blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.navigationPage a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 70%);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.navigationPage a:hover::before {
  width: 300px;
  height: 300px;
}

.navigationPage a:hover {
  background: var(--hover-blue);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 15px 45px rgba(9, 80, 233, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navigationPage a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  transform: translateX(-50%);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.navigationPage a:hover::after {
  width: 80%;
}

.navigationPage a:active {
  transform: translateY(-2px) scale(1.02);
}

/* navigation*/

.menu {
  background-color: #2222223a;
  color: #346ee9;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.menu-toggle {
  font-size: 1.8em;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #614ae7f5;
  padding-top: 70px;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1001;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 1.1em;
  transition: background 0.3s;
}

.sidebar a:hover {
  background-color: #00bcd4;
}

.menu.active+.sidebar {
  left: 0;
}

.sidebar .icone {
  display: flex;
  justify-content: center;
}

/* Pour le contenu principal */
.content {
  margin-top: 70px;
  padding: 20px;
}

/* info bulle au survol*/
.collapsible-section h2 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.collapsible-section h2::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #7374df;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  margin-bottom: 5px;
}

.collapsible-section h2:hover::after {
  opacity: 1;
}

.section-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.section-content .inner {
  overflow: hidden;
}

.collapsible-section.open .section-content {
  grid-template-rows: 1fr;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.collapsible-section.open .toggle-arrow {
  transform: rotate(180deg);
}

/*------------------------------------------------------*/
/*-------------------------Header-------------------------*/
/*------------------------------------------------------*/

header {
  background: linear-gradient(180deg, #360143, #2a81fc);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgb(54, 66, 109);
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
}

header p {
  max-width: 800px;
  margin: 15px auto 0;
  font-size: 1.1rem;
  color: var(--white);
}

/*------------------------------------------------------*/
/*-------------------------Main-------------------------*/
/*------------------------------------------------------*/
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--titre-color);
  border-left: 6px solid var(--titre-color);
  padding-left: 10px;
}

p {
  line-height: 1.7;
  margin-bottom: 1em;
  color: var(--text-color);
}

.intro {
  max-width: 1200px;
  /*Espace de la colonne centrale pour plus de visibilité*/
  margin: 40px auto;
  /*centre horizontalement dans son conteneur.*/
  padding: 10px 20px 20px 20px;
  /*marge interne de 40 en haut et bas et 20 sur les cotés*/
  background-color: var(--background-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
}

.intro p {
  line-height: 1.7;
  /* Interligne confortable */
  margin-bottom: 1em;
  /* Espace entre les paragraphes */
  color: var(--text-color);
  font-size: clamp(1rem, 1vw, 2rem);
}

.card {
  background: var(--background-color);
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin: 30px auto;
  border-left: 3px solid transparent;
  line-height: 1.7;
  border-left: 3px solid transparent;
  transition: border-left-color 0.3s ease;
}

.card:hover {
  border-left-color: #3498db;
}

.titleh3 {
  color: #00bcd4;
  margin-top: 20px;
}

/*------------------------------------------------------*/
/*-------------------------L'art du prompt--------------*/
/*------------------------------------------------------*/

/*-----------------------Méthode ACTIF-------------------*/
.actif {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5em 0;
}

.actif img {
  width: 100%;
}

.containerExemple {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.containerExemple ul {
  padding: 0 1em;
}

.containerRemarque {
  background-color: #b9ace641;
  border-radius: 10px;
  padding: 10px;
}



/*-----------------------Méthode CAFE-------------------*/
.containerCafe {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
}

.etape {
  width: 280px;
  max-width: 300px;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  border-radius: 10px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.etape:hover {

  transform: translateY(-7px);
  box-shadow: 0 5px 25px rgba(120, 142, 241, 0.644);
}

.lettre {
  width: 100%;
}

.lettre span {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(1.6rem, 4vw + 0.5rem, 3rem);
  border-radius: 10px 10px 0 0;
}

.etapeContent {
  display: grid;
  align-items: center;

}

.etapeContent p {
  margin-left: 10px;
  margin-bottom: 0;
}

.etapeContent ul {
  line-height: 1.7;
  margin-left: 30px;
  margin-bottom: 1em;
}

.lettre1 span {
  background-color: rgb(0, 0, 150);
}

.mot1 {
  background-color: rgba(0, 0, 150, 0.384);
  font-weight: bold;
  color: rgb(0, 0, 150);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content1 {
  height: 100%;
  background-color: rgb(0, 0, 150, 0.1);
  border-radius: 0 0 10px 10px;
}

.lettre2 span {
  background-color: rgb(0, 113, 110);
}

.mot2 {
  background-color: rgb(0, 113, 110, 0.384);
  font-weight: bold;
  color: rgb(0, 113, 110);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content2 {
  height: 100%;
  background-color: rgb(0, 113, 110, 0.1);
  border-radius: 0 0 10px 10px;
}

.lettre3 span {
  background-color: rgb(224, 82, 27);
}

.mot3 {
  background-color: rgb(224, 82, 27, 0.384);
  font-weight: bold;
  color: rgb(224, 82, 27);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content3 {
  height: 100%;
  background-color: rgb(224, 82, 27, 0.1);
  border-radius: 0 0 10px 10px;
}

.lettre4 span {
  background-color: rgb(185, 12, 221);
}

.mot4 {
  background-color: rgb(185, 12, 221, 0.384);
  font-weight: bold;
  color: rgb(185, 12, 221);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content4 {
  height: 100%;
  background-color: rgb(185, 12, 221, 0.1);
  border-radius: 0 0 10px 10px;
}

.prompt ul {
  line-height: 1.7;
  margin-left: 30px;
  margin-bottom: 1em;
}





/* lien assistant prompt*/

.containerAssistant {
  text-align: center;
}

.assistant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.assistant a {
  background: linear-gradient(45deg, #4524ff, #9519e7);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

i.fas {
  margin-right: 0.3rem;
}

/* Animation Portail dimensionnel */
.portal::before,
.portal::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0;
  animation: none;
}

.portal::before {
  border-color: #ff00ff;
  animation-delay: 0s;
}

.portal::after {
  border-color: #00ffff;
  animation-delay: 0.2s;
}

@keyframes portalSpin {
  0% {
    transform: rotate(0deg) scale(0.5);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: rotate(360deg) scale(1.5);
    opacity: 0;
  }
}

.portal:hover::before,
.portal:hover::after {
  animation: portalSpin 1s ease infinite;
}

.portal:hover {
  transform: scale(1.05);
  filter: hue-rotate(360deg);
  transition: filter 2s linear;
}

.portal:active {
  transform: translate(3px, 3px) scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/*-------------Fin CAFÉ--------------------*/




/*------------------------------------------------------*/
/*---------------Les IA conversationnelles--------------*/
/*------------------------------------------------------*/

.table-container {
  max-width: 1400px;
  margin: auto;
  overflow-x: auto;
  border-radius: 12px;
}

.IA table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 1100px;
}

.IA thead {
  background: #0e48e9;
}

.IA th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: white;
}

.IA th {
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.IA .clickable-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.IA .clickable-row:hover {
  background-color: #243447;
  transition: 0.2s ease;
}


.IA .badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.IA .yes {
  background: var(--yes);
  color: #fff;
}

.IA .no {
  background: var(--no);
  color: #fff;
}

.IA .limit {
  background: #f59e0b;
  color: #fff;
}

.IA .caption {
  text-align: center;
  margin-top: 15px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/*permet d'écrire en dessous et à côté de l'icone*/
.mistralIllsutration,
.duckIllsutration {
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.mistralIllsutration img {
  width: 15rem;
  /* adapte selon ton besoin */
  height: auto;
  display: block;
}

.duckIllsutration img {
  width: 10rem;
  /* adapte selon ton besoin */
  height: auto;
  display: block;
}

.ContainerMistral::after,
.ContainerDuck::after {
  content: "";
  display: block;
  clear: both;
}

.P2IA ul {
  line-height: 1.7;
  margin-left: 30px;
  margin-bottom: 1em;
}

.titreIAcycle3 {
  color: #c03c33;
  display: flex;
  align-items: center;
  font-size: 18px;
}

.titreIAcycle3 img {
  margin-right: 7px;
}

.video {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.titreVideo {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1 1 500px;
  max-width: 540px;
  margin: 0;
}

.titreVideo iframe {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  aspect-ratio: 445 / 260;
}

.titreVideo h3 {
  display: flex;
  justify-content: center;
}

.construction {
  border: 4px dashed blue;
  border-radius: 10px;
  background-color: #0d46b18c;
  padding: 10px;
  color: var(--white);
}

/*------------------------------------------------------*/
/*-------------------------ChatMD-----------------------*/
/*------------------------------------------------------*/

/*----------------------Réponse à un besoin-------------*/
.liste {
  line-height: 1.7;
  margin-left: 30px;
  margin-bottom: 1em;
}

.containerchatMD {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
}

.etapeIA {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  border-radius: 10px;
  border: 1px solid rgba(27, 39, 59, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(15, 23, 42, 0.06));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.etapeIA:hover {
  transform: translateY(-7px);
  box-shadow: 0 5px 25px rgba(120, 142, 241, 0.644);
}

.containerchatMD .chat-illustration {
  font-size: 0;
}

.containerchatMD .chat-illustration svg {
  width: 70px;
  height: 70px;
  display: block;
}


.front {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.front span {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
}

.mot {
  font-weight: bold;
  font-size: 18px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motIA1 {
  background-color: rgba(45, 91, 135, 0.22);
  color: #16324a;
}

.motIA2 {
  background-color: rgba(32, 106, 95, 0.22);
  color: #10423b;
}

.containerchatMD .etapeIA:nth-of-type(1) .front {
  background: linear-gradient(135deg, #4e78a6, #2c4867);
}

.containerchatMD .etapeIA:nth-of-type(1) .content1 {
  width: 100%;
  background-color: rgba(45, 91, 135, 0.12);
}

.containerchatMD .etapeIA:nth-of-type(2) .front {
  background: linear-gradient(135deg, #2d9185, #1d5f58);
}

.containerchatMD .etapeIA:nth-of-type(2) .content2 {
  width: 100%;
  background-color: rgba(32, 106, 95, 0.12);
}

.preambule {
  background-color: #0d46b18c;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0;
  color: white;
}

.containerChatbot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  overflow: hidden;
}

.containerChatbot .texteChatbot {
  width: 45%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chatbot {
  width: 50%;
  min-width: 0;
  box-shadow: 0 5px 20px rgb(54, 66, 109);
  border-radius: 15px;
  overflow: hidden;
}

.chatbot iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 15px;
}

.chatmd-launcher {
  margin-top: 14px;
}

.chatmd-launcher label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.chatmd-launcher-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.chatmd-launcher-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #b4bfd4;
  border-radius: 8px;
}

.chatmd-launcher-row button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background-color: #1d5f58;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chatmd-launcher-row button:hover {
  background-color: #2d9185;
}

.btn {
  display: flex;
  justify-content: center;
}

#btnChatbot {
  color: white;
  font-size: 14px;
  font-weight: bold;
  background-color: #f59e0b;
  border-radius: 5px;
  border: none;
  padding: 5px;
  height: 40px;
  margin-left: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease;
}

#btnChatbot:hover {
  transform: scale(1.05)
}

#btnChatbot:active {
  transform: translate(3px, 3px)
}




















/*----------------------Footer---------------------------------------*/
footer {
  background: linear-gradient(135deg, #33405e 0%, #231549 100%);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #4cc9f0;
  font-size: 1.2em;
  margin-top: 0px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  color: #b8c1ec;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b8c1ec;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #4cc9f0;
  transform: translateX(5px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #4cc9f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #b8c1ec;
  font-size: 0.9em;
  margin: 0px;
}

.footer-credits {
  margin-top: 10px;
  font-size: 0.85em;
  color: #8892b6;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(76, 201, 240, 0.1);
  border-radius: 50%;
  color: #4cc9f0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.social-link:hover {
  background: #4cc9f0;
  color: #1a1a2e;
  transform: translateY(-3px);
}

/*--------------------------------------------------------------*/
/*----------------------media Query-----------------------------*/
/*--------------------------------------------------------------*/

@media(max-width:768px) {

  .IA table {
    font-size: 0.8rem;
  }

  .IA th,
  td {
    padding: 10px;
  }


  .containerchatMD {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;

  }
}


@media screen and (max-width: 850px) {

  .containerCafe {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    max-width: 1168px;
    margin: 0 auto;
    gap: 20px;
  }

  .video {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .titreVideo {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: center;
    margin: 0 15px;
  }

  .containerChatbot {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 15px;
    overflow: visible;
  }

  .containerChatbot .texteChatbot {
    width: 100%;
  }

  .chatbot {
    width: 100%;
    box-shadow: 0 5px 20px rgb(54, 66, 109);
    border-radius: 15px;
  }
  .chatmd-launcher-row{
     display: grid;
    grid-template-columns: 1fr;
  }
  .chatbot iframe {
    width: 100%;
  border-radius: 15px;
}
}
