/* Qui-où — « l'atelier » : un établi de bois clair, des feuilles punaisées.
   Identité propre (choix de Michel, 29/11/2026), distincte du papier d'is4you.
   Mobile d'abord. Aucune ressource extérieure (CSP : tout vient de chez nous). */

:root {
  --bois: #e9dcc4;
  --bois-fonce: #8a6a43;
  --encre: #2b2520;
  --encre-douce: #6b6058;
  --papier: #fffdf8;
  --punaise: #c8452f;
  --vert: #2f7d55;
  --ombre: 0 1px 1px rgba(60, 40, 20, .12), 0 6px 14px rgba(60, 40, 20, .14);
  --rayon: 3px;
  font-size: 17px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--encre);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  /* Veinage du bois : deux dégradés répétés, très légers. */
  background-color: var(--bois);
  background-image:
    repeating-linear-gradient(92deg, rgba(120, 85, 45, .045) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(88deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 37px);
  min-height: 100vh;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* --- En-tête : une planche plus foncée -------------------------------- */
.planche {
  display: flex; flex-wrap: wrap; gap: .6rem 1rem;
  align-items: center; justify-content: space-between;
  padding: .8rem 1rem;
  background: linear-gradient(#9b7a50, var(--bois-fonce));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .2);
  color: #fff8ec;
}
.marque { display: flex; flex-direction: column; text-decoration: none; }
.tampon {
  font-weight: 800; font-size: 1.6rem; letter-spacing: .02em; line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.logo { height: 76px; width: auto; display: block; margin: -10px 0 -4px -10px; }
.devise { font-size: .85rem; opacity: .9; }
.langues { display: flex; gap: .3rem; }
.langues a {
  text-decoration: none; font-size: .8rem; font-weight: 700;
  padding: .25rem .5rem; border-radius: var(--rayon);
  background: rgba(255, 255, 255, .12);
}
.langues a[aria-current] { background: var(--papier); color: var(--bois-fonce); }

main { max-width: 1100px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }

/* --- Accroche et boutons ---------------------------------------------- */
.accroche { text-align: center; padding: .8rem 0 1.2rem; }
.accroche h1 { font-size: 1.7rem; margin: .2rem 0 .4rem; line-height: 1.2; }
.accroche p { color: var(--encre-douce); max-width: 38rem; margin: 0 auto 1rem; }

.bouton {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--vert); color: #fff; font: inherit; font-weight: 700;
  padding: .65rem 1.2rem; border-radius: 6px; text-decoration: none;
  box-shadow: 0 2px 0 #1f5a3c, 0 3px 8px rgba(0, 0, 0, .15);
}
.bouton:active { transform: translateY(1px); box-shadow: 0 1px 0 #1f5a3c; }
.bouton.secondaire { background: #fff; color: var(--encre); box-shadow: 0 2px 0 #b9ab98; }
.lien { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* --- Filtres ----------------------------------------------------------- */
.filtres {
  display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: end; justify-content: center;
  margin-bottom: 1.4rem; font-size: .9rem;
}
.filtres label { display: flex; flex-direction: column; gap: .15rem; }
.filtres select, .filtres button { font: inherit; padding: .35rem .5rem; border-radius: var(--rayon); border: 1px solid #b9ab98; background: var(--papier); }

/* --- Grille de cartes punaisées --------------------------------------- */
.grille {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.8rem 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.carte {
  position: relative; background: var(--papier); padding: .7rem .7rem .9rem;
  border-radius: 2px; box-shadow: var(--ombre);
  transition: transform .15s ease;
}
.carte.p0 { transform: rotate(-1.2deg); } .carte.p1 { transform: rotate(.8deg); }
.carte.p2 { transform: rotate(-.5deg); }  .carte.p3 { transform: rotate(1.1deg); }
.carte.p4 { transform: rotate(-.9deg); }  .carte.p5 { transform: rotate(.4deg); }
.carte:hover, .carte:focus-within { transform: rotate(0) scale(1.02); z-index: 1; }
/* La punaise */
.carte::before {
  content: ""; position: absolute; top: -9px; left: 50%; margin-left: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f08a74, var(--punaise) 55%, #7d2416);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .35);
}
.carte a { text-decoration: none; display: block; }
.carte img { border: 1px solid #eee4d4; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.carte h2 { font-size: 1.05rem; margin: .6rem 0 .2rem; line-height: 1.25; }
.carte p { margin: 0; font-size: .9rem; color: var(--encre-douce); }
.meta { font-size: .8rem !important; color: var(--encre-douce); margin-top: .45rem !important; }

.vide { text-align: center; padding: 2rem 1rem; color: var(--encre-douce); }

/* --- Feuilles (fiche, formulaire, messages) --------------------------- */
.feuille {
  background: var(--papier); box-shadow: var(--ombre); border-radius: 2px;
  padding: 1.2rem; max-width: 760px; margin: 0 auto 1.2rem; position: relative;
}
.feuille h1 { font-size: 1.5rem; margin: .2rem 0 .5rem; line-height: 1.2; }
.fiche img { border: 1px solid #eee4d4; margin-bottom: .8rem; }
.retour { max-width: 760px; margin: 0 auto .8rem; font-size: .9rem; }
.explication { font-size: 1.05rem; }
.avertissement { font-size: .85rem; color: var(--encre-douce); margin-top: 1rem; border-top: 1px dashed #d8cbb6; padding-top: .7rem; }
.message { text-align: center; }
.texte h2 { font-size: 1.1rem; margin-top: 1.4rem; }

/* --- Formulaires -------------------------------------------------------- */
.formulaire label { display: block; font-weight: 700; margin: .9rem 0 .25rem; font-size: .95rem; }
.formulaire input:not([type=checkbox]), .formulaire textarea, .formulaire select {
  width: 100%; font: inherit; padding: .55rem .6rem;
  border: 1px solid #b9ab98; border-radius: var(--rayon); background: #fff;
}
.formulaire .case { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.formulaire .case input { margin-top: .3rem; }
.formulaire .bouton { margin-top: 1.2rem; }
.aide { font-size: .8rem; color: var(--encre-douce); margin: .2rem 0 0; }
.erreur { color: #a3281a; font-size: .85rem; margin: .25rem 0 0; }
.erreur.bandeau { background: #fbe9e5; padding: .5rem .7rem; border-radius: var(--rayon); }
.deux { display: grid; gap: 0 1rem; }
.etroit { max-width: 420px; margin-top: 3rem; }
/* Champ piège anti-robots (BotDefenseService) : hors écran, jamais vu par un humain. */
.piege { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* --- Pied --------------------------------------------------------------- */
.pied { text-align: center; font-size: .85rem; color: var(--encre-douce); padding: 1rem 1rem 2rem; }
.pied p { margin: .3rem 0; }
.mlsofts a { font-weight: 700; }

/* --- Administration ----------------------------------------------------- */
.admin main h1 { font-size: 1.3rem; }
.relecture { display: grid; gap: 1rem; max-width: none; }
.relecture h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.sb { font-weight: 700; padding: .3rem .5rem; border-radius: var(--rayon); display: inline-block; }
.sb.ok { background: #e3f2e8; color: var(--vert); }
.sb.danger { background: #fbe9e5; color: #a3281a; }
.sb.inconnu { background: #fff4d6; color: #7a5a00; }
.decision { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .6rem; }
.refus { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; }
.refus select, .refus input { font: inherit; padding: .4rem; border: 1px solid #b9ab98; border-radius: var(--rayon); flex: 1 1 14rem; }
.liste { width: 100%; border-collapse: collapse; background: var(--papier); box-shadow: var(--ombre); font-size: .9rem; }
.liste th, .liste td { padding: .5rem; border-bottom: 1px solid #eee4d4; text-align: left; vertical-align: top; }
.info { background: #e3f2e8; padding: .6rem .8rem; border-radius: var(--rayon); }

@media (min-width: 700px) {
  .accroche h1 { font-size: 2.2rem; }
  .deux { grid-template-columns: 1fr 1fr; }
  .feuille { padding: 1.8rem 2rem; }
  .relecture { grid-template-columns: 320px 1fr; }
}
