/* 888 Décor — magazine de décoration. Polices auto-hébergées, aucune ressource externe. */
@font-face { font-family: "Bodoni Moda"; src: url("bodoni-moda-latin-standard-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("bodoni-moda-latin-standard-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("instrument-sans-latin-standard-normal.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("instrument-sans-latin-standard-italic.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: italic; font-display: swap; }

:root {
  --platre: #F5F4F0;
  --encre: #22312E;
  --encre-douce: #55625E;
  --lin: #E8E3D9;
  --taupe: #B9A790;
  --laiton: #B8955A;
  --laiton-fonce: #8A6A35;
  --papier: #F5F4F0;
  --soleil: #B8955A;

  --titres: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --texte: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mesure: 39rem;
  --large: 74rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--platre); color: var(--encre); font: 400 1.0625rem/1.68 var(--texte); -webkit-font-smoothing: antialiased; }
img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--encre); text-decoration-color: var(--laiton); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--laiton-fonce); }
:focus-visible { outline: 2px solid var(--laiton-fonce); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 500; line-height: 1.1; margin: 0; font-optical-sizing: auto; text-wrap: balance; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: var(--platre); padding: 0.6rem 1rem; z-index: 10; }
.evitement:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- En-tête centré : le nom en Bodoni, très grand ---------- */
.entete { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) var(--marge) 0; }
.entete-haut { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.marque { display: inline-flex; flex-direction: column; align-items: center; color: var(--encre); text-decoration: none; }
.marque-nom { font-family: var(--titres); font-weight: 400; font-style: italic; font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: 0.9; letter-spacing: -0.02em; }
.marque-baseline { font-family: var(--texte); font-size: 0.95rem; color: var(--encre-douce); margin-top: 0.7rem; letter-spacing: 0.01em; }
.rubriques { max-width: var(--large); margin: clamp(1.25rem, 3vw, 2rem) auto 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); }
.rubriques ul, .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.rubriques ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 2rem; row-gap: 0.25rem; padding: 0.8rem 0; }
.rubriques a, .menu-mobile a { font-size: 0.95rem; font-weight: 500; color: var(--encre); text-decoration: none; }
.rubriques a:hover, .rubriques a[aria-current] { text-decoration: underline; text-decoration-color: var(--laiton); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.rubriques-plus a { color: var(--laiton-fonce); }
.menu-mobile { display: none; }
@media (max-width: 760px) {
  .rubriques { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { cursor: pointer; list-style: none; font-weight: 600; padding: 0.5rem 1.2rem; border: 1px solid var(--encre); font-size: 0.95rem; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile[open] summary { background: var(--encre); color: var(--platre); }
  .menu-mobile ul { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 0.5rem); background: var(--platre); border: 1px solid var(--encre); padding: 0.4rem 1.2rem; min-width: 16rem; z-index: 5; text-align: left; }
  .menu-mobile li + li { border-top: 1px solid var(--lin); }
  .menu-mobile a { display: block; padding: 0.6rem 0; }
  .entete { padding-bottom: 1.25rem; border-bottom: 1px solid var(--encre); }
}

main { max-width: var(--large); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--marge) 4.5rem; }

/* ---------- Cartes ---------- */
.carte { display: flex; flex-direction: column; gap: 1rem; }
.carte-image { order: -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--lin); }
.carte-rubrique { font-size: 0.82rem; font-weight: 600; color: var(--laiton-fonce); text-decoration: none; letter-spacing: 0.02em; display: inline-block; margin-bottom: 0.4rem; }
.carte-titre { font-size: 1.45rem; line-height: 1.15; }
.carte-titre a { text-decoration: none; }
.carte-titre a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.carte-resume { margin: 0.55rem 0 0; color: var(--encre-douce); font-size: 0.97rem; line-height: 1.55; }
.carte-date { margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--encre-douce); }
.liste { display: grid; gap: 3rem 2.5rem; }
@media (min-width: 680px) { .liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .liste { grid-template-columns: repeat(3, 1fr); } }
.liste-compacte { grid-template-columns: 1fr !important; gap: 0; }
.liste-compacte > .carte { padding: 1rem 0; border-bottom: 1px solid var(--lin); }
.carte-compact .carte-titre { font-size: 1.18rem; }

/* ---------- Accueil ---------- */
.accueil-une { display: grid; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--encre); }
@media (min-width: 760px) {
  .carte-une.avec-image { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
  .carte-une.avec-image .carte-image { aspect-ratio: 5 / 4; }
}
@media (min-width: 980px) {
  .accueil-suivants .liste-compacte { grid-template-columns: repeat(3, 1fr) !important; column-gap: 2.5rem; }
}
.carte-une .carte-titre { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.04; font-weight: 500; }
.carte-une .carte-titre a { font-style: italic; }
.carte-une .carte-resume { font-size: 1.08rem; color: var(--encre); margin-top: 1rem; }
.accueil-suivants h2, .a-lire h2 { font-family: var(--texte); font-size: 0.95rem; font-weight: 600; padding-bottom: 0.7rem; border-bottom: 1px solid var(--encre); }
.accueil-rubrique { padding-top: 3.5rem; }
.accueil-rubrique h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-style: italic; text-align: center; margin-bottom: 2rem; }
.accueil-rubrique h2 a { text-decoration: none; }
.accueil-rubrique:nth-of-type(even) { background: var(--lin); margin: 3.5rem calc(-1 * var(--marge)) 0; padding: 3rem var(--marge); }
.a-lire-tout { margin: 1.2rem 0 0; font-weight: 600; font-size: 0.95rem; }

/* ---------- Listes ---------- */
.liste-entete { text-align: center; padding-bottom: 2.5rem; }
.liste-entete .ariane ol { justify-content: center; }
.liste-entete h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-style: italic; font-weight: 400; }
.liste-intro { margin: 0.6rem 0 0; color: var(--encre-douce); }
.sous-rubriques { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.sous-rubriques a { display: inline-block; text-decoration: none; font-size: 0.92rem; font-weight: 500; border: 1px solid var(--encre); padding: 0.35rem 1rem; }
.sous-rubriques a:hover { background: var(--encre); color: var(--platre); }
.pagination ul { list-style: none; padding: 0; margin: 3.5rem 0 0; display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.pagination a { font-weight: 600; text-decoration: none; border: 1px solid var(--encre); padding: 0.55rem 1.2rem; }
.pagination a:hover { background: var(--encre); color: var(--platre); }
.pagination-etat { color: var(--encre-douce); }

/* ---------- Fil d'Ariane ---------- */
.ariane ol { list-style: none; margin: 0 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; font-size: 0.85rem; color: var(--encre-douce); }
.ariane li + li::before { content: "/"; margin-right: 0.6rem; color: var(--taupe); }
.ariane a { color: var(--encre-douce); }

/* ---------- Article ---------- */
.article { max-width: var(--mesure); margin: 0 auto; }
.article-entete { text-align: center; }
.article-entete .ariane ol { justify-content: center; }
.article-entete h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.06; font-weight: 500; }
.article-meta { font-size: 0.9rem; color: var(--encre-douce); margin: 1.1rem 0 0; }
.article-maj { display: block; }
.article-image { margin: 2.5rem calc(-1 * min(6rem, var(--marge))) 0; }
.article-image img { width: 100%; max-height: 34rem; object-fit: cover; }
.article-corps { margin-top: 2.5rem; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.article-corps > * { margin: 0 0 1.1em; }
.article-corps > p:first-child::first-letter { font-family: var(--titres); float: left; font-size: 3.6em; line-height: 0.85; padding: 0.06em 0.1em 0 0; color: var(--laiton-fonce); }
.article-corps h2 { font-size: 1.9rem; margin: 2em 0 0.6em; }
.article-corps h3 { font-size: 1.4rem; font-style: italic; margin: 1.7em 0 0.5em; }
.article-corps h4 { font-family: var(--texte); font-size: 1.05rem; font-weight: 700; margin: 1.5em 0 0.4em; }
.article-corps ul, .article-corps ol { padding-left: 1.3em; }
.article-corps li { margin-bottom: 0.4em; }
.article-corps li::marker { color: var(--laiton-fonce); }
.article-corps blockquote { margin: 2em 0; padding: 0 1.5rem; border-left: 1px solid var(--laiton); font-family: var(--titres); font-style: italic; font-size: 1.25rem; line-height: 1.45; }
.article-corps figure { margin: 2em 0; }
.article-corps figcaption { font-size: 0.88rem; color: var(--encre-douce); margin-top: 0.5rem; }
.article-corps table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.article-corps th, .article-corps td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--lin); vertical-align: top; }
.article-corps th { border-bottom: 1px solid var(--encre); }
.article-corps hr { border: 0; border-top: 1px solid var(--taupe); margin: 2.5em auto; width: 30%; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--encre); }
.a-lire { max-width: var(--mesure); margin: 4.5rem auto 0; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: var(--platre); padding: 3.5rem var(--marge); text-align: center; }
.pied-interieur { max-width: var(--large); margin: 0 auto; display: grid; gap: 1.4rem; justify-items: center; }
.pied a { color: var(--platre); text-decoration-color: var(--taupe); }
.pied a:hover { color: var(--taupe); }
.pied-marque { margin: 0; max-width: 32em; }
.pied-marque .marque-nom { font-size: 2.2rem; display: block; margin-bottom: 0.4rem; }
.pied-liens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; font-size: 0.92rem; }
.pied-contact { margin: 0; font-size: 0.92rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .entete nav, .menu-mobile, .a-lire, .pied { display: none; } body { background: #fff; } }
