/* Charte NEO : noir profond, orange cuivré (#CB8343), logo officiel, police DM Sans (licence libre OFL). */
@font-face {
    font-family: "DM Sans";
    src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 1000; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("/assets/fonts/dm-sans-latin-wght-italic.woff2") format("woff2");
    font-weight: 100 1000; font-style: italic; font-display: swap;
}
:root {
    --orange: #cb8343;
    --orange-doux: #f6ebe0;
    --fond: #f6f4f1;
    --surface: #ffffff;
    --surface-2: #faf9f7;
    --texte: #141414;
    --discret: #6f6861;
    --tres-discret: #9b948c;
    --bordure: #e8e3dc;
    --bordure-forte: #d8d1c7;
    --primaire: #141414;
    --primaire-texte: #ffffff;
    --accent: #95561f;          /* orange assombri : lisible en texte sur fond clair */
    --danger: #b3261e;
    --danger-doux: #fbeceb;
    --ok: #2f7a47;
    --ok-doux: #e9f4ec;
    --attente: #8a5a00;
    --attente-doux: #fdf3dc;
    --ferme: #efebe6;
    --vacances: #f0d9c2;
    --sante: #f1d3d1;
    --autre: #e2dcd2;
    --absent: #dcd8d2;
    --barre: #141414;
    --barre-texte: #f5f2ed;
    --barre-discret: #a39c93;
    --ombre: 0 1px 2px rgba(20, 20, 20, .04), 0 4px 16px rgba(20, 20, 20, .04);
    --rayon: 14px;
    --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --vert: #2f7a47;
    --vert-doux: #e6f3ea;
    --rouge: #c0392b;
    --rouge-doux: #fbe9e7;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --orange-doux: #2e2219;
        --fond: #111010;
        --surface: #1a1918;
        --surface-2: #201f1d;
        --texte: #f3efe8;
        --discret: #a8a097;
        --tres-discret: #7d766e;
        --bordure: #2e2b28;
        --bordure-forte: #3d3934;
        --primaire: #f3efe8;
        --primaire-texte: #141414;
        --accent: #e3a46c;
        --danger: #f2877f;
        --danger-doux: #3a1d1b;
        --ok: #8fd6a6;
        --ok-doux: #17301f;
        --attente: #f0d27a;
        --attente-doux: #352b13;
        --ferme: #23211f;
        --vacances: #5b3c20;
        --sante: #5a2a27;
        --autre: #3d3832;
        --absent: #3a3733;
        --barre: #0b0b0a;
        --ombre: 0 1px 2px rgba(0, 0, 0, .3);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 15px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
h1, h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: 2.3rem; line-height: 1.1; margin: 0; }
h2 { font-size: 1.45rem; line-height: 1.2; margin: 0; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--discret); margin: 1.5rem 0 .6rem; }

main { max-width: 1180px; margin: 0 auto; padding: 2.25rem 16px 4rem; }

/* ---------- En-tête ---------- */
.barre { background: var(--barre); color: var(--barre-texte); }
.barre-interieur {
    max-width: 1180px; margin: 0 auto; padding: .9rem 16px;
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem;
}
.marque { display: inline-flex; align-items: center; gap: 1.1rem; text-decoration: none; color: var(--barre-texte); }
.marque img { display: block; height: 46px; width: auto; }
.marque small {
    font-size: .74rem; font-weight: 500; color: var(--barre-discret); letter-spacing: .22em; text-transform: uppercase;
    padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, .22); line-height: 1.6;
}
.logo-connexion { display: block; height: 92px; width: auto; margin: 0 0 .75rem; }
.logo-connexion.sombre { display: none; }
@media (prefers-color-scheme: dark) {
    .logo-connexion.clair { display: none; }
    .logo-connexion.sombre { display: block; }
}

.menu { display: flex; gap: .25rem; flex: 1; }
.menu a {
    padding: .45rem .8rem; text-decoration: none; color: var(--barre-discret);
    border-radius: 999px; font-size: .93rem; transition: color .15s, background .15s;
}
.menu a:hover { color: var(--barre-texte); background: rgba(255, 255, 255, .06); }
.menu a[aria-current="page"] { color: var(--barre-texte); background: rgba(255, 255, 255, .1); }
.menu a[aria-current="page"]::after {
    content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
    background: var(--orange); margin-left: .4rem; vertical-align: middle;
}
.profil { display: flex; align-items: center; gap: .6rem; }
.profil .nom { font-size: .88rem; color: var(--barre-texte); }
.profil .lien { color: var(--barre-discret); font-size: .85rem; }
.profil .lien:hover { color: var(--barre-texte); }
.barre .avatar { background: rgba(255, 255, 255, .12); color: var(--barre-texte); }

/* ---------- Titres de page ---------- */
.page-tete, .entete {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: 1.75rem;
}
.page-tete > div:first-child { flex: 1; min-width: 14rem; }
.entete h1, .entete h2 { margin: 0; }
.entete .bouton:last-child, .entete .actions { margin-left: auto; }
.surtitre {
    margin: 0 0 .35rem; font-size: .75rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent);
}
.actions, .boutons { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Indicateurs ---------- */
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.25rem; }
.indicateur {
    background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
    padding: 1.1rem 1.25rem; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: .15rem;
}
.indicateur .libelle { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--discret); }
.indicateur strong { font-family: var(--sans); font-size: 2.6rem; line-height: 1.1; }
.indicateur small { color: var(--discret); font-size: .85rem; }
.indicateur.alerte strong { color: var(--accent); }

/* ---------- Blocs ---------- */
.bloc { margin-bottom: 2.5rem; }
.bloc-tete { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.bloc-tete h2 { margin: 0; }
.bloc-tete .actions, .bloc-tete .pagination { margin-left: auto; }
.bloc-tete .pagination + .actions { margin-left: 0; }

.carte {
    background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
    padding: 1.5rem; margin-bottom: 1.25rem; box-shadow: var(--ombre);
}
.carte h2 { margin-bottom: 1rem; }
.carte.etroite { max-width: 580px; margin: 1rem auto; padding: 2rem; }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.grille-cartes .carte { margin: 0; }
.chiffre { display: flex; flex-direction: column; justify-content: center; }
.chiffre span { color: var(--discret); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.chiffre strong { font-family: var(--sans); font-size: 3.2rem; line-height: 1.1; }
.chiffre small { color: var(--attente); }

dl.detail { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
dl.detail dt { color: var(--discret); }
dl.detail dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.vide {
    display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem;
    background: var(--surface); border: 1px dashed var(--bordure-forte); border-radius: var(--rayon); color: var(--discret);
}
.vide::before {
    content: "✓"; display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--ok-doux); color: var(--ok); font-weight: 700;
}

/* ---------- Demandes (cartes) ---------- */
.demandes { display: grid; gap: .9rem; }
.demande {
    display: grid; grid-template-columns: minmax(12rem, 1.3fr) minmax(11rem, 1.2fr) minmax(7rem, .7fr) auto;
    align-items: center; gap: 1rem 1.5rem;
    background: var(--surface); border: 1px solid var(--bordure); border-left: 3px solid var(--orange);
    border-radius: var(--rayon); padding: 1.1rem 1.25rem; box-shadow: var(--ombre);
}
.demande .quand strong { display: block; font-weight: 600; }
.demande .quand span, .demande .solde span { font-size: .85rem; color: var(--discret); }
.demande .solde strong { display: block; font-family: var(--sans); font-size: 1.5rem; line-height: 1.1; }
.demande .commentaire {
    grid-column: 1 / -1; margin: 0; padding: .6rem .9rem; border-radius: 10px;
    background: var(--surface-2); color: var(--discret); font-style: italic;
}
.demande form { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; align-items: center; }
.demande .note { flex: 1 1 100%; }
.demande .note input { width: 100%; padding: .45rem .75rem; font-size: .88rem; }
@media (max-width: 900px) {
    .demande { grid-template-columns: 1fr 1fr; }
    .demande form { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 520px) {
    .demande { grid-template-columns: 1fr; }
}

/* ---------- Personnes ---------- */
.personne { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.personne > div { min-width: 0; }
.personne strong { display: block; font-weight: 600; }
.personne span:not(.avatar) { font-size: .85rem; color: var(--discret); }
.personne a { display: block; color: var(--texte); text-decoration: none; font-weight: 600; }
.personne a:hover { color: var(--accent); }
.avatar {
    display: inline-grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    background: var(--orange-doux); color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.avatar.petit { width: 1.9rem; height: 1.9rem; font-size: .72rem; }

/* ---------- Listes simples ---------- */
.lignes { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); }
.ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--bordure); }
.ligne:last-child { border-bottom: 0; }
.ligne .personne { flex: 1; min-width: 12rem; }
.ligne form { display: flex; gap: .5rem; }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; gap: 1rem; }
.formulaire label { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .92rem; }
.formulaire label.case { flex-direction: row; align-items: center; gap: .5rem; }
.formulaire-carte h1 { margin-bottom: .5rem; }
.deux-colonnes, .trois-colonnes { display: grid; gap: 1rem; }
@media (min-width: 560px) {
    .deux-colonnes { grid-template-columns: 1fr 1fr; }
    .trois-colonnes { grid-template-columns: 1fr 1fr 1fr; }
}
input, select, textarea {
    font: inherit; color: var(--texte); background: var(--surface);
    border: 1px solid var(--bordure-forte); border-radius: 10px; padding: .6rem .75rem; min-width: 0; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
input[type="checkbox"] { width: auto; accent-color: var(--primaire); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(203, 131, 67, .2); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filtres select { width: auto; }
.decision { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.decision input { width: 11rem; }
.copie { display: flex; gap: .5rem; }
.apercu { margin: 0; font-weight: 600; color: var(--accent); min-height: 1.5em; }
.apercu.erreur { color: var(--danger); }
form.en-ligne { display: inline; margin-left: .75rem; }

/* ---------- Boutons ---------- */
.bouton {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; text-decoration: none;
    background: var(--primaire); color: var(--primaire-texte); border: 1px solid var(--primaire);
    border-radius: 999px; padding: .6rem 1.25rem; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.bouton:hover { background: var(--orange); border-color: var(--orange); color: #141414; }
.bouton.secondaire { background: transparent; color: var(--texte); border-color: var(--bordure-forte); }
.bouton.secondaire:hover { border-color: var(--texte); color: var(--texte); background: transparent; }
.bouton.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.bouton.danger:hover { background: var(--danger); color: var(--surface); }
.bouton.petit { padding: .4rem .9rem; font-size: .85rem; }
.lien { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lien.danger { color: var(--danger); }

/* Boutons-icônes : stylo vert = modifier, croix rouge = annuler / supprimer */
.icones { display: inline-flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.icones form { display: inline-flex; margin: 0; }
.icone-bouton {
    display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border-radius: 50%;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, transform .1s;
}
.icone-bouton svg { width: 1.05rem; height: 1.05rem; }
.icone-bouton.modifier { background: var(--vert-doux); color: var(--vert); }
.icone-bouton.modifier:hover { background: var(--vert); color: #ffffff; }
.icone-bouton.annuler { background: var(--rouge-doux); color: var(--rouge); }
.icone-bouton.annuler:hover { background: var(--rouge); color: #ffffff; }
.icone-bouton:active { transform: scale(.94); }

/* ---------- Messages ---------- */
.message { padding: .85rem 1.1rem; border-radius: 12px; margin: 0 0 1.25rem; background: var(--ok-doux); color: var(--ok); border: 1px solid transparent; }
.message.erreur { background: var(--danger-doux); color: var(--danger); }
.message.info, .message.lien-activation { background: var(--orange-doux); color: var(--texte); }
.message p { margin: 0 0 .5rem; }

/* ---------- Tableaux ---------- */
.defile { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.25rem; border-radius: var(--rayon); }
table.liste {
    width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
    border: 1px solid var(--bordure); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden;
}
.liste th, .liste td { padding: .8rem 1rem; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: middle; }
.liste thead th {
    font-size: .72rem; color: var(--discret); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    white-space: nowrap; background: var(--surface-2);
}
.liste tbody tr:last-child td { border-bottom: 0; }
.liste tbody tr:hover td { background: var(--surface-2); }
.liste tr.inactif td { color: var(--tres-discret); }
.liste tr.inactif td:nth-child(3) { text-decoration: line-through; }
.nombre { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fort { font-weight: 700; }
.negatif { color: var(--danger) !important; }
td.solde-cellule { min-width: 9rem; }
.solde-valeur { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; }

/* Jauge de consommation des vacances */
progress.jauge {
    display: block; width: 100%; height: 5px; margin-top: .35rem; border: 0; border-radius: 99px;
    background: var(--ferme); overflow: hidden; -webkit-appearance: none; appearance: none;
}
progress.jauge::-webkit-progress-bar { background: var(--ferme); border-radius: 99px; }
progress.jauge::-webkit-progress-value { background: var(--orange); border-radius: 99px; }
progress.jauge::-moz-progress-bar { background: var(--orange); border-radius: 99px; }

.badge {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600;
    padding: .2rem .65rem; border-radius: 99px; background: var(--ferme); color: var(--discret); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.en_attente, .badge.j-a_recevoir { background: var(--attente-doux); color: var(--attente); }
.badge.approuvee, .badge.j-recu { background: var(--ok-doux); color: var(--ok); }
.badge.refusee { background: var(--danger-doux); color: var(--danger); }
.badge.type { background: var(--orange-doux); color: var(--accent); }
.badge.type::before { display: none; }
.compteur {
    display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .45rem; border-radius: 99px;
    background: var(--primaire); color: var(--primaire-texte); font: 700 .8rem var(--sans);
}
.compteur.zero { background: var(--ferme); color: var(--discret); }

.pagination { display: inline-flex; align-items: center; gap: .25rem; background: var(--surface); border: 1px solid var(--bordure); border-radius: 999px; padding: .15rem; }
.pagination a { display: grid; place-items: center; width: 2rem; height: 2rem; text-decoration: none; font-size: 1.15rem; border-radius: 50%; color: var(--texte); }
.pagination a:hover { background: var(--ferme); }
.pagination strong { padding: 0 .5rem; font-variant-numeric: tabular-nums; }

ul.simple { list-style: none; padding: 0; margin: 0; }
ul.simple li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--bordure); }

/* ---------- Calendrier ---------- */
table.calendrier { border-collapse: separate; border-spacing: 0; font-size: .8rem; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; }
.calendrier th, .calendrier td { border-right: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); text-align: center; min-width: 2rem; height: 2.3rem; padding: 0 .1rem; }
.calendrier tr > :last-child { border-right: 0; }
.calendrier tbody tr:last-child > * { border-bottom: 0; }
.calendrier thead th { font-weight: 600; line-height: 1.15; padding: .35rem .1rem; background: var(--surface-2); }
.calendrier thead th span { display: block; font-size: .66rem; color: var(--tres-discret); font-weight: 500; text-transform: uppercase; }
.calendrier th.nom { text-align: left; padding: 0 .9rem; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 600; }
.calendrier .ferme { background: var(--ferme); }
.calendrier .aujourdhui { box-shadow: inset 0 -3px 0 var(--orange); }
.calendrier td.vacances, .pastille.vacances { background: var(--vacances); }
.calendrier td.sante, .pastille.sante { background: var(--sante); }
.calendrier td.autre, .pastille.autre { background: var(--autre); }
.calendrier td.absent, .pastille.absent { background: var(--absent); }
.calendrier td.attente, .pastille.attente {
    background-image: repeating-linear-gradient(45deg, transparent 0 4px, var(--attente-doux) 4px 8px);
}
.calendrier td { font-weight: 600; }
.legende { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; color: var(--discret); font-size: .85rem; }
.pastille { display: inline-block; min-width: 1.6rem; padding: 0 .3rem; border: 1px solid var(--bordure); border-radius: 5px; text-align: center; font-weight: 600; color: var(--texte); }
.pastille.ferme { background: var(--ferme); }

.discret { color: var(--discret); }
.petit { font-size: .85rem; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    main { padding-top: 1.5rem; }
    h1 { font-size: 1.9rem; }
    .barre-interieur { gap: .6rem 1rem; }
    .profil { margin-left: auto; }
    .profil .nom { display: none; }
    .menu { order: 3; flex: 0 0 100%; overflow-x: auto; margin: 0 -.4rem; scrollbar-width: none; }
    .menu a { white-space: nowrap; }
    .marque img { height: 32px; }
    .marque { gap: .7rem; }
    .marque small { padding-left: .7rem; letter-spacing: .14em; font-size: .66rem; }
    .lien-compte { padding: 0; }
    .profil .lien { display: none; }
    .profil .lien { font-size: .8rem; }
    .chiffre strong, .indicateur strong { font-size: 2.2rem; }
    .indicateurs { grid-template-columns: 1fr 1fr; }
}

/* Ajustements de mise en page */
.sans-coupure { white-space: nowrap; }
.carte:not(.etroite) .formulaire > .bouton { align-self: flex-start; }
.ligne-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.liste select { width: auto; min-width: 8.5rem; padding: .35rem .6rem; font-size: .85rem; }
.renvoi { color: var(--orange); font-weight: 700; font-size: .9em; vertical-align: super; line-height: 0; }
.notes { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--bordure); color: var(--discret); font-size: .85rem; }
.notes p { margin: 0 0 .35rem; }
.notes p:last-child { margin-bottom: 0; }

/* Champs de même hauteur : listes à choix alignées sur les champs texte et date (Safari les rend plus bas par défaut). */
input:not([type="checkbox"]):not([type="hidden"]), select { height: 2.9rem; }
input[type="date"] { display: block; line-height: 1.2; }
select {
    -webkit-appearance: none; appearance: none; cursor: pointer;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6861' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem;
}
.liste select { height: 2.2rem; padding-right: 2rem; background-position: right .55rem center; }

/* Champ de date « jj.mm.aaaa » avec icône calendrier */
.champ-date { position: relative; display: block; }
.champ-date input[data-date] { padding-right: 2.8rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bouton-calendrier {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0;
    border: 0; border-radius: 8px; background: transparent; color: var(--discret); cursor: pointer;
}
.bouton-calendrier:hover { background: var(--orange-doux); color: var(--accent); }
.champ-date input.selecteur-date {
    position: absolute; right: .35rem; bottom: 0; width: 2.2rem; height: 1px !important; padding: 0; border: 0;
    opacity: 0; pointer-events: none;
}

/* Connexion rapide et appareils */
.lien-compte { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--barre-texte); border-radius: 999px; padding: .15rem .6rem .15rem .15rem; }
.lien-compte:hover { background: rgba(255, 255, 255, .08); }
.bouton svg { width: 1.1rem; height: 1.1rem; }
.bouton.large { width: 100%; }
.separateur { display: flex; align-items: center; gap: .75rem; color: var(--tres-discret); font-size: .85rem; margin: 1.25rem 0 1rem; }
.separateur::before, .separateur::after { content: ""; flex: 1; height: 1px; background: var(--bordure); }
.connexion-cle .message { margin-top: .9rem; }
.avatar svg { width: 1rem; height: 1rem; }
.espace-haut { margin-top: 1rem; }
.espace-bas { margin-bottom: 1rem; box-shadow: none; }
.deconnexion-compte { display: none; }
@media (max-width: 760px) { .deconnexion-compte { display: block; } }

/* En-tête pleine largeur : logo à ~5 mm du bord gauche, menu réparti sur une seule ligne. */
.barre-interieur { max-width: none; padding: .9rem 20px; flex-wrap: nowrap; gap: 1.5rem; }
.menu { justify-content: space-evenly; flex-wrap: nowrap; min-width: 0; }
.menu a { white-space: nowrap; }
.profil { flex: none; }
@media (max-width: 1250px) { .profil .nom { display: none; } }
@media (max-width: 1180px) {
    .barre-interieur { flex-wrap: wrap; gap: .6rem 1rem; }
    .profil { margin-left: auto; }
    .menu { order: 3; flex: 0 0 100%; justify-content: space-between; overflow-x: auto; margin: 0; scrollbar-width: none; }
}
