/* Petit Phare : mêmes couleurs que compte.petitphare.fr (papier crème, encre, miel). */
:root { --encre: #1d1a2e; --papier: #fdf8ef; --carte: #ffffff; --trait: #e6dccb; --accent: #f2b632; --doux: #5b5670; --lien: #4a3a8c; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 42rem; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
a { color: var(--lien); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.marque { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--doux); text-decoration: none; }
.marque::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--accent); border: 2px solid var(--encre); }
h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .5rem; }
p { margin: 0 0 .9rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
.chapeau { font-size: 1.1rem; color: var(--doux); max-width: 34rem; }
.carte { background: var(--carte); border: 2px solid var(--encre); border-radius: 18px; padding: 1.3rem 1.2rem; margin: 1.2rem 0; }
.app { display: grid; grid-template-columns: 88px 1fr; gap: 1.1rem; align-items: start; }
.app img { width: 88px; height: 88px; border-radius: 22px; border: 2px solid var(--encre); display: block; }
.app .vide { width: 88px; height: 88px; border-radius: 22px; border: 2px dashed var(--trait); }
.etat { display: inline-block; font-size: .85rem; font-weight: 600; padding: .15rem .7rem; border-radius: 999px; background: var(--papier); border: 1px solid var(--trait); color: var(--doux); }
.engagements { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 1rem 0 0; padding: 0; list-style: none; }
.engagements li { margin: 0; padding: .9rem 1rem; border-radius: 14px; background: var(--carte); border: 1px solid var(--trait); }
.engagements strong { display: block; }
details { border-top: 1px solid var(--trait); padding: .8rem 0; }
details:last-of-type { border-bottom: 1px solid var(--trait); }
summary { font-weight: 650; cursor: pointer; min-height: 32px; }
details[open] summary { margin-bottom: .5rem; }
dl { margin: 0; }
dt { font-weight: 650; margin-top: 1rem; }
dd { margin: .2rem 0 0; }
footer { max-width: 42rem; margin: 0 auto; padding: 0 1rem 3rem; color: var(--doux); font-size: .95rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--trait); }
@media (max-width: 30rem) {
  h1 { font-size: 1.65rem; }
  .app { grid-template-columns: 64px 1fr; gap: .9rem; }
  .app img, .app .vide { width: 64px; height: 64px; border-radius: 16px; }
}
