/* ==========================================================================
   commun.css — socle partagé des pages MCP Urbilog Expert
   Chargé AVANT la feuille spécifique de chaque page.
   Toute modification ici affecte chat.html, feedback.html et confidentialite.html.
   ========================================================================== */

/* Luciole — police conçue pour les personnes malvoyantes */
@font-face {
    font-family: 'Luciole';
    src: url('https://cdn.jsdelivr.net/gh/nicowillis/luciole@main/Luciole-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Luciole';
    src: url('https://cdn.jsdelivr.net/gh/nicowillis/luciole@main/Luciole-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Jetons ------------------------------------------------------------- */
:root {
    --teal:     #203C47;
    --teal-mid: #445863;
    --orange:   #D14600;
    --grey:     #475467;
    --hint:     #5A6878;
    --cream:    #FAF8FC;
    --white:    #FFFFFF;
    --border:   #C8D3DB;
    --green:    #1A6B4B;
    --red:      #C0392B;
    --chat-bg:  #EEF2F4;
    --shadow:   0 2px 12px rgba(32,60,71,.10);
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Luciole', Arial, sans-serif;
    background: var(--cream);
    color: var(--grey);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Lien d'évitement --------------------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--orange);
    color: var(--white);
    padding: .7rem 1.2rem;
    font-family: 'Nunito', Verdana, Arial, sans-serif;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 0 0 6px 0;
}
.skip-link:focus {
    left: 0;
    outline: 3px solid var(--white);
    outline-offset: -3px;
}

/* --- Bandeau de confidentialité ----------------------------------------- */
.confid-banner {
    background: var(--teal);
    color: var(--white);
    text-align: center;
    padding: .45rem 1.2rem;
    font-family: 'Luciole', Arial, sans-serif;
    font-size: .82rem;
    line-height: 1.45;
    flex-shrink: 0;
}
.confid-banner > span { display: block; max-width: 880px; margin: 0 auto; }

/* --- En-tête ------------------------------------------------------------ */
header {
    background: var(--teal);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 3px solid var(--orange);
    flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; flex-shrink: 0; }

/* --- Pied de page ------------------------------------------------------- */
footer {
    background: var(--teal);
    color: var(--white);
    text-align: center;
    padding: .85rem 1rem;
    font-family: 'Luciole', Arial, sans-serif;
    font-size: .8rem;
    flex-shrink: 0;
}
footer strong { color: var(--white); }
/* Soulignement conservé : un lien ne doit pas se distinguer par la seule
   couleur (RGAA 10.6). Ici lien et texte du pied sont de la même couleur. */
footer a { color: var(--white); text-decoration: underline; }

/* --- Prise de focus (RGAA 10.7) ----------------------------------------- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }