:root {
  --encre: #102530; --encre2: #0B1C25; --petrole: #0F4C4A; --sable: #C6A15B; --sable-clair: #E4CC97;
  --sable-ink: #7A5A22; --creme: #F7F4EC; --feuille: #FDFCF9; --sauge: #E3ECEA; --ligne: #DDD6C8;
  --texte2: #2E4450; --muted: #5A6970; --violet: #4A3C8C; --violet-sombre: #2C2652; --lilas: #BDB3EA;
  --terre: #A85A2A;
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --doux: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--encre); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--sable-clair); color: var(--encre); }
:focus-visible { outline: 2px solid var(--sable); outline-offset: 3px; }

.contenu { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--sable); color: var(--encre); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-entete { position: relative; z-index: 20; background: var(--encre); color: var(--creme); }
.site-barre { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.site-logo { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.site-emb { display: block; width: 38px; height: 38px; transition: transform .8s var(--doux); }
.site-logo:hover .site-emb { transform: rotate(45deg); }
.site-nom { display: block; width: auto; height: 20px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; padding: 10px 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.site-nav a:not(.site-contact)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--sable); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.site-nav a:not(.site-contact):hover::after, .site-nav a:not(.site-contact):focus-visible::after, .site-nav a.courant::after { transform: scaleX(1); }
.site-nav .site-contact, .site-menu .site-contact { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 2px; background: var(--sable); color: var(--encre); }
.site-menu { display: none; }
.site-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 2px; cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary path { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--doux), opacity .3s ease; }
.site-menu[open] summary .b1 { transform: translateY(6px) rotate(45deg); }
.site-menu[open] summary .b2 { opacity: 0; }
.site-menu[open] summary .b3 { transform: translateY(-6px) rotate(-45deg); }
.site-menu nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 8px 16px 28px; background: var(--encre); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .5); }
.site-menu nav a { display: flex; align-items: center; min-height: 52px; padding: 10px 0; border-bottom: 1px solid rgba(247, 244, 236, .12); font-family: var(--serif); font-size: 26px; font-weight: 500; text-decoration: none; }
.site-menu nav .site-contact { margin-top: 20px; border-bottom: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; min-height: 50px; }
.site-pied { background: var(--encre2); color: rgba(247, 244, 236, .8); padding: 56px 0 40px; font-size: 14px; }
.site-pied-outil { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid rgba(247, 244, 236, .14); color: rgba(247, 244, 236, .84); }
.site-pied-outil p + p { margin-top: 8px; color: rgba(247, 244, 236, .66); font-size: 12px; }
.site-pied-haut { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-pied-nom { display: block; width: auto; height: 22px; }
.site-pied-accroche { max-width: 320px; margin-top: 16px; }
.site-pied h3 { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sable-clair); }
.site-pied-haut a { display: block; padding: 5px 0; color: rgba(247, 244, 236, .86); text-decoration: none; }
.site-pied-haut a:hover { color: var(--creme); text-decoration: underline; text-underline-offset: 4px; }
.site-pied-bas { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(247, 244, 236, .14); font-size: 13px; color: rgba(247, 244, 236, .66); }
@media (max-width: 980px) {
  .site-nav { display: none; }
  .site-menu { display: block; }
  .site-pied-haut { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-pied-haut { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .site-barre { height: 64px; } }

[hidden] { display: none !important; }
textarea, select { font: inherit; color: inherit; }
.bandeau { background: var(--encre2); color: var(--creme); padding: 12px 0; border-top: 1px solid #31434c; }
.ariane { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.ouverture { background: var(--encre2); color: var(--creme); padding: 60px 0 68px; }
.repere { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sable-ink); margin-bottom: 14px; }
.ouverture .repere { color: var(--sable-clair); }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { max-width: 880px; font-size: clamp(40px, 5.5vw, 64px); }
h2 { font-size: 38px; margin-bottom: 26px; }
h3 { font-size: 17px; line-height: 1.4; margin-bottom: 12px; }
.chapeau { max-width: 850px; font-size: 19px; margin-top: 26px; }
.local { max-width: 850px; margin-top: 24px; padding-left: 18px; border-left: 3px solid var(--sable); }
.meta { font-family: var(--mono); font-size: 12px; margin-top: 30px; color: #d9ddd9; }
.section { padding: 58px 0; }
.feuille { background: var(--feuille); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.carte { padding: 28px; background: var(--feuille); border: 1px solid var(--ligne); margin: 24px 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0 6px; font-weight: 600; }
.champ { margin-bottom: 24px; }
.champ > label { display: block; font-weight: 600; margin-bottom: 9px; }
input[type="file"], input[type="date"], textarea, select { display: block; width: 100%; min-height: 48px; border: 1px solid #7b8788; border-radius: 2px; background: #fff; padding: 11px; font-size: 15px; }
textarea { resize: vertical; font-family: var(--mono); font-size: 14px; line-height: 1.65; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--petrole); vertical-align: middle; margin-right: 8px; }
.date { max-width: 270px; margin-top: 24px; }
.aide { font-size: 14px; color: var(--texte2); margin-top: 9px; }
.options { padding: 20px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; font-size: 14px; font-weight: 600; line-height: 1.5; border: 1px solid transparent; border-radius: 2px; cursor: pointer; text-decoration: none; text-align: center; }
.btn-plein { background: var(--petrole); color: #fff; border-color: var(--petrole); }
.btn-plein:hover { background: #103d3c; }
.btn-trait { border-color: var(--petrole); background: transparent; color: var(--petrole); }
.btn-trait:hover { background: var(--sauge); }
.btn:disabled { cursor: default; color: #536363; background: #e7ebe8; border-color: #a5b1ab; }
.btn-lien { background: transparent; border: 0; padding: 8px 0; font-weight: 600; color: var(--petrole); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.etat { margin: 18px 0 12px; font-size: 14px; font-weight: 600; color: var(--petrole); }
.suivi { margin-top: 20px; min-height: 35px; font-size: 15px; }
progress { width: 100%; height: 18px; margin-top: 12px; accent-color: var(--petrole); }
.attention { padding: 18px 20px; border-left: 3px solid var(--violet); background: #eeebf7; color: var(--violet-sombre); font-size: 15px; margin-bottom: 24px; }
.resume { font-family: var(--mono); font-size: 14px; padding: 16px 0; font-weight: 500; }
.vide { color: var(--texte2); margin: 26px 0; }
.liste-simple { list-style: disc; padding-left: 22px; margin: 12px 0 22px; font-size: 15px; overflow-wrap: anywhere; }
.liste-simple li + li { margin-top: 6px; }
.table-defile { max-width: 100%; overflow-x: auto; margin: 20px 0 30px; }
table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 13px; background: #fff; }
caption { text-align: left; font-weight: 600; padding-bottom: 10px; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border: 1px solid #c7ccc6; overflow-wrap: break-word; }
th { background: var(--encre); color: #fff; font-weight: 600; white-space: nowrap; }
td:nth-child(2), td:nth-child(6), td:nth-child(7) { white-space: nowrap; }
td:first-child { min-width: 140px; max-width: 240px; }
td:nth-child(3) { min-width: 160px; }
td:nth-child(4) { min-width: 220px; }
td:nth-child(5) { min-width: 140px; }
tr.non-classe td { background: #f5f1e8; }
tr.a-verifier td { background: #f6e4b8; }
tr.a-verifier td:first-child { box-shadow: inset 6px 0 0 var(--sable-ink); }
td.commandes { white-space: nowrap; }
td.commandes .confirmer { margin-left: 12px; }
td.marque-verifier { font-weight: 700; color: var(--sable-ink); white-space: nowrap; }
.filtre { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 15px; }
.filtre-actif tbody tr:not(.a-verifier):not(.non-classe) { display: none; }
.etat-production:empty { display: none; }
.etat-production { margin: 12px 0; padding: 12px 16px; border-left: 3px solid var(--sable-ink); background: #fbf6ea; font-size: 15px; }
.essentiel { padding: 18px 20px; border-left: 3px solid var(--sable); background: #fbf6ea; color: var(--encre); font-size: 15px; margin-bottom: 24px; }
.relecture { display: block; margin-top: 18px; font-weight: 600; font-size: 15px; }
.liens-fichiers { display: grid; gap: 12px; justify-items: start; margin-top: 22px; }
.liens-fichiers a:not([href]) { cursor: default; border-color: #8a9693; color: var(--texte2); }
.regles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; align-items: start; }
.regles details { border-top: 1px solid #c2c8be; padding: 15px 0; }
summary { cursor: pointer; }
.regles summary { font-size: 15px; font-weight: 600; }
.regles p { margin-top: 12px; font-size: 14px; color: var(--texte2); }
.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.suite p + p, .notes p + p { margin-top: 18px; }
.notes { font-size: 14px; color: var(--texte2); }
.lien-suite { font-weight: 600; color: var(--petrole); text-underline-offset: 4px; }
.recapitulatif { display: none; }
@media (max-width: 900px) {
  .contenu { padding: 0 18px; }
  .ouverture { padding: 40px 0; }
  h2 { font-size: 32px; }
  .section { padding: 40px 0; }
  .carte { padding: 20px 16px; }
  .regles, .suite { grid-template-columns: 1fr; gap: 20px; }
  .actions > .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: A4; margin: 15mm 12mm; }
  body { background: #fff; color: #000; font-size: 10pt; line-height: 1.4; }
  body > *:not(.recapitulatif) { display: none !important; }
  .recapitulatif { display: block; }
  .recapitulatif h1 { font-size: 22pt; margin: 0 0 8pt; }
  .recapitulatif h2 { font-size: 16pt; margin: 16pt 0 8pt; break-after: avoid; }
  .recapitulatif h3 { font-size: 11pt; margin: 10pt 0 4pt; break-after: avoid; }
  .recapitulatif p { margin: 5pt 0; }
  .recapitulatif .mono { font-size: 8pt; }
  .recapitulatif .liste-simple { font-size: 9pt; margin: 5pt 0; }
  .recapitulatif .table-defile { overflow: visible; margin: 8pt 0; }
  .recapitulatif table { font-size: 7.5pt; width: 100%; table-layout: fixed; }
  .recapitulatif table { min-width: 0; }
  .recapitulatif th, .recapitulatif td { white-space: normal; overflow-wrap: anywhere; }
  .recapitulatif th, .recapitulatif td { min-width: 0; max-width: none; padding: 4pt; border: .5pt solid #777; background: #fff; color: #000; }
  .recapitulatif thead { display: table-header-group; }
  .recapitulatif tr { break-inside: avoid; }
  .recapitulatif caption { font-size: 9pt; }
}
