/* ==============================
   Styles généraux + responsive
   ============================== */
/* ============================================================
   IA-BOOK — SOCLE CSS V1 (FIGÉ)
   Base commune à toutes les pages hors chat
   ============================================================ */

/* ============================
   THÈMES COULEURS — IA
   ============================ */

/* IA Book */
.theme-ia-book{
    --ia-main-color: #0073b1;
}

/* IA Éditeur */
.theme-ia-editeur{
    --ia-main-color: #5fa777;
}

/* IA Sites */
.theme-ia-sites{
    --ia-main-color: #7b1e2b;
}

/* IA Auteur */
.theme-ia-auteur{
    --ia-main-color: #f6c89f;
}

/* IA Console */
.theme-ia-console{
    --ia-main-color: #BDBDBD;
}


/* ==============================
   GLOBAL
   ============================== */
body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #d9dde0;
    background-image: linear-gradient(135deg, #e5e7e8 0%, #d0d4d6 50%, #e2e4e6 100%);
    background-attachment: fixed;
}

/* ==============================
   BANDEAU SUPÉRIEUR
   ============================== */
#livre-top-banner{
    width: 100%;
    background: var(--ia-main-color);
    color: white;
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.30);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.livre-icone{
    font-size: 24px;
    margin-right: 12px;
    vertical-align: middle;
}

#livre-top-title{
    font-family: "Lucida Handwriting","Brush Script MT",cursive;
    font-size: 18px;
    white-space: nowrap;
}

#livre-top-menu{
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 25px;
    font-size: 14px;
}

#livre-top-menu a{
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ==============================
   STRUCTURE PAGE
   ============================== */
#page-wrapper{
    padding-top: 80px;
    padding-bottom: 20px;
}

#livre-layout{
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    justify-content: center;
}

/* ==============================
   FENÊTRE CENTRALE
   ============================== */
#livre-chat-container{
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 12px 18px 28px rgba(0,0,0,0.40);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

/* ==============================
   EN-TÊTE DE FENÊTRE
   ============================== */
#livre-chat-header{
    background: var(--ia-main-color);
    color: #fff;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 16px;
    font-weight: bold;
}

#livre-chat-subtitle{
    font-size: 12px;
    font-weight: normal;
    margin-top: 4px;
}

/* ==============================
   BOUTONS
   ============================== */
.livre-top-buttons{
    text-align: center;
    margin: 10px 0 5px 0;
}

.livre-btn-top,
.livre-btn-top:link,
.livre-btn-top:visited,
.livre-btn-top:hover,
.livre-btn-top:active{
    text-decoration: none;
}

.livre-btn-top{
    display: inline-block;
    background: var(--ia-main-color);
    color: #fff;
    padding: 6px 12px;
    margin: 4px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 4px 6px 12px rgba(0,0,0,0.25);
    transition: transform 0.15s ease;
}

.livre-btn-top:hover{
    transform: translateY(-2px);
}

/* ==============================
   CONTENU ÉDITORIAL
   ============================== */
#livre-chat-content{
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #000;
}

#livre-chat-content h2{
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--ia-main-color);
}

#livre-chat-content p{
    margin-bottom: 12px;
}

#livre-chat-content ul{
    margin: 10px 0 14px 20px;
}

#livre-chat-content li{
    margin-bottom: 6px;
}

/* ==============================
   PIED DE FENÊTRE
   ============================== */
#livre-chat-footer-info{
    font-size: 11px;
    color: #666;
    padding: 6px 10px 10px 10px;
    text-align: center;
}

/* ==========================================================
   IA-FAQ – Bloc d'accès discret (bas-droite)
   ========================================================== */
#iafaq-bloc-access{
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 999;
    font-family: Arial, sans-serif;
}

/* Conteneur */
.iafaq-bloc-inner{
    width: 240px;
    background: #f5f7f8;
    border: 1px solid #cfd6da;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 14px 16px;
    font-size: 13px;
    color: #333;
}

/* Titre */
.iafaq-bloc-title{
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Texte */
.iafaq-bloc-text{
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #555;
}

/* Bouton */
.iafaq-btn{
    display: inline-block;
    padding: 6px 12px;
    background: var(--ia-main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.iafaq-btn:hover{
    opacity: 0.9;
}

/* ==============================
   RESPONSIVE — TABLETTE
   ============================== */
@media (max-width: 900px){
    #livre-layout{
        flex-direction: column;
    }
}

/* ==============================
   RESPONSIVE — SMARTPHONE
   ============================== */
@media (max-width: 600px){

    /* Bandeau */
    #livre-top-banner{
        flex-direction: column;
        align-items: center;
        padding: 10px 12px;
    }

    #livre-top-banner > *{
        display: none;
    }

    #livre-top-menu{
        display: flex;
        position: static;
        transform: none;
        gap: 12px;
        font-size: 13px;
    }

    /* En-tête fenêtre */
    #livre-chat-header{
        font-size: 11px;
        padding: 8px 10px;
        font-weight: normal;
    }

    #livre-chat-subtitle{
        font-size: 10px;
        line-height: 1.4;
    }

    /* Contenu */
    #livre-chat-content{
        font-size: 12px;
        line-height: 1.5;
        padding: 14px;
    }

    #livre-chat-content h2{
        font-size: 15px;
    }

    /* IA-FAQ – MASQUAGE MOBILE */
    #iafaq-bloc-access{
        display: none;
    }
}


/* ==============================
   FORMULAIRES – IA-BOOK
   ============================== */

/* Champs de saisie */
.theme-ia-auteur input[type="text"],
.theme-ia-auteur input[type="password"],
.theme-ia-auteur textarea {
    border: 2px solid var(--ia-main-color);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Focus (champ actif) */
.theme-ia-auteur input[type="text"]:focus,
.theme-ia-auteur input[type="password"]:focus,
.theme-ia-auteur textarea:focus {
    outline: none;
    border-color: var(--ia-main-color);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Bouton de validation (optionnel mais cohérent) */
.theme-ia-auteur input[type="submit"] {
    background: var(--ia-main-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-weight: bold;
    cursor: pointer;
}

.theme-ia-auteur input[type="submit"]:hover {
    opacity: 0.9;
}

/* ==============================
   FORMULAIRES – LARGEURS IA-AUTEUR
   ============================== */

/* Champs à allonger */
.theme-ia-auteur input[name="nom"],
.theme-ia-auteur input[name="prenom"],
.theme-ia-auteur input[name="ville"],
.theme-ia-auteur input[name="pays"],
.theme-ia-auteur input[name="nom_auteur"] {
    width: 100%;
}

/* Champ code postal plus court */
.theme-ia-auteur input[name="cp"] {
    width: 120px;
}

/* ==========================================================
   IA-FAQ – Thème IA-Editeur
   ========================================================== */

body.theme-ia-editeur #iafaq-bloc-access .iafaq-bloc-inner{
    background: #eef4f1;              /* vert très clair */
    border: 1px solid #b9d2c7;
}

body.theme-ia-editeur #iafaq-bloc-access .iafaq-bloc-title{
    color: #2f6f55;                   /* vert éditeur */
}

body.theme-ia-editeur #iafaq-bloc-access .iafaq-bloc-text{
    color: #3f5f55;
}



