/* Blog d'aimeraude.fr (V33) : mêmes couleurs et polices que les pages de vente. */
:root{
  color-scheme:light;
  --bg:#f6f1e7; --surface:#fffdf8; --surface2:#efe7d6; --fg:#241c17; --muted:#5f5249; --line:#dccfb8;
  --rust:#a0522c; --rust-ink:#8a4222; --rust-soft:#f2dccd;
  --emerald:#1a6b4a; --on-emerald:#ffffff;
  --hero-bg:#1d1612; --hero-fg:#f4ece0; --hero-muted:#cbbdac; --hero-line:#3b2d25;
  --focus:#1a6b4a;
  --serif:"Fraunces", Georgia, "Times New Roman", serif;
  --sans:"Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#16110e; --surface:#201915; --surface2:#2a211b; --fg:#f1e9dc; --muted:#c2b3a2; --line:#3d3027;
    --rust:#e08a5c; --rust-ink:#f0a077; --rust-soft:#3a251a; --emerald:#5fbf94; --on-emerald:#0f2a1e;
    --hero-bg:#0f0b09; --focus:#5fbf94; color-scheme:dark;
  }
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--fg); font:17px/1.6 var(--sans);
  padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px)}
img{max-width:100%; height:auto; display:block}
a{color:var(--rust-ink)}
:focus-visible{outline:3px solid var(--focus); outline-offset:3px; border-radius:4px}
h1,h2,h3{font-family:var(--serif); font-weight:600; line-height:1.15; margin:0; letter-spacing:-.01em; text-wrap:balance}
h1{font-size:clamp(2.1rem,5vw,3.4rem); font-weight:700}
h2{font-size:clamp(1.35rem,3vw,1.8rem)}
.wrap{width:100%; max-width:1120px; margin-inline:auto; padding-inline:20px}

/* En-tête */
.top{background:var(--hero-bg); color:var(--hero-fg); border-bottom:1px solid var(--hero-line)}
.top .wrap{display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.4rem; padding-block:.85rem}
.brand{font-family:var(--serif); font-weight:600; font-size:1.05rem; color:inherit; text-decoration:none; margin-right:auto}
.brand small{display:block; font:500 .68rem var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--hero-muted)}
.menu{display:flex; flex-wrap:wrap; gap:.4rem 1.1rem}
.menu a{color:var(--hero-fg); text-decoration:none; font-weight:600; font-size:.95rem; padding:.35rem 0}
.menu a:hover{text-decoration:underline}
.langues{display:flex; gap:.15rem}
.langues a,.langues span{font:600 .78rem var(--sans); letter-spacing:.06em; padding:.35rem .45rem; border-radius:6px; color:var(--hero-muted); text-decoration:none; min-width:2.2rem; text-align:center}
.langues a:hover{color:var(--hero-fg); background:rgba(255,255,255,.08)}
.langues span[aria-current]{color:var(--hero-bg); background:var(--hero-fg)}

/* Bandeau de titre */
.entete{background:var(--surface2); border-bottom:1px solid var(--line)}
.entete .wrap{padding-block:clamp(2rem,6vw,3.6rem)}
.chapo{font-size:1.15rem; color:var(--muted); max-width:60ch; margin:.8rem 0 0}
.contenu{padding-block:clamp(1.8rem,5vw,3rem)}
.vide{color:var(--muted)}
.fil{margin:0 0 .6rem; font-size:.9rem}
.fil a{color:var(--muted)}
.categorie{margin:0 0 .35rem; font:600 .74rem var(--sans); letter-spacing:.12em; text-transform:uppercase; color:var(--emerald)}
.meta{color:var(--muted); font-size:.92rem; margin:.5rem 0 0}
.meta a{color:inherit}

/* Cartes d'articles */
.cartes{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.4rem}
.carte{background:var(--surface); border:1px solid var(--line); border-radius:16px; overflow:hidden; display:flex; flex-direction:column}
.carte .vignette img{width:100%; aspect-ratio:16/10; object-fit:cover}
.carte .corps{padding:1.1rem 1.2rem 1.3rem; display:flex; flex-direction:column; gap:.2rem; flex:1}
.carte h2{font-size:1.3rem}
.carte h2 a{color:var(--fg); text-decoration:none}
.carte h2 a:hover{text-decoration:underline}
.extrait{margin:.4rem 0 0; color:var(--muted)}
.suite{margin-top:auto; padding-top:.8rem; font-weight:600; text-decoration:none}
.suite:hover{text-decoration:underline}
.pagination{display:flex; justify-content:space-between; gap:1rem; margin-top:2rem; flex-wrap:wrap}
.pagination a{font-weight:600}

/* Article */
.article{max-width:760px; padding-block:clamp(1.8rem,5vw,3rem)}
.article h1{margin-top:.2rem}
.une{margin:1.6rem 0}
.une img{width:100%; border-radius:14px}
.texte{font-size:1.07rem}
.texte h2{margin:2rem 0 .6rem}
.texte h3{margin:1.6rem 0 .5rem}
.texte img{border-radius:10px; margin:1rem 0}
.texte figure{margin:1.2rem 0}
.texte figure.align-left{float:left; margin:.3em 1.6em 1em 0; max-width:45%}
.texte figure.align-right{float:right; margin:.3em 0 1em 1.6em; max-width:45%}
.texte figure.align-center{margin:1.6em auto; max-width:85%; text-align:center}
.texte figcaption{font-size:.88rem; color:var(--muted)}
.texte blockquote{margin:1.4rem 0; padding:.2rem 0 .2rem 1.2rem; border-left:3px solid var(--rust); font-family:var(--serif); font-size:1.15rem}
.texte::after{content:""; display:table; clear:both}
.encart-auteur{display:flex; gap:1.1rem; align-items:center; margin:2.4rem 0 0; padding:1.2rem; background:var(--surface); border:1px solid var(--line); border-radius:16px}
.encart-auteur img{width:84px; height:84px; border-radius:50%; object-fit:cover; flex:none}
.encart-auteur .nom{font-family:var(--serif); font-size:1.25rem; font-weight:600; margin:0}
.encart-auteur .mention{margin:0 0 .6rem; color:var(--muted)}
.retour{margin-top:2.4rem}
.bloc{margin-top:2.4rem}
.bloc h2{margin-bottom:1rem}

/* Boutons */
.btn{display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font:600 .98rem/1.2 var(--sans);
  padding:.7rem 1.2rem; min-height:44px; border-radius:999px; border:2px solid transparent; background:var(--rust); color:#fff}
.btn:hover{background:var(--rust-ink)}
.btn.ghost{background:transparent; color:var(--fg); border-color:currentColor}
.btn.ghost:hover{background:var(--surface2)}

/* Auteurs */
.auteurs{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1.2rem}
.auteurs a{display:flex; flex-direction:column; align-items:center; text-align:center; gap:.3rem; padding:1.4rem 1rem; background:var(--surface);
  border:1px solid var(--line); border-radius:16px; text-decoration:none; color:var(--fg)}
.auteurs a:hover{border-color:var(--rust)}
.auteurs img,.auteurs .initiale{width:110px; height:110px; border-radius:50%; object-fit:cover; margin-bottom:.4rem}
.auteurs .initiale{display:flex; align-items:center; justify-content:center; background:var(--rust-soft); color:var(--rust-ink); font:600 2.4rem var(--serif)}
.auteurs .nom{font-family:var(--serif); font-size:1.2rem; font-weight:600}
.auteurs .mention,.profil .mention{color:var(--muted); font-size:.92rem}
.profil{display:flex; align-items:center; gap:1.6rem; flex-wrap:wrap}
.portrait{width:150px; height:150px; border-radius:50%; object-fit:cover; border:4px solid var(--surface)}
.profil .mention{margin:.4rem 0 0; font-size:1.05rem}
.presentation{max-width:70ch; font-size:1.07rem}

/* Livres */
.livres{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:1.3rem}
.livres a{display:flex; flex-direction:column; gap:.25rem; text-decoration:none; color:var(--fg)}
.livres img{width:100%; aspect-ratio:640/905; object-fit:cover; border-radius:8px; box-shadow:0 8px 22px rgba(36,28,23,.18); margin-bottom:.5rem}
.livres .titre{font-family:var(--serif); font-weight:600; font-size:1.05rem; line-height:1.25}
.livres .sous-titre{color:var(--muted); font-size:.88rem; line-height:1.35}
.livres .suite{color:var(--rust-ink); padding-top:.3rem}

/* Liens */
.liens{list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.6rem}
.liens a{display:inline-block; padding:.55rem 1rem; border:1px solid var(--line); border-radius:999px; background:var(--surface); text-decoration:none; font-weight:600}
.liens a:hover{border-color:var(--rust)}

/* Pied de page */
footer{background:var(--hero-bg); color:var(--hero-muted); font-size:.88rem; margin-top:2rem}
footer .wrap{padding-block:2.2rem; display:grid; gap:.5rem}
footer b{color:var(--hero-fg); font-family:var(--serif); font-size:1.05rem}
footer p{margin:0}
footer a{color:var(--hero-fg)}

@media (max-width:640px){
  body{font-size:16px}
  .texte figure.align-left,.texte figure.align-right{float:none; max-width:100%; margin:1rem 0}
  .encart-auteur{flex-direction:column; text-align:center}
  .langues{width:100%}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
