/* ================================================
   lire.css — Section "Lire" de laverdarie.com
   Version revue : bleu-gris doux, ivoire, ocre discret
   Objectif : reposant, lisible, chaleureux, avec plus d'accroche visuelle
   Polices : système + Georgia pour les textes littéraires
   ================================================ */

/* --- Variables locales --- */
.lire-page {
  --lire-blue:        #6f8290;
  --lire-blue-light:  #edf2f4;
  --lire-blue-dark:   #354f5f;
  --lire-blue-deep:   #253946;

  --lire-ivory:       #fbf8f0;
  --lire-paper:       #fffdf8;
  --lire-cream:       #f5efe1;
  --lire-border:      #e5d8bf;

  --lire-gold:        #c49a3a;
  --lire-gold-light:  #f4e4b7;
  --lire-gold-soft:   #f8edc8;

  --lire-text:        #2f2a22;
  --lire-muted:       #766d5d;
  --lire-shadow:      rgba(48, 39, 25, 0.10);
}

/* --- Page --- */
.lire-page {
  background:
    radial-gradient(rgba(105, 85, 45, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f1eadc 0%, #e7decc 100%);
  background-size: 6px 6px, 100% 100%;

  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

/* --- Header de section --- */
.lire-header {
  margin: 0 -1rem 2rem;
  padding: 1rem 1.5rem;
  background:
    linear-gradient(90deg, var(--lire-blue-deep) 0%, var(--lire-blue-dark) 58%, var(--lire-blue) 100%);
  border-bottom: 3px solid var(--lire-gold);
  box-shadow: 0 6px 18px rgba(30, 45, 55, 0.18);
}

.lire-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.lire-header-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f7edd2;
  background: rgba(255,255,255,0.16);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.lire-header-title {
  flex: 1;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  color: #f7edd2;
  text-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.lire-header-back {
  font-size: 13px;
  color: #f4e4b7;
  text-decoration: none;
  white-space: nowrap;
}

.lire-header-back:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Carte --- */
.lire-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--lire-paper);
  border: 1px solid rgba(180, 155, 105, 0.38);
  border-radius: 14px;
  box-shadow: 0 10px 28px var(--lire-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lire-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--lire-gold) 0%, var(--lire-blue) 100%);
  opacity: 0.95;
}

.lire-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 154, 58, 0.58);
  box-shadow: 0 14px 34px rgba(48, 39, 25, 0.14);
}

.lire-card-banner {
  padding: 0.52rem 1.25rem 0.52rem 1.45rem;
  /*--- background: linear-gradient(90deg, var(--lire-blue-dark) 0%, var(--lire-blue) 100%);---*/
  background: linear-gradient(90deg, #486270 0%, #6f8290 100%);
  color: #fff7df;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.055em;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.lire-card-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
}

/* --- Colonne gauche --- */
.lire-col-left {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(180deg, var(--lire-blue-light) 0%, var(--lire-cream) 100%);
  border-right: 1px solid var(--lire-border);
}

.lire-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  background: var(--lire-gold-light);
  border: 1px solid rgba(196, 154, 58, 0.55);
  border-radius: 999px;
  color: #6d4f0e;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(100, 70, 20, 0.08);
}

.lire-accroche {
  margin: 0;
  padding: 0.72rem 0.85rem;
  background: rgba(255, 255, 255, 0.64);
  border-left: 4px solid var(--lire-gold);
  border-radius: 0 9px 9px 0;
  color: var(--lire-text);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

.lire-figure {
  margin: 0.1rem 0 0;
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lire-border);
  border: 1px solid rgba(180, 155, 105, 0.45);
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(45, 38, 25, 0.11);
}

.lire-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.lire-card:hover .lire-img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.lire-meta {
  padding-top: 0.15rem;
  color: var(--lire-muted);
  font-size: 12px;
  line-height: 1.75;
}

.lire-meta strong {
  color: var(--lire-blue-dark);
  font-weight: 700;
}

/* --- Colonne droite --- */
.lire-col-right {
  padding: 1.3rem 1.35rem 1.25rem;
   background:
    radial-gradient(rgba(115, 90, 45, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f6ecd7 0%, #ead9b8 100%);
  background-size: 7px 7px, 100% 100%;
}

.lire-titre-texte {
  margin: 0 0 0.9rem;
  padding-bottom: 0.42rem;
  color: var(--lire-blue-dark);
  border-bottom: 1px solid var(--lire-border);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.lire-texte {
  color: var(--lire-text);
  font-family: Georgia, "Palatino Linotype", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.88;
  text-shadow: none;
}

.lire-texte p {
  margin: 0 0 0.75rem;
  color: #1f1c17;
  font-weight: 400;
}

.lire-texte p + p {
  margin-top: 1.15em;
}

.lire-texte p:first-child::first-letter {
  float: left;

  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 3.4em;
  line-height: 0.82;
  font-weight: 600;

  color: #7b5b28;

  margin-right: 0.12em;
  margin-top: 0.08em;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 2px 4px rgba(0,0,0,0.08);
}

/* --- Pager --- */
.lire-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.15rem 0 0;
  margin-top: 0.35rem;

  font-size: 13px;
}

.lire-pager a {
  color: var(--lire-blue-dark);
  text-decoration: none;
}

.lire-pager a:hover {
  color: var(--lire-blue);
  text-decoration: underline;
}

.lire-pager-home {
  padding: 5px 15px;
  background: var(--lire-gold-light);
  border: 1px solid rgba(196, 154, 58, 0.58);
  border-radius: 999px;
  color: #6d4f0e !important;
  font-size: 12px;
  font-weight: 600;
}

.lire-pager-home:hover {
  background: var(--lire-gold-soft);
  text-decoration: none !important;
}

.lire-pager-prev {
  min-width: 100px;
}

/* --- Intro sommaire --- */
.lire-intro {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  color: var(--lire-muted);
  background: rgba(255, 255, 255, 0.45);
  border-left: 4px solid var(--lire-gold);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 1.7;
}

/* --- Sommaire --- */
.lire-sommaire {
  overflow: hidden;
  background: var(--lire-paper);
  border: 1px solid rgba(180, 155, 105, 0.42);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(48, 39, 25, 0.08);
}

.lire-som-category {
  padding: 0.48rem 1.25rem;
  color: var(--lire-blue-dark);
  background: linear-gradient(90deg, var(--lire-blue-light), var(--lire-cream));
  border-bottom: 1px solid var(--lire-border);
  border-top: 1px solid var(--lire-border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lire-sommaire .lire-som-category:first-child {
  border-top: none;
}

.lire-som-entry {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.72rem 1.25rem;
  background: var(--lire-paper);
  border-bottom: 1px solid rgba(229, 216, 191, 0.85);
  text-decoration: none;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.lire-som-entry:last-child {
  border-bottom: none;
}

.lire-som-entry:hover {
  padding-left: 1.38rem;
  background: #f3ecdd;
}

.lire-som-thumb {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--lire-border);
  border: 1px solid rgba(180, 155, 105, 0.45);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(48, 39, 25, 0.08);
}

.lire-som-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lire-som-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lire-som-title {
  overflow: hidden;
  color: var(--lire-text);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lire-som-author {
  color: var(--lire-muted);
  font-size: 12px;
}

.lire-som-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.lire-som-page {
  color: var(--lire-muted);
  font-size: 11px;
}

/* --- Responsive mobile --- */
@media (max-width: 560px) {
  .lire-page {
    padding: 0 0.75rem 2.5rem;
  }

  .lire-header {
    margin: 0 -0.75rem 1.5rem;
    padding: 0.9rem 1rem;
  }

  .lire-header-title {
    font-size: 16px;
  }

  .lire-card-inner {
    grid-template-columns: 1fr;
  }

  .lire-col-left {
    border-right: none;
    border-bottom: 1px solid var(--lire-border);
  }

  .lire-figure {
    aspect-ratio: 16 / 8;
  }

  .lire-col-right {
  background:
    radial-gradient(rgba(120, 95, 45, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f3e4c8 0%, #ead6ad 100%);
  background-size: 7px 7px, 100% 100%;
  padding: 1.25rem;
}

  .lire-texte {
    font-size: 15.5px;
    line-height: 1.82;
	color: #1d1a15;
  }

  .lire-texte p:first-child::first-letter {
  font-size: 2.2em;
  line-height: 0.9;
  margin-top: 0;
}

  .lire-som-entry {
    align-items: flex-start;
  }

  .lire-som-meta {
    display: none;
  }
}

.lire-col-right {
  position: relative;
}

.lire-col-right::before {
  content: "";

  position: absolute;
  top: 1rem;
  left: 0;

  width: 3px;
  height: calc(100% - 2rem);

  background:
    linear-gradient(180deg,
      rgba(196,154,58,0) 0%,
      rgba(196,154,58,0.45) 20%,
      rgba(196,154,58,0.45) 80%,
      rgba(196,154,58,0) 100%);
}

/* --- Sommaire Lire en vignettes --- */
.lire-rubriques {
  display: grid;
  grid-template-columns: repeat(4, 208px);
  justify-content: center;
  column-gap: 16px;
  row-gap: 1.35rem;
  margin: 1.25rem 0 1.5rem;
}

.lire-rubrique {
  display: block;
  color: var(--lire-text);
  text-decoration: none;
}

.lire-rubrique-figure {
  width: 208px;
  height: 195px;
  margin: 0;
  overflow: hidden;
  background: var(--lire-border);
  border: 1px solid rgba(180, 155, 105, 0.45);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(48, 39, 25, 0.13);
}

.lire-rubrique-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.lire-rubrique:hover .lire-rubrique-figure img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.03);
}

.lire-rubrique-caption {
  min-height: 3.15rem;
  padding: 0.55rem 0.35rem 0;
  text-align: center;
  line-height: 1.35;
}

.lire-rubrique-caption strong {
  display: block;
  color: var(--lire-blue-dark);
  font-size: 15px;
  font-weight: 700;
}

.lire-rubrique-caption span {
  display: block;
  margin-top: 0.15rem;
  color: var(--lire-muted);
  font-size: 12.5px;
}

.lire-note {
  margin-top: 1.2rem;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 920px) {
  .lire-rubriques {
    grid-template-columns: repeat(2, minmax(150px, 208px));
  }

  .lire-rubrique-figure {
    width: 100%;
    height: auto;
    aspect-ratio: 208 / 195;
  }
}

@media (max-width: 480px) {
  .lire-rubriques {
    grid-template-columns: 1fr;
    row-gap: 1.1rem;
  }
}
