/* Page Accueil */
.text {
  color: rgb(41, 78, 170);
}
.lead {
  color: rgb(41, 78, 170);
}
.btn {
  background-color: rgb(41, 78, 170);
}
.citation {
  background-color: rgb(255, 255, 255);
  color: rgb(41, 78, 170);
  max-width: 100%;
  width: 60rem;
  position: relative;
  z-index: 2;
  height: 6rem;
}
.opacity-75 {
  height: auto;
}
.container {
  -webkit-user-select: none;
}

/* Page Contact */
.example-wrapper {
  margin: 10% auto;
  height: auto;
  max-width: 800px;
  width: 100%;
  font: 18px/1.5 sans-serif;
}
.form-control {
  width: 60%;
  border-color: black;
}
.form-check-input {
  border-color: black;
}
.form-check {
  width: 60%;
}
.table-bordered {
  width: 30%;
}


/* Page FAQ */
.faq { 
    margin-left: 5em;
}

/* Page Demo */
.en-cours {
  background-color: rgb(255, 255, 255);
  color: rgb(41, 78, 170);
  width: 30rem;
  max-width: 100%;
  position: relative;
  z-index: 2;
  height: 3.5rem;
  left: 25%;
}

/* Base */
.navbar {
  background-color: rgb(41, 78, 170);
}
.card-img-top {
  height: 200px;
}
.disabled-link {
  pointer-events: none;
  color: grey;
  cursor: default;
}

/* Navbar: bouton connexion bien à droite */
@media (min-width: 768px) {
  .navbar-nav.ms-auto {
    margin-left: auto !important;
  }

  .navbar-nav.end-button {
    margin-left: auto;
  }

  .navbar-nav.end-button .nav-item {
    margin-left: 1rem;
  }
}

.auth-wrapper {
    min-height: calc(100vh - 100px); /* ajuste la hauteur en fonction du layout */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 30px;
}



/*  Productt Modal  */
.badge-domaine { background-color: #32589c !important; }
.badge-nature { background-color: #3b628d !important; }
.badge-true { background-color: #79aa29 !important; }
.badge-false { background-color: #aa8529 !important; }



/* IA */
  .message {
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* arrondi */
    max-width: 75%;
    word-wrap: break-word;
  }
  .user {
    background-color: #cfe2ff; 
    color: rgb(41, 78, 170); 
    align-self: flex-end;
    text-align: right;
    margin-left: auto;
  }
  .assistant {
    background-color: #d1e7dd;
    color: #0f5132;
    align-self: flex-start;
    text-align: left;
    margin-right: auto;
  }

#chat-container {
    position: absolute;
    top: 100px; 
    bottom: 100px;
    left: 0;
    right: 0;
    max-width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

    #chat-container h1 {
        flex-shrink: 0;
        margin-bottom: 1rem;
    }

    #chatbox {
    display: flex;
    flex-direction: column;
    white-space: pre-wrap;
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    min-height: 0;
}

    #input-area {
        flex-shrink: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }

    #input-area input#question {
        flex-grow: 1;
        min-width: 0;
    }

    #actionButtons {
        margin-top: 0.5rem;
        text-align: center;
        width: 100%;
        flex-shrink: 0;
    }


/* === GLOBAL WRAPPER === */
#productCreator-wrapper {
    position: relative;
    width: 100vw;
    height: calc(100vh - 100px);
    overflow: hidden;
    background: white;
    transform: translateY(-40px);
}

#productCreator-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    height: 100%;
    width: 100%;
}

.productCreator-image {
    width: 20%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 1.6rem auto;
}

/* === STEP GENERIC === */
.productCreator-step {
    flex: 0 0 100%;
    width: 100vw;
    height: 100vh;
    padding: 1.6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* === TITLES & DESCRIPTIONS === */
.productCreator-title {
    font-size: 1.44rem;
    font-weight: bold;
    margin: 1.6rem 0;
    text-align: center;
}

.productCreator-description {
    font-size: 0.96rem;
    margin-bottom: 1.2rem;
    max-width: 480px;
    text-align: center;
}

/* === CHOICES === */
.productCreator-choice {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #f8f9fa;
    border-radius: 0.6rem;
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.productCreator-choice:hover {
    transform: scale(1.08);
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.productCreator-choice.selected {
    background-color: #5b8adc;
    border-color: #294eaa;
    transform: scale(1.05);
}

.productCreator-choice-img {
    width: 56%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.productCreator-choice-text {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* === TABLE === */
.productCreator-table {
    width: 90%;
    border-collapse: collapse;
    margin-left: 1.6rem;
    margin-bottom: 0.8rem;
}

.productCreator-table td {
    vertical-align: middle;
    padding: 0.8rem 1.2rem;
}

.productCreator-table-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.productCreator-table-title {
    font-size: 1.44rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 200px;
}

.productCreator-table-text {
    font-size: 1.2rem;
    font-weight: 400;
}

/* === TEXTAREA === */
.productCreator-textarea {
    width: 100%;
    max-width: 640px;
    font-size: 0.96rem;
    padding: 0.8rem;
    border-radius: 0.4rem;
    border: 1px solid #ccc;
    resize: vertical;
    margin: 0.8rem 0 1.6rem 0;
    box-sizing: border-box;
}

/* === BUTTONS === */
.productCreator-mailto-button,
.productCreator-next-button {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    font-size: 0.88rem;
    border-radius: 0.4rem;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

/* === BOTTOM ZONE === */
.bottom-zone {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-bottom: 1.6rem;
}

.bottom-zone.center {
    justify-content: center;
}

.bottom-zone.end {
    justify-content: flex-end;
    padding-right: 1.6rem;
}

.bottom-zone .productCreator-description {
    max-width: 72vw;
    font-size: 0.96rem;
    margin: 0;
    text-align: center;
}

/* === STEP SPECIFIC === */
.productCreator-step[data-step="3"] {
    justify-content: flex-start;
    padding-top: 16rem;
}


.productCreator-step[data-step="4"] .productCreator-step-content, 
.productCreator-step[data-step="9"] .productCreator-step-content,
.productCreator-step[data-step="15"] .productCreator-step-content 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.productCreator-step[data-step="4"] .bottom-zone,
.productCreator-step[data-step="9"] .bottom-zone,
.productCreator-step[data-step="15"] .bottom-zone
 {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0.96rem;
    gap: 0.56rem;
}

.productCreator-step[data-step="4"] .productCreator-mailto-button,
.productCreator-step[data-step="4"] .productCreator-next-button,
.productCreator-step[data-step="9"] .productCreator-next-button,
.productCreator-step[data-step="15"] .productCreator-next-button {
    font-size: 0.96rem;   
}

.productCreator-step[data-step="9"] .productCreator-title,
.productCreator-step[data-step="4"] .productCreator-title,
.productCreator-step[data-step="15"] .productCreator-title
 {
    font-size: 2rem;
    margin-bottom: 1.6rem;
}

.productCreator-step[data-step="9"] .productCreator-description,
.productCreator-step[data-step="4"] .productCreator-description,
.productCreator-step[data-step="15"] .productCreator-description {
    font-size: 1.04rem;
    margin-bottom: 1.2rem;
/*  Size of the description block */
    max-width: 800px;
}


.productCreator-step[data-step="5"] .bottom-zone,
.productCreator-step[data-step="6"] .bottom-zone,
.productCreator-step[data-step="8"] .bottom-zone,
.productCreator-step[data-step="10"] .bottom-zone {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0.96rem;
    gap: 0.56rem;
}

.productCreator-step[data-step="5"],
.productCreator-step[data-step="6"],
.productCreator-step[data-step="8"],
.productCreator-step[data-step="10"] {
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 4.8rem;
}

.productCreator-step[data-step="5"] .productCreator-step-content,
.productCreator-step[data-step="6"] .productCreator-step-content,
.productCreator-step[data-step="8"] .productCreator-step-content,
.productCreator-step[data-step="10"] .productCreator-step-content {
    padding: 1.6rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.productCreator-step[data-step="7"],
.productCreator-step[data-step="11"],
.productCreator-step[data-step="12"],
.productCreator-step[data-step="13"],
.productCreator-step[data-step="14"],
.productCreator-step[data-step="16"],
.productCreator-step[data-step="17"],
.productCreator-step[data-step="18"],
.productCreator-step[data-step="19"],
.productCreator-step[data-step="20"] {
    justify-content: flex-start;
    align-items: center;
    padding: 3.2rem 1.6rem;
}

.productCreator-step[data-step="7"] .bottom-zone,
.productCreator-step[data-step="11"] .bottom-zone,
.productCreator-step[data-step="12"] .bottom-zone,
.productCreator-step[data-step="13"] .bottom-zone,
.productCreator-step[data-step="14"] .bottom-zone,
.productCreator-step[data-step="16"] .bottom-zone,
.productCreator-step[data-step="17"] .bottom-zone,
.productCreator-step[data-step="18"] .bottom-zone,
.productCreator-step[data-step="19"] .bottom-zone,
.productCreator-step[data-step="20"] .bottom-zone {
    justify-content: center;
}

.productCreator-step[data-step="7"] .productCreator-step-content,
.productCreator-step[data-step="11"] .productCreator-step-content,
.productCreator-step[data-step="12"] .productCreator-step-content,
.productCreator-step[data-step="13"] .productCreator-step-content,
.productCreator-step[data-step="14"] .productCreator-step-content,
.productCreator-step[data-step="16"] .productCreator-step-content,
.productCreator-step[data-step="17"] .productCreator-step-content,
.productCreator-step[data-step="18"] .productCreator-step-content,
.productCreator-step[data-step="19"] .productCreator-step-content,
.productCreator-step[data-step="20"] .productCreator-step-content {
    padding: 1.6rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}




.productCreator-next-button:disabled {
    background-color: #d6d6d6;
    cursor: not-allowed;
    opacity: 0.7;
}

.productCreator-step[data-step="21"] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3.2rem 1.6rem;
}

.productCreator-step[data-step="21"] .productCreator-step-content {
    margin-top: 4rem;
    text-align: center;
}

.productCreator-step[data-step="21"] .bottom-zone {
    padding-bottom: 35rem;
}

.productCreator-validate-button {
    display: inline-block;
    padding: 0.8rem 2.4rem;
    font-size: 1.12rem;
    border-radius: 0.4rem;
    background-color: #5b8adc;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.productCreator-validate-button:hover {
    background-color: #294eaa;
}

#productCreator-back-button {
    position: absolute;
    top: 40px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #294eaa;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s;
}

#productCreator-back-button:hover {
    background-color: #5b8adc;
}