/* Site de Robert Rivière — présentation 2026 (sans Mobirise). Polices du système : aucune ressource externe. */
:root {
  --papier: #f7f3ea; --page: #fffdf8; --encre: #26221c; --doux: #6b6357; --filet: #e2d9c7;
  --accent: #2f5d7c; --accent-fonce: #234a63; --chaud: #8a5a2b;
  --largeur: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papier: #1b1916; --page: #23201c; --encre: #ece5d8; --doux: #a89f91; --filet: #3a352e;
    --accent: #8bb8d6; --accent-fonce: #a9cbe2; --chaud: #d1a274;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre);
  font: 1.08rem/1.7 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-fonce); }
img { max-width: 100%; height: auto; border-radius: 4px; }
.evitement { position: absolute; left: -999px; }
.evitement:focus { left: 1rem; top: 1rem; background: var(--page); padding: .4rem .8rem; z-index: 10; }

/* En-tête et menu */
.entete { background: var(--page); border-bottom: 1px solid var(--filet); padding: .8rem 1rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: .6rem 1.4rem; position: sticky; top: 0; z-index: 5; }
.marque { text-decoration: none; color: var(--encre); display: flex; flex-direction: column; line-height: 1.15; }
.marque .nom { font-size: 1.35rem; letter-spacing: .02em; }
.marque .devise { font-size: .85rem; color: var(--chaud); font-style: italic; }
.entete nav ul { list-style: none; margin: 0; padding: 0; }
.menu-large > ul { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; font-size: .95rem; }
.menu-large a, .menu-large summary { color: var(--encre); text-decoration: none; cursor: pointer; padding: .2rem 0; }
.menu-large a:hover, .menu-large summary:hover { color: var(--accent); }
.menu-large a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.menu-large .sous { position: relative; }
.menu-large details > summary { list-style: none; }
.menu-large details > summary::after { content: " ▾"; font-size: .75em; color: var(--doux); }
.menu-large details > summary::-webkit-details-marker { display: none; }
.menu-large details[open] > ul { position: absolute; top: 2rem; left: -.8rem; background: var(--page); border: 1px solid var(--filet);
  border-radius: 6px; padding: .5rem .9rem; min-width: 13rem; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.menu-large details[open] > ul li { padding: .15rem 0; }
.menu-mobile { display: none; }
@media (max-width: 860px) {
  .menu-large { display: none; }
  .menu-mobile { display: block; width: 100%; }
  .menu-mobile > summary { cursor: pointer; font-size: 1rem; padding: .3rem .8rem; border: 1px solid var(--filet); border-radius: 6px; display: inline-block; }
  .menu-mobile ul { padding: .4rem 0 0 .2rem; }
  .menu-mobile li { padding: .2rem 0; }
  .menu-mobile ul ul { padding-left: 1rem; }
  .menu-mobile a, .menu-mobile summary { color: var(--encre); text-decoration: none; }
  .menu-mobile a[aria-current="page"] { color: var(--accent); font-weight: bold; }
}

/* Contenu */
main { max-width: var(--largeur); margin: 0 auto; padding: 1.6rem 1rem 3rem; }
.bloc { background: var(--page); border: 1px solid var(--filet); border-radius: 8px; padding: 1.4rem 1.6rem; margin: 0 0 1.4rem; }
.bloc h1, .bloc h2, .bloc h3, .bloc h4 { line-height: 1.25; font-weight: normal; margin: .2rem 0 .8rem; }
.bloc h1, .bloc h2 { font-size: 1.75rem; color: var(--encre); }
.bloc h3 { font-size: 1.35rem; color: var(--accent-fonce); }
.bloc h4, .bloc h5, .bloc h6 { font-size: 1.1rem; color: var(--chaud); }
.bloc p { margin: 0 0 .9rem; }
.bloc p:last-child { margin-bottom: 0; }
.bloc strong { font-weight: 600; }
.bloc blockquote { margin: 1rem 0; padding: .2rem 1rem; border-left: 3px solid var(--chaud); color: var(--doux); font-style: italic; }
.bloc iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.bloc.avec-image { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.4rem; align-items: start; }
.bloc figure { margin: 0; }
.bloc figcaption { font-size: .88rem; color: var(--doux); text-align: center; margin-top: .4rem; font-style: italic; }
.bloc.avec-image.inverse { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.bloc.avec-image.inverse > figure { order: 2; }
@media (max-width: 700px) { .bloc.avec-image figure { margin-bottom: 1rem; } }
@media (max-width: 700px) { .bloc.avec-image, .bloc.avec-image.inverse { display: block; } .bloc { padding: 1.1rem 1.1rem; } }
.bouton { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: .45rem 1.1rem;
  border-radius: 6px; margin: .3rem .4rem .3rem 0; font-size: .98rem; }
.bouton:hover { background: var(--accent-fonce); color: #fff; }
.bouton.secondaire { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.suite { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.encart { border-left: 4px solid var(--chaud); background: color-mix(in srgb, var(--chaud) 8%, var(--page)); }

/* Pied */
.pied { border-top: 1px solid var(--filet); padding: 1.2rem 1rem 2rem; text-align: center; color: var(--doux); font-size: .9rem; }
.pied p { margin: .3rem 0; }
