/* Parts Go — site de la bêta (RCR Systems). Charte du logo PG : encre #193244, rouge #ee3438, bleu #006eae, papier #f5f8fb.
   Polices système (aucune police téléchargée), aucune image lourde. Contrastes ≥ 4,5:1. */
:root {
  --encre: #193244; --rouge: #ee3438; --rouge-texte: #d9262b; --bleu: #006eae; --bleu-fonce: #005385;
  --papier: #f5f8fb; --surface: #fff; --bord: #cbdbe6; --doux: #526276; --bleu-pale: #e4f0f7; --avert: #9a5b00;
  --rayon: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--encre); background: var(--papier); line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }
img { max-width: 100%; height: auto; }

.entete { background: var(--encre); color: #fff; border-bottom: 4px solid var(--rouge); }
.entete .rangee { max-width: 1080px; margin: 0 auto; padding: .7rem 1.2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.marque img { width: 40px; height: 40px; border-radius: 8px; }
.marque small { display: block; font-weight: 400; font-size: .78rem; color: #a8b6c4; }
.nav { margin-left: auto; display: flex; gap: .2rem; flex-wrap: wrap; align-items: center; }
.nav a { color: #fff; text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav .bouton { background: var(--bleu); }
.nav .bouton:hover { background: var(--bleu-fonce); }
[data-si-connecte] { display: none; }
body.connecte [data-si-connecte] { display: inline-block; }
body.connecte [data-si-deconnecte] { display: none; }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.2rem 3rem; }
main.etroit { max-width: 560px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .2rem 0 1rem; }
h2 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
p.chapeau { font-size: 1.15rem; color: var(--doux); max-width: 46rem; }

.heros { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 1rem 0 1.5rem; }
.heros .badge { display: inline-block; background: var(--rouge-texte); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 99px; text-transform: uppercase; }
.heros .logo { justify-self: center; width: 200px; height: 200px; border-radius: 28px; box-shadow: 0 10px 30px rgba(25,50,68,.25); }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }

.bouton, button { display: inline-block; font: inherit; font-weight: 600; border: 0; cursor: pointer; text-decoration: none;
  background: var(--bleu); color: #fff; padding: .7rem 1.2rem; border-radius: 8px; }
.bouton:hover, button:hover { background: var(--bleu-fonce); color: #fff; }
.bouton.secondaire, button.secondaire { background: var(--surface); color: var(--bleu-fonce); border: 1px solid var(--bord); }
.bouton.secondaire:hover, button.secondaire:hover { background: var(--bleu-pale); color: var(--bleu-fonce); }
button[disabled] { opacity: .6; cursor: wait; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1rem 0; }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; }
.carte h3 { margin-top: 0; }
.etapes { counter-reset: e; list-style: none; padding: 0; }
.etapes li { counter-increment: e; position: relative; padding: .3rem 0 .6rem 2.6rem; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: .2rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--encre); color: #fff; font-weight: 700; display: grid; place-items: center; }

form { display: grid; gap: .9rem; }
label { font-weight: 600; display: grid; gap: .3rem; }
label.case { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
label.case input { margin-top: .3rem; }
input[type=email], input[type=password], input[type=text], select, textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid #8ea3b5; border-radius: 7px; background: #fff; color: var(--encre); width: 100%; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #7cb8e0; outline-offset: 1px; }
textarea { min-height: 9rem; resize: vertical; }
.aide { font-weight: 400; font-size: .88rem; color: var(--doux); }
.panneau { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.4rem; }

.message { padding: .75rem 1rem; border-radius: 8px; border: 1px solid; margin: .6rem 0; }
.message:empty { display: none; }
.message.erreur { background: #fdecec; border-color: #f3b4b5; color: #8e1519; }
.message.succes { background: #e8f5ec; border-color: #a9d8b7; color: #1d5b31; }
.message.info { background: var(--bleu-pale); border-color: var(--bord); color: var(--encre); }

.brouillon { background: #fff4d6; border: 2px dashed var(--avert); color: #5c3700; font-weight: 700; padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; text-align: center; letter-spacing: .02em; }
.a-confirmer { background: #fff4d6; color: #5c3700; border: 2px dashed var(--avert); padding: .1rem .4rem; border-radius: 4px; font-weight: 700; }
.don { font-size: 1.35rem; text-align: center; padding: 1.2rem; margin: 1rem 0; }
.don .aide { font-size: .95rem; margin: .8rem 0 0; }

table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .93rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
th { background: #eaf1f6; position: sticky; top: 0; }
th button { background: none; color: var(--encre); padding: 0; font-weight: 700; }
th button:hover { background: none; color: var(--bleu-fonce); text-decoration: underline; }
td select { width: auto; min-width: 8.5rem; padding: .35rem .5rem; }
td.texte { max-width: 28rem; white-space: pre-wrap; word-break: break-word; }
.tableau { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon); }
.pastille { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--bleu-pale); }
.filtres { display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; margin: .8rem 0; }
.filtres label { font-size: .9rem; }

.pied { background: var(--encre); color: #c9d4de; font-size: .88rem; }
.pied .rangee { max-width: 1080px; margin: 0 auto; padding: 1.2rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.pied a { color: #fff; }
.cache { display: none !important; }
.sans-marge { margin-top: 0; }

@media (max-width: 720px) {
  .heros { grid-template-columns: 1fr; }
  .heros .logo { width: 120px; height: 120px; grid-row: 1; justify-self: start; }
  h1 { font-size: 1.55rem; }
  .nav { margin-left: 0; width: 100%; }
}
