
  
  
  
  
  

  :root {
    --vert: #007A3F; --vert-fonce: #005C2F; --vert-doux: #E6F2EC; --vert-pale: #F5FAF7;
    --beige: #E4D1B0; --beige-nuit: #C19A6B; --texte: #333333; --texte-2: #4A5568; --texte-3: #718096;
    --bord: #E2E8F0; --rouge: #D32F2F;
  }
  
  
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body { font-family: M, sans-serif; color: var(--texte); font-size: 10.5pt; line-height: 1.55; background: #fff;
         -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Couverture */
  .cover { width: 210mm; height: 297mm; position: relative; overflow: hidden; background: var(--vert-fonce);
           color: #fff; page-break-after: always; padding: 26mm 20mm; display: flex; flex-direction: column; }
  .cover .halo1 { position: absolute; width: 150mm; height: 150mm; border-radius: 50%; background: var(--beige);
                  opacity: .16; filter: blur(30mm); right: -50mm; top: -40mm; }
  .cover .halo2 { position: absolute; width: 140mm; height: 140mm; border-radius: 50%; background: var(--vert);
                  opacity: .7; filter: blur(35mm); left: -60mm; bottom: -60mm; }
  .cover .logo { position: relative; background: #fff; border-radius: 6mm; padding: 4mm 6mm; width: 42mm; }
  .cover .logo img { width: 100%; display: block; }
  .cover .kicker { position: relative; margin-top: 30mm; color: var(--beige); font-weight: 700; letter-spacing: .2em;
                   text-transform: uppercase; font-size: 10pt; }
  .cover h1 { position: relative; font-size: 40pt; line-height: 1.05; margin: 5mm 0 6mm; font-weight: 800; }
  .cover h1 span { color: var(--beige); }
  .cover .sub { position: relative; font-size: 13pt; max-width: 135mm; color: rgba(255,255,255,.85); }
  .cover .phones { position: relative; margin-top: auto; display: flex; gap: 6mm; align-items: flex-end; }
  .cover .phones img { width: 46mm; border-radius: 7mm; border: 2mm solid #1F2933; box-shadow: 0 8mm 20mm rgba(0,0,0,.35); }
  .cover .phones img.big { width: 52mm; }
  .cover .foot { position: relative; margin-top: 10mm; display: flex; justify-content: space-between; font-size: 9pt;
                 color: rgba(255,255,255,.7); }

  /* Titres */
  h2.chap { page-break-before: always; font-size: 22pt; font-weight: 800; margin: 0 0 2mm; color: var(--texte); }
  h2.chap .num { display: inline-flex; align-items: center; justify-content: center; width: 12mm; height: 12mm;
                 border-radius: 3.5mm; background: var(--vert); color: #fff; font-size: 15pt; margin-right: 3mm;
                 vertical-align: middle; }
  .chap-intro { color: var(--texte-2); font-size: 11pt; margin: 0 0 6mm; padding-bottom: 4mm; border-bottom: 1.2mm solid var(--vert-doux); }
  h3 { font-size: 13.5pt; font-weight: 800; margin: 7mm 0 2mm; color: var(--vert-fonce); page-break-after: avoid; }
  h4 { font-size: 11pt; font-weight: 700; margin: 4mm 0 1.5mm; page-break-after: avoid; }
  p { margin: 0 0 2.5mm; }
  ul, ol { margin: 0 0 3mm; padding-left: 6mm; }
  li { margin: 0 0 1.2mm; }
  strong { font-weight: 700; }
  .muted { color: var(--texte-3); }
  .role { display: inline-block; font-size: 8pt; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
          padding: .6mm 2.4mm; border-radius: 10mm; vertical-align: middle; margin-left: 1.5mm; }
  .r-admin { background: var(--vert); color: #fff; } .r-gerant { background: var(--beige); color: var(--vert-fonce); }
  .r-serveur { background: #DBEAFE; color: #1E40AF; } .r-cuisinier { background: #FEF3C7; color: #92400E; }

  /* Sommaire */
  .toc { page-break-after: always; }
  .toc h2 { font-size: 22pt; font-weight: 800; margin: 0 0 6mm; }
  .toc ol { list-style: none; padding: 0; counter-reset: c; }
  .toc li { display: flex; gap: 3mm; padding: 2.6mm 0; border-bottom: .3mm solid var(--bord); font-size: 11pt; }
  .toc li b { color: var(--vert); min-width: 8mm; }
  .toc li span.d { color: var(--texte-3); font-size: 9.5pt; margin-left: auto; text-align: right; max-width: 95mm; }

  /* Visuels */
  figure { margin: 3mm 0 5mm; page-break-inside: avoid; }
  figure.web img { width: 100%; border-radius: 2.5mm; border: .3mm solid var(--bord); box-shadow: 0 1.5mm 5mm rgba(0,0,0,.08); display: block; }
  figcaption { font-size: 8.5pt; color: var(--texte-3); margin-top: 1.5mm; text-align: center; }
  .phones { display: flex; gap: 6mm; justify-content: center; align-items: flex-start; margin: 3mm 0 5mm; page-break-inside: avoid; }
  .phones figure { margin: 0; width: 46mm; }
  .phones img { width: 100%; border-radius: 6mm; border: 1.6mm solid #1F2933; display: block; }
  .split { display: flex; gap: 7mm; align-items: flex-start; page-break-inside: avoid; margin: 2mm 0 4mm; }
  .split .txt { flex: 1; }
  .split .ph { width: 48mm; flex: none; }
  .split .ph img { width: 100%; border-radius: 6mm; border: 1.6mm solid #1F2933; display: block; }

  /* Encadrés */
  .steps { counter-reset: s; list-style: none; padding: 0; margin: 2mm 0 4mm; }
  .steps li { counter-increment: s; position: relative; padding-left: 10mm; margin-bottom: 2.4mm; }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: .2mm; width: 6.4mm; height: 6.4mm;
                      border-radius: 50%; background: var(--vert); color: #fff; font-weight: 800; font-size: 8.5pt;
                      display: flex; align-items: center; justify-content: center; }
  .box { border-radius: 3mm; padding: 3.5mm 4.5mm; margin: 3mm 0 4mm; page-break-inside: avoid; font-size: 10pt; }
  .box .t { font-weight: 800; display: block; margin-bottom: 1mm; }
  .tip { background: var(--vert-pale); border-left: 1.4mm solid var(--vert); }
  .tip .t { color: var(--vert-fonce); }
  .warn { background: #FFF7ED; border-left: 1.4mm solid #F59E0B; }
  .warn .t { color: #92400E; }
  .key { background: #F7FAFC; border: .3mm solid var(--bord); }
  table { width: 100%; border-collapse: collapse; margin: 2mm 0 4mm; font-size: 9.5pt; page-break-inside: avoid; }
  th { text-align: left; background: var(--vert-doux); color: var(--vert-fonce); font-weight: 800; padding: 2mm 2.5mm; }
  td { padding: 2mm 2.5mm; border-bottom: .3mm solid var(--bord); vertical-align: top; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin: 2mm 0 4mm; }
  .card { border: .3mm solid var(--bord); border-radius: 3mm; padding: 3.5mm 4mm; page-break-inside: avoid; }
  .card h4 { margin-top: 0; }
  .avoid { page-break-inside: avoid; }
  .badge-img { width: 92mm; border-radius: 3mm; box-shadow: 0 2mm 6mm rgba(0,0,0,.12); display: block; margin: 2mm auto 2mm; }
  .onapp { display: flex; gap: 2.5mm; align-items: flex-start; background: #FFFBF3; border: .3mm solid var(--beige);
           border-radius: 2.5mm; padding: 2.4mm 3.5mm; margin: 2mm 0 4mm; font-size: 9.5pt; page-break-inside: avoid; }
  .onapp b.tag { flex: none; background: var(--beige-nuit); color: #fff; font-size: 7.5pt; text-transform: uppercase;
                 letter-spacing: .06em; padding: .5mm 2mm; border-radius: 10mm; margin-top: .4mm; }
  td.web-only { color: var(--texte-3); font-style: italic; }
  .end { margin-top: 10mm; padding: 6mm; border-radius: 4mm; background: var(--vert-fonce); color: #fff; page-break-inside: avoid; }
  .end h3 { color: var(--beige); margin-top: 0; }
  .end a { color: #fff; }

  .toc a { color: inherit; text-decoration: none; display: flex; gap: 3mm; }



/* docs/guide/docs.css — mise en page « site de documentation » du guide en ligne.
   Ajouté après les styles de contenu de guide.html (cartes, encadrés, téléphones…). */
@font-face { font-family: M; src: url(../fonts/Montserrat-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: M; src: url(../fonts/Montserrat-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: M; src: url(../fonts/Montserrat-SemiBold.ttf); font-weight: 600; font-display: swap; }
@font-face { font-family: M; src: url(../fonts/Montserrat-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: M; src: url(../fonts/Montserrat-ExtraBold.ttf); font-weight: 800; font-display: swap; }

:root { --entete: 64px; --lateral: 290px; --sommaire: 230px; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 16px); }
body { margin: 0; padding: 0; max-width: none; box-shadow: none; background: #fff; font-size: 16px; line-height: 1.65; color: var(--texte); }
a { color: var(--vert); }

/* En-tête */
.entete { position: fixed; inset: 0 0 auto 0; height: var(--entete); z-index: 30; display: flex; align-items: center; gap: 16px;
          padding: 0 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bord); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); font-weight: 800; font-size: 16px; white-space: nowrap; }
.marque img { height: 34px; }
.burger { display: none; border: 0; background: var(--vert-pale); color: var(--vert-fonce); width: 40px; height: 40px; border-radius: 12px; font-size: 20px; cursor: pointer; }
.recherche { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.recherche input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--bord); background: #F7FAFC; padding: 0 40px 0 14px;
                   font: 500 14px M, sans-serif; color: var(--texte); outline: none; }
.recherche input:focus { border-color: var(--vert); background: #fff; box-shadow: 0 0 0 3px var(--vert-doux); }
.recherche kbd { position: absolute; right: 10px; top: 9px; font: 600 12px M, sans-serif; color: var(--texte-3); border: 1px solid var(--bord);
                 border-radius: 6px; padding: 1px 7px; background: #fff; }
.resultats { display: none; position: absolute; top: 46px; left: 0; right: 0; max-height: 60vh; overflow: auto; background: #fff;
             border: 1px solid var(--bord); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: 6px; }
.resultats.ouvert { display: block; }
.resultats a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--texte); }
.resultats a:hover, .resultats a.sel { background: var(--vert-pale); }
.resultats small { display: block; color: var(--vert); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.resultats b { display: block; font-size: 14px; }
.resultats span { display: block; font-size: 12.5px; color: var(--texte-2); }
.resultats mark { background: var(--beige); color: inherit; border-radius: 3px; }
.resultats .vide { padding: 12px; color: var(--texte-3); font-size: 14px; }
.lien-site { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* Cadre à trois colonnes */
.cadre { display: grid; grid-template-columns: var(--lateral) minmax(0, 1fr) var(--sommaire); padding-top: var(--entete); max-width: 1440px; margin: 0 auto; }

/* Barre latérale */
.lateral { position: sticky; top: var(--entete); height: calc(100vh - var(--entete)); overflow-y: auto; padding: 24px 16px 32px 24px;
           border-right: 1px solid var(--bord); background: #fff; }
.lateral-accueil { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--texte); }
.lateral-accueil.actif, .lateral-accueil:hover { background: var(--vert-pale); color: var(--vert-fonce); }
.lateral-titre { margin: 18px 12px 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.lateral ol { list-style: none; margin: 0; padding: 0; }
.lateral li { margin: 0; }
.lateral li > a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 12px; border-radius: 10px; text-decoration: none;
                  color: var(--texte-2); font-size: 14px; font-weight: 600; line-height: 1.35; }
.lateral li > a:hover { background: #F7FAFC; color: var(--texte); }
.lateral li > a .n { flex: none; min-width: 22px; height: 22px; border-radius: 7px; background: #F1F5F9; color: var(--texte-3);
                     font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lateral li.actif > a { background: var(--vert-pale); color: var(--vert-fonce); }
.lateral li.actif > a .n { background: var(--vert); color: #fff; }
.lateral .sous { list-style: none; margin: 4px 0 8px 23px; padding: 0 0 0 12px; border-left: 2px solid var(--vert-doux); }
.lateral .sous a { display: block; padding: 5px 10px; font-size: 13px; font-weight: 500; color: var(--texte-2); text-decoration: none; border-radius: 8px; }
.lateral .sous a:hover { color: var(--vert-fonce); }
.lateral .sous a.vu { color: var(--vert); font-weight: 700; }
.lateral-pdf { display: block; margin: 22px 12px 0; padding: 10px 14px; border-radius: 12px; background: var(--vert); color: #fff;
               text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; }

/* Contenu */
.contenu { padding: 40px 56px 64px; min-width: 0; }
.fil { font-size: 13px; color: var(--texte-3); margin: 0 0 10px; }
.fil a { color: var(--texte-3); text-decoration: none; }
.contenu h1 { font-size: 34px; line-height: 1.2; font-weight: 800; margin: 0 0 14px; display: flex; align-items: center; gap: 14px; }
.contenu h1 .num { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--vert); color: #fff; font-size: 20px;
                   display: inline-flex; align-items: center; justify-content: center; }
.intro { font-size: 18px; color: var(--texte-2); margin: 0 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--bord); }
.doc { font-size: 16px; }
.doc h3 { font-size: 22px; margin: 40px 0 12px; position: relative; color: var(--texte); }
.doc h3 .ancre { position: absolute; left: -22px; color: var(--beige-nuit); text-decoration: none; opacity: 0; font-weight: 700; }
.doc h3:hover .ancre { opacity: 1; }
.doc h4 { font-size: 17px; margin: 20px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc figure.web img { border-radius: 12px; }
.doc .phones { gap: 20px; margin: 18px 0 26px; }
.doc .phones figure { width: 210px; }
.doc .phones img, .doc .split .ph img { border-width: 6px; border-radius: 26px; }
.doc .split { gap: 32px; margin: 12px 0 24px; }
.doc .split .ph { width: 230px; }
.doc .box, .doc .onapp, .doc .card { border-radius: 12px; font-size: 15px; }
.doc .box { padding: 14px 18px; }
.doc .onapp { padding: 10px 14px; gap: 10px; }
.doc .onapp b.tag { font-size: 10px; padding: 2px 8px; }
.doc .card { padding: 16px 18px; }
.doc .grid2 { gap: 16px; }
.doc table { font-size: 14.5px; }
.doc th, .doc td { padding: 10px 12px; }
.doc .steps li { padding-left: 38px; }
.doc .steps li::before { width: 26px; height: 26px; font-size: 13px; }
.doc .badge-img { width: 420px; max-width: 100%; }
.doc .end { border-radius: 16px; padding: 24px; }
.role { font-size: 11px; padding: 2px 9px; }

.precsuiv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.precsuiv a { display: block; padding: 16px 18px; border: 1px solid var(--bord); border-radius: 14px; text-decoration: none; color: var(--texte); }
.precsuiv a:hover { border-color: var(--vert); box-shadow: 0 6px 18px rgba(0,122,63,.1); }
.precsuiv small { display: block; color: var(--texte-3); font-size: 12px; font-weight: 600; }
.precsuiv b { color: var(--vert-fonce); font-size: 15px; }
.precsuiv .suiv { text-align: right; }
.pied { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--bord); font-size: 13px; color: var(--texte-3); }

/* Sommaire de droite */
.sommaire { position: sticky; top: var(--entete); height: calc(100vh - var(--entete)); overflow-y: auto; padding: 40px 24px 24px 8px; }
.sommaire p { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); margin: 0 0 10px; }
.sommaire ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--bord); }
.sommaire a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 13px;
              color: var(--texte-2); text-decoration: none; line-height: 1.4; }
.sommaire a:hover { color: var(--vert-fonce); }
.sommaire a.vu { color: var(--vert); border-left-color: var(--vert); font-weight: 700; }

/* Accueil du guide */
.hero { border-radius: 24px; padding: 44px 44px 40px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1f7a4d 0%, var(--vert-fonce) 55%);
        position: relative; overflow: hidden; }
.hero .kicker { color: var(--beige); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: 44px; display: block; margin: 0 0 14px; }
.hero h1 span { color: var(--beige); }
.hero p { font-size: 17px; color: rgba(255,255,255,.88); max-width: 640px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 14px; background: var(--beige); color: var(--vert-fonce); font-weight: 800; text-decoration: none; font-size: 15px; }
.btn-2 { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.titre-bloc { font-size: 22px; font-weight: 800; margin: 40px 0 14px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role-carte { border: 1px solid var(--bord); border-radius: 16px; padding: 18px 20px; }
.role-carte p { margin: 10px 0 8px; color: var(--texte-2); font-size: 15px; }
.role-carte ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.chapitres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chap-carte { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--bord); border-radius: 14px;
              text-decoration: none; color: var(--texte); }
.chap-carte:hover { border-color: var(--vert); background: var(--vert-pale); }
.chap-carte .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--vert); color: #fff; font-weight: 800;
                   display: inline-flex; align-items: center; justify-content: center; }
.chap-carte b { font-size: 15px; }
.chap-carte small { color: var(--texte-3); font-size: 13px; line-height: 1.45; }

.voile { display: none; }

/* Écrans moyens : pas de sommaire de droite */
@media (max-width: 1180px) {
  .cadre { grid-template-columns: var(--lateral) minmax(0, 1fr); }
  .sommaire { display: none; }
}
/* Téléphones et tablettes : la barre latérale devient un tiroir */
@media (max-width: 860px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .entete { padding: 0 14px; gap: 10px; }
  .marque span, .lien-site, .recherche kbd { display: none; }
  .cadre { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: fixed; top: var(--entete); left: 0; bottom: 0; width: 300px; height: auto; z-index: 25; transform: translateX(-105%);
             transition: transform .25s ease; box-shadow: 10px 0 30px rgba(0,0,0,.12); }
  body.menu-ouvert .lateral { transform: none; }
  .voile { position: fixed; inset: var(--entete) 0 0 0; background: rgba(0,0,0,.35); z-index: 20; }
  body.menu-ouvert .voile { display: block; }
  .contenu { padding: 28px 18px 48px; }
  .contenu h1 { font-size: 26px; }
  .hero { padding: 30px 22px; }
  .hero h1 { font-size: 32px; }
  .roles, .chapitres, .doc .grid2, .precsuiv { grid-template-columns: 1fr; }
  .doc .split { flex-direction: column; }
  .doc .split .ph { width: 62%; margin: 0 auto; }
  .doc .phones { flex-wrap: wrap; gap: 12px; }
  .doc .phones figure { width: 30%; min-width: 96px; }
  .doc table { display: block; overflow-x: auto; }
  .doc h3 .ancre { display: none; }
}
