/* =====================================================================
   IDENTITY & BRANDING : Aliénor Management Premium (Midnight & Sand)
   ===================================================================== */

/* Import de la police Inter et des icônes Google */
@import url('https://fonts.googleapis.com/css?family=Inter:300,400,500,600&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    /* Vos pinceaux officiels */
    --alienor-midnight: #0056b3;     /* Bleu Nuit profond, sobre et statutaire */
    --alienor-sand: #E6D5B8;         /* Sable chaud pour les touches de lumière et contrastes */
    --alienor-sand-light: #F9F7F1;   /* Déclinaison sable très clair pour les fonds de cartes */
    --alienor-gray-bg: #F4F6F9;      /* Fond de page gris très doux */
    --alienor-text-main: #1E293B;    /* Ardoise foncé pour une lecture haut de gamme et reposante */
    --alienor-text-muted: #64748B;   /* Gris de fer pour les petites notes d'ingénierie */
    --white-pure: #ffffff;
}

body {
    font-family: 'Inter', sans-serif !important;
    color: var(--alienor-text-main) !important;
    background-color: var(--alienor-gray-bg) !important;
    -webkit-font-smoothing: antialiased;
}

/* 📐 Ajustement de la finesse des Titres */
h1 {
    color: var(--alienor-midnight) !important;
    font-weight: 600 !important;
    font-size: 1.8rem !important; /* Réduit pour éviter l'effet "massif" */
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    color: var(--alienor-midnight) !important;
    font-weight: 500 !important;
    font-size: 1.3rem !important;
    margin-bottom: 1rem;
}

h3 {
    color: var(--alienor-midnight) !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    display: inline-block;
}

/* 🃏 Style des Cartes épurées */
.card {
    background-color: var(--white-pure);
    padding: 20px; /* Légèrement resserré */
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(11, 25, 44, 0.03); /* Ombre bleu nuit ultra-légère */
    border: 1px solid #E2E8F0;
    margin-bottom: 16px;
}

/* Varianted pour le Guide Méthodologique (Fond sable très élégant) */
.card-guide {
    background-color: var(--alienor-sand-light);
    border: 1px solid var(--alienor-sand);
}

/* 🎛️ Boutons Premium affinés */
.button-primary {
    background-color: var(--alienor-midnight) !important;
    color: var(--white-pure) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important; /* Texte plus discret */
    text-transform: none !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    border: 1px solid var(--alienor-midnight) !important;
    transition: all 0.2s ease;
}

.button-primary:hover {
    background-color: #4e87e4 !important;
    border-color: #15253F !important;
    box-shadow: 0 2px 6px rgba(11, 25, 44, 0.15);
}

/* 📝 Ajustement de la note d'ingénierie */
small {
    font-size: 0.85rem !important;
    color: var(--alienor-text-muted) !important;
    line-height: 1.4;
}

/* 🏛️ Icônes Haute Couture */
.icon-info::before {
    font-family: 'Material Icons';
    content: "info";
    vertical-align: middle;
    margin-right: 10px;
    color: #0965c7;
    font-size: 22px;
}

.icon-lightbulb::before {
    font-family: 'Material Icons';
    content: "lightbulb";
    vertical-align: middle;
    margin-right: 8px;
    color: #D97706; /* Ambre adouci plus chaleureux que le jaune vif */
    font-size: 18px;
}

/* Zone de tableau d'aperçu */
.taipy-table {
    border-radius: 4px;
    border: 1px solid #E2E8F0;
}

/* Rendre les champs de saisie Admin élégants et alignés */
.fullwidth {
    width: 100% !important;
    margin-bottom: 10px;
}


.sidebar_card {
    background-color: #919dac;
    border-right: 2px solid #e9ecef;
    padding: 1.5rem;
    
    /* 📐 Fixation adaptative de la hauteur */
    min-height: 100vh !important;
    height: 100% !important; 
    
    /* 🎯 Flexbox pour pousser le footer vers le bas */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* 🎛️ Ciblage direct du bouton d'importation */
.btn-sidebar {
    width: 100% !important;
    background-color: #fff7ed !important; /* Fond sable/rosé doux */
    color: #9a3412 !important;            /* Texte brique lisible */
    border: 1px solid #ffedd5 !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    padding: 10px !important;
}

.btn-sidebar:hover {
    background-color: #ffedd5 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Cartes Spécifiques Sidebar (Fond gris clair) */
.card-sidebar {
    background-color: #afb3b6 !important; /* Gris très doux */
    border: 1px solid #dee2e6 !important;
    border-radius: 4px !important;
    padding: 12px !important;
    width: 100% !important;
}

/* Badges digitaux épurés pour Mutations ROME */
.badge-rome-digital {
    width: 100% !important;
    padding: 8px !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    text-align: left !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Code couleur fin par mutation */
.badge-digital-vert { background-color: #d1fae5; color: #05503b; } /* 🌱 Vert doux */
.badge-digital-strategique { background-color: var(--alienor-sand-light); color: #D97706; } /* 🌱 Ambre adouci Porter */
.badge-digital-blanc { background-color: #e2e8f0; color: #a3b7d8; } /* ⚖️ Gris de fer Légal */
.badge-digital-brun { background-color: #f8e4d3; color: #702208; } /* ⚠️ Brun Porter */
.badge-digital-num { background-color: #bbdefb; color: #0d47a1; } /* 💻 Bleu gélule gélule ovale */

/* Uniformisation des jauges */
.progress-gauge {
    margin-bottom: 8px !important;
}

.badge-rome {
    background-color: #e3f2fd !important; /* Bleu très clair */
    color: #0d47a1 !important;        /* Bleu foncé pour le texte */
    padding: 4px 12px !important;
    border-radius: 50px !important;   /* Donne l'effet gélule ovale */
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    border: 1px solid #bbdefb !important;
    margin-left: 8px !important;
}

.style-powered {
    font-size: 0.75rem !important;
    display: block !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    color: black;
    opacity: 0.7;
}
.sidebar_footer {
    /*background-color: #717880;*/
    background-color: transparent !important;
    margin-top: auto !important; /* Pousse bien le bloc tout en bas */
    padding-top: 2rem;
    width: 100% !important;
    box-sizing: border-box !important;
    
    /* 🎯 LE REMÈDE POUR LE CENTRAGE DU PIED DE PAGE */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centre horizontalement le texte, le logo et la gélule */
    text-align: center !important;
}

/* 🎛️ Verrouillage de la taille des listes déroulantes de filtrage */
.taipy-selector, .MuiAutocomplete-root, [data-testid="taipy-selector"] {
    max-width: 450px !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

/* Boutons de Pilotage Stratégique - Style "Aliénor Premium" */
.btn-config {
    width: 100% !important;
    padding: 14px 20px !important;
    text-align: left !important;
    background-color: var(--white-pure) !important;
    border: 1px solid #031d3f !important;
    color: var(--alienor-text-main) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

.btn-config:hover {
    background-color: var(--alienor-sand-light) !important;
    border-color: var(--alienor-midnight) !important;
    color: var(--alienor-midnight) !important;
}

/* Zone finale IA plus marquée */
.ia-action-zone {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #E2E8F0;
}

/* Zone de chat haute */
.chat-box-tall {
    height: 450px !important;}