.seconde_page {
    width: 100%;
    height: 100%;
    padding: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 0;
}

/* Bas du panneau doc : GitHub + rating (même logique que les cartes mini) */
.tools_documentation .seconde_page__bottombar {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    z-index: 500;
    max-width: 100%;
    box-sizing: border-box;
}

.seconde_page__github {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    text-decoration: none;
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seconde_page__github:hover {
    color: #fff;
    border-color: rgba(20, 157, 221, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.seconde_page__github:focus-visible {
    outline: 2px solid rgba(20, 157, 221, 0.55);
    outline-offset: 3px;
}

.seconde_page__github i {
    font-size: 28px;
    line-height: 1;
}

.tools_documentation .seconde_page__footer_rating {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

.tools_documentation .seconde_page__footer_rating .StarRating {
    justify-content: flex-start;
    align-items: center;
}

.tools_documentation .seconde_page__footer_rating .listrating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.tools_documentation .seconde_page__footer_rating .listrating > * {
    font-size: 22px;
    line-height: 1;
}

.box_button {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.box_button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.box_button .seconde_page__github--in_box {
    width: 35px;
    height: 35px;
    border-radius: 12px;
}

.box_button .seconde_page__github--in_box i {
    font-size: 18px;
}


.box_button button {
    width: 25px;
    height: 25px;
    border-radius: 20px;

    margin: 10px 0 10px;
    position: relative;
    left: 0px;
    top: 0px; 
    z-index: 300;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-color: #0f172a;
    color: #f1f5f9;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.box_button button:hover {
    background-color: #1e293b;
    border-color: rgba(20, 157, 221, 0.45);
}

.box_button button i,
.box_button a button i {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1;
}

.button_GoTool_page {
    background-color: #0f172a;
}

.box_button a {
    margin: 0px;
    padding: 0px;
}

.tools_documentation {
    flex: 1 1 48%;
    min-width: 0;
    width: auto;
    height: 100%;
    padding: 0px 10px 88px 0px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

.banniere_tools {
    /* background-color: red; */
    width: 100%;
    height: 25vh;
    margin: 10px 0 10px;

    display: flex;
    flex-direction:column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}
.banniere_tools > img{
    border-radius: 10px;
    /* width: 100%; */
    max-height: 70%;
    border: 2px solid #ccc;
}

/* ---------- Panneau chat (.tools_commentaire) ---------- */
.tools_commentaire {
    --chat-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(17, 24, 39, 0.96) 100%);
    --chat-border: rgba(20, 157, 221, 0.22);
    --chat-bubble-other: rgba(30, 41, 59, 0.95);
    --chat-bubble-me: rgba(20, 157, 221, 0.18);
    --chat-text: #e5e7eb;
    --chat-muted: #94a3b8;

    overflow: hidden;
    overflow-x: hidden;
    position: relative;
    z-index: 390;
    flex: 1 1 50%;
    min-width: 0;
    width: auto;
    height: 100%;
    min-height: 0;
    background: var(--chat-bg);
    border: 1px solid var(--chat-border);
    border-radius: 14px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.35);

    display: flex;
    flex-direction: column-reverse;
    gap: 0;
}

/* Ordre DOM : formulaire puis messages ; column-reverse met l’input en bas */
.load_message {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 12px 12px 8px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.load_message::-webkit-scrollbar {
    width: 8px;
}
.load_message::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}
.load_message::-webkit-scrollbar-thumb {
    background: rgba(20, 157, 221, 0.35);
    border-radius: 8px;
}
.load_message::-webkit-scrollbar-thumb:hover {
    background: rgba(20, 157, 221, 0.55);
}


.box_form_message {
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    border-radius: 0 0 12px 12px;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    align-items: stretch;
}



.box_form_message form {
    width: 100%;
    max-width: none;
}

.Message_input {
    width: 100%;
    min-height: 20px;
    max-height: 140px;
    padding: 8px 12px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    resize: vertical;
    background: rgba(15, 23, 42, 0.85);
    color: var(--chat-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.Message_input::placeholder {
    color: var(--chat-muted);
}

.Message_input:focus {
    outline: none;
    border-color: rgba(20, 157, 221, 0.55);
    box-shadow: 0 0 0 3px rgba(20, 157, 221, 0.2);
}

.box_form_message form input[type="submit"] {
    align-self: stretch;
    min-width: 48px;
    padding: 0 12px;
    background: linear-gradient(180deg, #1aa8e6, #149ddd);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.box_form_message form input[type="submit"]:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(20, 157, 221, 0.35);
}

.box_form_message form input[type="submit"]:active {
    transform: scale(0.98);
}

.groupMessage {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    width: 100%;
    gap: 0;
}

.groupMessage .Message_input {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

.groupMessage input[type="submit"] {
    flex: 0 0 auto;
}



.box_sended {
    border-radius: 14px 14px 14px 6px;
    width: 88%;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    background: var(--chat-bubble-other);
    color: var(--chat-text);
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    word-break: break-word;
}

.box_sended p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.box_sended_you {
    border-radius: 14px 14px 6px 14px;
    width: 88%;
    max-width: 100%;
    margin: 0;
    padding: 10px 12px;
    background: var(--chat-bubble-me);
    color: var(--chat-text);
    align-self: flex-end;
    border: 1px solid rgba(20, 157, 221, 0.28);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    word-break: break-word;
}

.box_sended_you p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}


/* Respiration haute (notch / barre d’état) sur la page outils, après stylesboostrap */
#work.section.work {
  padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
}
@media (min-width: 992px) {
  #work.section.work {
    padding-top: calc(6.5rem + env(safe-area-inset-top, 0px));
  }
}

/* Avec barre de navigation en haut : le corps a déjà un padding-top (assets/css/style.css) */
html.nav-layout-top #work.section.work {
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
}
@media (min-width: 992px) {
  html.nav-layout-top #work.section.work {
    padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  }
}