/* GéollamaAI V3.3: navigation commune et lisibilité terre cuite. */
:root{--geo-ink:#211a17;--geo-muted:#45342c;--geo-clay:#a94730;--geo-dark:#713728;--geo-paper:#fff9f3;--geo-ivory:#f7efe7;--geo-line:#c18c75}
html body .geo-global-header{position:relative!important;z-index:50!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;flex-wrap:wrap!important;min-height:76px!important;padding:16px clamp(16px,4vw,64px)!important;background:#fff9f3!important;color:var(--geo-ink)!important;border-bottom:2px solid #d7ad96!important;box-shadow:0 4px 20px #51291f14!important;max-width:none!important;margin:0!important;border-radius:0!important}
html body .geo-global-header .geo-brand{color:#713728!important;font-weight:900!important;font-size:clamp(20px,2.2vw,28px)!important;letter-spacing:.035em!important;text-decoration:none!important;white-space:nowrap!important}
html body .geo-global-header .geo-brand span{color:#b94f36!important}
html body .geo-global-header nav{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px 8px!important;max-width:100%!important}
html body .geo-global-header nav a{display:inline-block!important;padding:9px 10px!important;border-radius:9px!important;color:#422b22!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;white-space:nowrap!important;background:transparent!important;border:0!important}
html body .geo-global-header nav a:hover,html body .geo-global-header nav a[aria-current="page"]{background:#f0d5c4!important;color:#833d2e!important}
html body .auth-shell,html body .auth-card,html body .admin-panel,html body .dictionary,html body .filters,html body .consultation-v123 .panel{color:var(--geo-ink)!important}
html body .auth-card,html body .admin-panel,html body .dictionary,html body .consultation-v123 :is(.panel,.card,.message,.composer){background:#fff9f3!important;color:var(--geo-ink)!important;border:1px solid #d9b19b!important;box-shadow:0 8px 28px #71372812!important}
html body .auth-card *,html body .dictionary *,html body .admin-panel *,html body .consultation-v123 :is(.panel,.card,.message,.composer) *{text-shadow:none!important}
html body :is(.auth-card,.dictionary,.admin-panel,.filters,.consultation-v123) :is(h1,h2,h3,h4,label,legend,p,small,span,li,td,th){color:var(--geo-ink)!important}
html body :is(.auth-card,.dictionary,.admin-panel,.filters,.consultation-v123) :is(input,textarea,select){background:#fff!important;color:#211a17!important;-webkit-text-fill-color:#211a17!important;border:1.5px solid #a77761!important;opacity:1!important;box-shadow:none!important}
html body :is(input,textarea)::placeholder{color:#66564d!important;opacity:1!important;-webkit-text-fill-color:#66564d!important}
html body :is(.auth-card,.dictionary,.admin-panel,.filters,.consultation-v123) :is(input,textarea,select):focus{outline:3px solid #d79a7c!important;outline-offset:1px!important;border-color:#a94730!important}
html body :is(.auth-card,.dictionary,.admin-panel,.consultation-v123) :is(button,.primary,.btn){background:#a94730!important;color:white!important;border-color:#8c3928!important}
html body :is(.auth-card,.dictionary,.admin-panel,.consultation-v123) :is(button,.primary,.btn):hover{background:#833d2e!important;color:white!important}
html body :is(.auth-card,.dictionary,.admin-panel,.consultation-v123) a{color:#873a2a!important;text-decoration-thickness:1px}
html body .auth-card .muted,html body .auth-card small,html body .note,html body #count{color:#49352d!important}
html body .filters{background:#fff9f3!important;padding:16px!important;border:1px solid #ddbaa6!important;border-radius:16px!important}
html body #entries{color:#211a17!important}
html body #entries :is(article,.entry,.card,.panel){background:#fffaf5!important;color:#211a17!important;border-color:#dfbba7!important}
html body #entries :is(h2,h3,h4,p,span,small,div){color:#2a211d!important}
html body .geo-about-hero{padding:clamp(30px,5vw,65px) clamp(20px,7vw,100px);background:linear-gradient(110deg,#a94730,#d17a58);color:white!important}
html body .geo-about-hero h1,html body .geo-about-hero p,html body .geo-about-hero .eyebrow{color:white!important}
html body .heritage-content{background:#f7efe7!important;max-width:1100px!important}
html body .heritage-section{background:#fff9f3!important;color:#211a17!important;border:1px solid #ddbaa6!important}
html body .heritage-section :is(h2,h3,p,th,td,code){color:#211a17!important}
html body .heritage-section th{background:#f0d7c6!important}
html body .heritage-section td{border-color:#e3c6b5!important}
html body .heritage-note{background:#f4e2d4!important;color:#35231d!important;border-color:#a94730!important}
@media(max-width:850px){html body .geo-global-header{padding:14px!important}html body .geo-global-header nav a{font-size:13px!important;padding:7px!important}}
/* CartollamaAI - Restauration du logo */

.geo-global-header .geo-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #51291F;
}

.geo-global-header .geo-brand span {
    color: #A94730;
}

/* Déconnexion : style identique aux liens de navigation */

html body .geo-global-header nav .geo-logout-form {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .geo-global-header nav .geo-logout-form .geo-logout-button {
    display: inline-block !important;
    box-sizing: border-box !important;
    appearance: none !important;
    padding: 9px 10px !important;
    border-radius: 9px !important;
    color: #422b22 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
}

html body .geo-global-header nav .geo-logout-form .geo-logout-button:hover {
    background: #f0d5c4 !important;
    color: #833d2e !important;
}

@media (max-width: 850px) {
    html body .geo-global-header nav .geo-logout-form .geo-logout-button {
        font-size: 13px !important;
        padding: 7px !important;
    }
}

/* Correction définitive du bouton Déconnexion */

html body .geo-global-header nav form.geo-logout-form {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .geo-global-header nav form.geo-logout-form button.geo-logout-button {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #422b22 !important;
    -webkit-text-fill-color: #422b22 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 9px 10px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

html body .geo-global-header nav form.geo-logout-form button.geo-logout-button:hover {
    background: #f0d5c4 !important;
    color: #833d2e !important;
    -webkit-text-fill-color: #833d2e !important;
}
/* =========================================
   CARTOLLAMAAI - TYPOGRAPHIE UNIFORMISÉE
   ========================================= */

/* Titre principal de chaque page */

html body h1 {
    font-size: 52px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
}

/* Deuxième titre du bandeau du Dictionnaire */

html body .hero h1 + h1,
html body .geo-hero h1 + h1 {
    font-size: 40px !important;
    line-height: 1.2 !important;
}

/* Titres de section */

html body h2.section-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
}

/* Adaptation mobile */

@media (max-width: 768px) {

    html body h1 {
        font-size: 38px !important;
    }

    html body .hero h1 + h1,
    html body .geo-hero h1 + h1 {
        font-size: 30px !important;
    }

    html body h2.section-title {
        font-size: 24px !important;
    }
}
/* MON COMPTE : STYLE IDENTIQUE AUX AUTRES LIENS */

html body .geo-global-header nav a[href="/account.html"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    padding: 8px 7px !important;
    border: 0 !important;
    border-radius: 9px !important;

    background: transparent !important;
    color: #422b22 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    line-height: inherit !important;

    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Même effet au survol */

html body .geo-global-header nav a[href="/account.html"]:hover,
html body .geo-global-header nav a[href="/account.html"][aria-current="page"] {
    background: #f0d5c4 !important;
    color: #833d2e !important;
}

/* Même adaptation aux écrans étroits */

@media (max-width: 1100px) {
    html body .geo-global-header nav a[href="/account.html"] {
        font-size: 12px !important;
        padding: 7px 5px !important;
    }
}
/* ==========================================
   MENU GLOBAL CARTOLLAMAAI
   ========================================== */

html body .geo-global-header nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 100% !important;
}

/* Style identique pour TOUS les liens */

html body .geo-global-header nav a,
html body .geo-global-header nav a[href="/account.html"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;

    padding: 8px 7px !important;
    border: 0 !important;
    border-radius: 9px !important;

    background: transparent !important;
    color: #422b22 !important;

    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Survol identique */

html body .geo-global-header nav a:hover,
html body .geo-global-header nav a[aria-current="page"] {
    background: #f0d5c4 !important;
    color: #833d2e !important;
}
