/* Le Réveil de l'Encre — site vitrine */
:root {
  --papier: #f7f2e8;
  --papier-clair: #fffdf8;
  --encre: #1b1814;
  --encre-doux: #5d5346;
  --bordeaux: #7b2d35;
  --bordeaux-clair: #f1e4e1;
  --filet: #d9cdb6;
  --max: 1080px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--encre);
  background: var(--papier);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bordeaux); text-decoration: none; }
a:hover { text-decoration: underline; }

/* En-tête */
header {
  background: var(--papier-clair);
  border-bottom: 1px solid var(--filet);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 1.15rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-size: 1.32rem; font-weight: 400; letter-spacing: .01em;
  color: var(--encre); text-decoration: none; line-height: 1.2;
}
.logo .marque {
  display: inline-block; width: .62rem; height: .62rem;
  background: var(--bordeaux); border-radius: 50%;
  margin-right: .55rem; vertical-align: baseline;
}
.logo:hover { text-decoration: none; color: var(--bordeaux); }
nav { display: flex; gap: 1.6rem; font-family: var(--sans); }
nav a {
  color: var(--encre-doux); font-size: .84rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a.actif { color: var(--bordeaux); border-bottom-color: var(--bordeaux); text-decoration: none; }

/* Héros */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero .sur-titre {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bordeaux);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 400; letter-spacing: -.015em; line-height: 1.12;
  max-width: 22ch; margin: 0 auto 1.4rem;
}
.hero p {
  font-size: 1.12rem; color: var(--encre-doux);
  max-width: 56ch; margin: 0 auto 2rem;
}
.filet {
  width: 4.5rem; height: 1px; background: var(--filet);
  border: 0; margin: 2.5rem auto;
}

/* Boutons */
.btn {
  display: inline-block; background: var(--bordeaux); color: #fff;
  padding: .8rem 1.7rem; font-family: var(--sans); font-weight: 600;
  font-size: .9rem; letter-spacing: .02em; text-decoration: none;
  border-radius: 3px; transition: background .15s, transform .15s;
}
.btn:hover { background: #632229; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-secondaire {
  background: transparent; color: var(--bordeaux);
  border: 1px solid var(--bordeaux); margin-left: .6rem;
}
.btn-secondaire:hover { background: var(--bordeaux-clair); color: var(--bordeaux); }

/* Sections */
.conteneur { max-width: var(--max); margin: 0 auto; padding: 3.5rem 1.5rem; }
.conteneur.etroit { max-width: 760px; }
h2 {
  font-size: 1.9rem; font-weight: 400; letter-spacing: -.01em;
  margin-bottom: .6rem;
}
.titre-section {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2rem;
}
.titre-section h2 { margin-bottom: 0; }
.titre-section .trait { flex: 1; height: 1px; background: var(--filet); }
.sous-titre { color: var(--encre-doux); margin-bottom: 2.4rem; max-width: 60ch; }

/* Grille de livres */
.grille {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2.2rem 1.9rem;
}
.carte { display: flex; flex-direction: column; }
.carte-couv {
  aspect-ratio: 2 / 3; background: var(--bordeaux-clair);
  border: 1px solid var(--filet); overflow: hidden;
  box-shadow: 0 2px 6px rgba(27,24,20,.10);
  transition: transform .18s, box-shadow .18s;
}
.carte-couv img { width: 100%; height: 100%; object-fit: contain; background: var(--papier-clair); }
.carte:hover .carte-couv { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(27,24,20,.16); }
.carte-corps { padding-top: .95rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.carte-corps h3 { font-size: 1.12rem; font-weight: 400; line-height: 1.35; }
.carte-corps h3 a { color: var(--encre); text-decoration: none; }
.carte-corps h3 a:hover { color: var(--bordeaux); }
.carte-auteur { font-size: .9rem; color: var(--encre-doux); font-style: italic; }
.carte-desc { font-size: .92rem; color: var(--encre-doux); margin-top: .3rem; flex: 1; }
.carte-meta {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--bordeaux); margin-top: .4rem;
}
.carte-vide .carte-couv {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f1e4e1, #f1e4e1 10px, #f7efec 10px, #f7efec 20px);
}
.carte-vide .carte-couv span {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bordeaux);
}

/* Fiche livre */
.fiche { display: grid; grid-template-columns: 320px 1fr; gap: 3.2rem; align-items: start; }
.fiche-couv {
  border: 1px solid var(--filet); overflow: hidden;
  box-shadow: 0 6px 18px rgba(27,24,20,.14); background: var(--bordeaux-clair);
}
.fiche-couv img { width: 100%; height: auto; }
.fiche h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 400;
  line-height: 1.18; letter-spacing: -.01em; margin-bottom: .5rem;
}
.fiche-sous-titre {
  font-size: 1.05rem; font-style: italic; color: var(--encre-doux);
  margin-bottom: 1.2rem;
}
.fiche-auteur { font-size: 1.05rem; margin-bottom: .3rem; }
.fiche-epoque { font-size: .9rem; color: var(--encre-doux); font-style: italic; }
.fiche-description { margin-top: 1.8rem; }
.fiche-description p { margin-bottom: 1rem; }
.fiche-achat { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--filet); }
.fiche-achat p { font-size: .9rem; color: var(--encre-doux); margin-top: .8rem; }
.boutons-achat { display: flex; flex-wrap: wrap; gap: .7rem; }
.retour {
  display: inline-block; font-family: var(--sans); font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--encre-doux);
  margin-bottom: 1.8rem;
}

/* Bandeau */
.bandeau {
  background: var(--bordeaux); color: #f7f2e8;
  padding: 3.2rem 1.5rem; margin-top: 2rem;
}
.bandeau-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.bandeau h3 { font-size: 1.12rem; font-weight: 400; margin-bottom: .4rem; color: #fff; }
.bandeau p { font-size: .92rem; color: #eddfdc; }

/* Texte courant */
.texte p { margin-bottom: 1.1rem; }
.texte h2 { margin-top: 2.6rem; margin-bottom: .8rem; }
.texte h2:first-child { margin-top: 0; }
.texte ul { margin: 0 0 1.2rem 1.2rem; }
.texte li { margin-bottom: .45rem; }
.texte .chapo { font-size: 1.15rem; color: var(--encre); }

/* Encadré */
.encadre {
  background: var(--papier-clair); border: 1px solid var(--filet);
  border-left: 3px solid var(--bordeaux);
  padding: 1.4rem 1.6rem; margin: 1.8rem 0;
  font-size: .95rem;
}
.encadre p:last-child { margin-bottom: 0; }

/* Pied de page */
footer {
  background: #241f19; color: #c9bfae;
  margin-top: 4rem; padding: 3rem 1.5rem 1.6rem;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem;
}
footer h3 {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #e8ddcb;
  margin-bottom: .8rem;
}
footer ul { list-style: none; }
footer li { margin-bottom: .4rem; font-size: .92rem; }
footer a { color: #c9bfae; }
footer a:hover { color: #fff; }
footer .maison { font-size: .95rem; line-height: 1.7; color: #c9bfae; }
.footer-bas {
  max-width: var(--max); margin: 2.4rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid #3a332b;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: .76rem; color: #9a8f7d;
}

/* Responsive */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding: 3.4rem 1.2rem 2.6rem; }
  .fiche { grid-template-columns: 1fr; gap: 1.8rem; }
  .fiche-couv { max-width: 260px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .btn-secondaire { margin-left: 0; margin-top: .6rem; }
  .header-inner { justify-content: center; }
}

/* Contact */
.contact-grille { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.formulaire { position: relative; }
.champ { margin-bottom: 1.1rem; }
.champ label {
  display: block; font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--encre-doux);
  margin-bottom: .35rem;
}
.champ input, .champ textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--filet);
  background: var(--papier-clair); font-family: var(--serif); font-size: 1rem;
  color: var(--encre); border-radius: 3px;
}
.champ input:focus, .champ textarea:focus {
  outline: 2px solid var(--bordeaux-clair); border-color: var(--bordeaux);
}
.champ textarea { resize: vertical; }
.champ-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mention { font-size: .82rem; color: var(--encre-doux); margin-bottom: 1.1rem; }
.contact-infos {
  background: var(--papier-clair); border: 1px solid var(--filet);
  padding: 1.6rem;
}
.contact-infos h3 {
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux);
  margin-bottom: .4rem; margin-top: 1.5rem;
}
.contact-infos h3:first-child { margin-top: 0; }
.contact-note { font-size: .86rem; color: var(--encre-doux); margin-top: .3rem; }

@media (max-width: 760px) {
  .contact-grille { grid-template-columns: 1fr; gap: 2rem; }
}
