/* ============================================================
   Librairie Libertatem — Feuille de style
   Cohérente avec la charte du site (sable / terracotta / olive)
   ============================================================ */

:root {
  --sand: #F5EFE0;
  --sand-dark: #EAE0CC;
  --terracotta: #C4714A;
  --terracotta-dark: #A35A35;
  --terracotta-light: #DFA07E;
  --olive: #7A8C5E;
  --olive-dark: #5C6B45;
  --olive-light: #A8B68A;
  --dark: #1C1A17;
  --dark-mid: #2E2A24;
  --ivory: #FAF7F2;
  --text: #2E2A24;
  --text-muted: #7A7060;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 6px;
  --t: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --bleu-livre: #4A6B8C;
  --bleu-livre-light: #7C9CBE;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark-mid);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ─── HEADER ────────────────────────────────── */
.site-header {
  background: var(--dark);
  color: var(--white);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 500;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header h1 {
  color: var(--white);
  font-size: 1.5rem;
}

.site-header h1 a { display: flex; align-items: center; gap: 10px; }
.site-header h1 i { color: var(--terracotta-light); }

.nav-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lien-panier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--terracotta);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: var(--t);
  font-weight: 600;
}
.lien-panier:hover { background: var(--terracotta-dark); }

.badge-panier {
  background: var(--white);
  color: var(--terracotta-dark);
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 4px;
}

/* ─── BOUTONS GÉNÉRIQUES ────────────────────── */
.btn-primaire {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-primaire:hover:not(:disabled) { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn-primaire:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondaire {
  background: transparent;
  color: var(--dark-mid);
  border: 1.5px solid var(--sand-dark);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-secondaire:hover { border-color: var(--terracotta); color: var(--terracotta); }

.btn-lien { color: var(--terracotta); font-weight: 600; }

/* ─── SECTION CATALOGUE ─────────────────────── */
.section-catalogue {
  padding: 40px 0 80px;
}

.entete-catalogue {
  text-align: center;
  margin-bottom: 40px;
}
.entete-catalogue h2 { font-size: 2.4rem; margin-bottom: 10px; }
.entete-catalogue p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ─── BARRE DE RECHERCHE ────────────────────── */
.barre-recherche {
  display: flex;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 16px;
}
.barre-recherche input {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-dark);
  background: var(--white);
}
.barre-recherche input:focus { outline: none; border-color: var(--terracotta); }

.lien-recherche-avancee {
  text-align: center;
  margin-bottom: 30px;
}
.lien-recherche-avancee button {
  background: none;
  border: none;
  color: var(--olive-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.panneau-recherche-avancee {
  max-width: 900px;
  margin: 0 auto 40px;
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  padding: 24px;
  display: none;
}
.panneau-recherche-avancee.ouvert { display: block; }

.grille-recherche-avancee {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.grille-recherche-avancee label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.grille-recherche-avancee input,
.grille-recherche-avancee select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand-dark);
}

.actions-recherche-avancee {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ─── GRILLE DE LIVRES ──────────────────────── */
.grille-livres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 26px;
}

.carte-livre {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28, 26, 23, 0.06);
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.carte-livre:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(28, 26, 23, 0.12); }

.carte-livre-image {
  aspect-ratio: 2/3;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.carte-livre-image img { width: 100%; height: 100%; object-fit: cover; }
.carte-livre-image .sans-image { color: var(--text-muted); font-size: 2.5rem; }

.carte-livre-corps {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.carte-livre-categorie {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--olive-dark);
  font-weight: 700;
}

.carte-livre-titre {
  font-size: 1.1rem;
  line-height: 1.3;
}

.carte-livre-auteur {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.carte-livre-pied {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.carte-livre-prix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.badge-etat {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-etat.bon { background: var(--sand-dark); color: var(--text); }
.badge-etat.tres_bon { background: var(--olive-light); color: var(--dark-mid); }

.message-vide {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1/-1;
}

/* ─── FICHE DÉTAIL LIVRE ────────────────────── */
.section-detail-livre { padding: 40px 0 80px; }

.fil-ariane {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.fil-ariane a { color: var(--olive-dark); }

.grille-detail-livre {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
}
@media (max-width: 760px) {
  .grille-detail-livre { grid-template-columns: 1fr; }
}

.image-detail-livre {
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-detail-livre img { width: 100%; height: 100%; object-fit: cover; }
.image-detail-livre .sans-image { font-size: 4rem; color: var(--text-muted); }

.info-detail-livre h2 { font-size: 2.2rem; margin-bottom: 6px; }
.auteur-detail { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 18px; }

.metadonnees-livre {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.metadonnee-tag {
  background: var(--sand);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text);
}

.prix-detail-livre {
  font-size: 2rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin: 20px 0;
}

.description-detail-livre {
  color: var(--text);
  margin-bottom: 28px;
  white-space: pre-line;
}

.zone-action-detail {
  display: flex;
  gap: 14px;
  align-items: center;
}

.message-indisponible {
  background: var(--sand-dark);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ─── PANIER ─────────────────────────────────── */
.section-panier { padding: 40px 0 80px; }

.ligne-panier {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(28,26,23,0.05);
}
.ligne-panier img { width: 60px; height: 90px; object-fit: cover; border-radius: 4px; background: var(--sand); }
.ligne-panier-info { flex: 1; }
.ligne-panier-titre { font-weight: 600; }
.ligne-panier-auteur { font-size: 0.85rem; color: var(--text-muted); }
.ligne-panier-prix { font-weight: 700; color: var(--terracotta-dark); white-space: nowrap; }
.btn-retirer-panier {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 6px;
}
.btn-retirer-panier:hover { color: var(--terracotta-dark); }

.recap-panier {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}

.ligne-recap {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand);
}
.ligne-recap.total {
  font-size: 1.3rem;
  font-weight: 700;
  border-bottom: none;
  padding-top: 16px;
}

.options-livraison { margin: 20px 0; }
.options-livraison label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  cursor: pointer;
}
.options-livraison input[type="radio"] { accent-color: var(--terracotta); }

#Zone_Widget { margin-top: 14px; }

.point-relais-choisi {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--sand);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.9rem;
}

.panier-vide {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: var(--sand);
  text-align: center;
  padding: 30px 0;
  font-size: 0.85rem;
}

/* ============================================================
   Filtres par catégorie (chips dynamiques)
   À ajouter dans css/style-livres.css
   ============================================================ */

.filtres-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
}

.chip-categorie {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #d8d3c8;
    background: #ffffff;
    color: #3a352c;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.chip-categorie:hover {
    border-color: #a89a7c;
    background: #f7f4ee;
}

.chip-categorie .chip-count {
    opacity: 0.6;
    font-size: 12px;
}

.chip-categorie.active {
    background: #3a352c;
    border-color: #3a352c;
    color: #ffffff;
}

.chip-categorie.active .chip-count {
    opacity: 0.75;
}

@media (max-width: 600px) {
    .filtres-categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        margin-left: -4px;
        padding-left: 4px;
    }
    .chip-categorie {
        flex-shrink: 0;
    }
}

/* ============================================================
   Bouton "Retour en haut" — Librairie Libertatem
   À ajouter dans css/style-livres.css
   ============================================================ */

.btn-retour-haut {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 500;

    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #d8d3c8;
    background: #ffffff;
    color: #3a352c;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow: 0 2px 10px rgba(58, 53, 44, 0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease, border-color 0.15s ease, visibility 0.25s;
}

.btn-retour-haut.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-retour-haut:hover {
    background: #3a352c;
    border-color: #3a352c;
    color: #ffffff;
}

.btn-retour-haut i {
    font-size: 16px;
    line-height: 1;
}

/* Se décale légèrement pour ne pas chevaucher le panier sur mobile */
@media (max-width: 600px) {
    .btn-retour-haut {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/* Respecte les préférences d'accessibilité : pas d'animation de déplacement
   si l'utilisateur a demandé de réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
    .btn-retour-haut {
        transition: opacity 0.15s ease, visibility 0.15s;
        transform: none;
    }
}

/* ============================================================
   Ajouts pour le système de prêt — à ajouter à style-livres.css
   ============================================================ */

/* ── Badge de mode dans la grille catalogue ─────────────────── */
.badge-mode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.badge-mode-pret {
    background: rgba(91, 107, 79, 0.12);
    color: #5b6b4f;
}
.badge-mode-mixte {
    background: rgba(176, 106, 74, 0.12);
    color: #b06a4a;
}

/* ── Carte livre réservée (grisée légèrement) ────────────────── */
.carte-livre-reservee {
    opacity: 0.75;
}
.mention-reserve {
    font-size: 11.5px;
    color: #b8792f;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Zone d'action avec plusieurs boutons (fiche livre) ──────── */
.zone-action-multiple {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.zone-action-multiple .btn-primaire,
.zone-action-multiple .btn-secondaire {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

#message-emprunt {
    font-size: 13.5px;
    font-weight: 500;
}

/* ============================================================
   Ajouts pour le système de prêt — à ajouter à style-livres.css
   ============================================================ */

/* ── Badge de mode dans la grille catalogue ─────────────────── */
.badge-mode {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.badge-mode-pret {
    background: rgba(91, 107, 79, 0.12);
    color: #5b6b4f;
}
.badge-mode-mixte {
    background: rgba(176, 106, 74, 0.12);
    color: #b06a4a;
}

/* ── Carte livre réservée (grisée légèrement) ────────────────── */
.carte-livre-reservee {
    opacity: 0.75;
}
.mention-reserve {
    font-size: 11.5px;
    color: #b8792f;
    font-weight: 600;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Zone d'action avec plusieurs boutons (fiche livre) ──────── */
.zone-action-multiple {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.zone-action-multiple .btn-primaire,
.zone-action-multiple .btn-secondaire {
    flex: 1;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

#message-emprunt {
    font-size: 13.5px;
    font-weight: 500;
}

.mention-emprunt-engage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8a8474;
    background: #f0efe9;
    padding: 10px 14px;
    border-radius: 8px;
    flex: 1;
    min-width: 180px;
}

/* ============================================================
   Espace membre — Librairie Libertatem
   Complète style-livres.css, ne le remplace pas : reprend les
   mêmes variables/typos si définies globalement, sinon les valeurs
   ci-dessous servent de repli cohérent avec la charte (tons crème/
   terracotta observés sur les pages existantes).
   ============================================================ */

.container-etroit {
    max-width: 640px;
    margin: 0 auto;
}

.fil-ariane-membre {
    font-size: 13px;
    color: #8a8474;
    margin: 24px 0 20px;
}
.fil-ariane-membre a {
    color: #8a8474;
    text-decoration: underline;
}
.fil-ariane-membre a:hover {
    color: #b06a4a;
}

/* ── En-tête profil ─────────────────────────────────────── */
.entete-membre {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.avatar-membre {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #b06a4a;
    color: #fff;
    display: grid;
    place-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    flex-shrink: 0;
}
.entete-membre h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin: 0 0 2px;
}
.sous-titre-membre {
    font-size: 13px;
    color: #8a8474;
    margin: 0;
}

/* ── Alerte info ─────────────────────────────────────────── */
.alerte-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fbf1e4;
    border: 1px solid #e8c99a;
    color: #7a5a24;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
}
.alerte-info i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── Grille de cartes ────────────────────────────────────── */
.grille-cartes-membre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 640px) {
    .grille-cartes-membre { grid-template-columns: 1fr; }
}

.carte-membre {
    background: #fff;
    border: 1px solid #eee6d8;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.carte-membre h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: #3a3527;
}
.carte-membre h3 i {
    color: #b06a4a;
    font-size: 15px;
}

.liste-infos {
    margin: 0;
}
.liste-infos dt {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a29c8c;
    margin-top: 12px;
}
.liste-infos dt:first-child { margin-top: 0; }
.liste-infos dd {
    margin: 2px 0 0;
    font-size: 14.5px;
    font-weight: 500;
}
.note-carte {
    font-size: 12px;
    color: #a29c8c;
    margin: 16px 0 0;
}

/* ── Liens rapides ───────────────────────────────────────── */
.liens-rapides {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lien-rapide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #3a3527;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}
.lien-rapide:hover {
    background: #f7f2e9;
}
.lien-rapide i:first-child {
    color: #b06a4a;
    width: 18px;
}
.fleche-lien {
    margin-left: auto;
    font-size: 11px;
    color: #c9c2b0;
}

/* ── Champ mot de passe avec œil ─────────────────────────── */
.champ-mot-de-passe { margin-bottom: 16px; }
.champ-mot-de-passe label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #3a3527;
}
.champ-mdp-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.champ-mdp-wrapper input {
    width: 100%;
    padding: 10px 42px 10px 12px;
    border: 1px solid #ddd4c0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.champ-mdp-wrapper input:focus {
    outline: none;
    border-color: #b06a4a;
    box-shadow: 0 0 0 3px rgba(176,106,74,0.12);
}
.btn-oeil {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #a29c8c;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 15px;
    display: flex;
    align-items: center;
}
.btn-oeil:hover { color: #b06a4a; }
.btn-oeil.actif { color: #b06a4a; }

/* ── Déconnexion ─────────────────────────────────────────── */
.zone-deconnexion {
    text-align: center;
    margin: 24px 0 40px;
}

/* ── Statuts de formulaire ───────────────────────────────── */
.statut-recherche.statut-erreur {
    color: #a8432f;
    margin-top: 10px;
}
.statut-recherche.statut-succes {
    color: #4a7c3f;
    margin-top: 10px;
}
.statut-recherche.statut-info {
    color: #8a8474;
    margin-top: 10px;
}

/* ── Page Mes emprunts ───────────────────────────────────── */
.carte-emprunt { padding: 16px 18px; }
.ligne-emprunt {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.miniature-emprunt {
    width: 52px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0efe9;
}
.miniature-emprunt img { width: 100%; height: 100%; object-fit: cover; }
.miniature-emprunt-vide {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: #a29c8c;
}
.details-emprunt h4 { margin: 0 0 2px; font-size: 15px; }
.details-emprunt h4 a { color: #3a3527; text-decoration: none; }
.details-emprunt h4 a:hover { color: #b06a4a; }
.auteur-emprunt { font-size: 12.5px; color: #8a8474; margin: 0 0 8px; }

.statut-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.statut-badge-attente { background: #fbf1e4; color: #7a5a24; }
.statut-badge-cours { background: #eaf0e5; color: #4a7c3f; }
.statut-badge-urgent { background: #fbe6e1; color: #a8432f; }
.statut-badge-termine { background: #f0efe9; color: #8a8474; }

.modalites-emprunt {
    font-size: 12.5px;
    color: #6b6659;
    margin: 8px 0 0;
    background: #f7f2e9;
    padding: 8px 10px;
    border-radius: 6px;
}

/* ── Bloc information adhésion (page connexion) ─────────────── */
.carte-adhesion-info {
    background: #fbf1e4;
    border-color: #e8c99a;
}
.options-adhesion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-adhesion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8c99a;
    border-radius: 10px;
    text-decoration: none;
    color: #3a3527;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.option-adhesion:hover {
    border-color: #b06a4a;
    transform: translateY(-1px);
}
.option-adhesion i {
    font-size: 18px;
    color: #b06a4a;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}
.option-adhesion strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}
.option-adhesion span {
    display: block;
    font-size: 12px;
    color: #8a8474;
}