/* Mise en forme commune aux pages « Chercheur d'art » (charte de ladmoniteur.fr). */
:root {
  --creme: #F5EDE0; --dore: #b8874c; --dore-fonce: #ad8452; --brun: #36230b;
  --texte: #3d3d3d; --doux: #6b5d4a; --carte: #fbf7f0; --trait: rgba(54,35,11,.14);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 16px/1.6 Inter, system-ui, sans-serif; }
.bandeau-maquette { background: var(--brun); color: var(--creme); text-align: center; font-size: 13px; padding: 7px 16px; }
.page { max-width: 760px; margin: 0 auto; padding: 36px 20px 80px; }
.marque { font-family: "EB Garamond", Georgia, serif; letter-spacing: .18em; text-transform: uppercase; color: #8a6230; font-size: 14px; margin: 0 0 18px; text-align: center; }
h1, h2, h3 { font-family: "EB Garamond", Georgia, serif; font-weight: 400; color: var(--brun); line-height: 1.15; }
h1 { font-size: clamp(34px, 7vw, 50px); margin: 0 0 14px; text-align: center; }
h2 { font-size: clamp(26px, 5vw, 32px); margin: 56px 0 18px; text-align: center; }
h3 { font-size: 22px; margin: 0 0 6px; }
.intro { max-width: 600px; margin: 0 auto; text-align: center; color: var(--brun); font-size: 17px; }
.bloc { background: var(--carte); border: 1px solid var(--trait); border-radius: 18px; padding: 24px; }
.bouton { display: inline-block; width: 100%; font-family: "EB Garamond", Georgia, serif; font-size: 20px; text-align: center; text-decoration: none; color: var(--creme); background: var(--brun); border: 1px solid var(--brun); border-radius: 999px; padding: 11px 22px 12px; cursor: pointer; }
.bouton:hover { background: #4a3214; }
.bouton.leger { background: transparent; color: var(--brun); }
.bouton.leger:hover { background: rgba(54,35,11,.07); }
.petit { font-size: 13.5px; color: var(--doux); }
footer { margin-top: 56px; text-align: center; color: var(--doux); font-size: 14px; }

details { border-bottom: 1px solid var(--trait); }
details:first-of-type { border-top: 1px solid var(--trait); }
summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative; font-family: "EB Garamond", Georgia, serif; font-size: 21px; color: var(--brun); line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--dore-fonce); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

dialog { border: 0; border-radius: 18px; padding: 30px 28px 24px; max-width: 400px; width: calc(100% - 40px); background: var(--creme); color: var(--brun); text-align: center; box-shadow: 0 24px 70px rgba(54,35,11,.35); }
dialog::backdrop { background: rgba(54,35,11,.5); }
dialog h2 { font-size: 26px; margin: 0 0 12px; }
dialog p { margin: 0 0 18px; font-size: 15px; }
dialog .bouton { margin-top: 10px; }

/* Liens dans le texte : brun souligné doré, jamais le bleu du navigateur */
a:not([class]) { color: #36230b; text-decoration: underline; text-decoration-color: #b8874c; text-underline-offset: 3px; }
a:not([class]):hover { color: #8a5a22; }

/* Fenêtres sur téléphone : elles ne dépassent jamais la partie visible de l'écran, clavier ouvert
   compris (--hv et --ht sont tenus à jour par un petit script de la page, d'après visualViewport),
   et leur contenu défile. */
dialog { max-height: calc(var(--hv, 100dvh) - 24px); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { dialog[open] { margin: calc(var(--ht, 0px) + 12px) auto auto; } }

/* Champ obligatoire oublié : liseré rouge, pour le repérer d'un coup d'œil */
input.manque, textarea.manque { border-color: #9a3412 !important; box-shadow: 0 0 0 2px rgba(154,52,18,.15); }
