/* Dessins.net — feuille de style unique. Aucune police web : piles système pour un rendu immédiat. */
:root{
  --paper:#fcfdff;
  --paper-2:#f2f5fd;
  --ink:#22252d;
  --muted:#596070;
  --bic:#1d3fbb;
  --bic-soft:#e7ecfb;
  --marge:#d8345f;
  --line:#dbe3f6;
  --line-strong:#b4c4ec;
  --hl:#ffe45a;
  --hl-ink:#22252d;
  --wrap:72rem;
  --text:42rem;
  --round:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold","Nunito","Varela Round",system-ui,sans-serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root{
    --paper:#14161c;--paper-2:#1a1d25;--ink:#e9ebf1;--muted:#a6adbd;
    --bic:#a3b5ff;--bic-soft:#1f2645;--marge:#ff7396;
    --line:#232939;--line-strong:#34405f;--hl:#e8c726;--hl-ink:#14161c;
  }
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:1.0625rem/1.65 var(--sans)}
img,svg{max-width:100%;height:auto;display:block}
a{color:var(--bic);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--bic);outline-offset:2px;border-radius:2px}
h1,h2,h3{font-family:var(--round);line-height:1.2;letter-spacing:-.01em;margin:0 0 .5em}
h1{font-size:clamp(2rem,1.4rem + 2.6vw,3.25rem);font-weight:800;line-height:1.1}
h2{font-size:clamp(1.45rem,1.2rem + 1vw,1.85rem);font-weight:800;margin-top:2.6rem}
h3{font-size:1.2rem;font-weight:700;margin-top:1.8rem}
p,ul,ol,dl{margin:0 0 1.1em}
li{margin:.25em 0}
strong{font-weight:700}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1rem}
.skip{position:absolute;left:-999px;top:0;background:var(--hl);color:var(--hl-ink);padding:.5rem 1rem;z-index:9}
.skip:focus{left:1rem}
.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.muted{color:var(--muted)}

/* En-tête */
.site-head{border-bottom:1px solid var(--line-strong);background:var(--paper)}
.site-head .wrap{display:flex;align-items:center;gap:1.5rem;min-height:3.75rem}
.logo{display:flex;align-items:center;gap:.45rem;font:800 1.3rem/1 var(--round);color:var(--ink);text-decoration:none;white-space:nowrap}
.logo svg{width:28px;height:28px;color:var(--marge)}
.nav{flex:1;min-width:0}
.nav ul{display:flex;gap:.25rem;list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}
.nav ul::-webkit-scrollbar{display:none}
.nav li{margin:0}
.nav a{display:block;padding:.5rem .7rem;border-radius:999px;color:var(--ink);text-decoration:none;font-size:.95rem;white-space:nowrap}
.nav a:hover{background:var(--bic-soft)}
.nav a[aria-current]{background:var(--bic-soft);color:var(--bic);font-weight:600}
/* Recherche de l'en-tête (formulaire GET, fonctionne sans JS) */
.hsearch{display:flex;flex:0 1 12rem;min-width:0;border:1.5px solid var(--line-strong);border-radius:999px;background:var(--paper);overflow:hidden}
.hsearch:focus-within{border-color:var(--bic);box-shadow:0 0 0 2px var(--bic-soft)}
.hsearch input{flex:1;min-width:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:.95rem;padding:.42rem 0 .42rem .85rem;outline:0}
.hsearch input::placeholder{color:var(--muted)}
.hsearch button{flex:none;display:grid;place-items:center;width:2.4rem;border:0;background:transparent;color:var(--ink);cursor:pointer}
.hsearch button:hover{color:var(--bic)}
.hsearch svg{width:18px;height:18px}
@media (max-width:760px){
  .site-head .wrap{flex-wrap:wrap;gap:0;padding-top:.5rem}
  .nav{order:3;flex-basis:100%;margin:0 -1rem;padding:0 .6rem .4rem}
  .hsearch{flex:1 1 9rem;max-width:16rem;margin-left:auto}
  .logo{margin-right:.75rem}
}

/* Feuille à grands carreaux (Seyès) */
.seyes{
  --m:max(1.75rem,calc((100% - var(--wrap))/2 + .25rem));
  background-color:var(--paper);
  background-image:
    linear-gradient(90deg,transparent calc(var(--m) - 2px),var(--marge) calc(var(--m) - 2px),var(--marge) var(--m),transparent var(--m)),
    repeating-linear-gradient(180deg,transparent 0 31px,var(--line-strong) 31px 32px),
    repeating-linear-gradient(180deg,transparent 0 7px,var(--line) 7px 8px),
    repeating-linear-gradient(90deg,transparent 0 31px,var(--line) 31px 32px);
  border-bottom:1px solid var(--line-strong);
}
.page-head{padding-top:2rem;padding-bottom:2.5rem}
.page-head .wrap{padding-left:max(2.75rem,1rem)}
@media (min-width:1220px){.page-head .wrap{padding-left:1.5rem}}
.page-head h1{max-width:20ch;line-height:48px;margin-bottom:16px}
@media (max-width:600px){.page-head h1{line-height:40px}}
.lead{font-size:1.2rem;line-height:32px;max-width:38rem;color:var(--ink)}
.head-grid{display:grid;gap:1.5rem;align-items:center}
@media (min-width:860px){.head-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
.head-art{background:var(--paper);border:1px solid var(--line-strong);border-radius:4px;padding:.75rem;box-shadow:4px 4px 0 var(--line-strong)}
.head-art figcaption{font-size:.85rem;color:var(--muted);margin-top:.4rem}

/* Fil d'Ariane */
.crumbs{font-size:.9rem;color:var(--muted);margin:0 0 1rem}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.crumbs li{margin:0}
.crumbs li+li::before{content:"›";margin:0 .5rem;color:var(--line-strong)}
.crumbs a{color:var(--muted)}

/* Raccourcis "Je veux…" */
.intents{display:grid;gap:.5rem;margin:1.5rem 0 0;padding:0;list-style:none;max-width:38rem}
.intents li{margin:0}
.intents a{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;padding:.75rem 1rem;background:var(--paper);border:1.5px solid var(--ink);border-radius:6px;color:var(--ink);text-decoration:none;font-weight:600}
.intents a span{font-weight:400;color:var(--muted);font-size:.92rem}
.intents a:hover{background:var(--hl);color:var(--hl-ink)}
.intents a:hover span{color:var(--hl-ink)}

/* Corps de page */
.layout{display:grid;gap:2.5rem;padding-top:2.5rem;padding-bottom:3rem}
@media (min-width:1000px){.layout{grid-template-columns:minmax(0,var(--text)) minmax(0,1fr);gap:4rem}}
.prose{max-width:var(--text)}
.prose>*:first-child{margin-top:0}
.aside{font-size:.95rem}
@media (min-width:1000px){.aside>div{position:sticky;top:1.5rem}}
.aside h2{font-size:1.1rem;margin:0 0 .5rem}
.aside ul{list-style:none;padding:0;margin:0 0 1.5rem;border-top:1px solid var(--line-strong)}
.aside li{margin:0;border-bottom:1px solid var(--line)}
.aside a{display:block;padding:.45rem 0;text-decoration:none}
.aside a:hover{text-decoration:underline}

/* Étapes numérotées : seule vraie séquence du site */
.steps{list-style:none;counter-reset:s;padding:0;margin:1.25rem 0 1.5rem}
.steps>li{counter-increment:s;position:relative;padding:0 0 1rem 3.1rem;margin:0}
.steps>li::before{content:counter(s);position:absolute;left:0;top:-.1rem;width:2.1rem;height:2.1rem;border:2px solid var(--bic);border-radius:50%;display:grid;place-items:center;font:800 1rem/1 var(--round);color:var(--bic)}
.steps>li:not(:last-child)::after{content:"";position:absolute;left:1rem;top:2.2rem;bottom:.2rem;border-left:2px dotted var(--line-strong)}
.steps strong{display:block}

/* Astuce surligneur */
.tip{background:linear-gradient(transparent 0,var(--hl) 0) left/6px 100% no-repeat,var(--paper-2);padding:1rem 1.1rem 1rem 1.4rem;border-radius:0 6px 6px 0;margin:1.5rem 0}
.tip p:last-child{margin:0}

/* Figures */
.fig{margin:1.5rem 0}
.fig img{width:100%;background:var(--paper);border:1px solid var(--line-strong);border-radius:4px}
.fig figcaption{font-size:.88rem;color:var(--muted);margin-top:.45rem}

/* Tableaux */
.table{width:100%;border-collapse:collapse;margin:1rem 0 1.5rem;font-size:.95rem}
.table th,.table td{text-align:left;padding:.55rem .6rem;border-bottom:1px solid var(--line-strong);vertical-align:top}
.table th{font-family:var(--round);background:var(--paper-2)}
.scroll{overflow-x:auto}

/* Sommaire (listes de pages) */
.toc{margin-top:2rem;margin-bottom:2rem}
.toc h2{margin-top:0}
.toc h3{font-size:1.05rem;color:var(--muted);margin:1.6rem 0 .4rem;font-weight:700}
.index{list-style:none;padding:0;margin:0;columns:1;column-gap:2.5rem;border-top:1px solid var(--line-strong)}
@media (min-width:640px){.index{columns:2}}
@media (min-width:1000px){.toc-wide .index{columns:3}}
.index li{break-inside:avoid;margin:0;border-bottom:1px solid var(--line)}
.index a{display:block;padding:.55rem 0;text-decoration:none;color:var(--ink)}
.index a b{font-weight:600;color:var(--bic)}
.index a span{display:block;font-size:.86rem;color:var(--muted);line-height:1.4}
.index a:hover b{text-decoration:underline}

/* Sommaire des thèmes (accueil) */
.themes{list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:0 2.5rem;border-top:1px solid var(--line-strong)}
@media (min-width:700px){.themes{grid-template-columns:1fr 1fr}}
.themes li{margin:0;border-bottom:1px solid var(--line)}
.themes a{display:grid;grid-template-columns:56px 1fr;gap:1rem;align-items:center;padding:.75rem 0;text-decoration:none;color:var(--ink)}
.themes img{width:56px;height:56px;border:1px solid var(--line-strong);border-radius:4px;background:var(--paper)}
.themes b{font:800 1.12rem/1.2 var(--round);color:var(--bic)}
.themes span{display:block;font-size:.9rem;color:var(--muted);line-height:1.4}
.themes a:hover b{text-decoration:underline}

.section{padding-top:1rem;padding-bottom:2.5rem}
.section>h2:first-child{margin-top:1.5rem}
.band{background:var(--paper-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cols{display:grid;gap:2rem}
@media (min-width:860px){.cols{grid-template-columns:1fr 1fr}}

/* FAQ */
.faq details{border-top:1px solid var(--line-strong);padding:.2rem 0}
.faq details:last-of-type{border-bottom:1px solid var(--line-strong)}
.faq summary{cursor:pointer;padding:.7rem 0;font-weight:650;list-style-position:outside}
.faq details p{margin:0 0 .9rem}

/* Filtre */
.filter{display:block;width:100%;max-width:28rem;padding:.7rem .9rem;font:inherit;color:var(--ink);background:var(--paper);border:1.5px solid var(--ink);border-radius:6px;margin:0 0 1rem}
[hidden]{display:none!important}

/* Bouton impression */
.btn{display:inline-block;font:600 1rem/1 var(--sans);padding:.8rem 1.1rem;border-radius:6px;border:1.5px solid var(--ink);background:var(--hl);color:var(--hl-ink);cursor:pointer;text-decoration:none}
.btn:hover{filter:brightness(.96)}
.btn-alt{background:var(--paper);color:var(--ink)}
.btn-alt:hover{background:var(--bic-soft);filter:none}
.btn-note{display:block;font-weight:400;font-size:.8rem;color:var(--muted);margin-top:.3rem}
.btn-sm{font-size:.9rem;padding:.55rem .8rem}
p.no-print .btn{margin:0 .5rem .5rem 0;vertical-align:top}
.more{margin:1.2rem 0 0;font-weight:600}

/* Galerie des coloriages */
.chips{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 .8rem}
.chip{font:inherit;font-size:.92rem;padding:.4rem .85rem;border-radius:999px;border:1.5px solid var(--line-strong);background:var(--paper);color:var(--ink);cursor:pointer}
.chip:hover{border-color:var(--bic)}
.chip[aria-pressed="true"]{background:var(--bic);border-color:var(--bic);color:var(--paper);font-weight:600}
.gal-meta{font-size:.9rem;color:var(--muted);margin:-.2rem 0 .8rem}
.gallery{list-style:none;padding:0;margin:0 0 1rem;display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(8.5rem,1fr))}
@media (min-width:640px){.gallery{grid-template-columns:repeat(auto-fill,minmax(10rem,1fr))}}
.gallery li{margin:0}
.gallery a{display:block;text-decoration:none;color:var(--ink)}
.gallery img{width:100%;height:auto;background:#fff;border:1px solid var(--line-strong);border-radius:4px;box-shadow:3px 3px 0 var(--line)}
.gallery a:hover img{border-color:var(--bic);box-shadow:3px 3px 0 var(--bic-soft)}
.gallery span{display:block;font-size:.88rem;line-height:1.35;margin-top:.4rem}
.gallery a:hover span{color:var(--bic);text-decoration:underline}

/* Résultats de recherche */
.results{list-style:none;padding:0;margin:0 0 2rem;max-width:var(--text);border-top:1px solid var(--line-strong)}
.results li{margin:0;padding:.8rem 0;border-bottom:1px solid var(--line)}
.results a{font:700 1.1rem/1.3 var(--round)}
.res-meta{display:block;font-size:.82rem;color:var(--muted);margin:.15rem 0 .2rem}
.results p{margin:0;font-size:.95rem;color:var(--muted)}

/* Défi 30 jours */
.challenge{background:var(--paper-2);border:1.5px solid var(--line-strong);border-radius:6px;padding:.8rem 1rem;margin:1.5rem 0}
.challenge p{margin:0 0 .4rem}
.ch-line span{font:800 1.1rem/1 var(--round);color:var(--bic);margin-left:.4rem}
.ch-bar{height:.55rem;border-radius:999px;background:var(--paper);border:1px solid var(--line-strong);overflow:hidden;margin:0 0 .5rem}
.ch-bar span{display:block;height:100%;width:0;background:var(--bic);transition:width .2s}
.ch-note{font-size:.85rem;color:var(--muted)}
.day-check{display:inline-flex;align-items:center;gap:.45rem;font-size:.92rem;color:var(--muted);cursor:pointer;margin:-.3rem 0 .6rem;padding:.2rem .1rem}
.day-check input{width:1.15rem;height:1.15rem;margin:0;accent-color:var(--bic);cursor:pointer}
h3.is-done{color:var(--muted)}
h3.is-done::after{content:" ✓";color:var(--bic)}

/* Pied de page */
.site-foot{border-top:1px solid var(--line-strong);background:var(--paper-2);padding:2.5rem 0 2rem;font-size:.93rem}
.foot-grid{display:grid;gap:2rem}
@media (min-width:760px){.foot-grid{grid-template-columns:2fr 1fr}}
.site-foot h2{font-size:1rem;margin:0 0 .6rem}
.site-foot ul{list-style:none;padding:0;margin:0;columns:2;column-gap:1.5rem}
.site-foot li{margin:0 0 .35rem;break-inside:avoid}
.site-foot a{color:var(--ink)}
.site-foot small{display:block;margin-top:2rem;color:var(--muted)}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Impression : seule la planche imprimable sort */
@media print{
  @page{size:A4;margin:10mm}
  body{background:#fff;color:#000}
  .site-head,.site-foot,.crumbs,.aside,.no-print,.toc,.faq,.challenge,.day-check{display:none!important}
  h3.is-done::after{content:none}
  .seyes{background:none;border:0}
  .printable{break-before:page;margin:0}
  .printable img{border:0;width:100%;height:auto;max-height:270mm;object-fit:contain}
  a{color:#000;text-decoration:none}
}
.head-art.sq{max-width:20rem;width:100%;justify-self:center}
@media (min-width:860px){.head-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:520px){.intents a{display:block}.intents a span{display:block;margin-top:.1rem}}
.site-foot ul.one{columns:1}
.count{color:var(--muted);min-height:1.6em}
.toc .g{font-size:1.15rem;margin:1.8rem 0 .5rem}
.prose details{border-top:1px solid var(--line-strong);padding:.2rem 0}
.prose details:last-of-type{border-bottom:1px solid var(--line-strong)}
.prose summary{cursor:pointer;padding:.7rem 0;font-weight:650}
.prose details p{margin:0 0 .9rem}
